joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064211
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100b6500]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10064251
cmp byte [ebx], 0xa
jne 0x10064251
or byte [edi + eax + 0x28], 4
jmp 0x10064256
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10064355
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10064338
inc eax
cmp dl, 0xd
je 0x10064282
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100642a8
cmp eax, ecx
jae 0x100642b6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1006426a
jmp 0x10064355
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10064333
cmp dword [ebp - 0x10], 0
je 0x10064333
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b6500]
test byte [eax + edi + 0x28], 0x48
je 0x1006430d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100642f8
mov byte [esi], dl
jmp 0x10064309
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b6500]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10064355
cmp byte [ebp - 1], 0xa
jne 0x1006431c
cmp esi, ebx
jne 0x1006431c
mov byte [esi], 0xa
jmp 0x10064354
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100641b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10064355
mov byte [esi], 0xd
jmp 0x10064354
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b6500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10064352
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10064355
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006435e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100b6500]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100643a4
cmp word [ebx], dx
jne 0x100643a4
or byte [eax + edi + 0x28], 4
jmp 0x100643a9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006450c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100644ec
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100643ea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10064420
cmp eax, edx
jae 0x1006442e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100643c5
jmp 0x1006450c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100644e7
cmp dword [ebp - 0x18], 0
je 0x100644e7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b6500]
test byte [eax + edi + 0x28], 0x48
je 0x100644bd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10064481
mov word [esi], cx
jmp 0x100644b8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b6500]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100b6500]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b6500]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006450c
pop eax
cmp word [ebp - 4], ax
jne 0x100644cd
cmp esi, ebx
jne 0x100644cd
mov word [esi], ax
jmp 0x10064509
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100641b3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006450c
push 0xd
pop eax
jmp 0x100644c8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b6500]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10064506
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006450c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100684bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1006855a
push ebx
push esi
call fcn.10068486
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1006841a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10068507
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10068559
push edi
push eax
call fcn.10063408
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10068527
call fcn.10062afc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10068558
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1006841a
add esp, 0x20
test eax, eax
jne 0x10068546
push edi
call fcn.10062afc
jmp 0x1006854e
push ebx
call fcn.10062afc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1006c721
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006c69d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006c890
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006c890
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006c845
jg 0x1006c77d
test eax, eax
je 0x1006c83b
push 1
push 0x1000
call fcn.10062a9f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006c7a0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006c832
push 0x8000
push ebx
call fcn.1006c5ce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006c7c9
jg 0x1006c7c4
cmp ecx, 0x1000
jb 0x1006c7c9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10065685
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006c80e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006c7c4
jl 0x1006c7f5
test ecx, ecx
jne 0x1006c7b6
push dword [ebp - 0xc]
push ebx
call fcn.1006c5ce
push esi
call fcn.10062afc
add esp, 0xc
xor ebx, ebx
jmp 0x1006c89e
cmp byte [edi + 0x24], 0
je 0x1006c825
cmp dword [edi + 0x20], 5
jne 0x1006c825
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006c830
mov ebx, dword [edi + 0x18]
jmp 0x1006c832
xor ebx, ebx
push esi
call fcn.10062afc
pop ecx
jmp 0x1006c89e
test ecx, ecx
jg 0x1006c807
jl 0x1006c845
test eax, eax
jae 0x1006c807
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100641b3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006c865
cmp byte [edi + 0x1c], 0
je 0x1006c807
jmp 0x1006c896
push ebx
call fcn.10069ab5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006c807
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006c89e
cmp byte [edi + 0x1c], 0
je 0x1006c89b
mov ebx, dword [edi + 0x18]
jmp 0x1006c89e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100641b3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006eb70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006eb9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006eb9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x4218d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x4218f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4218f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4218e8
mov eax, 1
add ebx, ebx
jne 0x42190b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421900
jne 0x42191c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421900
xor ecx, ecx
sub eax, 3
jb 0x421930
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4219a2
mov ebp, eax
add ebx, ebx
jne 0x42193b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42196c
inc ecx
add ebx, ebx
jne 0x421958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42194d
jne 0x421969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42194d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42198c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42197d
jmp 0x4218ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42198c
add edi, ecx
jmp 0x4218ee
pop esi
mov edi, esi
mov ecx, 0x7b7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4219aa
cmp byte [edi], 5
jne 0x4219aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4219af
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421a27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22b20]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22bc0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4219dc
mov ecx, edi
jns 0x421a0b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22bc4]
or eax, eax
je 0x421a21
mov dword [ebx], eax
add ebx, 4
jmp 0x4219f9
call dword [esi + 0x22bc8]
popal
jmp section.UPX0

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754
Function at 0x40288c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028bb
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_2
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b78
jmp 0x4028d9
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402814
mov edi, eax
test ebx, ebx
je 0x4028d9
cmp dword [esi], 0
je 0x4028d9
dec ebx
jmp 0x4028c2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x458040], 0x8088405
inc edx
mov dword [0x458040], edx
mul edx
mov eax, edx
ret

Function at 0x402cec
Capabilities:
Query or enumerate registry value

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

Function at 0x403a48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026b0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x458045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403a10
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404ed0
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_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405088
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404f31
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4050a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f9e
xor eax, eax
push ebp
push 0x404f97
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404f80
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f9e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA_1
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 0x40507f
cmp byte [ebp - 0xd], 0
jne 0x404fe0
cmp byte [ebp - 0x12], 0
je 0x40507f
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ff9
dec ebx
cmp byte [ebx], 0x2e
je 0x405008
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ff8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40507f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405035
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40507f
cmp byte [ebp - 0xd], 0
je 0x40507f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40507f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
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 0x4055dc
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405638
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_ReadFile_1
dec eax
pop eax
pop ecx
jne 0x40562a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40561f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40561a
mov eax, 0x64
jmp 0x40562f
call sub.KERNEL32.DLL_GetLastError_1
call fcn.004027a0
xor eax, eax
jmp 0x40561a
mov eax, 0x67
jmp 0x40562f

Function at 0x405640
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40569b
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_WriteFile_1
dec eax
pop eax
pop ecx
jne 0x40568d
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405682
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40567d
mov eax, 0x65
jmp 0x405692
call sub.KERNEL32.DLL_GetLastError_1
call fcn.004027a0
xor eax, eax
jmp 0x40567d
mov eax, 0x67
jmp 0x405692

Function at 0x4056e0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405723
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x40571a
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.KERNEL32.DLL_SetFilePointer_1
cmp eax, 0xffffffff
je 0x40571a
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.004027b0
mov al, 1
jmp 0x405718
mov eax, 0x67
call fcn.004027a0
mov al, 0xff
jmp 0x405718

Function at 0x4057ac
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4057dc
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x4057d2
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027b0
or eax, 0xffffffff
jmp 0x4057d0
mov eax, 0x67
call fcn.004027a0
or eax, 0xffffffff
jmp 0x4057d0

Function at 0x40a84c
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 0x40a885
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b78
jmp 0x40a88e
mov eax, ebx
mov edx, esi
call fcn.00403b2c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a898
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 0x40a8b9
mov al, byte [esp]
jmp 0x40a8bb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x415ecc
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 0x415ed2
ret

Function at 0x4182f0
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 0x418341
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x418328
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x418318
jmp 0x418341
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 0x418329
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x45875c], 0
sete dl
or al, dl
jne 0x4212c4
mov eax, dword [0x458760]
mov bx, 0xffff
call fcn.00403048
mov eax, dword [0x45875c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x421293
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x45875c]
call fcn.0040f43c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x42128b
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x42128b
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42128b
mov eax, dword [ebp - 0x10]
call fcn.00429084
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42128b
push ebp
call fcn.0042113c
pop ecx
test al, al
jne 0x42128b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x421247
mov eax, dword [ebp - 0x10]
call fcn.004279cc
dec eax
jle 0x42128b
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00403048
cmp byte [ebp - 0x15], 0
je 0x42128b
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42128b
mov edx, dword [ebp - 0x10]
mov eax, dword [0x458760]
call fcn.004209ec
inc edi
dec esi
jne 0x4211da
mov eax, dword [0x458760]
cmp dword [eax + 8], 0
jle 0x4212ab
mov eax, dword [0x458760]
call fcn.00420a7c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4212c4
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00420ff4
pop ecx
test al, al
jne 0x4212c4
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret