joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4840d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x4840f9
cmp dword [ebx + 0x54], 0
jne 0x4840f9
cmp dword [ebx + 0x5c], 0
jne 0x4840f9
mov esi, dword [ebx + 0x14]
jmp 0x484195
cmp esi, 0xffffffff
jne 0x484104
dec esi
jmp 0x484195
mov eax, dword [ebx + 0x14]
mov edx, eax
mov ecx, eax
sub ecx, 0x106
add edx, ecx
cmp edx, dword [ebx + 0x54]
ja 0x484195
mov edx, dword [ebx + 0x20]
lea ecx, [edx + eax]
xchg ecx, eax
call fcn.00403074
mov eax, dword [ebx + 0x14]
sub dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x14]
sub dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x14]
sub dword [ebx + 0x44], eax
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + edx*2]
test edx, edx
jbe 0x484164
mov dword [ebp - 4], edx
sub eax, 2
movzx edx, word [eax]
cmp edx, dword [ebx + 0x14]
jb 0x48415a
sub dx, word [ebx + 0x14]
mov word [eax], dx
jmp 0x48415f
mov word [eax], 0
dec dword [ebp - 4]
jne 0x484146
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
lea eax, [eax + edx*2]
test edx, edx
jbe 0x484192
mov dword [ebp - 4], edx
sub eax, 2
movzx edx, word [eax]
cmp edx, dword [ebx + 0x14]
jb 0x484188
sub dx, word [ebx + 0x14]
mov word [eax], dx
jmp 0x48418d
mov word [eax], 0
dec dword [ebp - 4]
jne 0x484174
add esi, dword [ebx + 0x14]
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4841f3
mov edx, dword [ebx + 0x54]
add edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x20]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00484098
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x4841de
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x4841f3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4840d8
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x48559c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x494d80
mov esi, ecx
shr esi, 2
dec esi
test esi, esi
jl 0x4855fa
inc esi
mov ebx, eax
xor bl, byte [edx]
movzx ebx, bl
mov ebx, dword [edi + ebx*4]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
mov ebx, eax
xor bl, byte [edx]
movzx ebx, bl
mov ebx, dword [edi + ebx*4]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
mov ebx, eax
xor bl, byte [edx]
movzx ebx, bl
mov ebx, dword [edi + ebx*4]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
mov ebx, eax
xor bl, byte [edx]
movzx ebx, bl
mov ebx, dword [edi + ebx*4]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
dec esi
jne 0x4855af
mov esi, ecx
and esi, 3
dec esi
test esi, esi
jl 0x48561a
inc esi
mov ecx, eax
xor cl, byte [edx]
movzx ecx, cl
mov ecx, dword [edi + ecx*4]
shr eax, 8
xor ecx, eax
mov eax, ecx
inc edx
dec esi
jne 0x485605
pop edi
pop esi
pop ebx
ret
Function at 0x487c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405728
lea eax, [ebp - 8]
call fcn.00405728
xor eax, eax
push ebp
push 0x487cde
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.004054e0
push eax
mov eax, dword [ebp - 4]
call fcn.004054e0
push eax
push 0x487cec
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
setae bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487ce5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405334
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405728
xor eax, eax
push ebp
push 0x4880a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x495198], eax
xor eax, eax
push ebp
push 0x48807d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x487ee0
xor edx, edx
xor eax, eax
call fcn.00404b08
mov ebx, eax
cmp dword [0x495198], 0
jne 0x48806d
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x488062
cmp eax, 0xbb8
jb 0x488064
jmp 0x48806d
jge 0x48806d
push 1
call sub.KERNEL32.DLL_Sleep
jmp 0x48803e
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488087
cmp dword [0x495198], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4880ae
lea eax, [ebp - 4]
call fcn.0040531c
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe8
xor eax, eax
push ebp
push 0x48821f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x49519c], eax
xor eax, eax
push ebp
push 0x4881f5
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4880b8
xor edx, edx
xor eax, eax
call fcn.00404b08
mov ebx, eax
cmp dword [0x49519c], 0
jne 0x4881e5
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4881da
cmp eax, 0xbb8
jb 0x4881dc
jmp 0x4881e5
jge 0x4881e5
push 1
call sub.KERNEL32.DLL_Sleep
jmp 0x4881b6
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4881ff
cmp dword [0x49519c], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488226
lea eax, [ebp - 4]
call fcn.00404b68
ret
Function at 0x488790
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
xor edx, edx
push ebp
push 0x48891c
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4888e5
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4887e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488901
mov dword [ebp - 0x10], 0x4000
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4888a8
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jb 0x4888bc
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x488889
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00405448
mov eax, dword [ebp - 0x1c]
call fcn.00487fe0
test al, al
je 0x488889
xor eax, eax
push ebp
push 0x48887f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x14]
call fcn.00405448
mov eax, dword [ebp - 0x20]
call fcn.00488230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488889
mov eax, dword [ebp - 8]
test dword [eax + 0xc], 2
jbe 0x48889d
mov eax, dword [ebp - 8]
call fcn.00488790
add dword [ebp - 8], 0x20
dec dword [ebp - 0x18]
jne 0x488831
jmp 0x4888bc
cmp dword [ebp - 0xc], 0x103
je 0x4888bc
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalFree
jmp 0x4888d2
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0xc], 0x103
jne 0x4887e3
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488901
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488923
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405334
ret
Function at 0x40e230
Capabilities:
Encode data using xor

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

Function at 0x40f540
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x40f5c0
push edi
call dword [0x413ea0]
add esp, 4
test eax, eax
jbe 0x40f5c0
test esi, esi
je 0x40f57e
cmp esi, 0xffffffff
je 0x40f57e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x40f602
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x40f5ac
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x40f5c0
jmp 0x40f5bb
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x40f5c0
mov ebp, 1
test esi, esi
je 0x40f602
cmp esi, 0xffffffff
je 0x40f602
test ebp, ebp
jne 0x40f639
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x40f60f
call edi
test eax, eax
je 0x40f602
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x40f639
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x40f5ea
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x40f602
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x40f639
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x40f61c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x413ea0]
inc eax
push eax
call fcn.0040d220
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x410100
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x410132
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x410192
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x410169
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x410240
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x4102dc
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x41026b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret
Function at 0x402a54
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.00404098
test esi, esi
jne 0x402a8a
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.00404188
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Query or enumerate registry value

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

Function at 0x403e98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x403ef9
cmp word [0x46621c], 0xd7b2
jne 0x403ec1
cmp dword [0x466224], 0
jbe 0x403ec1
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x403f20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x403f15
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40404c
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.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x466049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404014
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405f54
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 0x405fba
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.00404308
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fa4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fc1
lea eax, [ebp - 0x10]
call fcn.00404098
ret

Function at 0x40891c
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.00404558
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40893e
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b398
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 0x40b3d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404188
jmp 0x40b3da
mov eax, ebx
mov edx, esi
call fcn.004040ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba8c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b904
mov eax, dword [0x4658c0]
cmp byte [eax], 0
je 0x40bb08
mov eax, dword [0x4655e4]
call fcn.00402b48
call fcn.00402834
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.00408b18
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 0x40bb50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb3e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465570]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466664]
call fcn.00405468
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 0x40c3a4
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 0x40c47a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404130
lea eax, [ebp - 8]
call fcn.004045a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404558
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c464
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c45d
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.00404558
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c447
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c48c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c447
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 0x40c464
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c481
lea eax, [ebp - 8]
call fcn.00404098
ret

Function at 0x40c9b0
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 0x40ca14
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.00404308
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040855c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca1b
lea eax, [ebp - 0xc]
call fcn.00404098
ret

Function at 0x41aa4c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041a8a4
dec esi
jne 0x41aa6e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41bbb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466888
cmp dword [edi], 0
jne 0x41bc2c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4643ec
mov ecx, 2
call fcn.004028c8
mov edx, 0x41bb88
lea eax, [esi + 5]
call fcn.0041bba8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bba8
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 0x41bc01
mov dword [0x466884], 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 0x41ce50
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 0x41ce56
ret

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