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

Disassembly:
push 0x28
push 0x2d9288
call 0x10008ee0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x14c
cmp word [eax + 4], si
jne 0x10003b35
add eax, 0x78
jmp 0x10003b3a
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x10003c28
cmp dword [eax + 4], edx
je 0x10003c28
cmp dword [esi + 0x1c], edx
je 0x10003c28
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x10003c28
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x10003c18
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x10003c28
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x10003ba9
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x10003bda
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x10003bc7
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003be3
push ecx
push eax
call dword [0x2d9094]
test eax, eax
jmp 0x10003bda
push eax
call dword [0x2d9034]
mov edx, dword [ebp - 0x2c]
call fcn.100062b9
xor ecx, ecx
cmp ecx, eax
jne 0x10003be3
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x10003c02
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x10003c28
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10003c28
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x10003b8a
mov dword [ebp - 0x20], eax
jmp 0x10003c28
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call 0x10008f1b
ret 4

Function at 0x100060b4
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x100062b9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x100062fe
or eax, 0xffffffff
test esi, esi
je 0x100062fa
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x2d9238]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x2d9238]
dec esi
inc edx
test esi, esi
jne 0x100062c8
pop edi
not eax
jmp 0x10006300
xor eax, eax
not eax
pop esi
ret
Function at 0x10006e69
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
add eax, edx
movzx ecx, word [eax + 0x14]
sub esp, 0x14
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
lea eax, [ecx + eax + 0x18]
xor ecx, ecx
cmp dword [eax + 4], edi
jne 0x10006e95
cmp dword [eax], 0x7373622e
jne 0x10006e95
mov ecx, eax
add eax, 0x28
dec esi
je 0x10006e9f
test ecx, ecx
je 0x10006e86
test ecx, ecx
je 0x10006ebd
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10006eb9
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x10006eb9
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x10006ec0
push 0xb
jmp 0x10006ebf
push 2
pop edi
mov eax, edi
test edi, edi
jne 0x10006f8c
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0xc]
lea edi, [eax + edx]
mov eax, esi
push ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.10003fdc
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10006f88
push dword [ebp - 4]
push edi
push ebx
call fcn.10005dd2
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test esi, esi
jbe 0x10006f62
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], ebx
lea edi, [eax + ecx + 0x2db690]
mov ebx, 0x1000
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + ecx - 0x7e47c82f]
push 1
push eax
mov eax, ebx
call fcn.10007ff0
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
add dword [ebp - 8], ebx
add ecx, dword [edi + 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x10006f2e
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 0x43175ac3]
test eax, eax
jne 0x10006f7d
sub ebx, dword [ebp - 0x14]
mov dword [0x2da344], ecx
mov dword [0x2da348], ebx
jmp 0x10006f8b
push ebx
call fcn.10006dda
xor eax, eax
inc eax
jmp 0x10006f8b
push 8
pop eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x5e4b85
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e4ba0
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a9dc5]
pop edx
test eax, eax
je 0x5e4c72
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e4c61
test dword [ebp - 0x2a8], 1
jne 0x5e4c61
and dword [ebp - 0x2a8], 0x100
jne 0x5e4c61
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2c12]
pop edx
pop esi
test eax, eax
je 0x5e4c04
jmp 0x5e4c61
cmp word [esi], 0x5a4d
jne 0x5e4c61
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e4c61
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2d4a]
pop edx
test eax, eax
je 0x5e4c61
lea eax, [ebp - 0x28c]
push eax
call fcn.005e4ae1
test eax, eax
jne 0x5e4c5a
jmp 0x5e4c61
mov eax, esi
jmp 0x5e4c72
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e4ba0
pop esi
leave
ret 4
Function at 0x4028f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp], 0xfffffff5
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov ebx, eax
lea ebp, [esp + 0x2a]
mov dword [esp], eax
mov dword [esp + 4], ebp
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
movsx esi, word [esp + 0x2a]
movsx eax, word [esp + 0x2c]
lea edi, [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x20
mov dword [esp + 0x10], edi
mov dword [esp], ebx
imul esi, eax
mov dword [esp + 8], esi
call sub.KERNEL32.dll_FillConsoleOutputCharacterA
sub esp, 0x14
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
movzx eax, word [esp + 0x32]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FillConsoleOutputAttribute
sub esp, 0x14
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.KERNEL32.dll_SetConsoleCursorPosition
sub esp, 8
mov dword [esp + 8], str._______________________________________________________________
mov dword [esp + 4], str.QUAKE_Mouse_Injector_for_1964_mupen_PJ64_2.3_n
mov dword [esp], str._n__s_s_n_n___Main_Menu___Press____to_Use_Menu_n_n_n
call fcn.00402800
mov edi, dword [0x40c008]
mov eax, str.____4_____OFF__Mouse_Injection
test edi, edi
je 0x4029c5
mov eax, str.____4_____ON__Mouse_Injection
mov dword [esp], eax
call fcn.00402800
mov esi, dword [0x40c018]
test esi, esi
je 0x402a65
mov eax, dword [0x40c00c]
mov dword [esp], str._n_n____5____Mouse_Sensitivity:__d__
lea eax, [eax + eax*4]
mov dword [esp + 4], eax
call fcn.00402800
mov ebx, dword [0x40c01c]
mov eax, str.______n_n
test ebx, ebx
jne 0x402a80
mov dword [esp], eax
call fcn.00402800
mov ecx, dword [0x40c014]
mov eax, str.____6_____OFF__Invert_Pitch_n_n
test ecx, ecx
je 0x402a73
mov dword [esp], eax
call fcn.00402800
mov dword [esp], str._n_n_n_n
call fcn.00402800
mov edx, dword [0x40c018]
mov eax, str._n____CTRL0____Hide_Settings
test edx, edx
jne 0x402a41
mov eax, str._n____CTRL0____Show_Settings
mov dword [esp], eax
call fcn.00402800
mov dword [esp + 4], str._______________________________________________________________
mov dword [esp], str._n_n_Note:______to_Change_Values_n_s_n
call fcn.00402800
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str._n_n_n_n_n_n_n_n_n_n_n_n
call fcn.00402800
jmp 0x402a2d
mov eax, str.____6_____ON__Invert_Pitch_n_n
jmp 0x402a19
mov eax, 0x40d384
jmp 0x402a02
Function at 0x403590
Capabilities:
Enumerate processes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [0x419c48], 0
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov ebp, eax
lea eax, [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 0x28], 0x128
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
lea ebx, [esp + 0x4c]
jmp 0x403643
mov edi, str.1964_ultrafast.exe
mov ecx, 0x13
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x403653
mov edi, str.mupen64pp.exe
mov ecx, 0xe
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4036a4
mov edi, str.mupen64plus_ui_console.exe
mov ecx, 0x1b
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4036d4
mov edi, str.Project64.exe
mov ecx, 0xe
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x403710
lea eax, [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x403681
mov ecx, 9
mov esi, ebx
mov edi, str.1964.exe
repe cmpsb byte [esi], byte es:[edi]
jne 0x4035e0
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], 0x438
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
mov dword [0x419c4c], 0x20000000
sub esp, 0xc
mov dword [0x419c48], eax
mov dword [esp], ebp
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [0x419c48]
sub esp, 4
xor eax, eax
test edx, edx
setne al
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], 0x438
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
mov dword [0x419c4c], 0x8dfc60
sub esp, 0xc
mov dword [0x419c48], eax
jmp 0x403681
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], 0x438
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
mov dword [0x419c4c], 0x101fc6d0
sub esp, 0xc
mov dword [0x419c48], eax
jmp 0x403681
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], 0x438
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [0x419c48], eax
lea edx, [esp + 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x46ab90
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.KERNEL32.dll_ReadProcessMemory
sub esp, 0x14
cmp dword [esp + 0x24], 0x6a6f7250
je 0x403778
mov dword [0x419c48], 0
jmp 0x403681
mov eax, dword [0x419c48]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x419c4c
mov dword [esp + 4], 0x4d6a3c
mov dword [esp], eax
call sub.KERNEL32.dll_ReadProcessMemory
sub esp, 0x14
jmp 0x403681
Function at 0x4038f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp], 0xfffffff5
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov ebx, eax
lea ebp, [esp + 0x2a]
mov dword [esp], eax
mov dword [esp + 4], ebp
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
movsx esi, word [esp + 0x2a]
movsx eax, word [esp + 0x2c]
lea edi, [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov dword [esp + 4], 0x20
imul esi, eax
mov dword [esp + 8], esi
call sub.KERNEL32.dll_FillConsoleOutputCharacterA
sub esp, 0x14
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
movzx eax, word [esp + 0x32]
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FillConsoleOutputAttribute
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.KERNEL32.dll_SetConsoleCursorPosition
sub esp, 8
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404030
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x419214
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x41920c]
sub esp, 4
test ebx, ebx
je 0x40407b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x404074
test esi, esi
je 0x404074
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404050
mov dword [esp], 0x419214
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x404260
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4042b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404388
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4042ee
cmp eax, 4
jne 0x404310
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4042fe
cmp edx, 4
je 0x4042fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404260
Function at 0x40bcc0
Capabilities:
Log keystrokes via polling
Set console window title

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x1c
call fcn.00403f20
mov dword [esp], str.Mouse_Injector
call sub.KERNEL32.dll_SetConsoleTitleA
sub esp, 4
call fcn.00401460
mov dword [esp + 8], str._______________________________________________________________
mov dword [esp + 4], str.QUAKE_Mouse_Injector_for_1964_mupen_PJ64_2.3_n
mov dword [esp], str._n__s_s_n_n___Scanning...
mov dword [0x419c44], eax
mov dword [0x419c4c], 0
call fcn.00402800
call fcn.00403590
test eax, eax
je 0x40be45
mov ebx, dword [0x419c44]
test ebx, ebx
jle 0x40bdf4
mov esi, eax
xor ebx, ebx
call fcn.00403090
call fcn.004028f0
mov dword [esp], 0x402850
call fcn.00401320
lea esi, [esi]
call fcn.00402a90
mov ecx, dword [0x40c008]
test ecx, ecx
jne 0x40bd9c
add ebx, 1
cmp ebx, 0xc8
jg 0x40bdac
mov dword [esp], 0x78
call sub.USER32.dll_GetAsyncKeyState
sub esp, 4
test ax, ax
jne 0x40bdc9
mov dword [esp], 0x10
call sub.KERNEL32.dll_Sleep
sub esp, 4
call fcn.00402a90
mov ecx, dword [0x40c008]
test ecx, ecx
je 0x40bd5f
add ebx, 1
call fcn.00403310
cmp ebx, 0xc8
jle 0x40bd6a
call fcn.00403590
mov dword [esp], 0x78
mov esi, eax
xor ebx, ebx
call sub.USER32.dll_GetAsyncKeyState
sub esp, 4
test ax, ax
je 0x40bddb
mov edx, dword [0x4191e0]
xor eax, eax
test edx, edx
sete al
mov dword [0x4191e0], eax
mov dword [esp], 0x10
call sub.KERNEL32.dll_Sleep
sub esp, 4
test esi, esi
jne 0x40bd50
jmp 0x40be23
call fcn.004038f0
mov eax, str._n__s_s_n_n___Mouse_not_detected._Closing...
mov dword [esp + 8], str._______________________________________________________________
mov dword [esp + 4], str.QUAKE_Mouse_Injector_for_1964_mupen_PJ64_2.3_n
mov dword [esp], eax
call fcn.00402800
mov dword [esp], 0x7d0
call sub.KERNEL32.dll_Sleep
push eax
call fcn.004014b0
mov eax, dword [0x419c48]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
call fcn.004038f0
mov eax, str._n__s_s_n_n___Game_not_detected__Closing...
jmp 0x40bdfe
Function at 0x40121a
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
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 ebx, eax
test ebx, ebx
je 0x4012b5
push edi
push 0x4bd560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4bd554]
test edi, edi
je 0x401288
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401281
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x4bd554
call fcn.004136b0
pop ecx
pop ecx
jmp 0x401283
mov edi, dword [edi]
test edi, edi
jne 0x401256
pop ebp
mov esi, dword [0x4bc9b0]
push 0x10
push 0x4bd554
lea eax, [esi + 1]
mov dword [0x4bc9b0], eax
call fcn.00413681
pop ecx
pop ecx
push 0x4bd560
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x401fc6
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x4bd7c8]
call fcn.00412db0
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x4020f9
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x40202c
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x402021
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x402066
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x4020c4
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x4020c0
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x40204d
jmp 0x4020c0
test ax, ax
je 0x4020d4
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x4020bc
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x4020b1
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x4020b1
mov esi, eax
movzx edx, si
cmp si, bx
je 0x4020b1
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x40209a
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x402076
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x4020ce
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x4020d8
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x4020e2
test ebx, ebx
jne 0x402101
test eax, eax
je 0x4020eb
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x402011
test ebx, ebx
jne 0x402115
mov eax, ebp
jmp 0x40211a
test edi, edi
je 0x402115
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x40211a
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x404710
Capabilities:
Write file on windows

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

Function at 0x404760
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x404779
push dword [0x4bd85c]
call fcn.004222bc
pop edi
ret 4
push esi
push edi
push dword [0x4bd85c]
call fcn.00413ef7
mov esi, eax
test esi, esi
je 0x4047e3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4047cf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4047be
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x4bd85c]
call fcn.00413f8c
pop esi
pop edi
ret 4

Function at 0x404a80
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4bd85c]
call fcn.00413ef7
mov esi, eax
test esi, esi
je 0x404aff
cmp dword [esi + 4], 0
je 0x404ad0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0042fa80
test eax, eax
je 0x404ac4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404b0a
cmp dword [esp + 8], 0
je 0x404b0a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
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