joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4decd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5a7464]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4ded56
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004b30e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4ded91
push str.Received_too_short_packet
push edi
call fcn.004c5d50
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00508494
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4dedb2
jmp dword [ecx*4 + 0x4deebc]
cmp edx, 4
jle case.0x4dedb2.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4dedb2.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.004c5c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4dee16
push 5
push esi
call fcn.004df610
add esp, 8
mov eax, ebx
jmp 0x4ded78
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004d1cd0
jmp 0x4dee91
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x56c4c0
push edi
call fcn.004c5e20
jmp 0x4dee91
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004dea60
add esp, 0xc
test eax, eax
je case.0x4dedb2.4
jmp 0x4ded78
push str.Internal_error:_Unexpected_packet
push 0x56d02c
push edi
call fcn.004c5d50
add esp, 0xc
push ebp
call fcn.004d1f30
add esp, 4
test eax, eax
je 0x4ded76
push 5
push esi
call fcn.004df610
add esp, 8
mov eax, 0x2a
jmp 0x4ded78
Function at 0x4e5f00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5a7464]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00535323
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4e5f65
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4e5f65
lea eax, [esp]
push eax
call dword [0x5a736c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00508494
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00508494
add esp, 0x108
ret
Function at 0x4e9a10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4e9a3b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4e9a2a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4e9a70
cmp dword [esi + 8], 0
jne 0x4e9a5e
push 0x58fd74
push dword [eax + 8]
call fcn.00525e28
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4e9a5e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.005297de
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4e9a92
mov eax, dword [esi + 8]
test eax, eax
je 0x4e9a8c
push eax
call fcn.00525efc
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4edd90
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4edda0
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x5a7360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4eddc7
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4edde0
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4eddd0
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4ede5a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4ede4e
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x5a7364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4ede80
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
mov eax, dword [0x5a7464]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4edf24
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004edf90
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004f2dd0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4edf37
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00508494
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00508494
add esp, 0x24
ret
Function at 0x4f3870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5a7360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f3897
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4f38df
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4f38e3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4f3945
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4f3904
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4f3977
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x5780c8
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5780c9
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4f3950
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x50cb09
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x53f42b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053f2aa

Function at 0x546279
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00545f39
Function at 0x40f100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4337d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x44647c]
push ebx
push ebp
push esi
push edi
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov ebp, ecx
mov edi, 7
mov dword [esp + 0x2c], esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.VssClient::ExcludeWritersWithNoRestoreEvents
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], ebp
mov word [esi + 4], bx
call fcn.00426a3d
add esp, 4
push eax
push str.VssClient::ExcludeWritersWithNoRestoreEvents
mov ecx, esi
call fcn.00402060
push 0xb0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x50], esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.._select.cpp
mov dword [esp + 0xa4], ebx
mov word [esi + 4], bx
call fcn.00426a3d
add esp, 4
push eax
push str.._select.cpp
mov ecx, esi
call fcn.00402060
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00418520
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.Exclude_writers_that_do_not_support_restore_events_...
mov dword [esp + 0x84], 1
mov word [esi + 4], bx
call fcn.00426a3d
add esp, 4
push eax
push str.Exclude_writers_that_do_not_support_restore_events_...
mov ecx, esi
call fcn.00402060
lea eax, [esp + 0x38]
push eax
call fcn.004187d0
add esp, 0x20
mov dword [esp + 0x10], ebx
xor edi, edi
jmp 0x40f200
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40f2b4
mov ecx, dword [ebp + 0x54]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x40f2b4
mov eax, dword [ebp + 0x50]
mov cl, byte [edi + eax + 0x81]
cmp cl, bl
lea ebp, [edi + eax + 0x81]
jne 0x40f29c
cmp byte [edi + eax + 0x78], bl
jne 0x40f29c
cmp dword [edi + eax + 0x18], 8
jb 0x40f255
mov eax, dword [edi + eax + 4]
jmp 0x40f259
lea eax, [edi + eax + 4]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push str.__Excluding_writer__s_since_it_does_not_support_restore_events.
mov word [esi + 4], bx
call fcn.00426a3d
add esp, 4
push eax
push str.__Excluding_writer__s_since_it_does_not_support_restore_events.
mov ecx, esi
call fcn.00402060
lea ecx, [esp + 0x3c]
push ecx
call fcn.004187d0
add esp, 0x24
mov byte [ebp], 1
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
add edi, 0x84
jmp 0x40f200
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00418690
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
call fcn.0042714d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x428bc9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4474c4], esi
push edi
jne 0x428be9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4474c0], esi
mov byte [0x4474bc], al
jne 0x428c4f
mov ecx, dword [0x447cac]
test ecx, ecx
je 0x428c30
mov eax, dword [0x447ca8]
sub eax, 4
cmp eax, ecx
jmp 0x428c29
mov eax, dword [eax]
test eax, eax
je 0x428c1b
call eax
mov eax, dword [0x447ca8]
sub eax, 4
cmp eax, dword [0x447cac]
mov dword [0x447ca8], eax
jae 0x428c13
mov eax, 0x446054
mov esi, 0x44605c
cmp eax, esi
mov edi, eax
jae 0x428c4f
mov eax, dword [edi]
test eax, eax
je 0x428c48
call eax
add edi, 4
cmp edi, esi
jb 0x428c40
mov eax, 0x446060
mov esi, 0x446068
cmp eax, esi
mov edi, eax
jae 0x428c6e
mov eax, dword [edi]
test eax, eax
je 0x428c67
call eax
add edi, 4
cmp edi, esi
jb 0x428c5f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x428c88
push dword [ebp + 8]
mov dword [0x4474c4], 1
call fcn.00428b2f
pop ebp
ret
Function at 0x42c24e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x447b60]
mov eax, dword [0x44647c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x42c414
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x447b80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x42c414
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x42c2b8
xor eax, eax
jmp 0x42c428
test al, 0x20
je 0x42c2c9
push 2
push edi
push edi
push ecx
call fcn.00430994
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42c39e
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x42c3e5
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x42c32b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42c31c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x42c2fe
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c36b
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42c377
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x42c2f2
jmp 0x42c379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x42c40f
cmp dword [ebp + 0x3a4], edi
je 0x42c3e5
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x42c3d7
mov dword [0x44747c], eax
jmp 0x42c41b
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c3c9
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x42c379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x42c379
push dword [ebp + 0x3a4]
call fcn.00430935
pop ecx
jmp 0x42c425
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42c3fd
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x42c2b1
mov dword [0x447478], 0x1c
mov dword [0x44747c], edi
jmp 0x42c425
sub eax, dword [ebp - 0x7c]
jmp 0x42c428
and dword [0x44747c], 0
mov dword [0x447478], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0042714d
add ebp, 0x39c
leave
ret
Function at 0x42db56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x447b60]
push edi
jae 0x42dd2b
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x447b80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x42dd2b
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x42dc01
test dl, 2
jne 0x42dc01
test dl, 0x48
je 0x42dbcb
cmp byte [eax + 5], 0xa
je 0x42dbcb
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42dc14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x42dbfc
mov dword [0x44747c], ecx
jmp 0x42dd32
cmp eax, 0x6d
jne 0x42dc08
xor eax, eax
jmp 0x42dd3f
push eax
call fcn.00430935
pop ecx
jmp 0x42dd3c
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x42dd26
test eax, eax
je 0x42dc3b
cmp byte [ebx], 0xa
jne 0x42dc3b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42dc44
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x42dd20
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x42dd10
cmp al, 0xd
je 0x42dc76
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x42dd02
dec ecx
cmp dword [ebp - 8], ecx
jae 0x42dc90
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x42dc8b
add dword [ebp - 8], 2
jmp 0x42dce4
mov dword [ebp - 8], eax
jmp 0x42dcfe
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x42dcb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42dcfe
cmp dword [ebp - 0x10], 0
je 0x42dcfe
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42dcd9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42dce4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42dd01
cmp ebx, dword [ebp + 0xc]
jne 0x42dce9
cmp byte [ebp - 1], 0xa
jne 0x42dce9
mov byte [ebx], 0xa
jmp 0x42dd01
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042cb48
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42dd02
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x42dc5a
jmp 0x42dd20
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42dd20
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x42dd3f
and dword [0x44747c], 0
mov dword [0x447478], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42de17
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 0x42de45
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 0x42de4c
cmp ebx, dword [eax + 4]
jae 0x42de4c
xor eax, eax
jmp 0x42e03c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42de5d
xor eax, eax
inc eax
jmp 0x42e03b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42de73
cmp ecx, edx
jae 0x42dfb8
cmp dword [eax + 4], 0
je 0x42de7c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42de64
cmp dword [ebp + 8], 0
je 0x42de9e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42dfb8
cmp eax, esi
jae 0x42dfb8
mov eax, dword [0x447558]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42dec3
cmp dword [esi*4 + 0x447560], edi
je 0x42dfbc
inc esi
cmp esi, eax
jl 0x42deb1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e038
cmp dword [ebp - 8], 0x1000000
jne 0x42e038
test byte [ebp - 0xc], 0xcc
je 0x42df41
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42e038
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42e038
cmp word [eax + 0x18], 0x10b
jne 0x42e038
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42e038
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42df41
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42df41
test byte [ecx + 0x27], 0x80
jne 0x42dfb8
push 1
push 0x4475a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42de55
mov ecx, dword [0x447558]
test ecx, ecx
mov edx, ecx
jle 0x42df75
lea eax, [ecx*4 + 0x44755c]
cmp dword [eax], edi
je 0x42df75
dec edx
sub eax, 4
test edx, edx
jg 0x42df69
test edx, edx
jne 0x42dfa6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42df82
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42df9a
lea eax, [edx*4 + 0x447560]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42df88
cmp ecx, 0x10
jge 0x42dfa6
inc ecx
mov dword [0x447558], ecx
push 0
push 0x4475a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42de55
xor eax, eax
jmp 0x42e03b
test esi, esi
jle 0x42de55
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4475a0
call ebx
test eax, eax
jne 0x42de55
cmp dword [esi*4 + 0x447560], edi
je 0x42e012
mov eax, dword [0x447558]
lea esi, [eax - 1]
test esi, esi
jl 0x42e000
cmp dword [esi*4 + 0x447560], edi
je 0x42dffc
dec esi
jns 0x42dff0
test esi, esi
jge 0x42e010
cmp eax, 0x10
jge 0x42e00b
inc eax
mov dword [0x447558], eax
lea esi, [eax - 1]
jmp 0x42e012
je 0x42e02a
xor ecx, ecx
test esi, esi
jl 0x42e02a
lea eax, [ecx*4 + 0x447560]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42e018
push 0
push 0x4475a0
call ebx
jmp 0x42de55
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e13c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44647c]
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 + 0x446970]
je 0x42e171
inc eax
cmp eax, 0x13
jb 0x42e162
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x446970]
jne 0x42e297
mov eax, dword [0x44746c]
cmp eax, 1
je 0x42e26f
cmp eax, edx
jne 0x42e1a1
cmp dword [0x446764], 1
je 0x42e26f
cmp ecx, 0xfc
je 0x42e297
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 0x42e1d7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042a690
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00428300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42e20b
mov eax, edi
push eax
call fcn.00428300
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43ff64
push edi
call fcn.0042f680
add esp, 0x10
push edi
call fcn.00428300
push dword [esi + 0x446974]
mov ebx, eax
call fcn.00428300
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042e9c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042a690
push edi
push ebx
call fcn.0042a6a0
push 0x43ff60
push ebx
call fcn.0042a6a0
push dword [esi + 0x446974]
push ebx
call fcn.0042a6a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00430506
add esp, 0x2c
jmp 0x42e297
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x446974]
push dword [esi]
call fcn.00428300
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.0042714d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret