joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b00
Capabilities:
Connect socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
mov al, byte [esi + 0x44]
test al, al
je 0x409b16
mov al, 1
pop esi
add esp, 0x2c
ret 8
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
push ebx
mov bl, 1
jne 0x409b2b
pop ebx
xor al, al
pop esi
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x409b92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x409b8d
mov eax, dword [esi + 0xc]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409b90
mov edx, dword [esi + 0x40]
push edi
mov ecx, 0xb
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0x20]
test eax, eax
pop edi
je 0x409b92
mov dword [esi + 0x48], eax
xor bl, bl
mov byte [esi + 0x44], bl
mov al, bl
pop ebx
pop esi
add esp, 0x2c
ret 8

Function at 0x409ba0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x409bcc
mov dword [esi + 0x48], 0x2749
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esi + 8]
push 0
push edx
call ebx
cmp eax, 0x102
jne 0x409bec
mov dword [esi + 0x48], 0x2734
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
push ebp
push edi
mov edi, dword [esp + 0x30]
lea ebp, [esi + 0x28]
push ebp
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x40]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x409c3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x409c87
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call ebx
test eax, eax
jne 0x409c8a
mov edx, dword [esi + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x409c81
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
Function at 0x409ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x409ccc
mov dword [esi + 0x48], 0x2749
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 4]
push 0
push edx
call ebx
cmp eax, 0x80
jne 0x409cec
mov dword [esi + 0x48], 0x2734
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x14], edx
push ebp
mov dword [esp + 0x1c], edx
push edi
mov edi, dword [esp + 0x38]
mov ecx, dword [edi]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
lea ebp, [esi + 0x10]
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [edi], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x18]
push ecx
push edi
push 1
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x409d6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x409db4
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call ebx
test eax, eax
jne 0x409db7
mov edx, dword [esi + 0x40]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x409dae
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x20
ret 8

Function at 0x40b0e0
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esi + 0x10]
mov edx, ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
call fcn.00408010
xor ebx, ebx
cmp eax, ebx
jge 0x40b10d
push eax
call fcn.004016f0
xor eax, eax
lea ecx, [esi + 0x28]
mov edx, ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
call fcn.00408010
cmp eax, ebx
jge 0x40b134
push eax
call fcn.004016f0
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], 0xffffffff
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x44e2b8], ebx
je 0x40b171
push 0x44e128
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x44e2b8], eax
mov eax, esi
pop esi
pop ebx
ret
Function at 0x417a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x417ab3
call fcn.00438769
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x417ab3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x417aa9
xor eax, eax
jmp 0x417bcc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x417ae3
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x417ae3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x417bc9
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x417b10
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00416c00
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x417bc9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x417b59
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x417b59
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x417b53
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00416c00
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x417bb9
and dword [ebp + 0xc], 0
jmp 0x417bb9
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x417bb9
push 0xc
call fcn.0042f590
mov esi, eax
test esi, esi
pop ecx
je 0x417b9b
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x417b9d
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x417bb4
push dword [ebp - 8]
call fcn.0042f018
jmp 0x417bb9
call fcn.0042efef
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x417b1e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4230ef
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004200d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42318a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4524d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42318a
cmp eax, 1
je 0x4231ab
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42318a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x423157
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x423186
xor eax, eax
inc eax
jmp 0x4231ca
cmp edi, eax
jae 0x42318e
xor eax, eax
jmp 0x4231ca
cmp eax, esi
jae 0x423195
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4524d0]
jmp 0x4231ae
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42321b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4449e8
call fcn.00423f0c
mov edi, 0x94
mov eax, edi
call fcn.004200d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4524d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4524dc], eax
mov edx, dword [esi + 8]
mov dword [0x4524e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4524d4], esi
cmp ecx, 2
je 0x42327b
or esi, 0x8000
mov dword [0x4524d4], esi
shl eax, 8
add eax, edx
mov dword [0x4524d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4232b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4232b6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4232ce
cmp eax, 0x20b
je 0x4232bb
mov dword [ebp - 0x1c], esi
jmp 0x4232e2
cmp dword [ecx + 0x84], 0xe
jbe 0x4232b6
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4232dc
cmp dword [ecx + 0x74], 0xe
jbe 0x4232b6
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00427c34
pop ecx
test eax, eax
jne 0x4232f6
push 0x1c
call fcn.004231f7
pop ecx
call fcn.00425724
test eax, eax
jne 0x423307
push 0x10
call fcn.004231f7
pop ecx
call fcn.0042a0a0
mov dword [ebp - 4], esi
call fcn.00429ea2
test eax, eax
jge 0x423320
push 0x1b
call fcn.004231d2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x453d90], eax
call fcn.00429d80
mov dword [0x4524c0], eax
call fcn.00429cde
test eax, eax
jge 0x423346
push 8
call fcn.004231d2
pop ecx
call fcn.00429aab
test eax, eax
jge 0x423357
push 9
call fcn.004231d2
pop ecx
push 1
call fcn.00423d69
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42336d
push eax
call fcn.004231d2
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00429a4e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42338e
movzx eax, word [ebp - 0x40]
jmp 0x423391
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042e63e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4233af
push edi
call fcn.00423e96
call fcn.00423eb8
jmp 0x4233e1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00423f47
ret
Function at 0x423dd3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x444a50
call fcn.00423f0c
push 8
call fcn.00427bce
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x452510], esi
jne 0x423e07
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45250c], esi
mov al, byte [ebp + 0x10]
mov byte [0x452508], al
cmp dword [ebp + 0xc], edi
jne 0x423e51
cmp dword [0x453d88], edi
je 0x423e41
mov eax, dword [0x453d84]
sub eax, 4
mov dword [0x453d84], eax
cmp eax, dword [0x453d88]
jb 0x423e41
mov eax, dword [eax]
cmp eax, edi
je 0x423e22
call eax
jmp 0x423e22
push 0x44e09c
mov eax, 0x44e094
call fcn.00423d51
pop ecx
push 0x44e0a8
mov eax, 0x44e0a0
call fcn.00423d51
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x423e82
cmp dword [ebp + 0x10], edi
jne 0x423e90
mov dword [0x452510], esi
push dword [ebp + 8]
call fcn.00423d0f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x423e8f
push 8
call fcn.00427b19
pop ecx
ret
call fcn.00423f47
ret
Function at 0x4287a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4287d6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4287dd
cmp ebx, dword [eax + 4]
jae 0x4287dd
xor eax, eax
jmp 0x4289cd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4287ee
xor eax, eax
inc eax
jmp 0x4289cc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x428804
cmp ecx, edx
jae 0x428949
cmp dword [eax + 4], 0
je 0x42880d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4287f5
cmp dword [ebp + 8], 0
je 0x42882f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x428949
cmp eax, esi
jae 0x428949
mov eax, dword [0x452778]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x428854
cmp dword [esi*4 + 0x452780], edi
je 0x42894d
inc esi
cmp esi, eax
jl 0x428842
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4289c9
cmp dword [ebp - 8], 0x1000000
jne 0x4289c9
test byte [ebp - 0xc], 0xcc
je 0x4288d2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4289c9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4289c9
cmp word [eax + 0x18], 0x10b
jne 0x4289c9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4289c9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4288d2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4288d2
test byte [ecx + 0x27], 0x80
jne 0x428949
push 1
push 0x4527c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4287e6
mov ecx, dword [0x452778]
test ecx, ecx
mov edx, ecx
jle 0x428906
lea eax, [ecx*4 + 0x45277c]
cmp dword [eax], edi
je 0x428906
dec edx
sub eax, 4
test edx, edx
jg 0x4288fa
test edx, edx
jne 0x428937
push 0xf
pop ebx
cmp ecx, ebx
jg 0x428913
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42892b
lea eax, [edx*4 + 0x452780]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x428919
cmp ecx, 0x10
jge 0x428937
inc ecx
mov dword [0x452778], ecx
push 0
push 0x4527c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4287e6
xor eax, eax
jmp 0x4289cc
test esi, esi
jle 0x4287e6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4527c0
call ebx
test eax, eax
jne 0x4287e6
cmp dword [esi*4 + 0x452780], edi
je 0x4289a3
mov eax, dword [0x452778]
lea esi, [eax - 1]
test esi, esi
jl 0x428991
cmp dword [esi*4 + 0x452780], edi
je 0x42898d
dec esi
jns 0x428981
test esi, esi
jge 0x4289a1
cmp eax, 0x10
jge 0x42899c
inc eax
mov dword [0x452778], eax
lea esi, [eax - 1]
jmp 0x4289a3
je 0x4289bb
xor ecx, ecx
test esi, esi
jl 0x4289bb
lea eax, [ecx*4 + 0x452780]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4289a9
push 0
push 0x4527c0
call ebx
jmp 0x4287e6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42973a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44f318]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44fba8]
je 0x42976f
inc eax
cmp eax, 0x13
jb 0x429760
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44fba8]
jne 0x429895
mov eax, dword [0x4524c8]
cmp eax, 1
je 0x42986d
cmp eax, edx
jne 0x42979f
cmp dword [0x44f5a4], 1
je 0x42986d
cmp ecx, 0xfc
je 0x429895
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4297d5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00426670
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00423730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x429809
mov eax, edi
push eax
call fcn.00423730
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x444ac4
push edi
call fcn.00420110
add esp, 0x10
push edi
call fcn.00423730
push dword [esi + 0x44fbac]
mov ebx, eax
call fcn.00423730
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004200d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00426670
push edi
push ebx
call fcn.00426680
push 0x444ac0
push ebx
call fcn.00426680
push dword [esi + 0x44fbac]
push ebx
call fcn.00426680
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042baa0
add esp, 0x2c
jmp 0x429895
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44fbac]
push dword [esi]
call fcn.00423730
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042005d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42a54e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42a722
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x453a20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42a722
test cl, 0x48
je 0x42a5b9
cmp byte [eax + 5], 0xa
je 0x42a5b9
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a60b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42a5f3
call fcn.00422121
mov dword [eax], 9
call fcn.0042212a
mov dword [eax], esi
jmp 0x42a603
cmp eax, 0x6d
je 0x42a722
push eax
call fcn.00422133
pop ecx
or eax, 0xffffffff
jmp 0x42a724
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42a71d
test eax, eax
je 0x42a632
cmp byte [ebx], 0xa
jne 0x42a632
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42a63b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42a717
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42a707
cmp al, 0xd
je 0x42a66d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42a6f9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42a687
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42a682
add dword [ebp + 0x10], 2
jmp 0x42a6db
mov dword [ebp + 0x10], eax
jmp 0x42a6f5
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42a6f5
cmp dword [ebp - 0xc], 0
je 0x42a6f5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42a6d0
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42a6db
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42a6f8
cmp ebx, dword [ebp + 0xc]
jne 0x42a6e0
cmp byte [ebp - 1], 0xa
jne 0x42a6e0
mov byte [ebx], 0xa
jmp 0x42a6f8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042aa4d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42a6f9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42a651
jmp 0x42a717
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42a717
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42a724
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret