joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455e08
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455fb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455f94
mov dl, 1
mov eax, dword [0x41255c]
call fcn.004035d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404374
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455f83
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443754
test al, al
je 0x455f76
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455fc4
lea eax, [ebp - 0x254]
call fcn.00409328
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455f76
xor eax, eax
push ebp
push 0x455f6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455ffc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455f58
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045dc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455f58
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f76
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455e79
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004166ac
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455fba
lea eax, [ebp - 0x260]
call fcn.00404374
ret

Function at 0x456930
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x471c28]
cmp byte [eax + 0xa5], 0
jne 0x4569a1
cmp dword [0x471c40], 0
jne 0x456962
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4568ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x471c40], eax
cmp dword [0x471c3c], 0
jne 0x45697d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x471c3c], eax
cmp dword [0x471c44], 0
jne 0x4569a1
push esp
push 0
push 0
push 0x456890
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x471c44], eax
pop edx
ret
Function at 0x456a98
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456aaf
add esp, 0xfffffff0
call fcn.0040396c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c014
mov eax, dword [0x46ff64]
cmp word [eax + 2], 0
jne 0x456ad7
mov eax, dword [0x46ff64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458174
mov eax, dword [0x46fffc]
cmp word [eax + 2], 0
jne 0x456af1
mov eax, dword [0x46fffc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045836c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41206c]
call fcn.004035d8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.004035d8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e4e4]
call fcn.00425b90
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456c78
mov eax, dword [0x46fe8c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425f60
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4588dc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46fe8c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b270
test eax, eax
je 0x456be6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c70
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b298
test eax, eax
je 0x456bfa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045dc
mov eax, dword [0x46fd78]
cmp byte [eax], 0
jne 0x456c2e
mov eax, ebx
call fcn.00456da0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00458ab8
mov eax, ebx
call fcn.004593f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456c6e
call fcn.004039c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457014
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x471c28]
cmp dword [eax + 0x30], 0
je 0x4570be
cmp dword [ebx + 0x94], 0
jne 0x4570b8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456fa4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4570b8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45707e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4570b8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041470c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45708d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457b9c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x457bd1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404464
jmp 0x457bde
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458c94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458cd5
mov eax, esi
call fcn.0043ee8c
test al, al
je 0x458cd5
mov eax, dword [ebx + 0x84]
call fcn.0043eb88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458cd5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043eb88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45e2c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e524
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45e327
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045dd8c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040affc
cmp al, 1
jne 0x45e327
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045e0a4
test al, al
je 0x45e4b3
cmp dword [ebp - 8], 0
jge 0x45e345
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0045dd8c
mov eax, dword [ebp - 0x210]
call fcn.0040462c
cmp ebx, eax
jge 0x45e38f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045dd8c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x470138]
and eax, 0xff
bt dword [edx], eax
jae 0x45e38f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x45e3a3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045e2a0
cmp ebx, dword [ebp - 8]
je 0x45e4a5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x45e3cf
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403804
and eax, 0x7f
movzx eax, word [eax*2 + 0x46fd3c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x45e492
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403804
and eax, 0x7f
movzx eax, word [eax*2 + 0x46fd3c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0043eb88
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403804
and eax, 0x7f
movzx eax, word [eax*2 + 0x46fd3c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0043eb88
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e499
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x45e506
cmp dword [ebp - 8], 0
jge 0x45e4be
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045dd8c
mov eax, dword [ebp - 0x218]
call fcn.0040462c
cmp eax, dword [ebp - 8]
jg 0x45e4f8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045dd8c
mov eax, dword [ebp - 0x21c]
call fcn.0040462c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045e2a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e52b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404398
ret
Function at 0x426040
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 4], 0x811c9dc5
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00426450
movzx ecx, al
test ecx, ecx
je 0x426089
mov esi, dword [ebp - 4]
imul esi, esi, 0x1000193
push 0
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.00426410
mov ecx, eax
call fcn.004263c0
movzx eax, word [eax]
xor esi, eax
mov dword [ebp - 4], esi
jmp 0x42604e
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x428c24
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4605d8]
jne 0x428c2e
repz ret
jmp fcn.00433654
Function at 0x42a68e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42a6cb
cmp dword [ebp + 0x14], edi
je 0x42a6cb
cmp ecx, edi
jne 0x42a6d2
call fcn.0042fdf3
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00428e2f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42a6e6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42a707
cmp ebx, 0xffffffff
je 0x42a6f6
push ebx
push edi
push ecx
call fcn.004288a0
add esp, 0xc
cmp esi, edi
je 0x42a6b3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42a6b3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42a723
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42a72a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42a81b
test word [esi + 0xc], 0x10c
je 0x42a77e
mov eax, dword [esi + 4]
test eax, eax
je 0x42a77e
jl 0x42a87c
cmp ebx, eax
mov edi, ebx
jb 0x42a74f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42a823
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00428efb
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42a813
cmp ebx, dword [ebp - 0xc]
jb 0x42a7eb
cmp dword [ebp - 0xc], 0
je 0x42a7a8
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x42a79d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42a7a4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42a7b3
mov eax, bind
cmp ebx, eax
ja 0x42a7b3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42a84f
push eax
push dword [ebp - 8]
push esi
call fcn.00436275
pop ecx
push eax
call fcn.00436bed
add esp, 0xc
test eax, eax
je 0x42a88e
cmp eax, 0xffffffff
je 0x42a87c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42a813
push esi
call fcn.0043650c
cmp eax, 0xffffffff
pop ecx
je 0x42a880
cmp dword [ebp - 4], 0
je 0x42a84f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42a732
mov eax, dword [ebp + 0x14]
jmp 0x42a6cd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42a83a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004288a0
add esp, 0xc
call fcn.0042fdf3
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42a6c3
cmp dword [ebp + 0xc], 0xffffffff
je 0x42a865
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004288a0
add esp, 0xc
call fcn.0042fdf3
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42a6c3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42a6cd
or dword [esi + 0xc], 0x10
jmp 0x42a880
Function at 0x4374dd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x460ea8]
je 0x4374f8
inc edi
cmp edi, 0x17
jb 0x4374e9
cmp edi, 0x17
jae 0x437678
push ebp
push 3
call fcn.0043e0b4
cmp eax, 1
pop ecx
je 0x437644
push 3
call fcn.0043e0b4
test eax, eax
pop ecx
jne 0x43752c
cmp dword [0x460460], 1
je 0x437644
cmp ebx, 0xfc
je 0x437677
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x462668
push ebp
call fcn.00431c4f
add esp, 0xc
test eax, eax
je 0x437562
push esi
push esi
push esi
push esi
push esi
call fcn.00428d33
add esp, 0x14
push 0x104
mov esi, 0x462681
push esi
push 0
mov byte [0x462785], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4375a6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00431c4f
add esp, 0xc
test eax, eax
je 0x4375a6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00428d33
add esp, 0x14
push esi
call fcn.00428e70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4375eb
push esi
call fcn.00428e70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46297c
push 0x4545fc
sub ecx, eax
push ecx
push eax
call fcn.00439f8e
add esp, 0x14
test eax, eax
je 0x4375eb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00428d33
add esp, 0x14
jmp 0x4375ed
xor esi, esi
push 0x4545f8
push ebx
push ebp
call fcn.00439f1d
add esp, 0xc
test eax, eax
je 0x43760d
push esi
push esi
push esi
push esi
push esi
call fcn.00428d33
add esp, 0x14
push dword [edi*8 + 0x460eac]
push ebx
push ebp
call fcn.00439f1d
add esp, 0xc
test eax, eax
je 0x43762f
push esi
push esi
push esi
push esi
push esi
call fcn.00428d33
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043def7
add esp, 0xc
jmp 0x437677
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x437677
cmp ebp, 0xffffffff
je 0x437677
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x460eac]
push dword [esi]
call fcn.00428e70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43def7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431f24
xor ebx, ebx
cmp dword [0x462cd4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43dfcd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43e0ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43e0ad
push eax
call fcn.00431eb6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x462cd4], eax
call esi
push eax
call fcn.00431eb6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x462cd8], eax
call esi
push eax
call fcn.00431eb6
mov dword [0x462cdc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00432552
test eax, eax
pop ecx
pop ecx
je 0x43df9b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428d33
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43dfcd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431eb6
cmp eax, ebx
pop ecx
mov dword [0x462ce4], eax
je 0x43dfcd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431eb6
pop ecx
mov dword [0x462ce0], eax
mov eax, dword [0x462ce0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43e052
cmp dword [0x462ce4], ecx
je 0x43e052
push eax
call fcn.00431f2d
push dword [0x462ce4]
mov esi, eax
call fcn.00431f2d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43e052
cmp edi, ebx
je 0x43e052
call esi
cmp eax, ebx
je 0x43e01f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43e01f
test byte [ebp - 0x18], 1
jne 0x43e052
lea eax, [ebp - 0x10]
push eax
call fcn.00432589
test eax, eax
pop ecx
je 0x43e03a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428d33
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43e049
or dword [ebp + 0x10], 0x200000
jmp 0x43e08d
or dword [ebp + 0x10], 0x40000
jmp 0x43e08d
mov eax, dword [0x462cd8]
cmp eax, dword [ebp - 8]
je 0x43e08d
push eax
call fcn.00431f2d
cmp eax, ebx
pop ecx
je 0x43e08d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43e08d
mov eax, dword [0x462cdc]
cmp eax, dword [ebp - 8]
je 0x43e08d
push eax
call fcn.00431f2d
cmp eax, ebx
pop ecx
je 0x43e08d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x462cd4]
call fcn.00431f2d
cmp eax, ebx
pop ecx
je 0x43e0ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43e0af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], 0
mov word [ebp - 0x418], 0
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004288a0
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004288a0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x440d68
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.004267c0
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x440d68
mov ecx, dword [ebp - 0x41c]
mov word [ecx], 0
call fcn.00440b70
test eax, eax
je 0x440d48
lea edx, [ebp - 0x210]
push edx
push str._sLocalMicrosoftWindowsTemporary_Internet_Files
push 0x103
lea eax, [ebp - 0x418]
push eax
call fcn.004296aa
add esp, 0x10
jmp 0x440d68
lea ecx, [ebp - 0x210]
push ecx
push str._sLocal_SettingsTemporary_Internet_Files
push 0x103
lea edx, [ebp - 0x418]
push edx
call fcn.004296aa
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
call fcn.004031d0
mov ecx, dword [ebp - 0x420]
or ecx, 1
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret

Function at 0x441290
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x674], ecx
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea eax, [ebp - 0x254]
push eax
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x464], 0xffffffff
mov word [ebp - 0x460], 0
push 0x206
push 0
lea ecx, [ebp - 0x45e]
push ecx
call fcn.004288a0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x45572c
push 0x103
lea eax, [ebp - 0x460]
push eax
call fcn.004296aa
add esp, 0x10
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0xffffffff
je 0x4413dc
mov word [ebp - 0x670], 0
push 0x206
push 0
lea eax, [ebp - 0x66e]
push eax
call fcn.004288a0
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x455738
push 0x103
lea eax, [ebp - 0x670]
push eax
call fcn.004296aa
add esp, 0x14
lea ecx, [ebp - 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0xffffffff
jne 0x441397
jmp 0x4413dc
mov edx, dword [ebp - 0x468]
and edx, 0x10
jne 0x4413bd
cmp dword [ebp - 0x468], 0xffffffff
je 0x4413bd
lea eax, [ebp - 0x670]
push eax
mov ecx, dword [ebp - 0x674]
call fcn.00441180
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4413d7
jmp 0x4413dc
jmp 0x441329
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret 4
Function at 0x442720
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.004288a0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x442774
xor eax, eax
jmp 0x442815
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x442793
xor eax, eax
jmp 0x442815
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4427f9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00429a56
add esp, 8
test eax, eax
jne 0x4427e2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x230]
mov dword [edx], eax
mov dword [ebp - 0x23c], 1
jmp 0x4427f9
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4427b4
cmp dword [ebp - 0x240], 0xffffffff
je 0x44280f
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret