joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ee1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42a018]
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 0x416f2c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041707c
test al, al
jne 0x416f26
sub edx, 2
cmp edx, edi
jne 0x416f0c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x416f4e
lea eax, [edi + 2]
cmp edx, eax
je 0x416f4e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416e2d
add esp, 0x10
jmp 0x417048
push esi
lea ecx, [ebp - 0x255]
call fcn.0041707c
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 0x416f91
push dword [ebp - 0x25c]
jmp 0x416f3e
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 0x416fce
cmp word [ebp - 0x226], 0
je 0x416fef
cmp word [ebp - 0x226], ax
jne 0x416fce
cmp word [ebp - 0x224], 0
je 0x416fef
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416e2d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41703b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x416fa8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x417023
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x417048
push 0x416c5d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041b700
add esp, 0x10
jmp 0x417018
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.0040ae3f
leave
ret

Function at 0x4179c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4179d7
pop esi
ret
push ebx
push edi
push esi
call fcn.0041798f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00414f92
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4179ff
push ebx
push esi
push edi
call fcn.0040c370
add esp, 0xc
push 0
call fcn.00413adc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x417dcf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417a14
Function at 0x41a4da
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413e54
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a549
cmp esi, dword [ebp - 4]
je 0x41a544
cmp dword [ebp + 0xc], 0
je 0x41a544
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a521
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a02c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a54b
xor eax, eax
inc eax
jmp 0x41a54b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41a5b0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a018]
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.00413e54
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.00413e54
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 0x41a627
cmp word [ecx], dx
je 0x41a627
mov eax, dword [0x422e84]
push edi
dec eax
push eax
push 0x422d70
call fcn.0041a54f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41a69a
cmp word [eax], dx
je 0x41a69a
mov eax, dword [edi]
test eax, eax
je 0x41a64b
cmp word [eax], dx
je 0x41a64b
lea eax, [ebp - 0x10]
push eax
call fcn.00419f32
jmp 0x41a654
lea eax, [ebp - 0x10]
push eax
call fcn.00419fcd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41a6c4
mov eax, dword [0x422d6c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x422a60
call fcn.0041a54f
add esp, 0xc
test al, al
je 0x41a6c4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a68f
cmp word [eax], di
je 0x41a68f
lea eax, [ebp - 0x10]
push eax
call fcn.00419f32
pop ecx
jmp 0x41a6c6
lea eax, [ebp - 0x10]
push eax
call fcn.00419fcd
jmp 0x41a68c
mov eax, dword [edi]
test eax, eax
je 0x41a6b1
cmp word [eax], dx
je 0x41a6b1
lea eax, [ebp - 0x10]
push eax
call fcn.00419ee7
pop ecx
jmp 0x41a6c4
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 0x41a78f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a3d4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41a78f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41a78f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41a78f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a71c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00414e39
test ebx, ebx
je 0x41a78a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00414e39
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a78f
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 0x41a78f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041c95b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41a791
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae3f
leave
ret
Function at 0x41e3f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e41d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e41d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40104a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x47e800
call fcn.00401fe2
mov ecx, esi
push str.EBWebViewx86EmbeddedBrowserWebView.dll
call fcn.00401fe2
mov ecx, esi
call fcn.004020b6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret

Function at 0x401baf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov edi, edx
mov esi, ecx
mov eax, dword [0x49e044]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.004549a0
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sub ecx, edi
push eax
push 0x20219
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x401cac
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x24]
push edi
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401caa
cmp dword [esp + 0xc], 3
mov ebx, 0
jb 0x401cac
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00401f12
mov ecx, esi
call fcn.004020b6
push 0x5c
push eax
call fcn.004548f2
add esp, 8
test eax, eax
je 0x401caa
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.00401a89
test al, al
je 0x401caa
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401c9b
push edi
call fcn.00401f12
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.00401cc4
mov ebx, eax
jmp 0x401cac
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.004528ff
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401cc4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x47ead8]
cmp dword [ecx + eax], edx
ja 0x401ce2
jb 0x401ced
add eax, 4
cmp eax, 0x10
jne 0x401ccd
push esi
call fcn.0040104a
add esp, 4
jmp 0x401d0d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Loader_skipped_an_incompatible_version:
call edi
mov ecx, esi
call fcn.004020b6
push eax
call edi
push 0x47eb3a
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x401170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4031f0
push 0x4148b8
mov dword [ebp - 0x1c], 0xa1b2c3d4
mov dword [ebp - 0x18], 0x40002
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x10000
mov dword [ebp - 8], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [0x4045e4], eax
test eax, eax
jne 0x4011e4
push str._nError_opening_output_file_n
call fcn.00401010
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a6d
mov esp, ebp
pop ebp
ret
push eax
push 1
lea eax, [ebp - 0x1c]
push 0x18
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
call fcn.00401a6d
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, dword [0x4043c0]
lea eax, [esp + 9]
push esi
push edi
push 0x63
push 0
push eax
mov byte [esp + 0x1c], 0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.wpcap.dll_pcap_open_live]
lea eax, [esp + 0x214]
add esp, 0xc
push eax
push 0x3e8
push 1
push 0x10000
push 0x4147b8
call edi
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40161c
push 0x4147b8
lea eax, [esp + 0x7c]
push str._nUnable_to_open_the_adapter.__s_is_not_supported_by_WinPcap_n
push eax
call fcn.00401050
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call fcn.00401010
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401a6d
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00401090
test eax, eax
js 0x4017b9
cmp dword [0x4045c8], 1
jne 0x4016aa
lea eax, [esp + 0x308]
push eax
push 0x3e8
push 1
push 0x10000
push 0x414ac8
call edi
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x401695
push 0x414ac8
lea eax, [esp + 0x7c]
push str._nUnable_to_open_the_adapter.__s_is_not_supported_by_WinPcap_n
push eax
call fcn.00401050
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call fcn.00401010
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401a6d
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.00401090
test eax, eax
js 0x4017b9
jmp 0x4016ae
mov edi, dword [esp + 0xc]
call fcn.00401170
test eax, eax
js 0x4017b9
cmp dword [0x4045c8], 1
mov byte [0x4043c4], 0
mov byte [0x4043c6], 0
mov byte [0x4043c5], 0
mov byte [0x404058], 0
jne 0x40170a
push 0x4045cc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
push 0
push 0x401320
call esi
add esp, 0xc
push edi
push 0
push 0x401450
call esi
jmp 0x401718
push esi
push 0
push 0x401210
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
imul eax, ebx, 0x3e8
push eax
call edi
push 0x3e8
mov byte [0x404058], 1
call edi
xor esi, esi
cmp dword [0x4045c8], 1
jne 0x401780
cmp byte [0x4043c6], 0
je 0x401755
cmp byte [0x4043c5], 0
jne 0x40176c
push 0x32
call edi
inc esi
cmp esi, 0x1e
jl 0x401743
push 0x4045cc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x401797
push 0x32
call edi
push 0x4045cc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x401797
cmp byte [0x4043c4], 0
push 0x32
jne 0x401795
call edi
inc esi
cmp esi, 0x1e
jl 0x401780
jmp 0x401797
call edi
mov eax, dword [0x4045e4]
test eax, eax
je 0x4017b9
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push dword [0x4045e4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a6d
mov esp, ebp
pop ebp
ret
Function at 0x40226c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022ab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4022ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022ab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4022ab
cmp dword [ecx + 0x74], 0xe
jbe 0x4022ab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100436bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10066f40]
jne 0x100436c6
repz ret
jmp fcn.1004396d

Function at 0x10045030
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x10066f14], 0x1bf1
mov dword [ebp - 8], 0
mov eax, dword [0x10066f14]
sub eax, 0xc52
mov dword [0x10066f14], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x10066f18]
sub eax, 0xdcf
mov dword [0x10066f14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100450d2
mov dword [0x10066f18], 0x1a0a
jmp 0x100450f5
jmp 0x100451ca
jmp 0x10045092
jmp 0x100451cf
mov dword [0x10066f18], 0x1f99
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x6c
je 0x100451a8
jmp 0x100451c5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x104
jge 0x10045102
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10045086
jmp 0x10045102
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100450d2
mov dword [0x10066f14], 0xbad
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x100451cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x6f
jne 0x10045099
mov dword [0x10066f14], 0x698
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
movzx edx, word [eax + ecx*2 - 0x16]
cmp edx, 0x61
jne 0x100451ca
mov dword [0x10066f18], 0x1bf4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x10045092
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0x64
je 0x1004509e
jmp 0x10045097
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100451c3
mov dword [ebp - 4], 1
jmp 0x100451d6
jmp 0x100451c5
jmp 0x10045097
jmp 0x10045099
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x100451f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.100451f0]
mov dword [ebp - 4], eax
mov eax, dword [0x10066f14]
add eax, 0xf70
mov dword [0x10066f14], eax
jmp 0x1004522e
mov al, 1
test al, 1
jne 0x1004522e
jmp 0x10045257
jmp 0x10045245
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax], 0x4550
je 0x1004523d
jmp 0x10045218
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1004521a
jmp 0x10045245
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x10045268
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x10045210
mov dword [0x10066f14], 0x549
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
Function at 0x402f50
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x48fb78]
call fcn.0040c95f
mov ebx, eax
test ebx, ebx
je 0x402fb4
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x402f79
push dword [esp + 0xc]
push ebx
call eax
jmp 0x402fb4
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0040d200
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0040d2d0
pop edi
pop esi
pop ebx
ret 8

Function at 0x40576d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x48fb84]
call fcn.0040c95f
mov esi, eax
test esi, esi
je 0x405847
cmp dword [ebp + 0xc], 0
je 0x4057b9
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4057aa
cmp dword [esi + 0x1c], 0
jne 0x4057aa
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x405847
test byte [ebp + 0x10], 3
je 0x4057d4
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00405fa6
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4057f9
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x40580d
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x40582a
test ebx, ebx
je 0x40581e
push 8
jmp 0x405830
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x40583d
test ebx, ebx
je 0x405833
push 3
pop ecx
jmp 0x40583d
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x405cb2
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x405d4a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x405d47
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x405d47
lea eax, [esi - 1]
push eax
push dword [0x48fb84]
call fcn.0040c95f
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x405d49
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x405d3e
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x405e31
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x405d24
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x405df0
push eax
call esi
test al, al
jns 0x405df0
push 0x11
call esi
test al, al
js 0x405df0
push 0x10
call esi
test al, al
js 0x405df0
push 0x12
call esi
test al, al
js 0x405df0
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x405df0
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x405dc4
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x405ddb
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x405e3b
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x405e3b
test ebp, ebp
je 0x405e14
push 0x11
call esi
test al, al
js 0x405e0c
push 0x10
call esi
test al, al
js 0x405e0c
push 0x12
call esi
test al, al
jns 0x405e14
push 1
push ebp
call fcn.00405e47
test ebx, ebx
je 0x405e28
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x405e3b
test edi, edi
je 0x405e3b
mov eax, dword [edi + 8]
jmp 0x405e3d
and dword [esp + 0x14], 0
jmp 0x405d49
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x40710c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407190
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x48f558]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x407188
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407179
cmp dword [esp + 0x18], ebx
jne 0x407179
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004071aa
mov ebp, eax
push edi
push 0
push dword [0x48f558]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x409610
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x409642
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40963d
cmp dword [esp + 0xc], esi
je 0x409659
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret