joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cce0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x41401
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 8]
push ecx
push str.VerInfo
push 0x4c5f2c
call fcn.0045fc60
lea edx, [esp + 0x24]
push edx
call fcn.00455ec0
lea eax, [esp + 0x24]
push eax
call fcn.00455c00
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x49cd38
mov ecx, dword [str.version.dat]
mov edx, dword [0x4ccefc]
mov dword [eax], ecx
mov ecx, dword [0x4ccf00]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4c7358
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.004b3d44
mov esi, eax
add esp, 8
test esi, esi
je 0x49cd93
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004b241a
push esi
call fcn.004b24ae
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x49ce45
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x49ce11
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push 0x4c5f2c
call fcn.0045fbc0
lea edx, [esp + 0x28]
push 0x4c8050
push edx
call fcn.004b3d44
mov esi, eax
add esp, 8
test esi, esi
je 0x49cdf1
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004b20f8
push esi
call fcn.004b24ae
add esp, 0x14
mov dword [0x51a018], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004af72c
add esp, 0x428
ret
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push str.VerInfo
push 0x4c5f2c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0045fbc0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x49ce8f
cmp dword [esp + 0x10], eax
je 0x49ce8f
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4c8050
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004b3d44
mov esi, eax
add esp, 8
test esi, esi
je 0x49ce8f
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004b20f8
push esi
call fcn.004b24ae
add esp, 0x14
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
xor eax, eax
push 1
xor esi, esi
sub ecx, edx
push eax
sbb esi, eax
push esi
push ecx
call fcn.004b01d0
mov ecx, dword [esp + 8]
xor esi, esi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sbb edx, esi
push esi
add eax, ecx
push 0x989680
adc edx, esi
push edx
push eax
call fcn.004b0810
push esi
push 0xe10
push edx
push eax
call fcn.004b0810
push esi
push 0x18
push edx
push eax
call fcn.004b0810
mov dword [0x51a018], eax
test eax, eax
jge 0x49cef2
mov dword [0x51a018], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x428
ret
Function at 0x49da20
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [0x529494]
push esi
xor esi, esi
cmp dword [eax + 0x20], esi
je 0x49dc04
push esi
push 1
push 0x528c92
mov ecx, 0x5209d0
call fcn.004169d0
cmp eax, 1
jne 0x49dc04
cmp dword [0x5250e4], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x49da8c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x5209d0
call fcn.004134c0
jmp 0x49daa0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x5209d0
call fcn.004133e0
cmp dword [esp + 4], esi
je 0x49dc04
mov ecx, dword [0x529494]
push 0x400
lea edx, [esp + 0x14]
push edx
call fcn.0046fe80
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49db11
push esi
push esi
push 0x7fffffff
push 0x7fffffff
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0040b2f0
cmp al, 0x43
je 0x49daee
cmp al, 0x4e
jne 0x49db11
mov edx, dword [esp + 8]
push edx
call fcn.004aff95
add esp, 4
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004af72c
add esp, 0x810
ret
push edi
push esi
push 0x4c8050
lea eax, [esp + 0x1c]
push eax
call fcn.004356e0
mov edi, eax
cmp edi, esi
jne 0x49db66
lea ecx, [esp + 0x14]
push ecx
push 0x1f6
call fcn.00465ff0
push eax
push 0x528c92
call fcn.00499570
mov edx, dword [esp + 0x18]
push edx
call fcn.004aff95
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004af72c
add esp, 0x810
ret
mov eax, dword [0x5250e4]
cmp eax, 3
jne 0x49dbbb
push edi
push 0xff
call fcn.004b31c3
push edi
push 0xfe
call fcn.004b31c3
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x49dbe6
nop
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
push edi
push ecx
call fcn.004b31c3
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi*2 + 1]
push edi
push eax
call fcn.004b31c3
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x49db90
jmp 0x49dbe6
cmp eax, 2
jne 0x49dbd1
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edi
push edx
push 1
push eax
call fcn.004b20f8
add esp, 0x10
push edi
call fcn.004b24ae
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004aff95
mov edx, dword [esp + 0x18]
push edx
call fcn.004aff95
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x810
ret
Function at 0x4a2070
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [esp + 0x105c]
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x105c]
push esi
mov esi, dword [esp + 0x1058]
push edi
mov edi, dword [esp + 0x1060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004afbb0
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x4a20e6
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call fcn.00455740
cmp eax, esi
jne 0x4a2120
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.00407130
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x51977b], bl
call esi
test eax, eax
jne 0x4a2151
cmp dword [esp + 0x20], eax
je 0x4a2151
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x51977b], 0
test eax, eax
je 0x4a2202
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4a2202
cmp byte [esp + 0x1068], 0
jne 0x4a21fe
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4a21b2
mov eax, dword [0x5422f0]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x5422b0], ecx
mov dword [eax*4 + 0x542270], edx
inc eax
and eax, 0x8000000f
jns 0x4a21ab
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5422f0], eax
jmp 0x4a21f4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x542270]
cmp eax, dword [esp + 0x34]
jne 0x4a21e8
mov ecx, dword [esi + 0x5422b0]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x4a21e8
mov edx, dword [esi + 0x5422b0]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x4a21c0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a21fe
mov dword [eax], ecx
mov al, bl
jmp 0x4a2204
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af72c
add esp, 0x1044
ret 0x1c
Function at 0x4a2220
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c483b
mov eax, dword fs:[0]
push eax
mov eax, 0x40ac
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x40a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d88f0]
xor eax, esp
push eax
lea eax, [esp + 0x40c0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40d4]
mov ebp, dword [esp + 0x40d0]
push eax
call fcn.00455740
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2280
sub eax, edx
mov ecx, ebx
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4a2294
sub ecx, esi
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, 0x800
jae 0x4a2442
lea edx, [esp + 0x10bc]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a22c0
lea ecx, [esp + 0x10bc]
push ecx
call fcn.004550c0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a22e0
lea edi, [esp + 0x10bc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a2300
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a2300
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0046fac0
mov dword [esp + 0x40c8], 0
push 0x1000
push 0x4c5d80
lea edx, [esp + 0x20c4]
push edx
push str.ViewerIgnoreModifications
push 0x4c6328
call fcn.0045fc10
cmp word [esp + 0x20bc], 0
je 0x4a2372
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x20c8]
push ecx
call fcn.0046fec0
push 0x400
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x1c]
call fcn.0046fe80
test al, al
je 0x4a242e
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4a23a0
push 0x400
lea eax, [esp + 0x8c0]
push eax
lea ecx, [esp + 0xc4]
push ecx
call edi
lea edx, [esp + 0x8be]
push 0x4cd280
push edx
call fcn.004b2c26
mov esi, eax
add esp, 8
test esi, esi
je 0x4a246e
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x4a23e8
mov esi, 0x4c5f44
push 4
push ebp
lea ecx, [esp + 0x8c4]
push ecx
call fcn.0044b780
test al, al
je 0x4a2410
push 4
lea edx, [esp + 0x10c0]
push edx
push esi
call fcn.0044b780
test al, al
jne 0x4a2477
push 0x400
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046fe80
test al, al
jne 0x4a23a0
mov dword [esp + 0x40c8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401e20
xor al, al
mov ecx, dword [esp + 0x40c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40a8]
xor ecx, esp
call fcn.004af72c
add esp, 0x40b8
ret 8
lea esi, [esp + 0x8bc]
jmp 0x4a23fc
mov dword [esp + 0x40c8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401e20
mov al, 1
jmp 0x4a2444
Function at 0x4a4240
Capabilities:
Create thread

Disassembly:
mov eax, 0x1804
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x1800], eax
push esi
mov esi, dword [esp + 0x180c]
test esi, esi
je 0x4a42b5
push 0x4cd26c
push esi
call fcn.00455b40
test al, al
jne 0x4a427c
call fcn.004a2000
test al, al
je 0x4a42b5
push 0x30
push 0x65
call fcn.00465ff0
push eax
push 0x596
call fcn.00465ff0
push eax
mov eax, dword [0x51a8cc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov ecx, dword [esp + 0x1800]
xor ecx, esp
call fcn.004af72c
add esp, 0x1804
ret 4
cmp byte [0x519779], 0
jne 0x4a4304
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004a2070
test al, al
jne 0x4a43e4
push esi
push 0x201
call fcn.00465ff0
push eax
call fcn.00498f80
add esp, 8
pop esi
mov ecx, dword [esp + 0x1800]
xor ecx, esp
call fcn.004af72c
add esp, 0x1804
ret 4
push 1
lea ecx, [esp + 0x808]
push ecx
push str.Rar_EX
call fcn.0048b040
test al, al
je 0x4a43e4
push 0x400
lea edx, [esp + 0x1008]
push edx
call fcn.0048b890
lea eax, [esp + 0x804]
push eax
call fcn.0048b870
push 1
call fcn.00487070
push 0x400
push 0x528c92
mov ecx, 0x5209d0
call fcn.00413200
mov ecx, dword [0x520bdc]
mov dword [0x526c24], ecx
mov ecx, dword [0x529494]
push 0x4c57ac
call fcn.0046fb60
push 0
push 0
mov ecx, 0x5209d0
mov dword [0x526810], 4
call fcn.00417d80
cmp byte [0x519778], 0
jne 0x4a43e4
lea edx, [esp + 4]
push edx
push esi
call fcn.00455920
lea eax, [esp + 4]
push eax
mov ecx, eax
push ecx
call fcn.00455400
push 0
lea edx, [esp + 8]
push edx
mov ecx, 0x546548
call fcn.004a1dc0
lea eax, [esp + 0x1004]
push eax
call fcn.0048b870
push 0x546548
push 0x10000
push 0x4a2c40
call fcn.004b09bb
add esp, 0xc
mov ecx, dword [esp + 0x1804]
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x1804
ret 4
Function at 0x4ae200
Capabilities:
Read file on windows

Disassembly:
cmp byte [0x51a848], 0
je 0x4ae20e
xor eax, eax
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [0x5496dc]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push edi
push ecx
call fcn.004bb55b
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4ae2de
test esi, esi
je 0x4ae2de
mov edx, dword [0x549ae0]
push ebx
push esi
push edi
push edx
call fcn.00421a30
mov ecx, dword [0x5496c8]
mov dword [0x549ae0], eax
mov eax, dword [0x5496cc]
xor edi, edi
mov ebx, ecx
add ecx, esi
mov edx, eax
adc eax, edi
cmp eax, edx
mov dword [0x5496c8], ecx
mov dword [0x5496cc], eax
jg 0x4ae281
jl 0x4ae27a
cmp ecx, ebx
jae 0x4ae281
push 6
call fcn.004a6030
mov eax, dword [0x5496a0]
mov ecx, dword [0x5496a4]
mov edx, dword [0x549af0]
mov ebx, dword [0x549af4]
add eax, esi
adc ecx, edi
add edx, esi
adc ebx, edi
mov edi, dword [0x5496ac]
push edi
mov edi, dword [0x5496a8]
push edi
push ecx
push eax
mov dword [0x5496a0], eax
mov eax, dword [0x549aec]
push eax
mov dword [0x5496a4], ecx
mov ecx, dword [0x549ae8]
push ecx
push ebx
push edx
mov dword [0x549af0], edx
mov dword [0x549af4], ebx
call fcn.00409f20
mov eax, esi
pop ebx
pop edi
pop esi
ret 8
Function at 0x402e24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044d8
test esi, esi
jne 0x402e5b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045c8
jmp 0x402e7c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cc0
mov dword [esp], eax
test esi, esi
je 0x402e7c
cmp dword [ebx], 0
je 0x402e7c
dec esi
jmp 0x402e63
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403584
Capabilities:
Query or enumerate registry value

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

Function at 0x404334
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4de048], 0
je 0x404395
cmp word [0x4de21c], 0xd7b2
jne 0x40435d
cmp dword [0x4de224], 0
jbe 0x40435d
mov eax, 0x4de218
call dword [0x4de234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4da06c
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 0x4043bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4da030], 0
jne 0x4043b1
push 0
push 0x4da064
push 0x4da06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406290
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 0x4062f6
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.00404748
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403124
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062e0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062fd
lea eax, [ebp - 0x10]
call fcn.004044d8
ret

Function at 0x40b970
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 0x40b9a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045c8
jmp 0x40b9b2
mov eax, ebx
mov edx, esi
call fcn.0040452c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c074
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bedc
mov eax, dword [0x4dd5a4]
cmp byte [eax], 0
je 0x40c0f0
mov eax, dword [0x4dd168]
call fcn.00402f90
call fcn.00402bec
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.00409010
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 0x40c138
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c126
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4dd0c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4de664]
call fcn.004056fc
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 0x40c9b8
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 0x40ca8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404570
lea eax, [ebp - 8]
call fcn.004049e8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404998
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca78
mov eax, ebx
call fcn.00402a60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca71
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.00404998
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca5b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40caa0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca5b
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 0x40ca78
mov eax, dword [ebp - 0x10]
call fcn.00402a90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca95
lea eax, [ebp - 8]
call fcn.004044d8
ret

Function at 0x40cffc
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 0x40d060
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.00404748
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d067
lea eax, [ebp - 0xc]
call fcn.004044d8
ret

Function at 0x41ce74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4de884
cmp dword [edi], 0
jne 0x41cef0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4de880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4da46c
mov ecx, 2
call fcn.00402c80
mov edx, 0x41ce4c
lea eax, [esi + 5]
call fcn.0041ce6c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ce6c
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 0x41cec5
mov dword [0x4de880], 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 0x41e48c
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 0x41e492
ret
Function at 0x420e34
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 0x420e85
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420e6c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420e5c
jmp 0x420e85
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 0x420e6d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429fcc
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.00404988
xor eax, eax
push ebp
push 0x42a0fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42a0cd
xor eax, eax
push ebp
push 0x42a0c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404798
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42a09b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42a08a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404798
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404998
mov edx, ebx
pop ecx
call fcn.00402c80
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 0x42a091
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4dcfbc]
mov dl, 1
mov eax, dword [0x4078e4]
call fcn.0040c21c
call fcn.00403eb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a101
lea eax, [ebp - 4]
call fcn.004044d8
ret