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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a2cb0
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004b8616
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ba120
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ba27c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c7080
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x517808]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004b9c73
mov ecx, dword [esi*4 + 0x517808]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4ba275
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ba275
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba275
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b9c73
add esp, 0x14
test edx, edx
jl 0x4ba275
jg 0x4ba1eb
test eax, eax
jb 0x4ba275
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ba275
jl 0x4ba205
cmp dword [ebp - 0x1008], eax
ja 0x4ba275
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ba223
test ebx, ebx
je 0x4ba25c
cmp ecx, edi
jae 0x4ba25c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ba23d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ba249
cmp byte [ecx + 1], 0xa
jne 0x4ba249
inc ecx
jmp 0x4ba249
movzx eax, al
movsx eax, byte [eax + 0x515a08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ba223
cmp edx, ebx
jne 0x4ba223
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ba27a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a1bc0
leave
ret

Function at 0x4ba679
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba31b

Function at 0x4ba684
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba4aa

Function at 0x4baf54
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9510
push 0x4e9508
push str.FlsAlloc
push 0x1e
call fcn.004badc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4baf88
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e2514]
call esi
jmp 0x4baf8e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4bafd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9520
push 0x4e9518
push str.FlsGetValue
push 0x20
call fcn.004badc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bb00b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e2514]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4bddf4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4bde3f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004bdf93
test al, al
jne 0x4bde39
sub edx, 2
cmp edx, edi
jne 0x4bde1f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bde61
lea eax, [edi + 2]
cmp edx, eax
je 0x4bde61
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bdd40
add esp, 0x10
jmp 0x4bdf5b
push esi
lea ecx, [ebp - 0x255]
call fcn.004bdf93
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bdea4
push dword [ebp - 0x25c]
jmp 0x4bde51
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4bdee1
cmp word [ebp - 0x226], 0
je 0x4bdf02
cmp word [ebp - 0x226], ax
jne 0x4bdee1
cmp word [ebp - 0x224], 0
je 0x4bdf02
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bdd40
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4bdf4e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bdebb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4bdf36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4bdf5b
push 0x4bdb70
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c4fb0
add esp, 0x10
jmp 0x4bdf2b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1bc0
leave
ret

Function at 0x4be890
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4be8a1
pop esi
ret
push ebx
push edi
push esi
call fcn.004be859
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b76b4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4be8c9
push ebx
push esi
push edi
call fcn.004a3620
add esp, 0xc
push 0
call fcn.004b767a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4bec8d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004be8de

Function at 0x4c3300
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x517808]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c3340
cmp byte [ebx], 0xa
jne 0x4c3340
or byte [eax + edi + 0x28], 4
jmp 0x4c3345
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c3443
mov al, byte [edx]
cmp al, 0x1a
je 0x4c3425
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c3374
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c3399
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c33a3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4c3356
jmp 0x4c3443
push 0
lea eax, [ebp - 0xc]
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 0x4c3420
cmp dword [ebp - 0xc], 0
je 0x4c3420
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x517808]
test byte [eax + edi + 0x28], 0x48
je 0x4c33fa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c33e5
mov byte [esi], dl
jmp 0x4c33f6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x517808]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c3443
cmp byte [ebp - 1], 0xa
jne 0x4c3409
cmp esi, ebx
jne 0x4c3409
mov byte [esi], 0xa
jmp 0x4c3442
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b9c91
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c3443
mov byte [esi], 0xd
jmp 0x4c3442
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x517808]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c343f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c3443
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c344c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x517808]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c348f
cmp word [esi], dx
jne 0x4c348f
or byte [edi + eax + 0x28], 4
jmp 0x4c3494
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4c35e7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4c35c7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4c34d6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c350c
cmp eax, edx
jae 0x4c3518
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4c34ae
jmp 0x4c35e7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c35c3
cmp dword [ebp - 0x14], 0
je 0x4c35c3
mov eax, dword [ebx*4 + 0x517808]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4c359b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4c3564
mov word [esi], cx
jmp 0x4c3597
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x517808]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x517808]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x517808]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4c35e7
pop ebx
cmp word [ebp - 4], bx
jne 0x4c35ac
cmp esi, dword [ebp + 0xc]
jne 0x4c35ac
mov word [esi], bx
jmp 0x4c35e4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b9c91
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4c35e7
push 0xd
jmp 0x4c35e0
mov ecx, dword [ebx*4 + 0x517808]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c35de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c35e7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c5d45
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]
push dword [ebp + 0xc]
push ebx
call fcn.004c5cc1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c5ebd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c5ebd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c5e6c
jg 0x4c5d9e
test eax, eax
je 0x4c5e62
push 1
push 0x1000
call fcn.004b8d16
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c5dc4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4c5e59
push 0x8000
push ebx
call fcn.004b56d4
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c5df0
jg 0x4c5deb
cmp ecx, 0x1000
jb 0x4c5df0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b984a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c5e35
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 0x4c5deb
jl 0x4c5e1c
test ecx, ecx
jne 0x4c5ddd
push dword [ebp - 0xc]
push ebx
call fcn.004b56d4
push esi
call fcn.004b767a
add esp, 0xc
xor edi, edi
jmp 0x4c5ece
cmp byte [edi + 0x24], 0
je 0x4c5e4c
cmp dword [edi + 0x20], 5
jne 0x4c5e4c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c5e57
mov edi, dword [edi + 0x18]
jmp 0x4c5e59
xor edi, edi
push esi
call fcn.004b767a
pop ecx
jmp 0x4c5ece
test ecx, ecx
jg 0x4c5e2e
jl 0x4c5e6c
test eax, eax
jae 0x4c5e2e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b9c91
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c5e8f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c5e2e
jmp 0x4c5ec6
push ebx
call fcn.004bf12d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c5e2e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4c5ece
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c5ecb
mov edi, dword [edi + 0x18]
jmp 0x4c5ece
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b9c91
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c6f60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c6f8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c6f8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403558
Capabilities:
Query or enumerate registry value

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

Function at 0x4042d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x404331
cmp word [0x46a220], 0xd7b2
jne 0x4042f9
cmp dword [0x46a228], 0
jbe 0x4042f9
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x468054
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 0x404358
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46801c], 0
jne 0x40434d
push 0
push 0x468074
push 0x468054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4097e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409821
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040453c
jmp 0x40982a
mov eax, ebx
mov edx, esi
call fcn.004044a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409edc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409d54
mov eax, dword [0x4697ec]
cmp byte [eax], 0
je 0x409f44
mov eax, dword [0x469628]
call fcn.00402c78
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a20
push eax
lea eax, [esp + 0x50]
push eax
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 0x409f8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409f7a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4695e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a718]
call fcn.00405b70
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40aab8
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 0x40ab1c
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.004046b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab23
lea eax, [ebp - 0xc]
call fcn.0040444c
ret
Function at 0x41c78c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46aa24
cmp dword [edi], 0
jne 0x41c808
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46aa20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4684cc
mov ecx, 2
call fcn.004028d0
mov edx, 0x41c764
lea eax, [esi + 5]
call fcn.0041c784
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c784
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 0x41c7dd
mov dword [0x46aa20], 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 0x41dc9c
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 0x41dca2
ret

Function at 0x420130
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 0x420181
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420168
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420158
jmp 0x420181
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 0x420169
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bebc
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42be08
call sub.user32.dll_EnumWindows
ret

Function at 0x42bfe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42c05d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042ba2c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42c005
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042b684
cmp dword [ebp - 4], 0
je 0x42c047
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004048fc
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c064
lea eax, [ebp - 4]
call fcn.0040444c
ret

Function at 0x42ed50
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 - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x46abac], 0
je 0x42ee9f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46978c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42ee9f
mov eax, dword [0x46abb0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46abac]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42ee6e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46abac]
call fcn.00413e08
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ee66
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42ee66
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42ee66
mov eax, dword [ebp - 0x14]
call fcn.004377e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ee66
push ebp
call fcn.0042ed0c
pop ecx
test al, al
jne 0x42ee66
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ee22
mov eax, dword [ebp - 0x14]
call fcn.00436374
dec eax
jle 0x42ee66
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004038dc
cmp byte [ebp - 1], 0
je 0x42ee66
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ee66
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46abb0]
call fcn.0042e4d4
inc edi
dec ebx
jne 0x42edb5
mov eax, dword [0x46abb0]
cmp dword [eax + 8], 0
jle 0x42ee86
mov eax, dword [0x46abb0]
call fcn.0042e564
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ee9f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042eb74
pop ecx
test al, al
jne 0x42ee9f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret