joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407baa
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x407bd8
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x407bcf
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x407bc7
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x407bf9
mov esp, ebp
pop ebp
ret

Function at 0x407bfd
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x407c69
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x407c96
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x407c85
xor ecx, eax
xor edx, ebx
dec edi
jne 0x407c76
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x407cbc
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x407c5d
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x407ce8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408309
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4083ca
test ecx, ecx
je 0x4083ca
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4083ca
test ebx, ebx
je 0x4083ca
mov ebx, eax
add ebx, edx
je 0x4083ca
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4083ca
cmp dword [edx + eax + 0x14], 0
je 0x4083ca
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4083ca
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4083ba
test dl, dl
je 0x4083b6
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4083ba
add edi, 2
add esi, 2
test dl, dl
jne 0x40839a
xor eax, eax
jmp 0x4083bf
sbb eax, eax
or eax, 1
test eax, eax
je 0x4083d6
inc ebp
cmp ebp, dword [esp + 4]
jb 0x408387
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x4085f9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x408631
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40861f
mov al, 1
jmp 0x408690
cmp dword [ebx + 0x54], ecx
jne 0x408628
mov al, 2
jmp 0x408690
cmp dword [ebx + 0x7c], ecx
jne 0x408690
mov al, 3
jmp 0x408690
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x408646
mov al, 4
jmp 0x408690
cmp ecx, 5
jne 0x408666
cmp ebx, 0
jne 0x408654
mov al, 5
jmp 0x408690
cmp ebx, 1
jne 0x40865d
mov al, 6
jmp 0x408690
cmp ebx, 2
jne 0x408666
mov al, 7
jmp 0x408690
cmp ecx, 6
jne 0x408672
cmp ebx, 0
jne 0x408674
mov al, 8
jmp 0x408690
cmp ebx, 1
jne 0x40867b
mov al, 9
cmp ebx, 2
jne 0x408682
mov al, 0xa
cmp ebx, 3
jne 0x408689
mov al, 0xb
cmp ebx, 4
jne 0x408690
mov al, 0xc
pop ebx
leave
ret
Function at 0x4087e5
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0040c130
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
push str.Shell_TrayWnd
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowA]
nop
nop
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40883b
push ebx
call fcn.0040a7d0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408855
mov eax, 0
jmp 0x40895c
mov eax, str.TrayNotifyWnd
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00408960
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408879
push ebx
call fcn.0040a7d0
add esp, 4
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowExA]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4088aa
mov eax, 0
jmp 0x40895c
mov eax, str.SysPager
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00408960
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4088ce
push ebx
call fcn.0040a7d0
add esp, 4
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowExA]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4088ff
mov eax, 0
jmp 0x40895c
mov eax, str.ToolbarWindow32
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00408960
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408923
push ebx
call fcn.0040a7d0
add esp, 4
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowExA]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408954
mov eax, 0
jmp 0x40895c
mov eax, dword [ebp - 4]
jmp 0x40895c
mov esp, ebp
pop ebp
ret
Function at 0x40bdb0
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 0x40be30
push edi
call dword [0x44c128]
add esp, 4
test eax, eax
jbe 0x40be30
test esi, esi
je 0x40bdee
cmp esi, 0xffffffff
je 0x40bdee
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 0x40be72
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x40be1c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x40be30
jmp 0x40be2b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x40be30
mov ebp, 1
test esi, esi
je 0x40be72
cmp esi, 0xffffffff
je 0x40be72
test ebp, ebp
jne 0x40bea9
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 0x40be7f
call edi
test eax, eax
je 0x40be72
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x40bea9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x40be5a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x40be72
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x40bea9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x40be8c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x44c128]
inc eax
push eax
call fcn.0040ab50
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 0x40bf10
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x40c0f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40c10e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x40c103
pop esi
ret
Function at 0x40e5b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x40e5d1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x40e62b
inc edi
cmp edi, esi
jl 0x40e5c5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x40e660
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x40e61a
cmp byte [eax], bl
je 0x40e635
cmp byte [eax + 1], bl
je 0x40e63e
cmp byte [eax + 2], bl
je 0x40e648
cmp byte [eax + 3], bl
je 0x40e654
add eax, 4
cmp eax, edi
jb 0x40e5f1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x41c6bc
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 0x41c6fe
call fcn.0041fa0e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c6fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c6f5
xor eax, eax
jmp 0x41c706
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c70c
pop edi
pop esi
pop ebx
ret 4
Function at 0x41d69a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4212a4
call fcn.00410bf0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041fa0e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41d6d9
call fcn.0041fa0e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d6e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41d6f5
or eax, 0xffffffff
jmp 0x41d7dd
mov ecx, esi
call fcn.0041d610
mov dword [ebp - 0x14], eax
call fcn.0041ad07
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41d72c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d72c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041acbb
push dword [ebp - 0x14]
call fcn.0041a7ec
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041d3a8
cmp eax, edi
je 0x41d79f
test byte [esi + 0x24], 0x10
je 0x41d76d
push 4
mov ecx, esi
pop ebx
call fcn.0041a1ec
test ah, 1
je 0x41d765
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041c80e
cmp dword [esi + 0x1c], edi
je 0x41d79f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041a220
jmp 0x41d79f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41d7b3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d7cc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41d7cc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041d64a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41f580
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 0x41f5ae
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f5cc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f4e6
jmp 0x41f5cc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f5cc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f4e6
test edi, edi
mov eax, edi
jne 0x41f5b6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402f8c
Capabilities:
Query or enumerate registry value

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

Function at 0x403cd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c04c], 0
je 0x403d39
cmp word [0x45c220], 0xd7b2
jne 0x403d01
cmp dword [0x45c228], 0
jbe 0x403d01
mov eax, 0x45c21c
call dword [0x45c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45906c
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 0x403d60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x403d55
push 0
push 0x459064
push 0x45906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405338
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405568
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4053bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405568
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4053bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405584
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405444
xor eax, eax
push ebp
push 0x40543d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405180
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405422
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4055a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405422
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40555e
cmp byte [ebp - 0xd], 0
jne 0x40548b
cmp byte [ebp - 0x12], 0
je 0x40555e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4054a4
dec ebx
cmp byte [ebx], 0x2e
je 0x4054b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4054a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40555e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4054f0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40555e
cmp byte [ebp - 0xd], 0
je 0x40555e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40555e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c30
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 0x405c96
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.004040c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c9d
lea eax, [ebp - 0x10]
call fcn.00403e54
ret

Function at 0x40acac
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 0x40ace5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f44
jmp 0x40acee
mov eax, ebx
mov edx, esi
call fcn.00403ea8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b3a0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b218
mov eax, dword [0x45aed0]
cmp byte [eax], 0
je 0x40b41c
mov eax, dword [0x45ab98]
call fcn.004029bc
call fcn.00402854
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.004084ec
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 0x40b464
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b452
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ab18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c668]
call fcn.00405144
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 0x40bd00
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 0x40bdd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403eec
lea eax, [ebp - 8]
call fcn.00404364
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404314
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bdc0
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bdb9
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.00404314
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bda3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bde8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bda3
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 0x40bdc0
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bddd
lea eax, [ebp - 8]
call fcn.00403e54
ret

Function at 0x40c2c8
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 0x40c32c
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.004040c4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fe4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c333
lea eax, [ebp - 0xc]
call fcn.00403e54
ret

Function at 0x41d858
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c888
cmp dword [edi], 0
jne 0x41d8d4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45c884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4593fc
mov ecx, 2
call fcn.004028e8
mov edx, 0x41d830
lea eax, [esi + 5]
call fcn.0041d850
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d850
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 0x41d8a9
mov dword [0x45c884], 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