joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d82c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x473158]
cmp byte [eax + 0xc], 0
je 0x45d999
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d992
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x478c8c], 0
jne 0x45d880
push 0x45d9a0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45d9a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c8c], eax
cmp dword [0x4727b0], 0
jne 0x45d97b
push 0x45d9b8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4727b0], eax
cmp dword [0x4727b0], 0
je 0x45d97b
push 0x45d9c4
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c90], eax
push 0x45d9d4
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c94], eax
push 0x45d9e8
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c98], eax
push 0x45da00
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c9c], eax
push 0x45da18
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ca0], eax
push 0x45da2c
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ca4], eax
push 0x45da44
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ca8], eax
push 0x45da5c
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478cac], eax
push 0x45da78
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478cb0], eax
push 0x45da84
mov eax, dword [0x4727b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478cb4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d999
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x46429c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405050
xor eax, eax
push ebp
push 0x4643d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4643a4
xor edx, edx
push ebp
push 0x46439d
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4642e9
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x464372
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x464361
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x464328
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405060
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004030d0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464368
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x472cc8]
mov dl, 1
mov eax, dword [0x407e70]
call fcn.0040c9c8
call fcn.00404548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4643d8
lea eax, [ebp - 4]
call fcn.00404bd0
ret
Function at 0x4643e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46459b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405354
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4645b4
call fcn.00404ee8
mov eax, ebx
call fcn.00422a80
mov edi, eax
dec edi
test edi, edi
jl 0x464498
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00422a54
mov edx, dword [0x4622f4]
call fcn.00403e60
test al, al
je 0x464494
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00422a54
lea edx, [ebp - 0x14]
call fcn.00450454
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405354
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404f64
inc esi
dec edi
jne 0x464446
movzx eax, byte [0x4645b8]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4645c4
mov eax, dword [ebp - 8]
call fcn.0040dc8c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404c68
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00450454
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4645b4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.00450454
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4645b4
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4645b4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4645d0
call fcn.00409e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4645a2
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404bf4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404bf4
lea eax, [ebp - 0x14]
call fcn.00404bd0
lea eax, [ebp - 0x10]
call fcn.00404bd0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bf4
ret
Function at 0x4660e8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405050
xor eax, eax
push ebp
push 0x466166
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405060
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x466131
mov eax, dword [ebx + 4]
call fcn.00405060
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46616d
lea eax, [ebp - 4]
call fcn.00404bd0
ret

Function at 0x467208
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4673ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.0040332c
cmp word [ebx + 0xa2], 0
je 0x467251
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x467265
lea esi, [ebp - 0xc]
jmp 0x467267
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x467274
xor edi, edi
jmp 0x467281
mov eax, dword [ebx + 0x80]
call fcn.00405060
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00405060
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004668b8
mov eax, dword [ebp - 0x14]
call fcn.00405060
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00405060
push eax
mov eax, dword [ebp - 4]
call fcn.00405060
push eax
mov eax, ebx
call fcn.004669f8
push eax
mov eax, ebx
call fcn.004669cc
push eax
mov eax, ebx
call fcn.00466984
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00466784
mov eax, dword [ebp - 0x18]
call fcn.00405060
push eax
mov eax, dword [ebx + 8]
call fcn.00405060
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x46730a
call fcn.0040e154
xor edx, edx
push ebp
push 0x467383
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x467348
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x46733e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46736c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46738a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4673bc
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4673e8
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405060
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46740d
call fcn.0040e154
xor eax, eax
push ebp
push 0x467444
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x46742d
call fcn.0040e154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46744b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x46e46c
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push ecx
push esp
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x46e4a4
mov eax, dword [esp]
call fcn.0046e3d4
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop ebx
ret

Function at 0x46e55c
Capabilities:
Find taskbar

Disassembly:
push ebx
call fcn.0046e4b8
mov ebx, eax
push 0
push 0x46e5ac
call sub.user32.dll_FindWindowA
push 0
push 0x46e5bc
push 0
push eax
call sub.user32.dll_FindWindowExA
mov edx, ebx
add dl, 0xf9
sub dl, 2
jae 0x46e590
push 0
push 0x46e5cc
push 0
push eax
call sub.user32.dll_FindWindowExA
add bl, 0xfa
sub bl, 3
jae 0x46e5a7
push 0
push 0x46e5d8
push 0
push eax
call sub.user32.dll_FindWindowExA
pop ebx
ret

Function at 0x46e9cc
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff814
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46eb27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1b0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x46eb11
Function at 0x46eb40
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46eb52
add esp, 0xfffffff0
call fcn.00403ff8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422440
mov dl, 1
mov eax, dword [0x4242f4]
call fcn.00424374
mov dword [ebx + 0x20c], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x71], 0
mov eax, 0x400
call fcn.00402ee0
mov dword [ebx + 0x6c], eax
push ebx
push 0x46f210
call fcn.0043600c
mov dword [ebx + 0x3c], eax
push 0x46ec20
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x204], eax
lea eax, [ebx + 0x74]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x46ec02
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x208], esi
inc esi
jne 0x46ebe1
mov eax, ebx
call fcn.0046f44c
call sub.wsock32.dll_WSACleanup
jmp 0x46ec02
push 4
push 0x46ec24
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0x208]
push eax
call sub.wsock32.dll_setsockopt
mov byte [ebx + 0x48], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46ec19
call fcn.00404050
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x46eef0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405050
xor eax, eax
push ebp
push 0x46efd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x46efae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.0046ed9c
test al, al
jne 0x46ef44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46efc3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov word [eax + 0x4c], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx eax, word [eax + 0x34]
push eax
call sub.wsock32.dll_htons
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov word [edx + 0x4e], ax
mov ebx, 0x10
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x4c
push eax
push 0
push edi
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x208]
push eax
call sub.wsock32.dll_sendto
inc eax
je 0x46ef99
mov byte [ebp - 5], 1
jmp 0x46efa4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046f44c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46efc3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46efe0
lea eax, [ebp - 4]
call fcn.00404bd0
ret
Function at 0x46f280
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6c4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x91c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46f3de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x800
lea eax, [ebp - 0x815]
push eax
mov eax, dword [edi + 0x208]
push eax
call sub.wsock32.dll_recvfrom
mov esi, eax
test esi, esi
jle 0x46f3c5
cmp word [edi + 0x42], 0
je 0x46f3c5
mov eax, 0x8c
call fcn.00402ee0
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x8c
call fcn.004035f4
lea eax, [ebp - 0x91c]
push eax
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x93c], eax
mov byte [ebp - 0x938], 0
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x934], eax
mov byte [ebp - 0x930], 0
movzx eax, byte [ebp - 0xe]
mov dword [ebp - 0x92c], eax
mov byte [ebp - 0x928], 0
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x924], eax
mov byte [ebp - 0x920], 0
lea edx, [ebp - 0x93c]
mov ecx, 3
mov eax, 0x46f3f4
call fcn.00409e28
mov edx, dword [ebp - 0x91c]
lea eax, [ebp - 0x918]
mov ecx, 0xff
call fcn.00404e6c
lea edx, [ebp - 0x918]
mov eax, ebx
mov cl, 0x80
call fcn.004034e4
movzx eax, word [ebp - 0x12]
push eax
call sub.wsock32.dll_ntohs
mov word [ebx + 0x82], ax
mov eax, esi
call fcn.00402ee0
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], esi
lea edx, [ebp - 0x815]
mov ecx, esi
mov eax, dword [ebx + 0x84]
call fcn.004078f8
mov eax, dword [edi + 0x20c]
mov edx, ebx
call fcn.0042435c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f3e5
lea eax, [ebp - 0x91c]
call fcn.00404bd0
ret
Function at 0x261bf66
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x10]
je 0x2617829
movsx si, cl
mov esi, dword [eax + 0x3c]
dec dl
bswap dx
movsx edx, dl
add esi, eax
cmp al, 0xf2
mov edx, dword [esi + 0x78]
call fcn.0260af79
inc esp
arpl si, bx
aad 0xec
xor dword [ecx], ebp
pop esp
sbb ebp, dword [eax + 0x7b40091d]
dec edx
in al, dx
push esi
test eax, 0xac621f58
cwde
pop eax
sar byte [esi + 0x31c7632c], 1
rcl byte [esi + 0x5783a9ec], cl
adc al, byte [eax + 0x18]
or al, 0x8e
outsb dx, byte [esi]
push edx
push edi
ror bl, 0x60
int3
Function at 0x402ad4
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.004047c8
test esi, esi
jne 0x402b0a
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.004048b8
jmp 0x402b28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e8
mov edi, eax
test esi, esi
je 0x402b28
cmp dword [ebx], 0
je 0x402b28
dec esi
jmp 0x402b11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038c8
Capabilities:
Query or enumerate registry value

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

Function at 0x40462c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc04c], 0
je 0x40468d
cmp word [0x4dc220], 0xd7b2
jne 0x404655
cmp dword [0x4dc228], 0
jbe 0x404655
mov eax, 0x4dc21c
call dword [0x4dc238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x481070
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 0x4046b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x481030], 0
jne 0x4046a9
push 0
push 0x481068
push 0x481070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066a8
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 0x40670e
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.00404a38
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403330
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406715
lea eax, [ebp - 0x10]
call fcn.004047c8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4091a9
test al, 0x10
jne 0x4091ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40929c
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.00404c88
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4092be
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40be38
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 0x40be71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b8
jmp 0x40be7a
mov eax, ebx
mov edx, esi
call fcn.0040481c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be84
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 0x40bea5
mov al, byte [esp]
jmp 0x40bea7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c52c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3a4
mov eax, dword [0x4db98c]
cmp byte [eax], 0
je 0x40c5a8
mov eax, dword [0x4db768]
call fcn.00402f1c
call fcn.00402914
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.00409570
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 0x40c5f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c5de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4db70c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc668]
call fcn.00405ba0
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 0x40ce98
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404860
lea eax, [ebp - 8]
call fcn.00404cd8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c88
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf58
mov eax, ebx
call fcn.004027ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c88
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf3b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf80
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf3b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf58
mov eax, dword [ebp - 0x10]
call fcn.004027cc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf75
lea eax, [ebp - 8]
call fcn.004047c8
ret

Function at 0x40d4ec
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 0x40d550
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.00404a38
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408df0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d557
lea eax, [ebp - 0xc]
call fcn.004047c8
ret