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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411b30
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041f8a3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x422131
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42228d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042d330
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43f7e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00422515
mov ecx, dword [esi*4 + 0x43f7e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422286
cmp eax, dword [edi + ecx + 0x24]
jne 0x422286
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422286
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422515
add esp, 0x14
test edx, edx
jl 0x422286
jg 0x4221fc
test eax, eax
jb 0x422286
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422286
jl 0x422216
cmp dword [ebp - 0x1008], eax
ja 0x422286
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422234
test ebx, ebx
je 0x42226d
cmp ecx, edi
jae 0x42226d
mov al, byte [ecx]
cmp al, 0xd
jne 0x42224e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42225a
cmp byte [ecx + 1], 0xa
jne 0x42225a
inc ecx
jmp 0x42225a
movzx eax, al
movsx eax, byte [eax + 0x43da40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422234
cmp edx, ebx
jne 0x422234
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42228b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411146
leave
ret
Function at 0x42584d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4258ea
push ebx
push esi
call fcn.00425816
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042449b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425897
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4258e9
push edi
push eax
call fcn.0041e941
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4258b7
call fcn.0041db3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4258e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042449b
add esp, 0x20
test eax, eax
jne 0x4258d6
push edi
call fcn.0041db3b
jmp 0x4258de
push ebx
call fcn.0041db3b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42a436
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43f7e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a476
cmp byte [ebx], 0xa
jne 0x42a476
or byte [eax + edi + 0x28], 4
jmp 0x42a47b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42a579
mov al, byte [edx]
cmp al, 0x1a
je 0x42a55b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42a4aa
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42a4cf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42a4d9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42a48c
jmp 0x42a579
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a556
cmp dword [ebp - 0xc], 0
je 0x42a556
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43f7e0]
test byte [eax + edi + 0x28], 0x48
je 0x42a530
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42a51b
mov byte [esi], dl
jmp 0x42a52c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43f7e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42a579
cmp byte [ebp - 1], 0xa
jne 0x42a53f
cmp esi, ebx
jne 0x42a53f
mov byte [esi], 0xa
jmp 0x42a578
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422533
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42a579
mov byte [esi], 0xd
jmp 0x42a578
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43f7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a575
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a579
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a582
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43f7e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a5c5
cmp word [esi], dx
jne 0x42a5c5
or byte [edi + eax + 0x28], 4
jmp 0x42a5ca
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42a71d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42a6fd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42a60c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42a642
cmp eax, edx
jae 0x42a64e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42a5e4
jmp 0x42a71d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a6f9
cmp dword [ebp - 0x14], 0
je 0x42a6f9
mov eax, dword [ebx*4 + 0x43f7e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42a6d1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42a69a
mov word [esi], cx
jmp 0x42a6cd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43f7e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43f7e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43f7e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42a71d
pop ebx
cmp word [ebp - 4], bx
jne 0x42a6e2
cmp esi, dword [ebp + 0xc]
jne 0x42a6e2
mov word [esi], bx
jmp 0x42a71a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00422533
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42a71d
push 0xd
jmp 0x42a716
mov ecx, dword [ebx*4 + 0x43f7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a714
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a71d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d15d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d15d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b742
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b75e
mov dword [esp], 1
jmp 0x40b76e
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x40b7a0
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b790
mov dword [esp], 1
jmp 0x40b7a0
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x40b7d2
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b7c2
mov dword [esp], 1
jmp 0x40b7d2
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x40b801
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b7f4
mov dword [esp], 1
jmp 0x40b801
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x40b827
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b827
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x40b84d
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b84d
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x40b873
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40b873
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40b880
xor edx, edx
mov eax, 1
jmp 0x40b880
add esp, 4
pop ebx
ret 0x10

Function at 0x40e98c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40ea70
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40ea26
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040f4d5
mov ebx, eax
cmp ebx, edi
je 0x40ea65
push dword [ebp + 8]
push dword [0x49f6e8]
call fcn.00415ad3
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040f478
push eax
push ebx
call fcn.0040f45e
push eax
call fcn.0040f0b9
cmp eax, edi
mov dword [esi], eax
je 0x40ea1e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40ea65
push ebx
call fcn.0040f485
jmp 0x40ea65
push ebx
push edi
push dword [0x49ef34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40ea65
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040f0a3
push esi
push edi
push dword [0x49ef34]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40ebad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x49f6e8]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.00415b6a
mov esi, eax
cmp esi, ebx
je 0x40ed28
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40ec5d
push dword [ebp + 8]
call fcn.0040f1d6
jmp 0x40ebf0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40ebe8
push dword [esi + 0x14]
call fcn.0040f4ae
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040ea8a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40eaff
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ec32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ec43
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040f26c
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40ed28
test byte [ebp + 0xc], 1
je 0x40ec66
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40ecf0
push esi
call fcn.0040ed42
lea eax, [esi + 4]
push 0xc
push eax
call fcn.00416170
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x49f6fc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40ed28
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ecd6
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040f206
jmp 0x40ece2
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x40ed28
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ed11
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040f26c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40ed28
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f64e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40f666
push dword [esp + 4]
push 0x40f5e7
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x40f6a3
push esi
mov esi, dword [0x49f728]
test esi, esi
je 0x40f6a2
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40f69a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x49f728
call fcn.0041619d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40f673
pop edi
pop ebx
pop esi
ret 4
Function at 0x40fd41
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49f738], 0
jne 0x40fd53
call fcn.0040fc92
push esi
push edi
push dword [0x49f734]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40fd78
call fcn.0040fc92
push dword [0x49f734]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40fd81
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040fc49
dec edi
pop ecx
pop ecx
jne 0x40fdb2
pop edi
pop esi
leave
ret 4
Function at 0x413110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x41319b
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x41318d
push 0x11
call esi
test al, al
js 0x41318d
push 0x10
call esi
test al, al
js 0x41318d
push 0x12
call esi
test al, al
js 0x41318d
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41318d
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x4131bb
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4131bb
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x4131bb
dec eax
push eax
push dword [0x49fcd0]
call fcn.00415b6a
mov eax, dword [eax + 8]
jmp 0x4131bd
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x413547
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x413658
cmp byte [eax], 0
je 0x413658
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x4135a1
cmp eax, 3
jne 0x4135de
cmp byte [ebp - 0x107], 0x3a
jne 0x4135de
cmp eax, 2
jne 0x4135c2
lea eax, [ebp - 0x108]
push 0x44a288
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x413658
jmp 0x413652
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x4135da
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41362a
test byte [ebp - 0x248], 0x10
je 0x41360d
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x413621
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x413658
cmp byte [ebp - 0x108], 0x5c
jne 0x413658
cmp byte [ebp - 0x107], 0x5c
jne 0x413658
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413658
test al, 0x10
je 0x413658
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x413670
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4136a5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4138c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x413919
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x413918
mov eax, dword [esp + 0x10]
mov ecx, dword [0x49fce8]
push eax
push ecx
call fcn.00415b6a
test eax, eax
je 0x413914
cmp dword [eax + 4], 0
je 0x413902
push esi
push edi
push eax
call fcn.00413c80
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x413920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00416640
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x49fce8]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00415b6a
mov ebx, eax
test ebx, ebx
je 0x413a3e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41397e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00413d80
mov dword [esp + 0x14], eax
jmp 0x413995
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x4139a7
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x4139d1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00416640
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x413a3d
cmp dword [esp + 0x14], 0
je 0x4139e8
cmp al, 0xd
je 0x4139e8
cmp al, 0xa
jne 0x413960
sub ebp, 1
cmp al, 0xd
jne 0x413a3d
cmp dword [ebx + 4], 0
je 0x413a04
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00413d80
jmp 0x413a1b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x413a3d
cmp dword [ebx + 4], 0
je 0x413a2e
add dword [ebx + 0xc], 1
jmp 0x413a3d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.004166e0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x413a60
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x49fce8]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00415b6a
mov esi, eax
test esi, esi
je 0x413ae4
cmp dword [esi + 4], 0
je 0x413ab3
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00413d80
test eax, eax
je 0x413aa7
add dword [esi + 0xc], 1
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413aef
cmp dword [esp + 8], 0
je 0x413aef
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x413b60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49fce8]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00415b6a
test eax, eax
je 0x413baa
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x413b97
push 1
push edx
push eax
call fcn.00413d80
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x413bc0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49fce8]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00415b6a
test eax, eax
je 0x413c0a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x413bf7
push 4
push edx
push eax
call fcn.00413d80
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x413c20
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49fce8]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00415b6a
test eax, eax
je 0x413c6a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x413c57
push 1
push edx
push eax
call fcn.00413d80
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4