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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x4040fc
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x404247
test ebx, ebx
je 0x404247
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00407f40
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404245
test eax, eax
je 0x404245
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.004056ae
add esp, 4
mov ebx, eax
test edi, edi
jle 0x404221
jmp 0x404180
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4041fb
test eax, eax
je 0x4041fb
add esi, eax
cmp edi, esi
jg 0x404180
cmp esi, 5
jl 0x404221
mov edx, dword [0x415f14]
sub esi, 5
cmp edx, dword [ebx]
jne 0x404221
mov al, byte [ebx + 4]
cmp al, byte [0x415f18]
jne 0x404221
test esi, esi
jle 0x4041da
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4041d0
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x404203
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408ab0
mov dword [edi], esi
jmp 0x404214
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404221
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408ab0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x40422e
push ebx
call fcn.00405a87
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045e8
mov esp, ebp
pop ebp
ret
Function at 0x40df4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
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.00409ab3
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40dfff
push 0x412300
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e0a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4122f4
push ebx
call edi
test eax, eax
je 0x40e0a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4122e4
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push 0x4122d0
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push 0x4122b4
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40dfff
push 0x41229c
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e058
cmp dword [0x416cbc], ecx
je 0x40e058
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e058
test ebx, ebx
je 0x40e058
call edi
test eax, eax
je 0x40e04f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e04f
test byte [ebp - 8], 1
jne 0x40e058
or dword [ebp + 0x10], 0x200000
jmp 0x40e08b
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e08b
push eax
call esi
test eax, eax
je 0x40e08b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e08b
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e08b
push eax
call esi
test eax, eax
je 0x40e08b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e0a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e0a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045e8
leave
ret
Function at 0x40605d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430908], 0x55004e
mov dword [0x43090c], 0x4c
mov edi, 0x400
mov ebp, 0x430908
je 0x4060b3
push 1
push 0
push esi
call fcn.00405f07
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
mov esi, 0x431108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
push esi
push ebp
push str._ls_ls_r_n
push 0x430508
call dword [sym.imp.user32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f14]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00407458
push 4
push 0xc0000000
push esi
call fcn.00405f07
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061d2
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061cb
push edi
push esi
push ebp
call fcn.00407458
test eax, eax
je 0x4061cb
push str._Rename__r_n
push esi
call fcn.00407458
test eax, eax
jne 0x406169
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40619e
add eax, 0xa
push 0x40a580
push eax
call fcn.00407458
mov ebp, eax
test ebp, ebp
je 0x40619a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40618b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406185
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061a0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430508
push eax
call fcn.00405ec2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00407458
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061d7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4061fa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040605d
pop ecx
pop ecx
inc dword [0x434fb0]
ret 8

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x408ed3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x408ee2
pop dword [ebp - 0x34]
mov eax, 0x67cdaac
sub eax, 0x63c4bca
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3ab75
push 0
mov eax, 0xf1830b20
sub eax, 0xf1421a90
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x5140
mov edx, eax
mov esi, 0x41aa00
add esi, dword [ebp - 0x34]
mov ebx, 0x848c5186
sub ebx, 0x55a47b49
mov edi, dword [esi]
sub dword [ebp - 0x18], ebx
xor edi, ebx
mov dword [ebp - 0x10], 0x6699eb05
mov dword [edx], edi
add dword [ebp - 0x18], 0x70ebe385
add edx, 0xcecf8f8c
sub edx, 0xcecf8f88
add esi, 0xd2326184
add esi, 0x2dcd9e80
loop 0x408f35
add eax, 0x15821033
sub eax, 0x1580d860
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x40de38
nop
mov ecx, 0x17f35df9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x47f55360
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402808
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.00403d60
test esi, esi
jne 0x40283e
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.00403e50
jmp 0x40285c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026bc
mov edi, eax
test esi, esi
je 0x40285c
cmp dword [ebx], 0
je 0x40285c
dec esi
jmp 0x402845
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032a0
Capabilities:
Query or enumerate registry value

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

Function at 0x403be4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403c45
cmp word [0x40a218], 0xd7b2
jne 0x403c0d
cmp dword [0x40a220], 0
jbe 0x403c0d
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
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 0x403c6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403c61
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404610
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 0x404840
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404693
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404840
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404693
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40485c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40471c
xor eax, eax
push ebp
push 0x404715
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404458
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 0x4046fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40487c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4046fa
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 0x40471c
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 0x404836
cmp byte [ebp - 0xd], 0
jne 0x404763
cmp byte [ebp - 0x12], 0
je 0x404836
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40477c
dec ebx
cmp byte [ebx], 0x2e
je 0x40478b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40477b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404836
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047c8
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 0x404836
cmp byte [ebp - 0xd], 0
je 0x404836
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 0x404836
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
Function at 0x40471c
Capabilities:
Get geographical location

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 0x404840
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404693
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404840
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404693
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40485c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40471c
xor eax, eax
push ebp
push 0x404715
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404458
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 0x4046fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40487c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4046fa
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 0x40471c
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 0x404836
cmp byte [ebp - 0xd], 0
jne 0x404763
cmp byte [ebp - 0x12], 0
je 0x404836
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40477c
dec ebx
cmp byte [ebx], 0x2e
je 0x40478b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40477b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404836
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047c8
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 0x404836
cmp byte [ebp - 0xd], 0
je 0x404836
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 0x404836
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
Function at 0x4049cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404a32
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403fa8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404a1c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a39
lea eax, [ebp - 0x10]
call fcn.00403d60
ret

Function at 0x40681c
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 0x406855
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e50
jmp 0x40685e
mov eax, ebx
mov edx, esi
call fcn.00403db4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406f10
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406d88
mov eax, dword [0x4093b0]
cmp byte [eax], 0
je 0x406f8c
mov eax, dword [0x409308]
call fcn.00402b78
call fcn.0040262c
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.00405cfc
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 0x406fd4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406fc2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.0040441c
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 0x407980
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 0x4079e4
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.00403fa8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405bd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4079eb
lea eax, [ebp - 0xc]
call fcn.00403d60
ret
Function at 0x40406f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40407e
pop dword [ebp - 0x50]
mov eax, 0x1b3d97b8
sub eax, 0x1afd573a
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x38386
push 0
mov eax, 0x6904d56d
sub eax, 0x68c3e4dd
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x45100d9c
add ecx, 0xbaf03949
mov esi, eax
mov edi, 0x7ad703dd
add edi, 0x856aa623
add edi, dword [ebp - 0x50]
mov ebx, 0xed5c92a9
add dword [ebp - 4], 0x75fd0662
mov edx, dword [edi]
add dword [ebp - 0x44], esi
add edx, ebx
xor dword [ebp - 0x30], 0xacc1427b
mov dword [esi], edx
sub dword [ebp - 0x44], ebx
add esi, 0x535ec22c
sub esi, 0x535ec228
add edi, 0xd5ec2ae5
sub edi, 0xd5ec2ae1
loop 0x4040d7
add eax, 0x4af6f2
add eax, 0xffb61775
mov ebx, eax
add eax, 0x18cd5b0d
add eax, 0xe732a4f8
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x85667e0
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x42ae30], eax
sub eax, eax
je 0x4068c1
call 0xa8cf5172
invalid
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]