joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100890e1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x1c]
mov ebx, dword [ecx + edi + 0x20]
add eax, edi
mov ebp, dword [ecx + edi + 0x24]
add ebx, edi
mov dword [esp + 0x10], eax
add ebp, edi
jmp 0x10089117
lea ebx, [ebx + 4]
lea ebp, [ebp + 2]
mov esi, dword [ebx]
lea eax, [esp + 0x14]
push 0x208
push eax
add esi, edi
call fcn.10089b85
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1008960d
push dword [esp + 0x238]
lea eax, [esp + 0x28]
push eax
call fcn.1008989c
movzx ecx, word [ebp]
add esp, 0x18
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
add ecx, edi
cmp dword [esp + 0x224], eax
jne 0x10089111
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x20c
ret

Function at 0x1008963e
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
jmp 0x10089645
dec eax
test al, 3
jne 0x10089644
xor ecx, ecx
test eax, eax
je 0x10089663
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor dword [ecx + edx], esi
add ecx, 4
cmp ecx, eax
jb 0x10089658
pop esi
ret

Function at 0x10089812
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, dword [eax + 0xc]
add esi, 0xc
mov esi, dword [esi]
push dword [esi + 0x30]
call fcn.100898d4
pop ecx
cmp dword [esp + 8], eax
jne 0x1008981f
mov eax, dword [esi + 0x18]
pop esi
ret

Function at 0x10089835
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, dword [eax + 0xc]
add esi, 0xc
mov esi, dword [esi]
cmp dword [esi + 0x30], 0
je 0x10089842
cmp dword [esp + 8], 0
je 0x10089860
push dword [esi + 0x30]
call fcn.10089b59
pop ecx
cmp dword [esp + 8], eax
jne 0x10089842
mov eax, dword [esi + 0x18]
pop esi
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 [0xec9204]
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 [0xec9350]
push 0x14
push 0xaa
push 0x78
push 0xf
push 0x64
call fcn.00488e4a
call fcn.00438f0d
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.00438f0d
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.00438f0d
jmp 0x41a9b0
jmp 0x41a8b3
push 0x60
call fcn.00490dbe
xor eax, eax
add esp, 0x10
pop edi
pop ebx
ret 4
Function at 0x443fd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.004a65d0
mov dword [esp], 0
jmp 0x443fe3
mov eax, dword [esp + 0x10]
cmp eax, dword [esp]
jl 0x44409c
push 0
call fcn.00490eef
and eax, eax
je 0x444093
mov dword [esp + 4], 0xffffffff
call fcn.0044a093
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
jle 0x444062
call fcn.00494a95
push eax
mov ebx, dword [0xec9370]
cmp ebx, dword [esp]
jne 0x44403d
push dword [esp + 8]
call fcn.00442b47
mov ebx, eax
and ebx, ebx
jne 0x44403b
jmp 0x44405f
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x444055
push dword [esp + 8]
call fcn.004362c8
mov ebx, eax
and ebx, ebx
jne 0x444053
jmp 0x44405f
push 3
call fcn.00490bd3
pop eax
jmp 0x44406c
push 5
call fcn.00490bd3
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x444089
mov dword [0xec9320], 1
jmp 0x444093
mov dword [0xec9320], 0
inc dword [esp]
jno 0x443fe3
xor eax, eax
add esp, 8
pop ebx
ret 4
Function at 0x449443
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 0x4495d1
push dword [esp + 0xc]
call fcn.00467b30
and eax, eax
je 0x4495c8
push dword [esp + 0xc]
call fcn.00467b77
and eax, eax
je 0x4495c6
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, 0x54210a
push edx
call fcn.004a6500
lea eax, [esp + 0xc]
push eax
call fcn.004a6470
jmp 0x449551
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 0x4495f9
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 0x44a163
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a169
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.0044a2ea
push dword [esp + 4]
mov edx, 0x531018
pop ecx
call fcn.0044c330
je 0x44a238
cmp dword [0xec944c], 0
je 0x44a21e
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00488410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x44a21c
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.0048846a
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0xec9450]
or ebx, 0xf003f
push ebx
mov eax, dword [0xec9440]
push eax
push dword [0xec9448]
push dword [esp + 0x1c]
call fcn.004884c6
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00488350
jmp 0x44a233
mov eax, dword [0xec9440]
push eax
push dword [0xec9448]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x44a2c1
lea eax, [esp + 0x18]
push eax
push dword [0xec9448]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0xec944c], 0
je 0x44a2ae
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00488410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x44a2ac
push 0
mov ebx, dword [0xec9450]
or ebx, 0xf003f
push ebx
mov eax, dword [0xec9440]
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 0x44a2c1
mov eax, dword [0xec9440]
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 0x44a2d0
mov eax, 1
jmp 0x44a2d2
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 0x44a4ec
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 [0xec9488]
and ebx, ebx
jne 0x44a528
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0xec948c], eax
mov dword [0xec9488], 1
jmp 0x44a53d
push 2
push dword [0xec948c]
call sub.USER32.dll_GetWindow
mov dword [0xec948c], eax
mov ebx, dword [0xec948c]
and ebx, ebx
je 0x44a5d7
push 0xfffffff0
push dword [0xec948c]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x44a5d5
push 0xffffffec
push dword [0xec948c]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x44a5d5
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 [0xec948c]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x5300ba
pop ecx
call fcn.0044c330
jne 0x44a5d5
jmp 0x44a5ef
jmp 0x44a5e1
mov dword [0xec9488], 0
mov ebx, dword [0xec948c]
and ebx, ebx
jne 0x44a4fe
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 0x44a616
push dword [esp]
call fcn.004a6630
add esp, 4
pop ebx
ret

Function at 0x44a623
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a62a
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 0x44a679
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x44a683
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 0x44a70c
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x44a703
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 0x44a701
jmp 0x44a703
jmp 0x44a6db
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x44a70e
xor eax, eax
push dword [esp]
call fcn.004a6630
add esp, 0x64
pop ebx
pop ebp
ret 8
Function at 0x44a737
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a73e
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 0x44a7f8
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 0x44a7ef
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 0x44a803
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 0xf42bcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xec9568]
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 0xec9568
call fcn.004a6347
pop ecx
pop ecx
jmp 0x44cc7c
mov edi, dword [edi]
test edi, edi
jne 0x44cc51
pop ebx
mov eax, dword [0xec5564]
mov esi, eax
inc eax
push 0x10
push 0xec9568
mov dword [0xec5564], eax
call fcn.004a6387
pop ecx
pop ecx
push 0xf42bcc
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, 0xf42bcc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0xec9568]
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 0xec9568
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 [0xec9570]
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 [0xec9570]
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 0xec9570
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 [0xf42bf8]
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 [0xec90cc]
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 [0xec90cc]
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 [0xec90cc]
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 [0xec90cc]
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 [0xec90cc]
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 [0xec90cc]
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 [0xec90cc]
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 [0xec90cc]
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