joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b9d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x42e8e0
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
call fcn.0040e2d0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ecx
test eax, eax
pop ecx
mov ebx, 0x400
je 0x408bdb
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
and byte [ebp - 0x10c], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040e140
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040e150
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40a5ba
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40a5c8
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x40a6a9
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x425a3c]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x425a3c]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x425a3c]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x425a3c]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x425a3c]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x425a3c]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x425a3c]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x425a3c]
xor eax, esi
inc edx
dec edi
jne 0x40a5e5
pop ebx
cmp dword [ebp + 0x10], 0
je 0x40a6ca
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x425a3c]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x40a6af
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x40aeac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40aee0
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40aedb
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x40af08
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40aef1
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040ebd0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret

Function at 0x40bb53
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40bbcc
cmp dword [esi + 4], 0xffffffff
jne 0x40bbcc
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x42ca64
push edi
call fcn.0040e150
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x40bba1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40bba1
mov eax, 0x2000000
jmp 0x40bbd1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040acb8
add esp, 0x10
test eax, eax
jne 0x40bbbf
mov eax, dword [ebp - 4]
jmp 0x40bbd1
push eax
call fcn.0040b0ff
mov dword [esi], eax
pop ecx
xor eax, eax
jmp 0x40bbd1
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x40bf57
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040e350
cmp eax, 0x104
pop ecx
ja 0x40bff6
push edi
push ebx
call fcn.0040e350
and byte [ebp - 0x104], 0
push 0x40
mov dword [ebp + 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5c
push ebx
stosb byte es:[edi], al
call fcn.00410810
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
test eax, eax
je 0x40bff0
push esi
mov esi, ebx
push 0x5c
push esi
call fcn.00410810
push eax
call fcn.0040e350
mov esi, dword [ebp + 8]
sub esi, eax
lea eax, [ebp - 0x104]
inc esi
push esi
push ebx
push eax
call fcn.00410700
add esp, 0x18
lea eax, [ebp - 0x104]
push 0
push eax
call edi
add esi, ebx
push 0x5c
push esi
call fcn.00410810
pop ecx
test eax, eax
pop ecx
jne 0x40bfaf
pop esi
push 0
push ebx
call edi
pop edi
pop ebx
leave
ret
Function at 0x40c430
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
xor ebx, ebx
push 2
push ebx
push dword [ebp + 8]
call fcn.0040c2f2
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push 0xffffffffffffffff
push esi
call fcn.0040c350
mov eax, dword [ebp - 0x230]
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
jle 0x40c5dc
push edi
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 8]
push esi
call fcn.0040c350
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.0040e140
lea eax, [ebp - 0x104]
push eax
call fcn.0040e350
add esp, 0x18
cmp byte [ebp + eax - 0x105], 0x5c
je 0x40c4eb
lea eax, [ebp - 0x104]
push eax
call fcn.0040e350
cmp byte [ebp + eax - 0x105], 0x2f
pop ecx
je 0x40c4eb
lea eax, [ebp - 0x104]
push eax
call fcn.0040e350
pop ecx
mov byte [ebp + eax - 0x104], 0x5c
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040e150
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040e140
add esp, 0x10
cmp dword [ebp - 0x128], 0x91
jne 0x40c528
lea eax, [ebp - 0x22c]
jmp 0x40c55d
lea eax, [ebp - 0x104]
push eax
call fcn.0040e350
pop ecx
lea eax, [ebp + eax - 0x104]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x40c564
mov cl, byte [eax]
cmp cl, 0x2f
je 0x40c555
cmp cl, 0x5c
je 0x40c555
dec eax
jmp 0x40c53c
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
call fcn.00410e53
pop ecx
mov edi, dword [ebp + 8]
push 2
lea eax, [ebp - 0x22c]
push ebx
push eax
push edi
push esi
call fcn.0040c383
add esp, 0x14
cmp eax, ebx
push dword [ebp - 0x128]
je 0x40c58f
lea ecx, [ebp - 0x22c]
push ecx
push eax
jmp 0x40c597
lea eax, [ebp - 0x22c]
push eax
push ebx
push str.ret:_d_file:_s__x_r_n
call fcn.004108cc
add esp, 0x10
cmp dword [ebp - 0x128], 0x91
je 0x40c5ce
lea eax, [ebp - 0x22c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c5ce
push str.set_file_chmod_error__r_n
call fcn.004108cc
pop ecx
inc edi
cmp edi, dword [ebp - 4]
mov dword [ebp + 8], edi
jl 0x40c471
pop edi
push esi
call fcn.0040c3bd
pop ecx
pop esi
pop ebx
leave
ret 8

Function at 0x40c60a
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
or dword [esi + 4], 0xffffffff
mov dword [esi], 0x425e6c
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40c63c
push 0x42eb9c
call fcn.004108cc
pop ecx
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x40c686
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop esi
jne 0x40c6da
push 0x42eba8
call fcn.004108cc
pop ecx
xor eax, eax
jmp 0x40c6dd
push 1
pop eax
leave
ret 0x10

Function at 0x40c79f
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 2
mov esi, ecx
push 2
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40c7c9
push 0x42ebdc
jmp 0x40c83f
push dword [ebp + 0xc]
lea edi, [esi + 8]
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 8], 0
mov word [esi + 0xa], ax
jne 0x40c7ee
push 0
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x40c7f7
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [ebp + 0x10], 0
mov dword [esi + 0xc], eax
je 0x40c80e
lea eax, [ebp + 0xb]
push 1
push eax
mov byte [ebp + 0xb], 1
push 0x20
jmp 0x40c816
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40c845
push 0x10
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40c849
push 0x42ebc8
call fcn.004108cc
pop ecx
xor eax, eax
jmp 0x40c84c
push 1
pop eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40c947
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push eax
lea edi, [esi + 0x31b]
push 0x101
mov dword [esi], 0x425e74
mov byte [edi], bl
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40c979
mov byte [edi], 1
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0x216], bl
mov byte [esi + 0x111], bl
mov byte [esi + 0xc], bl
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x190
ret

Function at 0x40c9ec
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, ecx
cmp byte [esi + 0x31b], 0
jne 0x40ca05
xor eax, eax
jmp 0x40ca59
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040e5b0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40ca53
lea eax, [ebp - 0x108]
push eax
call fcn.00410ed0
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + 0x216]
push eax
call fcn.0040e140
add esp, 0xc
lea eax, [esi + 0x216]
pop esi
leave
ret
Function at 0x40ca5c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
xor ebx, ebx
cmp byte [ecx + 0x31b], bl
push esi
mov dword [ebp - 8], ecx
je 0x40ca91
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x40ca84
call fcn.0040c9ec
cmp eax, ebx
je 0x40ca91
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
jne 0x40ca98
xor eax, eax
jmp 0x40cb60
push edi
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], 0x104
lea ecx, [eax + 0x111]
mov dword [ebp + 8], ecx
mov byte [ecx], bl
mov eax, dword [esi + 0xc]
cmp dword [eax], ebx
je 0x40cb5d
xor edi, edi
movsx ecx, word [esi + 0xa]
mov eax, dword [edi + eax]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
add edi, 4
call fcn.0040ebd0
mov ax, word [esi + 8]
add esp, 0xc
mov word [ebp - 0x18], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
lea eax, [ebp - 0x18]
push 0x10
push eax
mov word [ebp - 0x16], bx
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp eax, 0xffffffff
je 0x40cb5a
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call fcn.0040e150
cmp byte [ebp + 0xc], bl
pop ecx
pop ecx
je 0x40cb5a
push 0x105
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0040e5b0
push 0x42ec24
mov dword [ebp - 4], 0x104
push dword [ebp + 8]
call fcn.0040e150
mov eax, dword [esi + 0xc]
add esp, 0x14
cmp dword [edi + eax], ebx
jne 0x40cace
mov ecx, dword [ebp + 8]
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40cdc2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e80
push 0x40eaec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and byte [ebp - 0x1c], 0
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
mov ecx, esi
call fcn.0040cf20
test al, al
jne 0x40ce07
cmp byte [esi + 0x1c], al
je 0x40cf11
and dword [ebp - 4], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea edi, [esi + 0x2537]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0x2000
push edi
call fcn.0040ea94
add esp, 0x10
and dword [ebp - 0x24], 0
jmp 0x40ce53
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40ce63
call fcn.0040d438
mov ecx, esi
call fcn.0040cf35
lea eax, [esi + 0x431]
push eax
mov ecx, esi
call fcn.0040cf20
mov bl, al
neg bl
sbb bl, bl
inc bl
push 0x42ec74
lea eax, [esi + 0x431]
push eax
call fcn.0040f721
pop ecx
pop ecx
mov dword [esi + 4], eax
test eax, eax
je 0x40cf00
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, bl
je 0x40cec1
lea eax, [esi + 0x536]
push eax
push str.RecordedTime
push str._s_t_s_n
push dword [esi + 4]
call fcn.0041048e
add esp, 0x10
push edi
call fcn.004110a1
pop ecx
mov ebx, eax
push edi
movzx eax, word [esi + 0x1a]
push eax
movzx eax, word [esi + 0x18]
push eax
movzx eax, word [esi + 0x16]
push eax
movzx eax, word [esi + 0x14]
push eax
push str._02d:_02d:_02d._03d_t_s_n
push dword [esi + 4]
call fcn.0041048e
add ebx, 0xf
cmp eax, ebx
sete byte [ebp - 0x1c]
push dword [esi + 4]
call fcn.0040f4a3
add esp, 0x20
mov esi, dword [esi + 8]
test esi, esi
je 0x40cf0e
mov ecx, esi
call fcn.0040d459
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f358
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041051a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f37b
test byte [esp + 8], 2
je 0x40f37b
call fcn.0041058d
mov dword [eax], 0xd
call fcn.00410596
mov dword [eax], 5
jmp 0x40f354
xor eax, eax
ret

Function at 0x42077b
Capabilities:
Create http request

Disassembly:
mov eax, 0x422d30
call fcn.0040e090
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4207b3
call fcn.00421a75
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]
test eax, eax
mov dword [esi + 8], eax
jne 0x4207d8
push eax
push dword [esi + 4]
call fcn.00421459
jmp 0x4207e4
push esi
push eax
mov ecx, 0x432930
call fcn.004207f5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x420ac2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x422d8f
call fcn.0040e090
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041c0d6
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x42ecbc]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041b710
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041b710
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x402a04
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.00404380
test esi, esi
jne 0x402a3a
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.00404470
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034a4
Capabilities:
Query or enumerate registry value

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

Function at 0x404204
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x404265
cmp word [0x46021c], 0xd7b2
jne 0x40422d
cmp dword [0x460224], 0
jbe 0x40422d
mov eax, 0x460218
call dword [0x460234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e054
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 0x40428c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e01c], 0
jne 0x404281
push 0
push 0x45e074
push 0x45e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4098bc
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 0x4098f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404470
jmp 0x4098fe
mov eax, ebx
mov edx, esi
call fcn.004043d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409908
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 0x409929
mov al, byte [esp]
jmp 0x40992b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409fb0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409e28
mov eax, dword [0x45f040]
cmp byte [eax], 0
je 0x40a018
mov eax, dword [0x45ee6c]
call fcn.00402dc0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408ac8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a04e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ee1c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x460714]
call fcn.00405a6c
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 0x40ab4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40abb0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004045e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040874c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abb7
lea eax, [ebp - 0xc]
call fcn.00404380
ret
Function at 0x41c7f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x460a20
cmp dword [edi], 0
jne 0x41c874
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x460a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45e4bc
mov ecx, 2
call fcn.004028d8
mov edx, 0x41c7d0
lea eax, [esi + 5]
call fcn.0041c7f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c7f0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41c849
mov dword [0x460a1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41dab0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41dab6
ret

Function at 0x41fef8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41ff49
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ff30
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ff20
jmp 0x41ff49
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41ff31
pop ebx
mov esp, ebp
pop ebp
ret