joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c135
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004090c4
and dword [ebp - 4], 0
cmp dword [0x41cd80], 0
mov ebx, eax
jne 0x40c1e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c297
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x416b94
push edi
call esi
test eax, eax
je 0x40c297
push eax
call fcn.00409052
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41cd80], eax
call esi
push eax
call fcn.00409052
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41cd84], eax
call esi
push eax
call fcn.00409052
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41cd88], eax
call esi
push eax
call fcn.00409052
pop ecx
mov dword [0x41cd90], eax
test eax, eax
je 0x40c1e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409052
pop ecx
mov dword [0x41cd8c], eax
mov eax, dword [0x41cd8c]
cmp eax, ebx
je 0x40c23e
cmp dword [0x41cd90], ebx
je 0x40c23e
push eax
call fcn.004090cd
push dword [0x41cd90]
mov esi, eax
call fcn.004090cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c23e
test edi, edi
je 0x40c23e
call esi
test eax, eax
je 0x40c235
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c235
test byte [ebp - 0xc], 1
jne 0x40c23e
or dword [ebp + 0x10], 0x200000
jmp 0x40c277
mov eax, dword [0x41cd84]
cmp eax, ebx
je 0x40c277
push eax
call fcn.004090cd
pop ecx
test eax, eax
je 0x40c277
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c277
mov eax, dword [0x41cd88]
cmp eax, ebx
je 0x40c277
push eax
call fcn.004090cd
pop ecx
test eax, eax
je 0x40c277
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41cd80]
call fcn.004090cd
pop ecx
test eax, eax
je 0x40c297
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c299
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a748
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.004a65d0
mov dword [esp], 0xc8
mov dword [esp + 4], 0x96
push 0
call fcn.004915e9
mov ebx, eax
push 0
call fcn.00491900
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 8], ebx
push 0
call fcn.00491658
mov ebx, eax
push 0
call fcn.0049197d
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp + 4]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 0xc], ebx
push 0x80000004
push dword [0xec925c]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x60
call fcn.00491034
push 0xb
push 0x67
call fcn.0049f596
push eax
push 0x1a
push 0xaa
push 0xf
push 0xf
push 0x63
call fcn.0048b5e4
push 0xb
push 0x65
call fcn.0049f596
push eax
push 0x1a
push 0xaa
push 0x2d
push 0xf
push 0x61
call fcn.0048b5e4
push 0xb
push 0x66
call fcn.0049f596
push eax
push 0x1a
push 0xaa
push 0x4b
push 0xf
push 0x62
call fcn.0048b5e4
push dword [0xec93a8]
push 0x14
push 0xaa
push 0x78
push 0xf
push 0x64
call fcn.00488e4a
call fcn.00438eec
call fcn.0049102c
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x41a959
call fcn.00494a95
push eax
mov ebx, 0x60
cmp ebx, dword [esp]
jne 0x41a956
push dword [esp + 0x20]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x41a955
call fcn.00494a86
push eax
mov ebx, 0x63
cmp ebx, dword [esp]
jne 0x41a90a
mov eax, str.https:__msfree.su_donaties_donations.html
push eax
call fcn.00467952
add esp, 0xc
jmp 0x41a9b0
mov ebx, 0x61
cmp ebx, dword [esp]
jne 0x41a929
mov eax, str.https:__msfree.su_donaties_donations.html
push eax
call fcn.00467952
add esp, 0xc
jmp 0x41a9b0
mov ebx, 0x62
cmp ebx, dword [esp]
jne 0x41a945
mov eax, str.https:__msfree.su_donaties_donations.html
push eax
call fcn.00467952
add esp, 0xc
jmp 0x41a9b0
mov ebx, 0x64
cmp ebx, dword [esp]
jne 0x41a954
add esp, 0xc
jmp 0x41a9b0
pop eax
pop eax
pop eax
jmp 0x41a963
push 0x60
call fcn.0049100e
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41a987
call fcn.0049198b
mov ebx, eax
cmp ebx, 0x60
jne 0x41a987
call fcn.00438eec
jmp 0x41a9b0
push 0xd
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41a9ab
call fcn.0049198b
mov ebx, eax
cmp ebx, 0x60
jne 0x41a9ab
call fcn.00438eec
jmp 0x41a9b0
jmp 0x41a8b3
push 0x60
call fcn.00490dbe
xor eax, eax
add esp, 0x10
pop edi
pop ebx
ret 4
Function at 0x443faf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.004a65d0
mov dword [esp], 0
jmp 0x443fc2
mov eax, dword [esp + 0x10]
cmp eax, dword [esp]
jl 0x44407b
push 0
call fcn.00490eef
and eax, eax
je 0x444072
mov dword [esp + 4], 0xffffffff
call fcn.0044a072
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
jle 0x444041
call fcn.00494a95
push eax
mov ebx, dword [0xec93c8]
cmp ebx, dword [esp]
jne 0x44401c
push dword [esp + 8]
call fcn.00442b26
mov ebx, eax
and ebx, ebx
jne 0x44401a
jmp 0x44403e
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x444034
push dword [esp + 8]
call fcn.004362c8
mov ebx, eax
and ebx, ebx
jne 0x444032
jmp 0x44403e
push 3
call fcn.00490bd3
pop eax
jmp 0x44404b
push 5
call fcn.00490bd3
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x444068
mov dword [0xec9378], 1
jmp 0x444072
mov dword [0xec9378], 0
inc dword [esp]
jno 0x443fc2
xor eax, eax
add esp, 8
pop ebx
ret 4
Function at 0x449422
Capabilities:
Query environment variable

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.004a65d0
push dword [esp + 0x1c]
call fcn.0044c3a0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.0044c000
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6430
pop edx
push eax
push 0x3e8
call fcn.004a3e10
call fcn.004a6560
lea eax, [esp + 8]
push eax
call fcn.004a6470
push 0x3e8
mov eax, dword [esp + 8]
push eax
mov eax, str.WINDIR
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edx, 0x5300ba
lea ecx, [esp + 8]
call fcn.0044c008
push edx
call fcn.004a6430
pop edx
push eax
push 0xe
mov edx, dword [esp + 0xc]
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6500
mov edx, str.System32
push edx
call fcn.004a6500
call fcn.004a6560
push edx
call fcn.004a6430
pop edx
push eax
mov edx, 0x535b02
push edx
call fcn.004a6500
mov edx, dword [esp + 0x10]
push edx
call fcn.004a6500
call fcn.004a6560
mov edx, dword [esp + 0x14]
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6500
mov edx, str.System32cmd.exe
push edx
call fcn.004a6500
call fcn.0044c382
add dword [esp], edx
call fcn.0044c382
add dword [esp + 4], edx
call fcn.0044c382
add dword [esp + 8], edx
call fcn.00467404
call fcn.0044c3a0
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4495b0
push dword [esp + 0xc]
call fcn.00467b30
and eax, eax
je 0x4495a7
push dword [esp + 0xc]
call fcn.00467b77
and eax, eax
je 0x4495a5
mov edx, dword [esp + 8]
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6500
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6430
pop edx
push eax
push 0x18
push dword [esp + 0x20]
call fcn.00467b9d
call fcn.0044c382
add dword [esp], edx
call fcn.00428a80
pop eax
mov edx, 0x542144
push edx
call fcn.004a6500
lea eax, [esp + 0xc]
push eax
call fcn.004a6470
jmp 0x449530
push dword [esp + 0xc]
call fcn.00467bd6
mov edx, dword [esp + 8]
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6500
pop eax
push eax
call fcn.0044c370
pop edx
add eax, edx
jmp 0x4495d8
push dword [esp]
call fcn.004a6630
push dword [esp + 4]
call fcn.004a6630
push dword [esp + 8]
call fcn.004a6630
add esp, 0x10
pop ebx
ret 4
Function at 0x44a142
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a148
call fcn.004a65d0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.0044c000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.0044c000
push dword [esp]
call fcn.0044a2c9
push dword [esp + 4]
mov edx, 0x531018
pop ecx
call fcn.0044c330
je 0x44a217
cmp dword [0xec94a4], 0
je 0x44a1fd
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00488410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x44a1fb
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.0048846a
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0xec94a8]
or ebx, 0xf003f
push ebx
mov eax, dword [0xec9498]
push eax
push dword [0xec94a0]
push dword [esp + 0x1c]
call fcn.004884c6
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00488350
jmp 0x44a212
mov eax, dword [0xec9498]
push eax
push dword [0xec94a0]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x44a2a0
lea eax, [esp + 0x18]
push eax
push dword [0xec94a0]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0xec94a4], 0
je 0x44a28d
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00488410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x44a28b
push 0
mov ebx, dword [0xec94a8]
or ebx, 0xf003f
push ebx
mov eax, dword [0xec9498]
push eax
push dword [esp + 0x24]
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0x1c]
call fcn.00488523
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00488350
jmp 0x44a2a0
mov eax, dword [0xec9498]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x44a2af
mov eax, 1
jmp 0x44a2b1
xor eax, eax
push dword [esp + 4]
call fcn.004a6630
push dword [esp]
call fcn.004a6630
add esp, 0x1c
pop ebx
ret 8
Function at 0x44a4cb
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.004a65d0
push dword [esp + 0xc]
call fcn.0044c3a0
mov ebx, dword [0xec94e0]
and ebx, ebx
jne 0x44a507
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0xec94e4], eax
mov dword [0xec94e0], 1
jmp 0x44a51c
push 2
push dword [0xec94e4]
call sub.USER32.dll_GetWindow
mov dword [0xec94e4], eax
mov ebx, dword [0xec94e4]
and ebx, ebx
je 0x44a5b6
push 0xfffffff0
push dword [0xec94e4]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x44a5b4
push 0xffffffec
push dword [0xec94e4]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x44a5b4
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6430
pop edx
push eax
push 0x100
call fcn.004a3e10
lea eax, [esp + 4]
push eax
call fcn.004a6470
push 0x100
push dword [esp + 4]
push dword [0xec94e4]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x5300ba
pop ecx
call fcn.0044c330
jne 0x44a5b4
jmp 0x44a5ce
jmp 0x44a5c0
mov dword [0xec94e0], 0
mov ebx, dword [0xec94e4]
and ebx, ebx
jne 0x44a4dd
mov edx, dword [esp]
push edx
call fcn.004a6430
pop edx
push eax
push edx
call fcn.004a6500
pop eax
push eax
call fcn.0044c370
pop edx
add eax, edx
jmp 0x44a5f5
push dword [esp]
call fcn.004a6630
add esp, 4
pop ebx
ret

Function at 0x44a602
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a609
call fcn.004a65d0
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.0044c000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x44a658
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x44a662
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x44a6eb
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x44a6e2
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.00490bd3
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x44a6e0
jmp 0x44a6e2
jmp 0x44a6ba
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x44a6ed
xor eax, eax
push dword [esp]
call fcn.004a6630
add esp, 0x64
pop ebx
pop ebp
ret 8
Function at 0x44a716
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a71d
call fcn.004a65d0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
and eax, eax
je 0x44a7d7
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x53655e
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x44a7ce
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
push ebp
pop ebp
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x44a7e2
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x44cc15
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x44ccad
push edi
push 0xf42c24
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xec95c0]
test edi, edi
je 0x44cc81
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44cc7a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0xec95c0
call fcn.004a6347
pop ecx
pop ecx
jmp 0x44cc7c
mov edi, dword [edi]
test edi, edi
jne 0x44cc51
pop ebx
mov eax, dword [0xec55bc]
mov esi, eax
inc eax
push 0x10
push 0xec95c0
mov dword [0xec55bc], eax
call fcn.004a6387
pop ecx
pop ecx
push 0xf42c24
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x44ccb5
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0044cb88
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0xf42c24
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0xec95c0]
jmp 0x44cce6
cmp dword [esi + 0xc], edi
je 0x44ccec
mov esi, dword [esi]
test esi, esi
jne 0x44ccdf
jmp 0x44cd04
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0xec95c0
call fcn.004a6347
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x44cfc4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x44d019
push dword [esp + 0x10]
push 0x44cf43
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0xec95c8]
test esi, esi
je 0x44d072
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x44d011
cmp byte [esi + 0x10], 0
je 0x44d011
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x44cfed
jmp 0x44d072
mov esi, dword [0xec95c8]
test esi, esi
je 0x44d072
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x44d06b
cmp byte [esi + 0x11], 0
je 0x44d047
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x44d05e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0xec95c8
call fcn.004a6347
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x44d026
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4679aa
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0xf42c50]
call fcn.004a5a04
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x467aaa
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x467a00
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4679f8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x467a40
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x467a82
push 0x22
pop edx
cmp cx, dx
je 0x467a32
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x467a22
xor ecx, ecx
cmp word [eax], cx
je 0x467a82
mov ecx, eax
add eax, 2
jmp 0x467a84
test dx, dx
je 0x467a8a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x467a32
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x467a78
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x467a82
cmp cx, dx
je 0x467a75
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x467a65
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x467a4a
jmp 0x467a32
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x467a8c
xor edx, edx
cmp dword [ebp], ebx
jne 0x467a95
test edi, edi
jne 0x467ab2
test edx, edx
je 0x467a9a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4679ee
test edi, edi
jne 0x467ac3
mov eax, ebx
jmp 0x467ac7
test esi, esi
je 0x467ac3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x467ac7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x467c2c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x467c80
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x467c7a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x467c3f
jmp 0x467c7e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x467c86
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x467d45
cmp dword [esp + 0x24], 2
je 0x467d45
push 0x2000
push ebp
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x467d14
cmp dword [esp + 0x18], 2
jne 0x467d30
cmp dword [esp + 0x28], 0xffffffff
je 0x467cd8
cmp ebp, dword [esp + 0x28]
jae 0x467d30
add ebp, 2
test ebx, ebx
jne 0x467cfd
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x467d30
cmp ax, 0xd
je 0x467d14
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467cc4
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004f36a0
jmp 0x467dd7
push eax
push 0
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x467d63
cmp ebp, dword [esp + 0x28]
jae 0x467dbb
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467dbb
cmp dword [esp + 0x18], 1
jne 0x467dbb
inc ebp
test ebx, ebx
jne 0x467da8
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x467dbb
cmp al, 0xd
je 0x467d56
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x467d56
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x467dd2
call fcn.004f36f0
jmp 0x467dd7
call fcn.004f3640
push esi
push 0
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x468046
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x4681e5
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4681e4
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4681e3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0xec9124]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4681dc
call fcn.004b87f0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4681c9
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004b8cc0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004b8e40
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x468115
cmp dword [eax + 8], 3
je 0x468115
push dword [esp + 0x50]
push edi
call fcn.004b8590
pop ecx
pop ecx
jmp 0x468133
push dword [esp + 0x50]
call fcn.004f35b0
mov esi, eax
push esi
push edi
call fcn.004b8cb0
pop ecx
pop ecx
push esi
call fcn.004f35a0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004b8d10
push 0x8000
push edi
call fcn.004b8b60
push edi
push dword [esi]
call fcn.004b8fb0
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x4681b0
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004b8f70
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x4681a8
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x468176
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x4681c2
mov dword [esp + 0x18], 1
push edi
call fcn.004b8720
pop ecx
push ebp
push 0
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x46829f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x468301
cmp word [esi], di
je 0x468301
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004b99c0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004b9bd0
add esp, 0x10
test eax, eax
jne 0x468300
push 0x24
push 8
push dword [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10