joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4508a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45cc04]
cmp dword [eax + 0x30], 0
je 0x45094a
cmp dword [ebx + 0x94], 0
jne 0x450944
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450830
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450944
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45090a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450944
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413ad0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450919
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451428
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45145d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404314
jmp 0x45146a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404278
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452478
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4524b9
mov eax, esi
call fcn.0043853c
test al, al
je 0x4524b9
mov eax, dword [ebx + 0x84]
call fcn.00438238
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4524b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438238
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453684
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45370d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45cc30
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4536f7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00409520
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x453724
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x45b020]
mov dl, 1
mov eax, dword [0x452f38]
call fcn.00409e6c
call fcn.00403c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453714
lea eax, [ebp - 0x1c]
call fcn.00404224
ret
Function at 0x453db4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00453cd8
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004036cc
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x453e18
call fcn.004535cc
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x453e0a
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004036cc
pop esi
pop ebx
ret

Function at 0x453ee4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004046d4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402de4
test ebx, ebx
je 0x453f2f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x45400c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45403d
mov ecx, dword [0x45af70]
mov dl, 1
mov eax, dword [0x452f38]
call fcn.00409e30
call fcn.00403c84
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45406a
mov ecx, dword [0x45af1c]
mov dl, 1
mov eax, dword [0x452f38]
call fcn.00409e30
call fcn.00403c84
xor eax, eax
push ebp
push 0x4540e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004036cc
cmp byte [ebp + 8], 0
je 0x4540c2
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00453f74
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00453db4
jmp 0x4540dc
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004538b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x454103
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4542e4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00453b74
xor eax, eax
push ebp
push 0x454456
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x454440
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45432f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x454339
call fcn.00403d30
jmp 0x45445d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00415b30
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x454435
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4543e7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4543d4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004036cc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045429c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x454468]
cmp dl, byte [eax + 0x28]
je 0x45443c
call fcn.00409d18
jmp 0x45443c
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00415b50
jmp 0x45443c
cmp ecx, ebx
jge 0x454403
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00415b50
jmp 0x454339
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00415b30
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00415b64
cmp edx, dword [esp + 4]
jne 0x454424
cmp eax, dword [esp]
pop edx
pop eax
jne 0x454339
push ebp
call fcn.0045429c
pop ecx
jmp 0x45443c
push ebp
call fcn.0045429c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45445d
mov eax, dword [ebp - 4]
call fcn.00453b80
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45446c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45458e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00453b74
xor eax, eax
push ebp
push 0x454571
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4544bc
call fcn.00403d30
jmp 0x454578
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45455b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45455b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004036cc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45455b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00409520
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4545a8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x45b020]
mov dl, 1
mov eax, dword [0x452f38]
call fcn.00409e6c
call fcn.00403c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454578
mov eax, dword [ebp - 4]
call fcn.00453b80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454595
lea eax, [ebp - 0x28]
call fcn.00404224
ret
Function at 0x4545f4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45473e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00453b74
xor eax, eax
push ebp
push 0x454721
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x454659
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x454659
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x45470b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45466c
call fcn.00403d30
jmp 0x454728
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45470b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45470b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004036cc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45470b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00409520
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x454758
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x45b020]
mov dl, 1
mov eax, dword [0x452f38]
call fcn.00409e6c
call fcn.00403c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454728
mov eax, dword [ebp - 4]
call fcn.00453b80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454745
lea eax, [ebp - 0x28]
call fcn.00404224
ret
Function at 0x403b1b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40e2a8]
je 0x403b36
inc edi
cmp edi, 0x17
jb 0x403b27
cmp edi, 0x17
jae 0x403cb6
push ebp
push 3
call fcn.00408892
cmp eax, 1
pop ecx
je 0x403c82
push 3
call fcn.00408892
test eax, eax
pop ecx
jne 0x403b6a
cmp dword [section..data], 1
je 0x403c82
cmp ebx, 0xfc
je 0x403cb5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40f210
push ebp
call fcn.00402384
add esp, 0xc
test eax, eax
je 0x403ba0
push esi
push esi
push esi
push esi
push esi
call fcn.0040270e
add esp, 0x14
push 0x104
mov esi, 0x40f229
push esi
push 0
mov byte [0x40f32d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403be4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00402384
add esp, 0xc
test eax, eax
je 0x403be4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040270e
add esp, 0x14
push esi
call fcn.00402510
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403c29
push esi
call fcn.00402510
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40f524
push 0x40c84c
sub ecx, eax
push ecx
push eax
call fcn.004087df
add esp, 0x14
test eax, eax
je 0x403c29
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040270e
add esp, 0x14
jmp 0x403c2b
xor esi, esi
push 0x40c848
push ebx
push ebp
call fcn.0040876e
add esp, 0xc
test eax, eax
je 0x403c4b
push esi
push esi
push esi
push esi
push esi
call fcn.0040270e
add esp, 0x14
push dword [edi*8 + 0x40e2ac]
push ebx
push ebp
call fcn.0040876e
add esp, 0xc
test eax, eax
je 0x403c6d
push esi
push esi
push esi
push esi
push esi
call fcn.0040270e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004085b1
add esp, 0xc
jmp 0x403cb5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x403cb5
cmp ebp, 0xffffffff
je 0x403cb5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40e2ac]
push dword [esi]
call fcn.00402510
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x40724a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40ea70]
jne 0x407254
repz ret
jmp fcn.00409eba
Function at 0x4085b1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404673
xor ebx, ebx
cmp dword [0x40f6d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x408687
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408767
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c9fc
push edi
call esi
cmp eax, ebx
je 0x408767
push eax
call fcn.00404605
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f6d0], eax
call esi
push eax
call fcn.00404605
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f6d4], eax
call esi
push eax
call fcn.00404605
mov dword [0x40f6d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401e1b
test eax, eax
pop ecx
pop ecx
je 0x408655
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040270e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x408687
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404605
cmp eax, ebx
pop ecx
mov dword [0x40f6e0], eax
je 0x408687
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404605
pop ecx
mov dword [0x40f6dc], eax
mov eax, dword [0x40f6dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40870c
cmp dword [0x40f6e0], ecx
je 0x40870c
push eax
call fcn.0040467c
push dword [0x40f6e0]
mov esi, eax
call fcn.0040467c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40870c
cmp edi, ebx
je 0x40870c
call esi
cmp eax, ebx
je 0x4086d9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4086d9
test byte [ebp - 0x18], 1
jne 0x40870c
lea eax, [ebp - 0x10]
push eax
call fcn.00401e52
test eax, eax
pop ecx
je 0x4086f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040270e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x408703
or dword [ebp + 0x10], 0x200000
jmp 0x408747
or dword [ebp + 0x10], 0x40000
jmp 0x408747
mov eax, dword [0x40f6d4]
cmp eax, dword [ebp - 8]
je 0x408747
push eax
call fcn.0040467c
cmp eax, ebx
pop ecx
je 0x408747
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408747
mov eax, dword [0x40f6d8]
cmp eax, dword [ebp - 8]
je 0x408747
push eax
call fcn.0040467c
cmp eax, ebx
pop ecx
je 0x408747
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f6d0]
call fcn.0040467c
cmp eax, ebx
pop ecx
je 0x408767
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408769
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ae4
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 0x405d14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bf0
xor eax, eax
push ebp
push 0x405be9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040592c
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 0x405bce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d50
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bce
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 0x405bf0
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 0x405d0a
cmp byte [ebp - 0xd], 0
jne 0x405c37
cmp byte [ebp - 0x12], 0
je 0x405d0a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c50
dec ebx
cmp byte [ebx], 0x2e
je 0x405c5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d0a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c9c
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 0x405d0a
cmp byte [ebp - 0xd], 0
je 0x405d0a
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 0x405d0a
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 0x4093c4
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 0x4093fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042e8
jmp 0x409406
mov eax, ebx
mov edx, esi
call fcn.0040424c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409ab8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409930
mov eax, dword [0x450e44]
cmp byte [eax], 0
je 0x409b20
mov eax, dword [0x450ca8]
call fcn.00402c38
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004085fc
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 0x409b68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409b56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x450c64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x451714]
call fcn.004058f0
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 0x40a5c0
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 0x40a624
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.00404460
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040833c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a62b
lea eax, [ebp - 0xc]
call fcn.004041f8
ret
Function at 0x41c214
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x451a20
cmp dword [edi], 0
jne 0x41c290
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x451a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4504bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c1ec
lea eax, [esi + 5]
call fcn.0041c20c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c20c
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 0x41c265
mov dword [0x451a1c], 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 0x41d41c
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 0x41d422
ret

Function at 0x41f824
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 0x41f875
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f85c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f84c
jmp 0x41f875
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 0x41f85d
pop ebx
mov esp, ebp
pop ebp
ret