joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00424660
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x426ab9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.004219d0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.004219c0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00426110
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x47a4f4]
push 0
lea ecx, [esp + 0x4c]
call fcn.00472607
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043bf90
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004240c0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x47a158]
mov ecx, ebx
call fcn.00421940
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x426b84
push edi
mov ecx, esi
call fcn.004241d0
push eax
push ebp
mov ecx, esi
call fcn.00424390
cmp eax, dword [esp + 0x40]
jg 0x426b80
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x426b5e
mov eax, ebx
jmp 0x426b8a
cmp edi, ebx
jl 0x426b88
mov eax, ebx
jmp 0x426b8a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x426b9b
mov dword [esp + 0x30], eax
jmp 0x426ba6
cmp edi, ebx
jl 0x426ba1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00421900
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x426bed
push edi
mov ecx, esi
call fcn.004240f0
push eax
push ebx
mov ecx, esi
call fcn.004244c0
cmp eax, dword [esp + 0x44]
jg 0x426be5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x426bbf
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x426bf7
cmp edi, ebp
jl 0x426bf1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x426bf7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x426c00
mov ecx, eax
jmp 0x426c09
cmp edi, ebp
jl 0x426c06
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004240e0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00472679
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x42cbc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478a48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42cbf9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42cd0c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42cc0d
mov eax, 0xffffffc7
jmp 0x42cd0e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42cc1e
cmp dword [esi + 8], eax
jne 0x42cc0d
cmp dword [esi + 8], eax
jne 0x42cc37
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42cc37
mov eax, 0xffffffc7
jmp 0x42cd0e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42cc4b
push eax
mov ecx, ebx
call fcn.0042c3f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402640
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42cc7c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402660
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042bb60
test eax, eax
mov dword [esp + 0x38], eax
je 0x42ccaf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x2d1a058
call fcn.00402840
mov eax, dword [esp + 0x38]
jmp 0x42cd0e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042ca20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42ccf3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042ca40
mov esi, eax
test esi, esi
jne 0x42cd23
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042ca20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42ccc5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x2d1a058
call fcn.00402840
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x2d1a058
call fcn.00402840
mov eax, esi
jmp 0x42cd0e
Function at 0x43c5f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47a4f4]
push 0
lea ecx, [esp + 0x20]
call fcn.00472607
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043bf90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00472535
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046ee2a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046ee2a
push 1
push 0
push 0
mov ecx, esi
call fcn.0046edd2
push 1
push 0
push 1
mov ecx, esi
call fcn.0046edd2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472679
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43c770
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00472607
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043bf90
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00472535
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47a4f4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43c834
cmp dword [esp + 0x40], 1
jne 0x43c832
cmp ecx, eax
jge 0x43c834
mov eax, ecx
cmp eax, 0xc8
jge 0x43c840
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c5f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x47a4f0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472679
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43cfc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046d262
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x2d1fdc8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x2d1d808
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x47a0e0]
push eax
mov ecx, edi
call fcn.004728af
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473dcb
test eax, eax
je 0x43d0dc
mov ecx, dword [esp + 0x3c]
call fcn.004728dc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x47a5cc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d0a0
push edi
mov ecx, esi
call fcn.0046ff44
mov ecx, esi
call fcn.0043d240
cmp dword [esp + 0x38], 1
jne 0x43d0d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047007f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x43fb00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fb33
push esi
call fcn.0044de50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fb2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fbb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fba2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fb57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fb9e
cmp eax, 2
je 0x43fba2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fb4a
cmp eax, 3
je 0x43fb7d
cmp eax, 1
jne 0x43fb4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fb4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fb4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fbe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fbc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fbe0
add esp, 4
pop esi
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x60e15b2c
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x542d5c15
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
push eax
pop esi
mov eax, ebx
call fcn.00404da0
test esi, esi
jne 0x403112
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push eax
pop ecx
mov edx, esp
push ebx
pop eax
call fcn.00404e90
jmp 0x403130
call sub.kernel32.dll_GetCommandLineA
push eax
pop edi
mov edx, ebx
mov eax, edi
call fcn.00402fe0
mov edi, eax
test esi, esi
je 0x403130
cmp dword [ebx], 0
je 0x403130
dec esi
jmp 0x403119
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403df8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x403dd8
sub eax, eax
push ebp
push 0x403dd1
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 0x403e14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x490020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
push ebp
pop esp
pop ebp
ret

Function at 0x404c20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x493048], 0
je 0x404c81
cmp word [0x49321c], 0xd7b2
jne 0x404c49
cmp dword [0x493224], 0
jbe 0x404c49
mov eax, 0x493218
call dword [0x493234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49077c
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 0x404ca8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49002c], 0
jne 0x404c9d
push 0
push 0x490774
push 0x49077c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40615c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
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 0x40638c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40638c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
je 0x4061df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406268
xor eax, eax
push ebp
push 0x406261
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f98
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
or eax, eax
je 0x406246
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
je 0x406246
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 0x406268
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 0x406382
cmp byte [ebp - 0xd], 0
jne 0x4062af
cmp byte [ebp - 0x12], 0
je 0x406382
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062c8
dec ebx
cmp byte [ebx], 0x2e
je 0x4062d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406382
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406314
push ebx
pop edx
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
push eax
pop esi
or esi, esi
jne 0x406382
cmp byte [ebp - 0xd], 0
je 0x406382
lea eax, [ebp - 0x11d]
push ebx
pop edx
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 0x406382
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
push eax
pop esi
push esi
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
or esi, esi
je 0x408954
mov edx, dword [esi - 4]
push eax
pop edi
test edx, edx
jle 0x408954
mov ecx, dword [eax]
push edx
pop ebx
test ecx, ecx
je 0x408907
test edx, 3
jne 0x4088f6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408901
jmp 0x408907
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408907
cmp dword [ecx - 8], 1
je 0x408911
mov edx, ebx
or edx, 3
call fcn.004054ec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
push eax
pop ecx
or eax, 0x80808080
push eax
pop edx
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408923
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404da0

Function at 0x408960
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push eax
pop esi
push edx
pop eax
or esi, esi
je 0x4089f0
mov edx, dword [esi - 4]
push eax
pop edi
or edx, edx
jle 0x4089f0
mov ecx, dword [eax]
push edx
pop ebx
test ecx, ecx
je 0x4089a3
test edx, 3
jne 0x408992
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40899d
jmp 0x4089a3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4089a3
cmp dword [ecx - 8], 1
je 0x4089ad
push ebx
pop edx
or edx, 3
call fcn.004054ec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
push eax
pop ecx
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4089bf
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404da0

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

Disassembly:
push ebx
push eax
pop ebx
push ebx
pop eax
call fcn.00405264
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409331
test al, 0x10
je 0x409335
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bde4
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xffffff00
push ebx
push esi
push ecx
pop esi
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be1d
push eax
pop ecx
dec ecx
lea edx, [ebp - 0x100]
push ebx
pop eax
call fcn.00404e90
jmp 0x40be26
mov eax, ebx
mov edx, esi
call fcn.00404df4
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 4

Function at 0x40be30
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
push eax
pop edi
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be52
movzx eax, byte [esp]
jmp 0x40be54
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cdf4
Capabilities:
Get file version info

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xffffffe8
push ebx
sub edx, edx
mov dword [ebp - 4], edx
push eax
pop ebx
xor eax, eax
push ebp
push 0x40ceca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e38
lea eax, [ebp - 4]
call fcn.004052b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
or ebx, ebx
je 0x40ceb4
mov eax, ebx
call fcn.00402ce4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cead
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 - 4]
call fcn.00405264
push eax
call sub.version.dll_GetFileVersionInfoA
or eax, eax
je 0x40ce97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cedc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
or eax, eax
je 0x40ce97
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ceb4
mov eax, dword [ebp - 0x10]
call fcn.00402d00
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ced1
lea eax, [ebp - 4]
call fcn.00404da0
ret

Function at 0x41c5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, 0x496300
cmp dword [edi], 0
jne 0x41c65c
push pe_nt_image_headers32
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4962fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x490af8
nop
push 2
nop
pop ecx
call fcn.00402ee0
mov edx, 0x41c5b8
lea eax, [esi + 5]
call fcn.0041c5d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
push ebx
pop eax
call fcn.0041c5d8
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 0x41c631
mov dword [0x4962fc], 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 0x41ecdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
push edx
pop esi
push eax
pop ebx
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405264
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41ed34
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x492d14]
mov dl, 1
mov eax, dword [0x41e800]
call fcn.0040c6a4
call fcn.004047cc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e908
mov edx, dword [ebp + 8]
mov byte [edx], al
push ebx
pop eax
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 8

Function at 0x41fec4
Capabilities:
Encode data using xor

Disassembly:
push edx
pop ecx
push eax
pop edx
sub eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41feca
ret