joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e6c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 4]
mov edx, dword [ebp + 0x14]
push edx
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x42e6fb
mov eax, dword [ebp + 0x18]
jmp 0x42e724
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [ebp + 0x14]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x445650
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0xca
jne 0x445683
push ebx
call fcn.0044180a
pop ecx
cmp dword [ebx + 0x40], 0
je 0x44567c
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
pop ebp
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4456f8
mov edx, dword [ebx + 0x1b0]
cmp dword [edx + 0x10], 0
je 0x4456ea
cmp dword [ebx + 8], 0
je 0x4456a5
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
push ebx
mov eax, dword [ebx + 0x1b0]
call dword [eax]
pop ecx
test eax, eax
jne 0x4456b8
xor eax, eax
pop ebx
pop ebp
ret
cmp eax, 2
je 0x4456ea
cmp dword [ebx + 8], 0
je 0x445698
cmp eax, 3
je 0x4456cb
dec eax
jne 0x445698
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x445698
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x13c]
add dword [edx + 8], ecx
jmp 0x445698
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x98], eax
jmp 0x445718
cmp dword [ebx + 0x14], 0xcc
je 0x445718
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x14
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x18], eax
push ebx
mov edx, dword [ebx]
call dword [edx]
pop ecx
push ebx
call fcn.00445722
pop ecx
pop ebx
pop ebp
ret
Function at 0x445722
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0xcc
je 0x4457c8
push ebx
mov eax, dword [ebx + 0x1a0]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x14], 0xcc
jmp 0x4457c8
cmp dword [ebx + 8], 0
je 0x445776
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x74]
mov dword [edx + 8], ecx
push ebx
mov eax, dword [ebx + 8]
call dword [eax]
pop ecx
mov esi, dword [ebx + 0x8c]
push 0
lea eax, [ebx + 0x8c]
push eax
push 0
push ebx
mov edx, dword [ebx + 0x1a4]
call dword [edx + 4]
add esp, 0x10
cmp esi, dword [ebx + 0x8c]
jne 0x4457a0
xor eax, eax
jmp 0x4457e8
mov edx, dword [ebx + 0x8c]
cmp edx, dword [ebx + 0x74]
jb 0x445754
push ebx
mov ecx, dword [ebx + 0x1a0]
call dword [ecx + 4]
pop ecx
push ebx
mov eax, dword [ebx + 0x1a0]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x8c], edx
mov ecx, dword [ebx + 0x1a0]
cmp dword [ecx + 8], 0
jne 0x4457a0
mov eax, 0xce
cmp dword [ebx + 0x44], 0
jne 0x4457e0
dec eax
mov dword [ebx + 0x14], eax
mov eax, 1
pop esi
pop ebx
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4f42f10
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0xf5e4a0e
nop
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429660
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x43a02c
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00417c40
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x439a14
push eax
call fcn.00417c40
mov esi, dword [0x43a03c]
xor ebx, ebx
mov edi, dword [0x43a040]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x43b230], bl
mov eax, ebx
mov ecx, 0x43a02c
cmovae ecx, dword [0x43a02c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x43b338], al
inc ebx
cmp ebx, 0x100
jl 0x4031f0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x43b230]
movzx eax, byte [esi + 0x43b338]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x403244
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x43b230]
mov byte [esi + 0x43b230], al
inc esi
mov byte [edi + 0x43b230], dl
cmp esi, 0x100
jl 0x403220
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00402ed0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403299
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40328f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032ef
push edx
push ecx
call fcn.004192bf
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4032db
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4032d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032ef
push edx
push ecx
call fcn.004192bf
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041d91c
int3
Function at 0x404bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x42f0d0]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404dcd
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404dcd
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0041a310
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x42f07c]
test eax, eax
je 0x404dcd
push 4
push 0x1000
push 4
push 0
call dword [0x42f0bc]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x42f060]
test eax, eax
je 0x404dcd
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x434ed4
push dword [ebp - 0x160]
call dword [0x42f074]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x404ccc
push 0x434ed8
push 0x434ef0
call dword [0x42f0a4]
push eax
call dword [0x42f064]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x42f068]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404dcd
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
xor eax, eax
mov dword [ebp - 0x164], 0
cmp ax, word [edi + 6]
jae 0x404d66
xor ebx, ebx
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jl 0x404d18
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x42f084]
push dword [ebp - 0x15c]
call dword [0x42f0a8]
push 0x8000
push 0
push esi
call dword [0x42f0c4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418e32
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42f0c4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418e32
mov esp, ebp
pop ebp
ret
Function at 0x409200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push fcn.00429fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43a194
lea ecx, [ebp - 0x40]
call fcn.00417780
mov dword [ebp - 4], 0
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
xor esi, esi
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], esi
jbe 0x4092b2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, ebx
movsx ax, byte [eax + esi]
movzx edi, ax
cmp edx, ecx
jae 0x409293
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], di
mov word [eax + edx*2 + 2], cx
jmp 0x4092a4
push edi
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004186c0
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x4092b2
mov edx, dword [ebp - 0x18]
jmp 0x409260
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [0x42f0b8]
call dword [0x42f044]
cmp eax, 0xb7
je 0x40936d
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40930e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409374
push edx
push ecx
call fcn.004192bf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 0x10
jb 0x409351
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x409347
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409374
push ecx
push ebx
call fcn.004192bf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418e32
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041c6df
call fcn.0041d91c
int3
Function at 0x4bbea9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33e0
cmp edx, dword [eax]
je 0x4bbecb
add eax, 8
inc ecx
cmp eax, 0x4c3470
jl 0x4bbebc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33e0]
jne 0x4bbff9
mov eax, dword [0x4c8e10]
cmp eax, 1
je 0x4bbfd3
test eax, eax
jne 0x4bbefc
cmp dword [0x4c330c], 1
je 0x4bbfd3
cmp edx, 0xfc
je 0x4bbff9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbf33
lea eax, [ebp - 0x1a4]
push 0x4c1690
push eax
call fcn.004bc890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcd20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbf76
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcd20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c168c
push edi
call fcn.004bebf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1670
push eax
call fcn.004bc890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc8a0
lea eax, [ebp - 0xa0]
push 0x4c166c
push eax
call fcn.004bc8a0
push dword [esi + 0x4c33e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc8a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1644
push eax
call fcn.004beb64
add esp, 0x2c
pop edi
jmp 0x4bbff9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33e4]
push 0
push eax
push dword [esi]
call fcn.004bcd20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4029f4
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.004040c0
test esi, esi
jne 0x402a2a
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.004041b0
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47b008], 0x8088405
inc edx
mov dword [ebx + 0x47b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4031e8
Capabilities:
Query or enumerate registry value

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

Function at 0x403f44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f048], 0
je 0x403fa5
cmp word [0x47f21c], 0xd7b2
jne 0x403f6d
cmp dword [0x47f224], 0
jbe 0x403f6d
mov eax, 0x47f218
call dword [0x47f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b070
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 0x403fcc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47b034], 0
jne 0x403fc1
push 0
push 0x47b068
push 0x47b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ca8
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 0x405d0e
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.00404330
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d15
lea eax, [ebp - 0x10]
call fcn.004040c0
ret

Function at 0x40af3c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40af75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041b0
jmp 0x40af7e
mov eax, ebx
mov edx, esi
call fcn.00404114
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf6c
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 0x40c042
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404158
lea eax, [ebp - 8]
call fcn.004045d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404580
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c02c
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c025
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.00404580
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c00f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c054
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c00f
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 0x40c02c
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c049
lea eax, [ebp - 8]
call fcn.004040c0
ret
Function at 0x40c554
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 0x40c5b8
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.00404330
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408200
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5bf
lea eax, [ebp - 0xc]
call fcn.004040c0
ret

Function at 0x41a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47f884
cmp dword [edi], 0
jne 0x41a8dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47f880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47b3f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a838
lea eax, [esi + 5]
call fcn.0041a858
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a858
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 0x41a8b1
mov dword [0x47f880], 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 0x41be60
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 0x41be66
ret

Function at 0x41e2fc
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 0x41e34d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e334
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e324
jmp 0x41e34d
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 0x41e335
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4271e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404570
xor eax, eax
push ebp
push 0x42730e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4272e1
xor eax, eax
push ebp
push 0x4272da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404380
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4272af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42729e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404380
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404580
mov edx, ebx
pop ecx
call fcn.004028c8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4272a5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47dfc0]
mov dl, 1
mov eax, dword [0x407084]
call fcn.0040b7d8
call fcn.00403afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427315
lea eax, [ebp - 4]
call fcn.004040c0
ret