joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4238a8
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x477b8b
call fcn.00456a26
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0042386a
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00456370
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00456370
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.00456370
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.004040f9
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.0040764b
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.0040764b
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.0040764b
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.0040764b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.00456a17
add ebp, 0x31c
leave
ret

Function at 0x423adb
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x477c0e
call fcn.00456a26
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004036d2
push 5
push 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Iy4ZBCcuDUE_A15FKw0vDyUDHgguAyspIRM7HiFbDjI
mov byte [ebp - 4], 1
call fcn.004023b3
lea eax, [ebp - 0x14]
push eax
call fcn.00403d07
add esp, 0x28
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040388a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401264
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004036d2
call fcn.004239d6
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
call fcn.00456afe
ret
Function at 0x42446d
Capabilities:
Delete file

Disassembly:
push 0x38
mov eax, 0x477d35
call fcn.00456a26
xor ebx, ebx
push 8
mov dword [ebp - 4], ebx
call fcn.004323f4
pop ecx
cmp eax, ebx
je 0x424495
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x424497
xor eax, eax
cmp dword [0x4a39a0], 0xfffffffe
mov dword [ebp - 0x14], eax
mov esi, 0x4a6990
jne 0x4244f1
push esi
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.KDwnLigdGSQuWj8jKBIFVw
call fcn.004023b3
lea eax, [ebp - 0x18]
push eax
call fcn.00408aac
add esp, 0x28
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040657e
push eax
call fcn.00424236
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [0x4a39a0], eax
mov byte [ebp - 4], bl
call fcn.00401264
cmp dword [0x4a39a0], 0xffffffff
je 0x42465e
lea ecx, [ebp + 8]
call fcn.0040557e
push eax
lea ecx, [ebp - 0x18]
call fcn.00424429
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040657e
push eax
call fcn.00424176
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp edi, ebx
je 0x42463e
push ebx
push esi
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00424194
cmp eax, 0xffffffff
je 0x42463e
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x10
mov dword [ebp - 0x14], eax
call fcn.004323f4
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x42457b
mov ecx, eax
call fcn.00438bae
mov esi, eax
jmp 0x42457d
xor esi, esi
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00439020
lea ecx, [ebp - 0x34]
call fcn.00438bae
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00438bae
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0042410e
push esi
lea ecx, [ebp - 0x44]
call fcn.0042410e
push 8
call fcn.004323f4
pop ecx
cmp eax, ebx
je 0x4245cc
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
mov edi, eax
jmp 0x4245ce
xor edi, edi
push ebx
push dword [ebp - 0x10]
call fcn.004241f4
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
mov dword [ebp - 0x1c], ebx
call fcn.00424212
push dword [ebp - 0x20]
mov ecx, edi
call fcn.004392f0
cmp edi, ebx
jne 0x4245fd
xor eax, eax
jmp 0x424600
mov eax, dword [edi + 4]
push eax
push dword [ebp - 0x30]
call fcn.004393cf
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, ebx
je 0x424620
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 4
call fcn.0043909d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0043909d
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x424653
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401264
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x424671
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
mov eax, ebx
call fcn.00456afe
ret
Function at 0x428604
Capabilities:
Resume thread

Disassembly:
push 0
mov eax, 0x478967
call fcn.00456a26
mov edi, ecx
push 0x20
mov dword [ebp - 4], 2
call fcn.004323f4
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x428632
mov ecx, eax
call fcn.00424a2c
mov esi, eax
jmp 0x428634
xor esi, esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040398a
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.0040398a
mov eax, dword [edi + 0x124]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.0040398a
mov eax, dword [edi + 0x20]
push ebx
push 4
push ebx
push ebx
push esi
push 0x428304
mov dword [esi], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
call fcn.00436647
lea ecx, [edi + 0x148]
mov dword [ecx], eax
cmp eax, ebx
je 0x428698
mov dword [eax + 0x28], ebx
mov eax, dword [ecx]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4286a6
mov byte [edi + 0x14d], 1
mov byte [edi + 0x14e], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401264
call fcn.00456afe
ret 0xc
Function at 0x42c92d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00456370
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop esi
leave
ret 8

Function at 0x4350a9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47a382
call fcn.00456a26
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4350ce
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x435114
lea ecx, [ebp - 0x10]
call fcn.004036be
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043258c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401264
mov eax, esi
call fcn.00456afe
ret 8

Function at 0x437613
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43765b
call fcn.00434376
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43765b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43769e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x437687
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x437687
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43769b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4388f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x43891d
cmp dword [edi + 0x54], 0
jne 0x43891d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00434376
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004388ba
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43f185
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43f1cc
call fcn.00434376
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43f1cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43f1e8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043ecff
mov esi, eax
test edi, edi
je 0x43f1e6
test ebx, ebx
je 0x43f1e6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x442680
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4426ab
call fcn.00434376
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4426ce
push eax
push dword [esi + 4]
call fcn.00442606
push esi
push eax
mov ecx, 0x4b6af8
call fcn.0044227a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x442f16
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47ac5f
call fcn.00456a26
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00442ed6
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004036be
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x442f7c
push eax
push dword [esi + 8]
call fcn.00442606
push dword [esi + 0xc]
mov ecx, 0x4b6af8
push eax
call fcn.0044227a
mov eax, esi
call fcn.00456afe
ret 0x18
Function at 0x456a17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a521c]
jne 0x456a21
repz ret
jmp fcn.00460f8d

Function at 0x46d864
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045ef54
and dword [ebp - 4], 0
cmp dword [0x4b78c8], 0
mov ebx, eax
jne 0x46d915
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46d9c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49119c
push edi
call esi
test eax, eax
je 0x46d9c6
push eax
call fcn.0045eee2
mov dword [esp], 0x49118c
push edi
mov dword [0x4b78c8], eax
call esi
push eax
call fcn.0045eee2
mov dword [esp], 0x491178
push edi
mov dword [0x4b78cc], eax
call esi
push eax
call fcn.0045eee2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b78d0], eax
call esi
push eax
call fcn.0045eee2
pop ecx
mov dword [0x4b78d8], eax
test eax, eax
je 0x46d915
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045eee2
pop ecx
mov dword [0x4b78d4], eax
mov eax, dword [0x4b78d4]
cmp eax, ebx
je 0x46d96d
cmp dword [0x4b78d8], ebx
je 0x46d96d
push eax
call fcn.0045ef5d
push dword [0x4b78d8]
mov esi, eax
call fcn.0045ef5d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46d96d
test edi, edi
je 0x46d96d
call esi
test eax, eax
je 0x46d964
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46d964
test byte [ebp - 0xc], 1
jne 0x46d96d
or dword [ebp + 0x10], 0x200000
jmp 0x46d9a6
mov eax, dword [0x4b78cc]
cmp eax, ebx
je 0x46d9a6
push eax
call fcn.0045ef5d
pop ecx
test eax, eax
je 0x46d9a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46d9a6
mov eax, dword [0x4b78d0]
cmp eax, ebx
je 0x46d9a6
push eax
call fcn.0045ef5d
pop ecx
test eax, eax
je 0x46d9a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b78c8]
call fcn.0045ef5d
pop ecx
test eax, eax
je 0x46d9c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46d9c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x15255a7
Capabilities:
Encode data using xor

Disassembly:
cmp dword [ebp - 0x20], 0xffffffff
jmp 0x152570a
jmp 0x1a6e94c
call fcn.01a70eb7
aas
mov al, byte [0xe48d4c01]
push ds
cmp byte [ebx - 0x54], dh
out 0x80, al
pop ebx
xor eax, 0xb83f878f
mov edx, 0xcc727e88
aad 0x66
invalid
je 0x1a6e9aa
je 0x1a6e9b0
add dh, al
add al, 0x24
lodsd eax, dword [esi]
mov byte [esp], 0xad
lea esp, [esp + 4]
jne 0x1a77b97
lahf
lea eax, [esi + 0x34a6cad7]
jb 0x1a6ce09
cwde
pop ecx
push ebx
pushfd
lahf
movsx eax, cl
mov eax, dword [esp + 8]
push dword [esp]
lahf
lea eax, [edi*8 + 0x74ce28a7]
movzx ax, al
mov dword [esp + 0xc], ebx
lahf
bswap ax
call fcn.014a7333
jle 0x1a6e9de
mov ebp, dword [ebx - 0x73]
in al, 0xbe
je 0x1a6e947
lahf
lcall 0x333b, 0x62a98e14
lodsb al, byte [esi]
add eax, 0x9982b1c0
stc
cmp al, 0x73
call 0x98122430
and al, 0x46
inc esi
invalid
int 0xf3
arpl word [ecx], cx
in eax, dx
cwde
xchg esi, eax
adc dh, byte [ebx + 0x77]
jae 0x1a6ea57
inc ecx
xor al, 0x41
inc dword [ebx + 0x69]
jns 0x1a6e9d6
mov ebx, 0x8516569c
mov ah, 0x7f
aas
jmp 0x1a6ea5d
dec dx
xchg dl, bh
mov ah, 0x1e
ret
sub eax, 0x74dd1fd1
insd dword es:[edi], dx
rcr dword [edi], 1
fnsave dword [ebp + ebp*2 + 0x7e]
scasb al, byte es:[edi]
jle 0x1a6ea0d
cld
cmp al, byte [ebp + 0x4101cb94]
sbb al, 0xc6
add dl, 0xed
push edi
jecxz 0x1a6eab4
outsd dx, dword [esi]
pop dword [edi + edi*8 + 0x36]
outsd dx, dword [esi]
mov edx, esp
sbb eax, 0x8c515076
and edi, 0xdbe64b74
dec esi
pushfd
sbb byte [edx + 0x1cd006b1], dh
test dword [ecx - 0x54], edi
lodsb al, byte [esi]
out 0xde, eax
imul ebx, dword [esi - 5], 0xe6ebd0bd
cmp eax, 0x5c7e2985
lodsd eax, dword [esi]
jae 0x1a6ead1
mov byte [0x1e844b00], al
jno 0x1a6ea58
popal
cmp dh, byte [edi + edx*4 + 0x34]
cld
push edi
pop eax
jecxz 0x1a6ead4
sbb eax, 0x134940f6
cmp esp, edi
adc dword [ecx - 0x38c9b2ff], ebx
fldenv [ecx + 0x5b]
add al, 0xe3
hlt
aas
cwde
xor byte [ecx], cl
sbb dword [ebp + 0x72], 0xffffff98
or dword [ebx - 0x678ddaa4], eax
lcall 0x223c, 0x1d41539c
adc dl, byte [edx - 0x4b7d52ed]
dec edi
dec esi
bound ebx, qword [esi + 0x2369d0f6]
invalid

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x403490
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405684
test esi, esi
jne 0x4034c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405774
jmp 0x4034e4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403334
mov edi, eax
test esi, esi
je 0x4034e4
cmp dword [ebx], 0
je 0x4034e4
dec esi
jmp 0x4034cd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403518
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x675008], 0x8088405
inc edx
mov dword [ebx + 0x675008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403534
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x675008], 0x8088405
inc edx
mov dword [ebx + 0x675008], edx
fld qword [ebx + 0x675760]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x404548
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x675024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4045e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4045c0
xor eax, eax
push ebp
push 0x4045b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4045fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x675024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x675024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405450
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69304c], 0
je 0x4054b1
cmp word [0x693220], 0xd7b2
jne 0x405479
cmp dword [0x693228], 0
jbe 0x405479
mov eax, 0x69321c
call dword [fcn.00693238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x675790
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4054d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x675030], 0
jne 0x4054cd
push 0
push 0x675788
push 0x675790
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405608
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x675038], 0
je 0x40562e
mov edx, esi
mov eax, ebx
call dword [0x675038]
jmp 0x40563d
mov eax, 8
call fcn.00402fc8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x69304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4055d0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407280
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4074b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407303
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4074b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407303
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4074cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40738c
xor eax, eax
push ebp
push 0x407385
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004070bc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40736a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4074ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40736a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40738c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4074a6
cmp byte [ebp - 0xd], 0
jne 0x4073d3
cmp byte [ebp - 0x12], 0
je 0x4074a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4073ec
dec ebx
cmp byte [ebx], 0x2e
je 0x4073fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4073eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4074a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407438
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4074a6
cmp byte [ebp - 0xd], 0
je 0x4074a6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4074a6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret