joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423fb0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004023d0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.00402450
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40361f
jmp 0x40375c
push 0
call fcn.00401110
add esp, 4
push eax
call fcn.0041124c
add esp, 4
call fcn.0041122b
imul edx, eax, 0xffff
mov dword [ebp - 0x3c], edx
xor eax, eax
mov dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2c], ax
mov edx, dword [ebp - 0x3c]
xor edx, 0x69a7
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, 1
shl ecx, 1
mov word [ebp + ecx - 0x2c], ax
push 0
push 4
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40369d
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x34], 0xffffffff
jmp 0x40375c
mov edx, dword [str.xxxx]
mov dword [ebp - 0x28], edx
mov eax, dword [0x42aa60]
mov dword [ebp - 0x24], eax
mov ecx, dword [str.error]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x42aa68]
mov dword [ebp - 0x1c], edx
push 2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00402c70
add esp, 0x10
push 0
push 0x10
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00402c70
add esp, 0x10
mov byte [ebp - 0x2d], 0
movzx edx, byte [ebp - 0x2d]
test edx, edx
jne 0x40374b
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00402d60
add esp, 8
mov byte [ebp - 0x35], al
movzx edx, byte [ebp - 0x35]
test edx, edx
jne 0x40372d
mov dword [ebp - 0x40], str.error
push 0x4303f8
lea eax, [ebp - 0x40]
push eax
call fcn.0040cc9b
mov byte [ebp - 0x2d], 1
jmp 0x403739
mov dword [ebp - 4], 0xffffffff
jmp 0x403749
jmp 0x4036ee
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x34], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret
Function at 0x407d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d614
call fcn.00420900
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c40
push 0
lea eax, [ebp - 0x9d48]
push eax
call fcn.0040cee0
add esp, 0xc
push 0x9c40
push 0
lea ecx, [ebp - 0x13988]
push ecx
call fcn.0040cee0
add esp, 0xc
push 0x9c40
push 0
lea edx, [ebp - 0x1d5c8]
push edx
call fcn.0040cee0
add esp, 0xc
call fcn.00402380
call fcn.00401130
call fcn.00407b80
call fcn.00406790
movzx eax, al
test eax, eax
je 0x407d7b
push 1
call fcn.0041216f
mov dword [ebp - 0x1d5e4], 0xa
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x9d48], 2
mov eax, 4
shl eax, 0
mov dword [ebp + eax - 0x9d48], 3
mov ecx, 4
shl ecx, 1
mov dword [ebp + ecx - 0x9d48], 4
mov edx, 4
imul eax, edx, 3
mov dword [ebp + eax - 0x9d48], 5
mov ecx, 4
shl ecx, 2
mov dword [ebp + ecx - 0x9d48], 6
mov edx, 4
imul eax, edx, 7
mov dword [ebp + eax - 0x9d48], 8
mov ecx, 4
imul edx, ecx, 0
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + edx - 0x9d48]
add ecx, dword [ebp + eax - 0x9d48]
mov edx, 4
imul eax, edx, 0
mov dword [ebp + eax - 0x13988], ecx
mov ecx, 4
imul edx, ecx, 0
mov eax, 4
imul ecx, eax, 6
mov edx, dword [ebp + edx - 0x9d48]
add edx, dword [ebp + ecx - 0x9d48]
mov eax, 4
shl eax, 0
mov dword [ebp + eax - 0x13988], edx
mov ecx, 4
imul edx, ecx, 0
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp + edx - 0x9d48]
add edx, dword [ebp + ecx - 0x13988]
mov eax, 4
imul ecx, eax, 5
mov dword [ebp + ecx - 0x1d5c8], edx
mov edx, 4
imul eax, edx, 0
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + eax - 0x9d48]
xor eax, dword [ebp + edx - 0x9d48]
mov ecx, 4
imul edx, ecx, 5
mov dword [ebp + edx - 0x13988], eax
mov eax, 4
imul ecx, eax, 6
mov edx, 4
imul eax, edx, 5
mov ecx, dword [ebp + ecx - 0x9d48]
imul ecx, dword [ebp + eax - 0x9d48]
mov edx, 4
imul eax, edx, 9
mov dword [ebp + eax - 0x13988], ecx
mov ecx, 4
shl ecx, 1
mov edx, 4
imul eax, edx, 5
mov ecx, dword [ebp + ecx - 0x13988]
add ecx, dword [ebp + eax - 0x1d5c8]
mov edx, 4
shl edx, 3
mov dword [ebp + edx - 0x9d48], ecx
mov eax, dword [ebp - 0x1d5e4]
sub eax, 1
mov dword [ebp - 0x1d5e4], eax
jne 0x407f17
jmp 0x407f20
mov ecx, 1
test ecx, ecx
jne 0x407f04
call fcn.00406810
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x407f45
mov eax, 1
jmp 0x407fd7
lea ecx, [ebp - 0x1d5e0]
call fcn.004018e0
push str.RuntimeService.exe
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x1d5e0]
push ecx
lea edx, [ebp - 0x1d614]
push edx
call fcn.004085e0
add esp, 0xc
push eax
lea eax, [ebp - 0x1d5fc]
push eax
call fcn.00408670
add esp, 0xc
push eax
lea ecx, [ebp - 0x1d5e0]
call fcn.00408200
lea ecx, [ebp - 0x1d5fc]
call fcn.00401870
lea ecx, [ebp - 0x1d614]
call fcn.00401870
lea ecx, [ebp - 0x1d5e0]
call fcn.00408170
push eax
call fcn.00407480
add esp, 4
lea ecx, [ebp - 0x1d5e0]
call fcn.00408170
push eax
call fcn.0040aae0
add esp, 4
lea ecx, [ebp - 0x1d5e0]
call fcn.00401870
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4244cd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [0x4324a8], 0
push 8
call fcn.004112c6
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x408c4a
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401870
mov eax, dword [ebp - 0x2c]
jmp 0x408d47
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x408c92
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401870
mov eax, dword [ebp - 0x30]
jmp 0x408d47
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x408ca6
jmp 0x408cc4
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401870
mov eax, dword [ebp - 0x34]
jmp 0x408d47
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040a7b0
add esp, 4
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408d14
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401870
mov eax, dword [ebp - 0x38]
jmp 0x408d47
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401870
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret
Function at 0x409270
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42453f
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x174], 0xffffffff
mov dword [ebp - 0x17c], 0
lea ecx, [ebp - 0x28]
call fcn.004018e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp + 0xc]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0xffffffff
jne 0x40933c
push 0x42a9c3
mov ecx, dword [ebp + 8]
call fcn.00403930
mov ecx, dword [ebp - 0x16c]
or ecx, 1
mov dword [ebp - 0x16c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401870
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401870
mov eax, dword [ebp + 8]
jmp 0x4094e1
push 0x42a9d5
lea edx, [ebp + 0x24]
push edx
call fcn.00408b00
add esp, 8
movzx eax, al
test eax, eax
je 0x4093a0
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00403930
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x16c]
or eax, 2
mov dword [ebp - 0x16c], eax
push 0
lea ecx, [ebp + 0x24]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.00409c40
test eax, eax
je 0x4093e9
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x1a0]
call fcn.00403930
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x16c]
or eax, 4
mov dword [ebp - 0x16c], eax
push 0
lea ecx, [ebp + 0x24]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.00409c40
cmp eax, 0xffffffff
jne 0x4093e9
mov dword [ebp - 0x178], 0
jmp 0x4093f3
mov dword [ebp - 0x178], 1
mov dl, byte [ebp - 0x178]
mov byte [ebp - 0x16d], dl
mov eax, dword [ebp - 0x16c]
and eax, 4
je 0x40941c
and dword [ebp - 0x16c], 0xfffffffb
lea ecx, [ebp - 0x1a0]
call fcn.00401870
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x16c]
and ecx, 2
je 0x409440
and dword [ebp - 0x16c], 0xfffffffd
lea ecx, [ebp - 0x1b8]
call fcn.00401870
movzx edx, byte [ebp - 0x16d]
test edx, edx
je 0x409467
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401850
push 0x42ac3c
lea ecx, [ebp - 0x28]
call fcn.00401850
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40933c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401890
mov edx, dword [ebp - 0x16c]
or edx, 1
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401870
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401870
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret
Function at 0x40aae0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.0040cee0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret

Function at 0x40acc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424864
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], 1
push 0x42aa1f
mov ecx, dword [ebp + 8]
call fcn.00403930
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jbe 0x40ad7a
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401850
mov dword [ebp - 0x118], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x118]
and eax, 1
je 0x40ad73
and dword [ebp - 0x118], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401870
mov eax, dword [ebp + 8]
jmp 0x40adcb
mov dword [ebp - 0x118], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x118]
and ecx, 1
je 0x40ada5
and dword [ebp - 0x118], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401870
mov eax, dword [ebp + 8]
jmp 0x40adcb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret

Function at 0x40c146
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c185
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c185
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c185
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c185
cmp dword [ecx + 0x74], 0xe
jbe 0x40c185
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4138db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426698
push 0x426690
push str.FlsAlloc
push 0x1e
call fcn.0041379c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41390f
push dword [ebp + 8]
mov ecx, esi
call dword [0x425198]
call esi
jmp 0x413915
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x413959
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4266a8
push 0x4266a0
push str.FlsGetValue
push 0x20
call fcn.0041379c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413990
push dword [ebp + 8]
mov ecx, esi
call dword [0x425198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4183c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41845e
push ebx
push esi
call fcn.0041838a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004182d3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41840b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41845d
push edi
push eax
call fcn.00413dda
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41842b
call fcn.0041362f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41845c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004182d3
add esp, 0x20
test eax, eax
jne 0x41844a
push edi
call fcn.0041362f
jmp 0x418452
push ebx
call fcn.0041362f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41c8a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x432088]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c8e7
cmp byte [ebx], 0xa
jne 0x41c8e7
or byte [eax + edi + 0x28], 4
jmp 0x41c8ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c9ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41c9cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c91b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c940
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c94a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c8fd
jmp 0x41c9ea
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c9c7
cmp dword [ebp - 0xc], 0
je 0x41c9c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x432088]
test byte [eax + edi + 0x28], 0x48
je 0x41c9a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c98c
mov byte [esi], dl
jmp 0x41c99d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x432088]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c9ea
cmp byte [ebp - 1], 0xa
jne 0x41c9b0
cmp esi, ebx
jne 0x41c9b0
mov byte [esi], 0xa
jmp 0x41c9e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c817
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c9ea
mov byte [esi], 0xd
jmp 0x41c9e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x432088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c9e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c9ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c9f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x432088]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ca36
cmp word [esi], dx
jne 0x41ca36
or byte [edi + eax + 0x28], 4
jmp 0x41ca3b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cb8e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cb6e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ca7d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cab3
cmp eax, edx
jae 0x41cabf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ca55
jmp 0x41cb8e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb6a
cmp dword [ebp - 0x14], 0
je 0x41cb6a
mov eax, dword [ebx*4 + 0x432088]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cb42
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cb0b
mov word [esi], cx
jmp 0x41cb3e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x432088]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x432088]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x432088]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cb8e
pop ebx
cmp word [ebp - 4], bx
jne 0x41cb53
cmp esi, dword [ebp + 0xc]
jne 0x41cb53
mov word [esi], bx
jmp 0x41cb8b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c817
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cb8e
push 0xd
jmp 0x41cb87
mov ecx, dword [ebx*4 + 0x432088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cb85
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cb8e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ea35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e9b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41ebad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41ebad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41eb5c
jg 0x41ea8e
test eax, eax
je 0x41eb52
push 1
push 0x1000
call fcn.004135d2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41eab4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x41eb49
push 0x8000
push ebx
call fcn.00413111
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41eae0
jg 0x41eadb
cmp ecx, 0x1000
jb 0x41eae0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416bab
add esp, 0x10
cmp eax, 0xffffffff
je 0x41eb25
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41eadb
jl 0x41eb0c
test ecx, ecx
jne 0x41eacd
push dword [ebp - 0xc]
push ebx
call fcn.00413111
push esi
call fcn.0041362f
add esp, 0xc
xor edi, edi
jmp 0x41ebbe
cmp byte [edi + 0x24], 0
je 0x41eb3c
cmp dword [edi + 0x20], 5
jne 0x41eb3c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41eb47
mov edi, dword [edi + 0x18]
jmp 0x41eb49
xor edi, edi
push esi
call fcn.0041362f
pop ecx
jmp 0x41ebbe
test ecx, ecx
jg 0x41eb1e
jl 0x41eb5c
test eax, eax
jae 0x41eb1e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c817
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41eb7f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41eb1e
jmp 0x41ebb6
push ebx
call fcn.00418f6d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41eb1e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x41ebbe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41ebbb
mov edi, dword [edi + 0x18]
jmp 0x41ebbe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041c817
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4205a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4205cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4205cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret