joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1031e4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x58]
xor eax, eax
cmp byte [esp + 0x30], al
push ebp
push esi
setne al
mov byte [esp + 0xf], 0
push edi
dec eax
mov dword [esp + 0x14], eax
nop
push ebx
push eax
push dword [esp + 0x58]
call fcn.1031f230
add esp, 0xc
mov esi, eax
cmp dword [ebx], 0
jg 0x1031e560
test esi, esi
je 0x1031e560
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push ebx
push eax
push dword [esp + 0x54]
mov ecx, dword [ecx]
push esi
call ecx
mov edi, dword [esp + 0x78]
add esp, 0x10
test eax, eax
je 0x1031e564
push edi
push ebx
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x70]
push dword [esp + 0x70]
push eax
call fcn.1031e460
add esp, 0x1c
mov ecx, eax
cmp dword [edi], 0
jg 0x1031e6a5
test ecx, ecx
je 0x1031e564
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x18], eax
mov eax, ecx
pop ebx
add esp, 0x28
ret
mov edi, dword [esp + 0x68]
cmp dword [ebx], 7
je 0x1031e69f
cmp byte [esp + 0x3c], 0
je 0x1031e6a5
test esi, esi
je 0x1031e586
mov eax, dword [esp + 0x14]
inc eax
jmp 0x1031e4ea
cmp byte [esp + 0x13], 0
jne 0x1031e6a5
mov eax, dword [0x1044a5a0]
test eax, eax
jne 0x1031e5ef
push ebx
push 0xffffffffffffffff
push str.icudt65l
call fcn.1031f230
mov esi, eax
lea eax, [esp + 0x28]
push eax
call fcn.1034e440
add esp, 0x10
test esi, esi
je 0x1031e5e5
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.1034e4d0
push ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], 0
push 0
push eax
mov dword [esp + 0x40], 0
call fcn.1031f460
add esp, 0x14
mov dword [0x1044a5a0], 1
push ebx
mov byte [esp + 0x68], 0
xor esi, esi
call fcn.1031f730
mov ecx, dword [ebx]
add esp, 4
mov ebp, eax
test ecx, ecx
jg 0x1031e645
push 0x5c
push str.icudt65l
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
mov edi, str.icudt65l
test eax, eax
je 0x1031e622
lea edi, [eax + 1]
push 0
call fcn.1034ef90
push edi
push ebp
call fcn.1035c500
push 0
mov edi, eax
call fcn.1034f040
add esp, 0x10
test edi, edi
je 0x1031e643
mov esi, dword [edi + 4]
mov ecx, dword [ebx]
test ecx, ecx
jg 0x1031e6a5
test esi, esi
je 0x1031e6a5
push 0
call fcn.1034ef90
add esp, 4
mov ecx, 0x1044a5a4
nop dword [eax]
mov eax, dword [ecx]
test eax, eax
je 0x1031e66e
mov eax, dword [eax + 4]
cmp eax, dword [esi + 4]
je 0x1031e67b
add ecx, 4
cmp ecx, 0x1044a5cc
jl 0x1031e660
jmp 0x1031e680
mov byte [esp + 0x64], 1
push 0
call fcn.1034f040
add esp, 4
cmp byte [esp + 0x64], 0
je 0x1031e6a5
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13], 1
jmp 0x1031e4f0
mov dword [edi], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x1031f7d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1031f809
cmp dword [eax], 0
jg 0x1031f809
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1031f803
cmp byte [ecx], 0
je 0x1031f803
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1031f803
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
jmp fcn.1031e850
mov dword [eax], 1
xor eax, eax
ret

Function at 0x10327eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 8], 0
mov word [ebx + 0xc], 0
mov dword [ebx + 0x10], 0xffffffff
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x34], 0
mov word [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0xffffffff
mov byte [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x58], eax
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x5c], ecx
add ecx, 0x84
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], 0
call fcn.10328090
mov edi, 0x103b96e0
mov ecx, edi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x10], 0xc
cmovae edi, dword [ecx + 0xc]
mov ecx, edi
mov dword [ebx + 0x68], edi
call fcn.1032d790
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x78], eax
mov eax, 0x100
mov dword [ebx + 0x74], 1
mov dword [ebx + 0x7c], 0xffffffff
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 6
mov dword [ebx + 0x88], 0
movzx ecx, byte [edi + 4]
imul ecx, eax
movzx eax, byte [edi + 5]
mov word [ebx + 0x8d], 0x101
mov byte [ebx + 0x8f], 0
mov dword [ebx + 0x90], 1
add cx, ax
mov ecx, ebx
setne al
mov byte [ebx + 0x8c], al
call fcn.1032e130
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x1033b170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov ecx, dword [esi + 0x10]
add ecx, 0x9c
call fcn.1033a480
push eax
push dword [esp + 0x84]
mov ebx, 0x103b96e0
lea ecx, [esp + 0x3c]
cmp dword [eax + 0x10], 8
mov ebp, ebx
push esi
push dword [esp + 0x84]
cmovae ebp, dword [eax + 0xc]
call fcn.10339110
mov edi, dword [esi + 0x10]
lea ecx, [esp + 0x7c]
mov esi, dword [edi + 0xa0]
add edi, 0xa0
mov dword [esp + 0x7c], 0
mov eax, 1
xchg dword [ecx], eax
test esi, esi
jne 0x1033b29c
nop dword [eax + eax]
mov esi, dword [edi - 0x70]
test esi, esi
je 0x1033b295
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.102e5530
push 0x616e6b72
push esi
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], 1
call fcn.102e5560
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.10338b30
mov esi, eax
test esi, esi
jne 0x1033b254
call fcn.102e19c0
mov esi, eax
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x1033b29c
test esi, esi
je 0x1033b276
call fcn.102e19c0
cmp esi, eax
je 0x1033b276
push esi
call fcn.102e1910
add esp, 4
mov esi, dword [edi]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0
mov eax, 1
xchg dword [ecx], eax
test esi, esi
je 0x1033b1e0
jmp 0x1033b29c
call fcn.102e19c0
mov esi, eax
cmp dword [esi + 0x10], 0xc
lea eax, [esp + 0x34]
push eax
cmovae ebx, dword [esi + 0xc]
mov ecx, ebp
mov dword [esp + 0x6c], ebx
call fcn.103395b0
push dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
push dword [esp + 0x50]
push eax
push str.end___p.._p___u_edit_requests
push 0xffffffffffffffff
push 0
push 1
push 0
push eax
push str.SANITIZE
call sym.skottie.dll_public:_void___thiscall_SkNVRefCnt_class_skottie::Animation_::destructor_void_
push dword [esp + 0x84]
call fcn.102e1910
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x1033d680
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0x48]
cmp eax, dword [ebx + 0x4c]
jne 0x1033d69e
cmp byte [edi + 8], 0
je 0x1033d816
mov eax, dword [edi + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [edi + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
movzx ecx, byte [ebp + 4]
shl ecx, 8
mov edx, dword [eax + edx*4]
movzx eax, byte [ebp + 5]
add edx, ecx
add edx, eax
mov ebp, 0x103b96e0
add edx, edx
sub edx, esi
add edx, dword [edi + 0x10]
shr edx, 1
lea eax, [esi + edx*2]
cmp eax, esi
cmovae ebp, eax
mov eax, dword [edi + 4]
add eax, 0x10
mov ecx, ebp
push eax
call fcn.102e42b0
mov esi, 0x100
test al, al
je 0x1033d755
mov al, byte [ebp]
mov dl, byte [ebp + 1]
movzx ecx, al
imul ecx, esi
mov byte [esp + 0x18], al
movzx eax, dl
mov byte [esp + 0x13], dl
add cx, ax
je 0x1033d755
mov edx, dword [ebx + 0x48]
mov ecx, dword [edi + 0xc]
inc edx
cmp edx, dword [ebx + 0x4c]
cmova edx, dword [ebx + 0x4c]
mov eax, edx
sub eax, ecx
cmp eax, 2
jb 0x1033d736
push edx
push ecx
mov ecx, ebx
call fcn.102e7e10
mov ecx, dword [edi + 0xc]
mov al, byte [ebp]
mov ah, byte [ebp + 1]
jmp 0x1033d73e
mov al, byte [esp + 0x18]
mov ah, byte [esp + 0x13]
movzx edx, al
lea ecx, [ecx + ecx*4]
movzx eax, ah
shl edx, 8
add edx, eax
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], edx
mov byte [edi], 1
mov eax, dword [ebx + 0x4c]
mov ebp, dword [ebx + 0x48]
dec eax
mov ecx, dword [esp + 0x1c]
cmp ebp, eax
mov esi, dword [edi + 0x14]
cmova ebp, eax
mov eax, dword [ebx + 0x58]
movzx ecx, byte [ecx + 6]
shl ecx, 8
lea edx, [ebp*4]
add edx, ebp
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x1c]
add edx, ecx
movzx eax, byte [eax + 7]
add edx, eax
add edx, edx
sub edx, esi
add edx, dword [edi + 0x10]
shr edx, 1
lea eax, [esi + edx*2]
cmp eax, esi
mov esi, 0x103b96e0
cmovae esi, eax
mov eax, dword [edi + 4]
add eax, 0x10
mov ecx, esi
push eax
call fcn.102e42b0
test al, al
je 0x1033d7ef
mov dl, byte [esi + 1]
mov dh, byte [esi]
mov esi, 0x100
movzx ecx, dh
imul ecx, esi
movzx eax, dl
mov byte [esp + 0x18], dl
add cx, ax
je 0x1033d7f4
movzx eax, byte [esp + 0x18]
lea ecx, [ebp*4]
movzx edx, dh
shl edx, 8
add edx, eax
mov eax, dword [ebx + 0x58]
add ecx, ebp
mov dword [eax + ecx*4], edx
mov byte [edi], 1
jmp 0x1033d7f4
mov esi, 0x100
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + 2]
movsx eax, si
movsx ecx, cx
imul ecx, eax
pop esi
pop ebp
test cx, cx
jns 0x1033d816
mov byte [edi + 8], 1
mov eax, dword [ebx + 0x48]
mov dword [edi + 0xc], eax
pop edi
pop ebx
pop ecx
ret 8
Function at 0x1035b9d0
Capabilities:
Query environment variable

Disassembly:
push 0x1035ba40
push 0x15
call fcn.10355970
push 0x38
call fcn.10318800
add esp, 0xc
test eax, eax
je 0x1035ba06
lea ecx, [eax + 9]
mov dword [eax + 4], 0x28
mov dword [eax], ecx
mov byte [eax + 8], 0
mov dword [eax + 0x34], 0
mov byte [ecx], 0
jmp 0x1035ba08
xor eax, eax
mov dword [0x1044a784], eax
test eax, eax
jne 0x1035ba1c
mov eax, dword [esp + 4]
mov dword [eax], 7
ret
push str.ICU_TIMEZONE_FILES_DIR
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push dword [esp + 8]
test eax, eax
mov ecx, 0x10388ddd
cmovne ecx, eax
push ecx
call fcn.1035bae0
add esp, 0xc
ret

Function at 0x1035bb50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1044a770]
cmp eax, 2
je 0x1035bc34
push 0x1044a770
call fcn.1034ee50
add esp, 4
test al, al
je 0x1035bc34
cmp dword [0x1044a778], 0
jne 0x1035bc27
push esi
push edi
push str.ICU_DATA
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
je 0x1035bbf4
cmp byte [esi], 0
je 0x1035bbf4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1035bba0
sub ecx, edx
lea eax, [ecx + 2]
push eax
call fcn.10317c60
mov edi, eax
add esp, 4
test edi, edi
je 0x1035bc25
mov ecx, edi
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1035bbc0
push 0x2f
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x1035bbf9
nop dword [eax]
push 0x2f
push edi
mov byte [eax], 0x5c
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x1035bbe0
jmp 0x1035bbf9
mov edi, 0x10388ddd
mov eax, dword [0x1044a778]
test eax, eax
je 0x1035bc10
cmp byte [eax], 0
je 0x1035bc10
push eax
call fcn.10317c30
add esp, 4
push 0x1035ba40
push 0x15
mov dword [0x1044a778], edi
call fcn.10355970
add esp, 8
pop edi
pop esi
push 0x1044a770
call fcn.1034edf0
add esp, 4
mov eax, dword [0x1044a778]
ret
Function at 0x1035bd30
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x60
mov eax, dword [0x10444724]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [0x1044a788]
mov dword [esp], 0
test eax, eax
jne 0x1035be2a
push 0x55
push 0x1044a790
push 0x5c
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x1035be13
push esi
push 0x55
lea eax, [esp + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 0x2d
xor edx, edx
nop dword [eax]
nop word [eax + eax]
movzx eax, word [edx*2 + 0x1044a790]
cmp eax, 0x5f
movzx ecx, al
cmove ecx, esi
mov byte [esp + edx + 8], cl
test cl, cl
je 0x1035bdb1
inc edx
cmp edx, 0x55
jl 0x1035bd90
jmp 0x1035bdb6
cmp edx, 0x55
jl 0x1035bdbb
mov byte [esp + 0x5c], 0
push 0x41
call fcn.10317c60
mov esi, eax
add esp, 4
test esi, esi
je 0x1035be12
lea eax, [esp + 4]
push eax
push 0x40
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1035a5c0
add esp, 0x10
cmp dword [esp + 4], 0
jg 0x1035be09
push 0x1035ba40
push 0x15
mov byte [eax + esi], 0
mov dword [0x1044a788], esi
mov byte [0x1044a78c], 1
call fcn.10355970
add esp, 8
jmp 0x1035be12
push esi
call fcn.10317c30
add esp, 4
pop esi
mov eax, dword [0x1044a788]
mov ecx, str.en_US
test eax, eax
cmovne ecx, eax
mov dword [0x1044a788], ecx
mov eax, ecx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1037e005
add esp, 0x60
ret
Function at 0x10364790
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
cmp dword [esi], 0
jg 0x103647ec
mov ebx, dword [esp + 0x14]
push ebx
call fcn.1034e440
add esp, 4
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x103647f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x103647df
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x8007000e
jne 0x103647ec
mov dword [esi], 7
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call ebp
test edi, edi
je 0x103647cd
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x10364833
push edi
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov dword [ebx + 0x14], edi
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4027a7
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
mov dword [0x420610], eax
push esi
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], 0x5ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push dword [0x420614]
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xb7
je 0x4027ff
call esi
cmp eax, 5
jne 0x402867
mov esi, 0x4153d0
mov ecx, esi
call fcn.0040119c
cmp eax, 3
jl 0x402867
lea eax, [ebp - 4]
push eax
push 0x402708
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, esi
call fcn.0040119c
lea eax, [eax + eax + 2]
mov edi, 0x2774
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
call fcn.00401908
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x4a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x402867
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x402943
cmp dword [ebp + 0x10], ebx
push 1
pop edi
je 0x402888
push 0x414784
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x402888
mov dword [0x425da0], edi
push dword [ebp + 8]
call fcn.0040294a
call fcn.004023cf
push dword [0x425e64]
push str.disable_dark_theme
call fcn.00402381
add esp, 0xc
mov dword [0x425e64], eax
mov esi, eax
call fcn.00402775
test eax, eax
je 0x4028cf
call fcn.00404446
cmp esi, ebx
jne 0x4028cf
push edi
push dword [0x420610]
call fcn.00404998
pop ecx
pop ecx
call fcn.00402c72
test eax, eax
je 0x4028e9
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004029dc
pop ecx
test eax, eax
pop ecx
jne 0x4028ed
xor eax, eax
jmp 0x402943
push 0x6d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call esi
test eax, eax
je 0x402940
mov eax, dword [0x421e74]
cmp eax, ebx
je 0x402923
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402937
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
jmp 0x402905
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x402a2b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x402a78
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402a78
push ebx
push 0x12
xor bl, bl
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test ah, 0x80
jne 0x402a62
push 1
pop ebx
push 0
push ebx
push 0
push 0x12
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test bl, bl
pop ebx
je 0x402a78
push 0
push 3
push 0
push 0x12
call esi
pop edi
pop esi
ret
Function at 0x403524
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x40bfe4
call fcn.0040bc20
sub esp, 0x410
push ebx
push esi
push edi
mov esi, 0x41493c
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call sub.MSVCRT.dll__wfopen
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40362d
push edi
push 1
lea eax, [ebp - 0x14]
push 2
push eax
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_fread
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x14
cmp word [ebp - 0x14], 0xfeff
mov dword [ebp - 0x10], ebx
jne 0x403582
mov dword [ebp - 0x10], 1
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll__wfopen
cmp dword [ebp - 0x10], ebx
pop ecx
pop ecx
mov edi, eax
je 0x4035a5
push edi
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov esi, 0x400
push esi
call fcn.00401908
push edi
push esi
lea eax, [ebp - 0x41c]
push 1
push eax
mov byte [ebp - 0x41c], bl
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, ebx
je 0x403623
cmp word [ebp - 0x14], 0xfeff
mov byte [ebp + eax - 0x41c], bl
jne 0x4035f7
mov ecx, dword [ebp + 0xc]
mov byte [ebp + eax - 0x41b], bl
lea eax, [ebp - 0x41c]
push eax
call fcn.004012ce
jmp 0x4035b3
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040114f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004012b0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004019e0
jmp 0x4035b3
push edi
call sub.MSVCRT.dll_fclose
pop ecx
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004019e0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403727
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push 0x1bc
cmp dword [ebp + 0xc], eax
jne 0x403739
push eax
jmp 0x40373b
push 2
push eax
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
pop ebp
ret

Function at 0x4042a0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.0040430b
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push eax
push 0x403ef7
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, esi
mov dword [0x425e44], eax
jne 0x404308
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp - 4]
push esi
push ecx
push esi
push eax
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x404308
cmp dword [ebp + 8], esi
je 0x4042ff
push 0x10
push str.Error_hooking_keyboard
push dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
leave
ret
Function at 0x4058c5
Capabilities:
Get geographical location

Disassembly:
mov ecx, 0x420618
jmp 0x4058b0
mov eax, 0x40c17f
call fcn.0040bc20
mov eax, 0x1004
call fcn.0040bcc0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.004052a7
xor ebx, ebx
lea ecx, [esi + 0x1020]
mov dword [ebp - 4], ebx
call fcn.004010a8
mov edx, 0x1ff
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x80e]
mov word [ebp - 0x810], bx
mov word [ebp - 0x1010], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100e]
mov dword [esi + 0x1034], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x400
lea eax, [ebp - 0x810]
push edi
push eax
mov dword [esi + 0x102c], ebx
mov dword [esi + 0x1030], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x1001
push edi
mov dword [esi], 0x40d438
call ebx
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
lea eax, [ebp - 0x810]
pop ecx
push edi
push eax
push 0x1002
push edi
call ebx
lea eax, [ebp - 0x810]
push eax
call sub.MSVCRT.dll_wcslen
test eax, eax
pop ecx
je 0x4059a3
lea eax, [ebp - 0x1010]
push 0x414e74
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x810]
push edi
push eax
push 0x1004
push 0x800
call ebx
lea eax, [ebp - 0x810]
push eax
call sub.MSVCRT.dll_wcslen
test eax, eax
pop ecx
je 0x4059ef
lea eax, [ebp - 0x1010]
push 0x414e70
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
push 0
call sub.MSVCRT.dll__wsetlocale
pop ecx
mov eax, esi
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret