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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40f400]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4026bd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40f300]
lea edi, [ecx*4 + 0x40f300]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4026bd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40257e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40258f
push 2
push ebp
push eax
call fcn.00402d90
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4026ee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x402639
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4025ea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4025d7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4025ba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4026df
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x402635
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4025b6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4026ae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402682
cmp eax, 5
jne 0x40266b
mov dword [0x40ccf4], eax
mov dword [0x40ccf0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004045c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4026a2
cmp byte [ebp], 0x1a
jne 0x4026a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40ccf0], 0x1c
jmp 0x4026c7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40ccf0], 9
pop edi
pop esi
pop ebp
mov dword [0x40ccf4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x402635
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40271f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x402639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x402639
Function at 0x402cc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40cd38]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x402cdf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40cd34], 1
mov byte [0x40cd30], bl
jne 0x402d39
mov ecx, dword [0x40f408]
test ecx, ecx
je 0x402d27
mov esi, dword [0x40f404]
sub esi, 4
cmp esi, ecx
jb 0x402d27
mov eax, dword [esi]
test eax, eax
je 0x402d20
call eax
mov ecx, dword [0x40f408]
sub esi, 4
cmp esi, ecx
jae 0x402d12
push 0x40801c
push 0x408014
call fcn.00402d70
add esp, 8
push 0x408024
push 0x408020
call fcn.00402d70
add esp, 8
test ebx, ebx
jne 0x402d60
push ebp
mov dword [0x40cd38], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x403a50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40ce48]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403a92
call edi
mov esi, eax
test esi, esi
je 0x403a7c
mov eax, 1
jmp 0x403a8d
call ebp
mov ebx, eax
test ebx, ebx
je 0x403b9f
mov eax, 2
mov dword [0x40ce48], eax
cmp eax, 1
jne 0x403b32
test esi, esi
jne 0x403aab
call edi
mov esi, eax
test esi, esi
je 0x403b9f
cmp word [esi], 0
mov eax, esi
je 0x403ac5
add eax, 2
cmp word [eax], 0
jne 0x403ab3
add eax, 2
cmp word [eax], 0
jne 0x403ab3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403b24
push edi
call fcn.004053d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403b24
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403b16
push ebx
call fcn.00402880
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403b9f
test ebx, ebx
jne 0x403b43
call ebp
mov ebx, eax
test ebx, ebx
je 0x403b9f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403b5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403b4b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403b4b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004053d0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403b7d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4042d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4081f8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4042f4
add eax, 8
inc ebp
cmp eax, 0x408288
jb 0x4042e5
cmp ecx, dword [ebp*8 + 0x4081f8]
jne 0x40449b
mov eax, dword [0x40ccec]
cmp eax, 1
je 0x40445d
test eax, eax
jne 0x404320
cmp dword [0x408054], 1
je 0x40445d
cmp ecx, 0xfc
je 0x40449b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40435b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4043a4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4072e0
add ebx, ecx
push ebx
call fcn.004058b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4072c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4081fc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405820
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f300]
test eax, eax
je 0x40446e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404478
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4081fc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x405ac0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004020c0
mov eax, dword [0x40f400]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x405c22
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40f300]
test byte [edx + ecx*8 + 4], 1
je 0x405c22
push 1
push ebp
push ebx
call fcn.00402d90
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x405c2c
push 2
push ebp
push ebx
call fcn.00402d90
add esp, 0xc
cmp eax, 0xffffffff
je 0x405c2c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x405bc8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00405fa0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x405b6f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00402510
add esp, 0xc
cmp eax, 0xffffffff
je 0x405b8b
sub esi, eax
test esi, esi
jle 0x405ba1
jmp 0x405b60
cmp dword [0x40ccf4], 5
jne 0x405b9e
mov dword [0x40ccf0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00405fa0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00402d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x405c09
push 0
push ecx
push ebx
call fcn.00402d90
add esp, 0xc
push ebx
call fcn.00404fc0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x405c09
mov dword [0x40ccf0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40ccf4], eax
push 0
push edi
push ebx
call fcn.00402d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40ccf0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x406d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x406c06
xor edi, edi
mov esi, dword [edx + 0x28]
nop
movzx ecx, word [edx + 0x26]
nop
jmp 0x406c22
nop
jmp 0x406c2d
xor eax, eax
lodsb al, byte [esi]
nop
jmp 0x406c40
cmp al, 0x61
jl 0x406c47
nop
sub al, 0x20
jmp 0x406c55
ror edi, 0xd
jmp 0x406c63
add edi, eax
jmp 0x406c71
dec ecx
nop
jne 0x406c22
nop
push edx
jmp 0x406c89
push edi
jmp 0x406c98
mov edx, dword [edx + 0x10]
nop
jmp 0x406caa
mov eax, dword [edx + 0x3c]
nop
add eax, edx
mov eax, dword [eax + 0x78]
nop
jmp 0x406cc2
test eax, eax
jmp 0x406cd0
je 0x406eb9
nop
jmp 0x406ce6
add eax, edx
mov ebx, dword [eax + 0x20]
nop
jmp 0x406cfd
push eax
nop
add ebx, edx
nop
mov ecx, dword [eax + 0x18]
jmp 0x406d11
imul ebp, ebx, 0x6b48a10a
pop edi
stc
or ch, byte [ebx - 0x7a2eae18]
leave
jmp 0x406d1d
test ecx, ecx
nop
je 0x406eb6
nop
jmp 0x406d33
nop
xor edi, edi
jmp 0x406d44
dec ecx
nop
mov esi, dword [ebx + ecx*4]
nop
jmp 0x406d5a
add esi, edx
nop
jmp 0x406d67
nop
xor eax, eax
nop
lodsb al, byte [esi]
nop
jmp 0x406d7c
ror edi, 0xd
nop
jmp 0x406d8d
add edi, eax
nop
cmp al, ah
nop
jmp 0x406da2
jne 0x406d67
nop
jmp 0x406dbb
nop
add edi, dword [ebp - 8]
jmp 0x406dd0
cmp edi, dword [ebp + 0x24]
jne 0x406d11
nop
jmp 0x406dee
nop
jmp 0x406dfc
pop eax
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
nop
jmp 0x406e13
mov cx, word [ebx + ecx*2]
nop
jmp 0x406e29
mov ebx, dword [eax + 0x1c]
jmp 0x406e3e
add ebx, edx
nop
jmp 0x406e50
mov eax, dword [ebx + ecx*4]
nop
jmp 0x406e68
add eax, edx
jmp 0x406e77
mov dword [esp + 0x24], eax
jmp 0x406e89
pop ebx
jmp 0x406e99
pop ebx
popal
nop
pop ecx
nop
pop edx
nop
push ecx
jmp 0x406eb3
jmp eax
nop
pop eax
nop
jmp 0x406ec6
pop edi
nop
jmp 0x406edb
pop edx
nop
jmp 0x406eec
mov edx, dword [edx]
nop
jmp 0x406f02
jmp 0x406bfb

Function at 0x407127
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x40712a
mov ebx, 0x12f0d49d
invalid
Function at 0xdecd2c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdecd36
pushal
call 0xdecd3c
pop ebp
sub ebp, 0x10
sub ebp, 0x9ecd2c
jmp 0xdecd52
mov eax, 0x9ecd2c
add eax, ebp
add eax, 0x4c
mov ecx, 0x58e
mov edx, 0x219b74e0
xor byte [eax], dl
inc eax
dec ecx
jne 0xdecd69
test esi, esi
invalid
jmp 0xdecd7c
imul ebp, dword [0xe0dc696b], 0xffffffe0
loopne 0xdecde6
imul ebx, esp, 0x61e0e0e0
popal
and dword [eax], ebx
loopne 0xdecd69
loopne 0xdecd6e
sub eax, 0xe0e0e658
loopne 0xdecdec
enter 0xffffffffffffe0e0, 0xffffffffffffffe0
pop ss
add ah, bl
sub byte [ebx + 0x61], ch
in al, dx
loopne 0xdecd7f
loopne 0xdecd84
and eax, 0x1488b0b0
dec esp
jmp eax
mov ebp, 0x6be0ec22
insb byte es:[edi], dx
invalid
Function at 0x402a00
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.00403f90
test esi, esi
jne 0x402a36
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404080
jmp 0x402a54
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402914
mov edi, eax
test esi, esi
je 0x402a54
cmp dword [ebx], 0
je 0x402a54
dec esi
jmp 0x402a3d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x453020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403168
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403148
xor eax, eax
push ebp
push 0x403141
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 0x403184
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403148
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x453020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x453020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x455048], 0
je 0x403e75
cmp word [0x45521c], 0xd7b2
jne 0x403e3d
cmp dword [0x455224], 0
jbe 0x403e3d
mov eax, 0x455218
call dword [0x455234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45306c
push 0xfffffffffffffff5
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 0x403e9c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x453030], 0
jne 0x403e91
push 0
push 0x453064
push 0x45306c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4051f0
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405420
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405273
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405420
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405273
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40543c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4052fc
xor eax, eax
push ebp
push 0x4052f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405038
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_1
test eax, eax
je 0x4052da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40545c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4052da
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 0x4052fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405416
cmp byte [ebp - 0xd], 0
jne 0x405343
cmp byte [ebp - 0x12], 0
je 0x405416
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40535c
dec ebx
cmp byte [ebx], 0x2e
je 0x40536b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40535b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405416
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053a8
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 0x405416
cmp byte [ebp - 0xd], 0
je 0x405416
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 0x405416
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 0x405ae8
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 0x405b4e
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404200
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b38
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b55
lea eax, [ebp - 0x10]
call fcn.00403f90
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404450
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40835d
test al, 0x10
jne 0x408361
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408368
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.00404450
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40838a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40af80
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
test eax, eax
jle 0x40afb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404080
jmp 0x40afc2
mov eax, ebx
mov edx, esi
call fcn.00403fe4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40afcc
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
test eax, eax
jle 0x40afed
mov al, byte [esp]
jmp 0x40afef
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bf8c
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 0x40c062
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404028
lea eax, [ebp - 8]
call fcn.004044a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404450
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c04c
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c045
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.00404450
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c02f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c074
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c02f
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 0x40c04c
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c069
lea eax, [ebp - 8]
call fcn.00403f90
ret

Function at 0x40c5d0
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 0x40c634
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404200
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407fc4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c63b
lea eax, [ebp - 0xc]
call fcn.00403f90
ret

Function at 0x41a8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x455884
cmp dword [edi], 0
jne 0x41a96c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x455880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45346c
mov ecx, 2
call fcn.004028d4
mov edx, 0x41a8c8
lea eax, [esi + 5]
call fcn.0041a8e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a8e8
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 0x41a941
mov dword [0x455880], 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 0x41bb90
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 0x41bb96
ret