joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb700
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4bb749
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4bbbc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x519a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004bb770
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004bb7f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004bb7f0
lea ecx, [esi + 0xc]
call fcn.0050af47
lea ecx, [esi + 0x10]
call fcn.0050af47
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004bcd80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004bcd80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004bcd80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0050afbc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0050afbc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bcf70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4bcfd6
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4bcfd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4bcfb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4bfdc1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
jmp 0x4bfde3
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004d2590
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4bfe1a
push ebx
call fcn.004d159d
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004d2590
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4bfe57
push ebx
call fcn.004d159d
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
push 0xa3ba4d
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ecx, 2
call fcn.004bd7b8
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0xff
mov ebx, dword [ebp + 0x14]
push dword [ebx]
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, 0xff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0xff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4bfec9
push 6
call fcn.004d15a9
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4bfedc
push ebx
call fcn.004d159d
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4bfeee
mov eax, dword [ebp - 4]
jmp 0x4bff08
mov eax, 0
jmp 0x4bff08
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4c1e7a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
call dword [sym.imp.kernel32.dll_GetTickCount]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4c1ea9
push 6
call fcn.004d15a9
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.kernel32.dll_GetTickCount]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4c1ecb
push 6
call fcn.004d15a9
add esp, 4
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x24]
fsub qword [ebp - 0x2c]
fcomp qword [0xa3bacb]
fnstsw ax
test ah, 1
je 0x4c1f3b
mov dword [ebp - 8], esp
push 0xa
call dword [sym.imp.kernel32.dll_Sleep]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4c1f24
push 6
call fcn.004d15a9
add esp, 4
push 0
mov ebx, 0x350
call fcn.004d3920
add esp, 4
jmp 0x4c1eac
jmp 0x4c1f40
mov esp, ebp
pop ebp
ret 4
Function at 0x4c33cd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4c3426
push 6
call fcn.004d15a9
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x4c345a
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4c3455
push 6
call fcn.004d15a9
add esp, 4
jmp 0x4c3462
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x4c3473
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4d2080
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4d209e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4d2093
pop esi
ret

Function at 0x4d24d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.004d17d0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4d2527
push ebx
push edi
call fcn.004d1860
push esi
mov ebx, esi
call fcn.004d17d0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4d24fe
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4d4ae0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004da2e3
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4d4b4a
push esi
lea edi, [eax + 0x400]
call fcn.004da2d8
push edi
call fcn.004da2e3
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4d4b1a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d4b66
push ecx
push esi
call fcn.004d5580
add esp, 8
mov ebx, eax
push esi
call fcn.004da2d8
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4d8180
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0xa3c97d]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xa3c90d]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4d8193
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4d81d4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xa3c9b5]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4d8206
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4d820a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4d81fb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4d8228
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4d822c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4d821d
xor ecx, ecx
mov eax, 0xa3c91d
xor ebx, ebx
mov bl, byte [ecx + 0xa3c9c5]
cmp byte [esp + ebx + 0x14], 0
je 0x4d8257
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xa3c9dd]
cmp byte [esp + ebx + 0x14], 0
je 0x4d826e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0xa3c97d
jl 0x4d823e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4d81c7
lea edx, [esp + 0x84]
push edx
call fcn.004d82b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4e5630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa81264]
xor edx, edx
cmp eax, edx
jne 0x4e5656
xor eax, eax
mov byte [eax + 0xa81164], al
inc eax
cmp eax, 0x100
jl 0x4e563e
mov dword [0xa81264], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa81164
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e56e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e56ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e5688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e56f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e5743
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e572a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ec0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x519e2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004eca10
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa231fc
call fcn.0050acfd
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ec183
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0050acfd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ec17c
push 0
mov ecx, eax
call fcn.004e3260
mov dword [esi + 0xc], eax
jmp 0x4ec185
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ec185
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x50ea80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50eac2
call fcn.00514632
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x50eac2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x50eab9
xor eax, eax
jmp 0x50eaca
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050ead0
pop edi
pop esi
pop ebx
ret 4

Function at 0x514b62
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 0x514b90
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x514bae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00514ac8
jmp 0x514bae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x514bae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00514ac8
test edi, edi
mov eax, edi
jne 0x514b98
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4016d0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
push ebx
push esi
push edi
lea edi, [ebp - 0x1f0]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x20], 0
mov esi, esp
lea eax, [ebp - 0x1b0]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp esi, esp
call fcn.00401b50
test eax, eax
je 0x401730
push str.Error_at_WSAStartup___n
call fcn.00401ad0
add esp, 4
or eax, 0xffffffff
jmp 0x4018a3
mov esi, esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp esi, esp
call fcn.00401b50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401799
push str.socket_failed__n
call fcn.00401ad0
add esp, 4
mov ecx, dword [0x428714]
push ecx
push str.errno_d_n
call fcn.00401ad0
add esp, 8
push 0x16
push str.EINVAL_d_n
call fcn.00401ad0
add esp, 8
push str.socket
call fcn.004041c0
add esp, 4
or eax, 0xffffffff
jmp 0x4018a3
mov esi, esp
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp esi, esp
call fcn.00401b50
cmp eax, 0xffffffff
jne 0x4017df
push str.setsockopt_failed__n
call fcn.00401ad0
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.004065e0
add esp, 4
or eax, 0xffffffff
jmp 0x4018a3
mov dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.004022d0
add esp, 0xc
mov word [ebp - 0x18], 2
mov esi, esp
mov cx, word [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
cmp esi, esp
call fcn.00401b50
mov word [ebp - 0x16], ax
mov esi, esp
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
cmp esi, esp
call fcn.00401b50
mov dword [ebp - 0x14], eax
mov esi, esp
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp esi, esp
call fcn.00401b50
cmp eax, 0xffffffff
jne 0x401868
push str.bind_failed__n
call fcn.00401ad0
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.004065e0
add esp, 4
or eax, 0xffffffff
jmp 0x4018a3
mov esi, esp
push 0x40
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WSOCK32.dll_listen]
cmp esi, esp
call fcn.00401b50
cmp eax, 0xffffffff
jne 0x4018a0
push str.listen_failed__n
call fcn.00401ad0
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.004065e0
add esp, 4
or eax, 0xffffffff
jmp 0x4018a3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x1f0
cmp ebp, esp
call fcn.00401b50
mov esp, ebp
pop ebp
ret
Function at 0x402ab4
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.00404a18
test esi, esi
jne 0x402aea
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.00404b08
jmp 0x402b08
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c8
mov edi, eax
test esi, esi
je 0x402b08
cmp dword [ebx], 0
je 0x402b08
dec esi
jmp 0x402af1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a38
Capabilities:
Query or enumerate registry value

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

Function at 0x4047f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53904c], 0
je 0x404859
cmp word [0x539220], 0xd7b2
jne 0x404821
cmp dword [0x539228], 0
jbe 0x404821
mov eax, 0x53921c
call dword [0x539238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x536078
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 0x404880
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x536030], 0
jne 0x404875
push 0
push 0x536070
push 0x536078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4049cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040278c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404994
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406a98
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 0x406afe
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.00404c88
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403330
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406ae8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b05
lea eax, [ebp - 0x10]
call fcn.00404a18
ret

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

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

Function at 0x40c9e4
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 0x40ca1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b08
jmp 0x40ca26
mov eax, ebx
mov edx, esi
call fcn.00404a6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40da38
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 0x40db0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ab0
lea eax, [ebp - 8]
call fcn.00404f28
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ed8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40daf8
mov eax, ebx
call fcn.0040278c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40daf1
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.00404ed8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dadb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40db20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dadb
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 0x40daf8
mov eax, dword [ebp - 0x10]
call fcn.004027ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db15
lea eax, [ebp - 8]
call fcn.00404a18
ret