joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403750
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x40cca8], 1
mov ebx, dword [0x40cc90]
test ebx, ebx
je 0x403778
mov eax, 0x7d
call fcn.00402874
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x40ccac], edx
mov dword [0x40ccb0], 1
mov eax, dword [0x40cc90]
test eax, eax
je 0x4037d1
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x40c054], 0
jne 0x4037c8
cmp byte [0x40c019], 0
jne 0x4037c8
push 0
push 1
push 0x111
push dword [0x40cc90]
call sub.USER32.DLL_SendMessageA
jmp 0x4037c8
call fcn.00402914
cmp dword [0x40cc98], 2
jne 0x4037c3
cmp byte [0x40c044], 0
je 0x4037df
call fcn.00402606
pop ebx
ret

Function at 0x403e74
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x403e99
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.00403fd0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x403edf
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x403f30
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x403fad
mov eax, dword [ebx + 4]
test eax, eax
je 0x403f48
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.00406a9c
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.00406840
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.00406b1c
mov edx, edi
mov eax, ebx
call fcn.0040460c
test al, al
jne 0x403f89
mov edx, edi
mov eax, ebx
call fcn.00404644
mov edx, edi
mov eax, ebx
call fcn.00404484
mov ebx, eax
mov eax, edi
call fcn.00406854
test ebx, ebx
je 0x403fad
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.00406854
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4041c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x40422a
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x40423b
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x40422a
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4041e2
cmp dword [esp], 0
je 0x4041e2
xor ebx, ebx
cmp dword [esp], 0
je 0x404285
lea eax, [esp + 4]
push eax
push 0x40cc20
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404285
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40427b
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x404d90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00404f8c
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x404e27
cmp byte [ebp + 8], 0
jne 0x404e27
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x404e65
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404c14
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x404f73
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x404ec4
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404c14
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x404f63
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x404eec
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x404f83
inc esi
test edi, edi
je 0x404f83
cmp esi, 0x200
jl 0x404e83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405af8
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405030
test eax, eax
je 0x405b1e
test ebx, ebx
je 0x405b1e
cmp word [ebx], 0
je 0x405b1e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x405b26
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405b39
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00405d20
xor eax, eax
jmp 0x405b54
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405b48
cmp eax, 3
jne 0x405b4f
mov eax, 2
jmp 0x405b54
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x405ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405030
test eax, eax
je 0x405cf7
test ebx, ebx
je 0x405cf7
cmp word [ebx], 0
je 0x405cf7
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x405d20
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00405030
test eax, eax
je 0x405d4d
test ebx, ebx
je 0x405d4d
cmp word [ebx], 0
je 0x405d4d
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x405d5c
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x405e5c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x40e180
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x405e76
call fcn.00405e24
mov eax, ebp
jmp 0x405e8e
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x405e96
test al, 7
jne 0x405e7a
cmp esi, 8
jb 0x405f1f
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x405e9f
xor edx, edx
jmp 0x405f39
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x405f23
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405fdc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x15], 0
mov esi, ecx
je 0x405fff
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x406010
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40601f
or dword [ebp - 8], 2
call fcn.00405030
test eax, eax
je 0x40604b
test esi, esi
je 0x40604b
cmp word [esi], 0
je 0x40604b
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x406064
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40607d
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40607d
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x4060e7
mov dword [ebx + 4], edi
test esi, esi
je 0x4060b2
lea eax, [ebx + 0x416]
mov edx, esi
call fcn.00406704
jmp 0x4060bb
mov word [ebx + 0x416], 0
cmp dword [ebp - 4], 0
je 0x4060ce
lea eax, [ebx + 0x16]
mov edx, dword [ebp - 4]
call fcn.00406b1c
jmp 0x4060dd
lea edx, [ebx + 0x16]
mov ecx, 0x10000000
mov eax, esi
call fcn.004066c8
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.004060f4
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4062b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x4062d7
cmp esi, 0x4e20
jle 0x4062cd
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x406328
mov eax, ebx
call fcn.00406490
test al, al
je 0x40630f
cmp esi, 0x4e20
jle 0x40630f
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.004062b0
jmp 0x40632b
cmp dword [ebx + 0xc], 1
jne 0x406323
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x406323
xor eax, eax
jmp 0x40632b
or eax, 0xffffffff
jmp 0x40632b
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x406d4c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov eax, esp
call fcn.00406cb0
mov ebx, eax
mov eax, dword [0x41b220]
call fcn.00406984
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x41b238
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
mov eax, dword [0x40f120]
mov eax, dword [eax + 0x10]
test al, 0x5f
je 0x406da4
and eax, 0x7f
push eax
push 0x41b238
call sub.KERNEL32.DLL_SetFileAttributesA
cmp esi, 0xffffffff
jne 0x406dc3
push 0x41b238
mov eax, 0x6d
call fcn.00402874
push eax
call fcn.00402e50
add esp, 8
jmp 0x406dfb
test ebx, ebx
je 0x406df5
test bl, 1
je 0x406dd0
mov eax, esp
jmp 0x406dd2
xor eax, eax
test bl, 2
je 0x406ddd
lea edx, [esp + 8]
jmp 0x406ddf
xor edx, edx
test bl, 4
je 0x406dea
lea ecx, [esp + 0x10]
jmp 0x406dec
xor ecx, ecx
push eax
push edx
push ecx
push esi
call sub.KERNEL32.DLL_SetFileTime
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4093f0
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40c7a2
mov eax, 0x41b238
call fcn.00406924
mov dword [0x41b220], eax
test eax, eax
jne 0x409459
push 0
push 0x41b238
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40c7a2
mov eax, 0x41b238
call fcn.00406924
mov dword [0x41b220], eax
test eax, eax
jne 0x409459
mov eax, 0x40ccb4
mov edx, 9
call fcn.00406654
push 0x41b238
mov eax, 0x6e
call fcn.00402874
push eax
call fcn.00402e50
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4095e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40eafc], 0
jg 0x409602
dec dword [0x40eafc]
xor eax, eax
mov dword [0x41b134], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x41b134], 0
jg 0x409657
push dword [0x41b150]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x41b12c]
call fcn.004069d0
mov dword [0x41b134], eax
test eax, eax
jne 0x40963c
xor edx, edx
or eax, 0xffffffff
mov dword [0x41b134], edx
pop esi
pop ebx
ret
add dword [0x41b158], 0x2000
mov edx, dword [0x41b12c]
mov dword [0x41b130], edx
call fcn.004094ac
mov ecx, dword [0x40f120]
test byte [ecx + 0x14], 1
je 0x40968e
mov esi, dword [0x41b134]
mov ebx, dword [0x41b130]
jmp 0x409685
call fcn.0040a844
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040a868
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x409671
dec dword [0x41b134]
mov ecx, dword [0x41b130]
inc dword [0x41b130]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

Function at 0x409758
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x409767
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40a78a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.0040a8d4
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.00406a54
xor ebx, ebx
call fcn.0040a844
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040a868
inc ebx
cmp ebx, 0xc
jl 0x40a7a8
mov edx, dword [0x40f120]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x40a7e1
movzx ecx, word [0x41b17e]
sar ecx, 8
jmp 0x40a7ed
mov ecx, dword [0x41b184]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40a7f9
or eax, 0xffffffff
jmp 0x40a83c
mov edx, dword [0x41b134]
cmp edx, dword [0x40eafc]
jle 0x40a80f
mov ebx, dword [0x40eafc]
jmp 0x40a815
mov ebx, dword [0x41b134]
mov esi, dword [0x41b130]
jmp 0x40a831
call fcn.0040a844
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040a868
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40a81d
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x40a868
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x41b344]
push ebx
mov ecx, edx
mov ebx, dword [0x41b124]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x41b344], ecx
and ecx, 0xff
add dword [0x41b348], ecx
imul edx, dword [0x41b348], 0x8088405
inc edx
mov dword [0x41b348], edx
shr edx, 0x18
mov ecx, dword [0x41b34c]
xor edx, ecx
mov ebx, dword [0x41b124]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x41b34c], edx
pop ebx
ret

Function at 0x40aab0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40aac4
xor eax, eax
jmp 0x40abbc
call fcn.0040aaa8
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40ab99
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40aad5
test edi, edi
je 0x40abb7
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40ab9d
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x4095dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9d28]
jne 0x4095e6
repz ret
jmp fcn.0040cf17

Function at 0x40b9cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b9d28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406c2e
and dword [ebp - 0x14], 0
cmp dword [0x4bd670], 0
mov dword [ebp - 0x18], eax
jne 0x40ba7e
push 0x4043fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40bb26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4043f0
push ebx
call edi
test eax, eax
je 0x40bb26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4043e0
push ebx
mov dword [0x4bd670], eax
call edi
push eax
call esi
push 0x4043cc
push ebx
mov dword [0x4bd674], eax
call edi
push eax
call esi
push 0x4043b0
push ebx
mov dword [0x4bd678], eax
call edi
push eax
call esi
mov dword [0x4bd680], eax
test eax, eax
je 0x40ba7e
push 0x404398
push ebx
call edi
push eax
call esi
mov dword [0x4bd67c], eax
mov eax, dword [0x4bd67c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40bad7
cmp dword [0x4bd680], ecx
je 0x40bad7
push eax
call esi
push dword [0x4bd680]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40bad7
test ebx, ebx
je 0x40bad7
call edi
test eax, eax
je 0x40bace
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bace
test byte [ebp - 8], 1
jne 0x40bad7
or dword [ebp + 0x10], 0x200000
jmp 0x40bb0a
mov eax, dword [0x4bd674]
cmp eax, dword [ebp - 0x18]
je 0x40bb0a
push eax
call esi
test eax, eax
je 0x40bb0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bb0a
mov eax, dword [0x4bd678]
cmp eax, dword [ebp - 0x18]
je 0x40bb0a
push eax
call esi
test eax, eax
je 0x40bb0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4bd670]
call esi
test eax, eax
je 0x40bb26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40bb28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004095dc
leave
ret
Function at 0x4a22e0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Read file on windows

Disassembly:
mov eax, 0x1420
call fcn.0040de70
cmp dword [0x8426e0], 0x37
jne 0x4a23c1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x40452c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea ecx, [esp + 0x824]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [esp + 8]
push edx
push 0x404560
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
lea eax, [esp + 0xc24]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
lea ecx, [esp + 0x420]
push ecx
push 0
push 0x404568
push 0x404574
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x404578
push 0x404594
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edx, dword [0x8426e4]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x4c2744]
mov byte [edx + esi], cl
add esp, 0x1420
ret