joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ecx + 8]
mov dword [ebp - 0x430], 0x428
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x430]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
nop dword [eax + eax]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404820
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x40486c
lea edi, [ecx + ecx]
mov eax, edi
call fcn.004375a0
mov esi, esp
test esi, esi
je 0x40486c
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40486e
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048a0
test dl, dl
je 0x40489c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404880
xor eax, eax
jmp 0x4048a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4048ca
lea eax, [ebp - 0x430]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x404810
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x4048d7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x414]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40490d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404903
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404903
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043689c
add esp, 8
mov eax, esi
lea esp, [ebp - 0x440]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004362ef
mov esp, ebp
pop ebp
ret 0x18
Function at 0x407e10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x407e5c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x407e3f
cmp edi, 2
jb 0x407e3f
cmp byte [esi], cl
jne 0x407e3f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x439830]
test edi, edi
jne 0x407e25
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x407e8b
cmp cl, 0x23
jne 0x407e72
cmp byte [esi], cl
jne 0x407e72
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x439830]
test cl, cl
jne 0x407e63
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x407fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x407fd4
mov dword [edi], 0
mov edx, 0x43e93c
call fcn.00407ea0
mov esi, eax
test esi, esi
je 0x4080d0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4080c6
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4080c6
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x4080c6
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4080c6
mov eax, dword [0x443af8]
test eax, eax
je 0x408050
inc dword [eax + 0xb4]
push dword [0x443af0]
push ebx
call fcn.00407570
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4080c6
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x4080ab
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x443af8]
add esp, 4
test eax, eax
je 0x408093
dec dword [eax + 0xb4]
push dword [0x443af0]
push ebx
call fcn.00407590
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x4080bd
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aa20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439830]
sub esi, 1
jne 0x40aa60
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3ea4], ebx
jne 0x40aa97
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041bb50
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004362ef
mov esp, ebp
pop ebp
ret 4
Function at 0x40df30
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40df6d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40df53
cmp byte [esi], bl
jne 0x40df53
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x439830]
test bl, bl
jne 0x40df44
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040dec0
Function at 0x41a7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5ad4], 0
lea esi, [edi + 0x5ad8]
je 0x41a842
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41a7fc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0041c7e0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00408260
mov edx, dword [esi]
mov ecx, 0x443af4
push dword [edi + 0x5ad4]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5ae0]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00408260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ac40
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x443af8]
test bl, bl
je 0x41ac86
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41ac67
cmp byte [esi], bl
jne 0x41ac67
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x439830]
test bl, bl
jne 0x41ac58
mov edi, dword [0x443af8]
mov esi, dword [edi + 0x5a7c]
xor ecx, ecx
not eax
test esi, esi
jle 0x41acac
mov edi, dword [edi + 0x5a84]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x41acb2
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x41aca0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x424bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x424c0c
mov eax, dword [0x443af8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x424bf6
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x424c46
mov eax, dword [0x443af8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x424c30
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x424c80
mov eax, dword [0x443af8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x424c6a
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x424cd6
mov eax, dword [0x443af8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x424cc0
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x424d10
mov eax, dword [0x443af8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x424cfa
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x424d4a
mov eax, dword [0x443af8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x424d34
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00428600
Function at 0x401450
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call fcn.0040428c
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call fcn.0040428c
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4014aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401497
jmp 0x4014ae
test ebp, ebp
jne 0x4014b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.0040428c
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [0x4051ac]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call entry0
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.0040428c
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call entry0
add esp, 0x20
mov edx, edi
push edx
call dword [0x405034]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40154a
lea eax, [esp + 0x104]
push eax
call fcn.00401630
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00403a3e
add esp, 0x20c
ret

Function at 0x401fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [0x4050c4]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov dword [esp + 0x1c], ebx
call fcn.004026f0
push str.KERNELSMARTLOADER::
mov ecx, edi
call dword [0x4050b8]
push ebx
call dword [0x4051d4]
call fcn.00401310
mov edi, eax
call fcn.00401100
push str.KernelFactory.dll
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call dword [0x405024]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x402075
push str.CreateFactory
push eax
call dword [0x40501c]
cmp eax, ebx
je 0x402075
call eax
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x402075
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x402510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40257a
push str.ReleaseFactory
push eax
call dword [0x40501c]
test eax, eax
je 0x402569
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x402569
push ecx
call eax
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x30]
push eax
call dword [0x405028]
mov dword [esi + 0x30], 0
call fcn.00401180
call dword [0x4051d0]
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0xffffffff
call dword [0x4050d4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x402ea0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a88
test esi, esi
jne 0x402ed7
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.00404b78
jmp 0x402ef8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d3c
mov dword [esp], eax
test esi, esi
je 0x402ef8
cmp dword [ebx], 0
je 0x402ef8
dec esi
jmp 0x402edf
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403b28
Capabilities:
Query or enumerate registry value

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

Function at 0x404904
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ab04c], 0
je 0x404965
cmp word [0x4ab220], 0xd7b2
jne 0x40492d
cmp dword [0x4ab228], 0
jbe 0x40492d
mov eax, 0x4ab21c
call dword [0x4ab238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a9070
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 0x40498c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a9030], 0
jne 0x404981
push 0
push 0x4a9068
push 0x4a9070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
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.00404cf8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034fc
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.00404a88
ret
Function at 0x409ce8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x409f3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404adc
cmp dword [0x4a90c8], 1
jne 0x409d33
cmp dword [0x4a90cc], 4
jle 0x409d72
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00404f64
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x409f1e
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x424]
mov edx, dword [edx]
call fcn.00404c80
jmp 0x409f1e
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402f04
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x41
jb 0x409f1e
cmp byte [ebp - 0x19], 0x5a
ja 0x409f1e
mov eax, dword [ebp - 4]
call fcn.00404d64
cmp eax, 3
jl 0x409f1e
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x409f1e
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x409f1e
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x409f1e
xor eax, eax
push ebp
push 0x409f17
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402adc
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x409ef9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x409e46
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00402b2c
jmp 0x409e05
cmp dword [ebp - 0x10], 0
je 0x409e5b
call fcn.00404548
call fcn.00404548
jmp 0x409f1e
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x409e05
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x409ed7
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00402f04
cmp al, byte [ebp - 0x19]
jne 0x409ed7
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d64
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00404fc4
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, dword [ebx + 0x14]
call fcn.00404c80
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00404db0
call fcn.00404548
call fcn.00404548
jmp 0x409f1e
inc edi
dec esi
jne 0x409e66
jmp 0x409e05
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f43
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00404aac
ret
Function at 0x40cf3c
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 0x40cf75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b78
jmp 0x40cf7e
mov eax, ebx
mov edx, esi
call fcn.00404adc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d640
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d4a8
mov eax, dword [0x4aaaf0]
cmp byte [eax], 0
je 0x40d6bc
mov eax, dword [0x4aa884]
call fcn.004032b4
call fcn.00402c68
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.0040a134
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 0x40d704
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d6f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4aa824]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ab668]
call fcn.00405f04
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 0x40dfa8
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 0x40e07e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b20
lea eax, [ebp - 8]
call fcn.00404fb4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e068
mov eax, ebx
call fcn.00402adc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e061
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.00404f64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e04b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e090
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e04b
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 0x40e068
mov eax, dword [ebp - 0x10]
call fcn.00402b0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e085
lea eax, [ebp - 8]
call fcn.00404a88
ret

Function at 0x40e65c
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 0x40e6c0
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.00404cf8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409608
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6c7
lea eax, [ebp - 0xc]
call fcn.00404a88
ret

Function at 0x424530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ab888
cmp dword [edi], 0
jne 0x4245ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ab884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a9528
mov ecx, 2
call fcn.00402cfc
mov edx, 0x424508
lea eax, [esi + 5]
call fcn.00424528
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424528
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 0x424581
mov dword [0x4ab884], 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 0x425b80
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 0x425b86
ret
Function at 0x42813c
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 0x42818d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428174
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428164
jmp 0x42818d
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 0x428175
pop ebx
mov esp, ebp
pop ebp
ret