joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436970
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.00431140
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4369a5
mov ecx, dword [ebp + 8]
push esi
push eax
push 0x49c2c4
call fcn.0042efe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x4369af
jmp dword [eax*4 + 0x436b9c]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x4369c5
call fcn.00453670
jmp 0x4369cb
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4acad0]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.00453670
mov ebx, eax
test ebx, ebx
je 0x436a3f
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x436a3f
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4acad0]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push eax
call fcn.00476c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00489737
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x436a79.67
movzx edx, byte [eax + 0x436bcc]
jmp dword [edx*4 + 0x436bb0]
mov esi, 0x40
jmp 0x436aa8
mov esi, 0x4000
jmp 0x436aa8
mov esi, 0x20
jmp 0x436aa8
mov esi, 0x8000
jmp 0x436aa8
mov esi, 0x80
jmp 0x436aa8
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x436ab7
call fcn.00453670
jmp 0x436abd
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x436a3f
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x436a3f
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
jmp 0x436a13
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push ecx
call fcn.00476c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x436b36
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00414310
fmul qword [0x4a2df8]
call fcn.00495850
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x436b40
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.00453670
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x436b5b
test esi, esi
jne 0x436a22
jmp 0x436b63
test esi, esi
je 0x436a3f
cmp byte [esp + 0xf], 0
jne 0x436b81
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x436a22
push 1
push 0x64
call fcn.004013c0
add esp, 8
jmp 0x436b40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4373d0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ac218]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00442660
mov edi, eax
test edi, edi
je 0x4373f6
push edi
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x4373fb
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00476c10
cmp eax, 1
je 0x437419
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43749e
push ebp
push 0
push 1
call fcn.00401210
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x43743e
mov edi, dword [esi + 0xc]
jmp 0x437440
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437458
test byte [edi + 0x15], 8
je 0x437453
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x43745d
mov eax, 0x4ada98
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x43746a
mov edi, dword [esi + 0xc]
jmp 0x43746c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437484
test byte [edi + 0x15], 8
je 0x43747f
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437489
mov eax, 0x4ada98
cmp dword [eax], 0
jne 0x4374da
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x4374da
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4374b5
mov edi, dword [esi + 0xc]
jmp 0x4374b7
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4374cf
test byte [edi + 0x15], 8
je 0x4374ca
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x4374d4
mov eax, 0x4ada98
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4374e3
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x437505
cmp dword [0x4ad8ec], 0
je 0x437505
push 1
mov ecx, 0x4ad8e0
call fcn.004046b0
pop edi
pop esi
pop ebp
pop ecx
ret 4
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0x4382a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00493660
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ac218]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x438354
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00476c10
test eax, eax
jne 0x4382f2
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401210
push eax
push ebx
call ebp
test eax, eax
jne 0x438313
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x43831c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438341
cmp dword [0x4ad8ec], 0
je 0x438341
push 1
mov ecx, 0x4ad8e0
call fcn.004046b0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438361
mov eax, 0x49a8ad
push 1
push 0
push edi
push eax
push esi
call fcn.00476c10
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43a640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4ad878]
push ebx
push eax
push 0x49fc88
mov esi, 0x800
call fcn.00473d20
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43a695
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a695
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ad878]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.0043ad00
add esp, 4
test eax, eax
je 0x43a6e3
push ebx
push ebp
push 0x49fc88
mov esi, 0x800
call fcn.00473d20
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43a6e3
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a6e3
mov edx, dword [esp + 0x14]
mov word [esi + edi], 0x22
pop edi
pop esi
mov dword [edx], ebp
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

Function at 0x43a6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.00493660
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x924]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x49a8ad
call fcn.0043a640
add esp, 8
test al, al
jne 0x43a72e
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x43a797
mov edx, dword [esp + 0x14]
push 0x49fc90
push edx
push 0x49fc88
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00473d20
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43a797
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a797
lea edx, [esp + 0x920]
mov byte [esp + esi + 0x120], 0x22
mov byte [esp + esi + 0x121], 0
mov ebp, edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x4ad268
mov edx, ebp
call fcn.0042ffb0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x43ad00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push 0x49fe20
push reloc.OLEAUT32.DLL_SysReAllocString
call ebp
test eax, eax
je 0x43ad38
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43adb3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x49fe14
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp esi, ebx
jne 0x43ad30
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43ad30
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43ad97
cmp eax, ebx
je 0x43adb3
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43ad91
dec eax
jne 0x43ad88
mov dword [esp + 0x10], eax
jmp 0x43adaf
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43adab
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43adb3
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43adc1
cmp edi, ebx
jne 0x43adc1
mov edi, 0x100
jmp 0x43ad14
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43adde
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x43add4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43e330
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ac218]
push edi
push 0
call dword [sym.imp.USER32.DLL_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.004132e0
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43e3cc
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044ee40
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e390
push 1
push eax
push 0xffffffffffffffff
push 0x49a8ad
push ebp
call fcn.00476c10
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0044f0e0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00476560
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43e3f0
push 2
push ebx
call fcn.004883de
add esp, 8
test eax, eax
je 0x43e3f0
and bl, 0xdf
cmp bl, 0x50
je 0x43e403
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43e408
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044f030
add esp, 4
test al, al
mov eax, 0x49ff24
jne 0x43e423
mov eax, 0x49ff28
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00476c10
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x43e440
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, ecx
mov ecx, dword [0x4ac218]
push edi
call fcn.00414350
test esi, esi
je 0x43e523
cmp byte [esi], 0
je 0x43e523
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00489e40
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x123], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e490
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x43e4b5
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43e523
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
je 0x43e523
cmp byte [ebp + 0xc], 0
je 0x43e4e3
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43e4eb
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push eax
call fcn.00476c10
mov eax, dword [0x4ac218]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
jne 0x43e551
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
push edx
call fcn.00476c10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49a8ad
push 0
push 0x49bec0
call fcn.0042ed70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4402c0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x4402ef
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x4402ef
cmp byte [esi + 2], 0
jne 0x4402ef
mov byte [esp + 4], al
mov byte [esp + 5], cl
mov word [esp + 6], 0x5c
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
jne 0x44030f
cmp byte [0x4ad880], al
je 0x440354
call fcn.00409520
pop esi
add esp, 0x108
ret
cmp byte [0x4ad880], 0
je 0x440354
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
je 0x440332
lea esi, [esp + 8]
jmp 0x440336
test esi, esi
je 0x44033d
mov eax, esi
call fcn.0044f7c0
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push ecx
call fcn.00476c10
pop esi
add esp, 0x108
ret
Function at 0x440950
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x440a0b
cmp byte [ebx], 0
je 0x440a0b
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x440993
push 0xb7
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
shr eax, 4
and eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5c
push ebx
call fcn.004892fd
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
cmp edi, ebx
jbe 0x4409f5
cmp byte [edi - 1], 0x3a
je 0x4409f5
cmp dword [ebp + 0xc], 0
je 0x4409ba
mov esi, ebx
mov byte [edi], 0
jmp 0x4409d8
sub edi, ebx
lea eax, [edi + 1]
call fcn.004908c0
mov esi, esp
push edi
push ebx
push esi
call fcn.00489e40
mov byte [edi + esi], 0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
push esi
call fcn.00440950
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4409eb
mov byte [edi], 0x5c
cmp byte [edi + 1], 0
je 0x440a15
test al, al
je 0x440a15
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor al, al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x441650
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x4416a0
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44167a
mov esi, dword [ebp + 0xc]
jmp 0x44167c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x441697
test byte [esi + 0x15], 8
je 0x44168f
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x4416ce
mov esi, 0x4ada98
mov ebx, dword [esi]
jmp 0x4416ce
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004766a0
add esp, 0xc
test eax, eax
jne 0x4416ca
mov edx, dword [0x4a8978]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0

Function at 0x4417f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.0040e3e0
test al, al
je 0x441816
push 0x10
push 0
push edi
call fcn.00488945
add esp, 0xc
jmp 0x44181f
push edi
call fcn.00488426
add esp, 4
mov ebx, 1
cmp eax, ebx
je 0x441886
call fcn.00453400
test al, al
je 0x441886
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], bl
jne 0x441861
mov ecx, dword [0x4acad0]
push ebx
push 0
push 0xffffffffffffffff
push 0x49bec0
push ecx
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x120]
push 0x49a8ad
push 0
push 0x49bec0
call fcn.0042ed70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4418d2
mov edx, dword [0x4a8978]
test byte [edx + 0xe0], bl
jne 0x441861
push ebx
push 0
push eax
mov eax, dword [0x4acad0]
push 0x49bec0
push eax
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [esp + 0x124]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4418e0
sub eax, edx
cmp eax, 0x104
jb 0x4418f5
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0048f790
lea edx, [esp + 0x20]
add esp, 0xc
push edx
call fcn.00489850
add esp, 4
push 0xa
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x441961
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x441961
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x441961
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
setne bl
jmp 0x441963
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x120]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042ee10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x441990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ac218]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00414350
test esi, esi
je 0x441a45
cmp byte [esi], 0
je 0x441a45
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4419fc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x441a79
mov eax, dword [0x4acad0]
push 1
push 0
push esi
push 0x49bec0
push eax
call fcn.00476c10
pop esi
add esp, 0x80
ret
mov edx, dword [0x4acad0]
mov ecx, dword [0x4a8978]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push edx
mov dword [ecx + 0x30], 0
call fcn.00476c10
mov edx, esi
lea eax, [esp + 4]
call fcn.00474c60
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ac218]
push eax
call fcn.00476c10
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x441a79
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
push ecx
call fcn.00476c10
pop esi
add esp, 0x80
ret
push 0x49a8ad
push 0
push 0x49bec0
mov ecx, edi
call fcn.0042ed70
pop esi
add esp, 0x80
ret
Function at 0x4423c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ac218]
sub esp, 0x148
push ebx
push esi
call fcn.00414350
test edi, edi
je 0x44252e
cmp byte [edi], 0
je 0x44252e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x442420
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
jne 0x44248b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44246c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x442562
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
push edx
call fcn.00476c10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x442493
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x4424bb
push 2
push esi
call fcn.004883de
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4424bb
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x4424d2
sub edx, 2
jne 0x4424e8
push edx
push 0x100000
jmp 0x4424d9
push 0
push 0x400
push eax
push ecx
call fcn.00495900
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4acad0]
mov eax, dword [0x4a8978]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push ecx
mov dword [eax + 0x30], 0
call fcn.00476c10
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ac218]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x442562
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
push ecx
call fcn.00476c10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49a8ad
push 0
push 0x49bec0
call fcn.0042ed70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44f030
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44f037
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44f05f
dec eax
je 0x44f051
movzx eax, bl
push eax
call dword [sym.imp.USER32.DLL_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44f06c
cmp bl, 3
jne 0x44f073
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44f099
cmp dword [0x4ac400], 0
je 0x44f089
movzx ecx, bl
mov al, byte [ecx + 0x4ac2f0]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4ac3fc], 0
je 0x44f0c8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00412be0
test al, al
je 0x44f0bb
push 1
call fcn.004129e0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4ac2f0]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret