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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
cmp dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
je 0x10005616
push 0x4df
jmp 0x1000562b
mov edi, 0x8024
push edi
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [esi + 0x28], eax
jne 0x10005638
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100056d9
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x28]
add esp, 0xc
cmp dword [ebp + 0xc], ebx
mov dword [eax + 0x14], 3
mov eax, dword [esi + 0x28]
lea ecx, [eax + 0x18]
mov dword [eax + 0x801c], ecx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x8018], 0x8000
je 0x1000567d
mov eax, dword [ebp - 8]
push ebx
push dword [esi]
push dword [eax + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov eax, dword [esi + 0x28]
push ebx
lea ecx, [ebp - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x8018
push 1
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x100056c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0x100056b3
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x100056c3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100056d1
push dword [esi + 8]
mov ecx, dword [ebp - 8]
inc dword [esi + 0x40]
call fcn.100052a5
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
and dword [ebp - 4], ebx
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x1000570b
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005798
mov edx, dword [ecx]
add eax, 0x18
push eax
push dword [ebp + 0xc]
push dword [esi]
call dword [edx + 8]
push 0x14
push 0
push dword [esi + 0x28]
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x28]
add esp, 0xc
mov dword [eax + 0x14], 3
mov eax, dword [esi + 0x28]
push 0
lea ecx, [eax + 0x18]
mov dword [eax + 0x801c], ecx
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 4]
mov dword [eax + 0x8018], 0x8000
mov eax, dword [esi + 0x28]
push eax
push ecx
lea ecx, [ebp - 8]
add eax, 0x8018
push ecx
push 1
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1000578e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x10005781
xor ebx, ebx
test ebx, ebx
je 0x1000578e
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005791
inc dword [esi + 0x40]
xor eax, eax
test ebx, ebx
sete al
pop esi
pop ebx
leave
ret 8
Function at 0x40f33d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40f34c
pop dword [ebp - 0x14]
mov eax, 0xbb1d5b88
add eax, 0x452397c4
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x5115e
push 0
mov eax, 0xb665eb53
add eax, 0x49ded769
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x4ca0
xor edx, edx
add edx, eax
mov edi, 0xd08f8e4e
sub edi, 0xd0446e4e
add edi, dword [ebp - 0x14]
mov esi, 0xa18a02d5
add esi, 0xb7fe85f3
add dword [ebp - 4], 0x932be13a
mov ebx, dword [edi]
add ebx, esi
add dword [ebp - 4], edi
mov dword [edx], ebx
xor dword [ebp - 0xc], eax
add edx, 0xc570810a
sub edx, 0xc5708106
add edi, 0x9ef0a4bc
add edi, 0x610f5b48
loop 0x40f3a7
add eax, 0x66697f02
add eax, 0x9997a651
xor ebx, ebx
add ebx, eax
add eax, 0xb00e856f
sub eax, 0xb00e856a
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4405d6
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46d5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x440619
push str.SystemFunction040
push dword [0x46d5d8]
call edi
push str.SystemFunction041
push dword [0x46d5d8]
mov dword [0x46d5e0], eax
call edi
mov dword [0x46d5e4], eax
jmp 0x44061e
mov eax, dword [0x46d5e4]
cmp dword [0x46d5e0], 0
je 0x44062f
test eax, eax
jne 0x4406d6
push 0x46d5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4406e0
push str.CryptProtectMemory
push dword [0x46d5dc]
call edi
cmp dword [0x46d5e0], 0
mov dword [0x46d5e8], eax
jne 0x440694
test eax, eax
jne 0x440694
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44067e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440685
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work21_s_srclibsdutilcryputil.cpp
call fcn.004038fa
jmp 0x4406e0
push str.CryptUnprotectMemory
push dword [0x46d5dc]
call edi
cmp dword [0x46d5e4], 0
mov dword [0x46d5ec], eax
jne 0x4406d6
test eax, eax
jne 0x4406d6
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4406ca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4406d1
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x440688
mov dword [0x46d5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4a22d0f9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x214], esi
cmp eax, ebx
jne 0x4a22d1e5
mov dword [ebp - 0x210], ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [0x4a234018]
mov esi, eax
cmp esi, ebx
jne 0x4a22d1be
cmp word [ebp - 0x20c], 0x2e
jne 0x4a22d1a3
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4a22d003
mov edi, eax
cmp edi, ebx
je 0x4a22d1d1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a22d176
sub eax, edx
sar eax, 1
je 0x4a22d19d
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4a2158f3
add esp, 0xc
mov esi, eax
push edi
call fcn.4a21142e
cmp dword [0x4a2341b4], ebx
jne 0x4a22d1e0
inc dword [ebp - 0x210]
cmp esi, ebx
jne 0x4a22d257
jmp 0x4a22d12d
cmp esi, 0x103
jne 0x4a22d257
xor esi, esi
jmp 0x4a22d257
push ebx
call dword [fcn.4a2112d4]
push eax
call fcn.4a216d44
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4a22d259
push ebx
push eax
call fcn.4a212b0d
push eax
call fcn.4a2119d6
mov edi, eax
cmp edi, ebx
je 0x4a22d1e0
push 0x20
push edi
call fcn.4a212148
cmp eax, ebx
je 0x4a22d209
xor ecx, ecx
mov word [eax], cx
push edi
push esi
call fcn.4a22d003
mov ebx, eax
test ebx, ebx
je 0x4a22d239
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a22d219
sub eax, edx
sar eax, 1
je 0x4a22d239
push ebx
push edi
push str._s_s_r_n
call fcn.4a2158f3
mov esi, eax
jmp 0x4a22d248
xor esi, esi
push edi
inc esi
push esi
push 0x400023a3
call fcn.4a216d44
add esp, 0xc
push ebx
call fcn.4a21142e
push edi
call fcn.4a21142e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a2113a9
leave
ret 8
Function at 0x4a22d26f
Capabilities:
Set registry value

Disassembly:
push 0xc
push 0x4a22d398
call fcn.4a21264a
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x4a22d2e6
cmp word [edi], si
je 0x4a22d2e6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4a22d28e
sub eax, edx
sar eax, 1
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a23401c]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
jne 0x4a22d2cb
push edi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4a2158f3
add esp, 0xc
jmp 0x4a22d355
push esi
push ebx
call fcn.4a216d44
push dword [ebp + 0xc]
push 1
push 0x235d
call fcn.4a216d44
add esp, 0x14
jmp 0x4a22d355
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a211368]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4a22d359
lea eax, [ebp + 0xc]
push eax
push 0x2000000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [fcn.4a211360]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4a22d32c
cmp ebx, 2
je 0x4a22d355
push esi
push ebx
call fcn.4a216d44
pop ecx
pop ecx
jmp 0x4a22d355
push 0x4a213afc
push dword [ebp + 0xc]
call dword [0x4a211364]
mov ebx, eax
mov dword [ebp + 0x10], eax
cmp ebx, esi
je 0x4a22d34c
push esi
push ebx
call fcn.4a216d44
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [fcn.4a211354]
cmp ebx, esi
jne 0x4a22d389
mov dword [ebp - 4], esi
push esi
push esi
push esi
push 0x8000000
call dword [0x4a234040]
jmp 0x4a22d382
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x10]
call fcn.4a2113b6
ret 0xc
Function at 0x4a22d685
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp eax, edi
jne 0x4a22d6ab
xor eax, eax
jmp 0x4a22d7b5
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x4a2112f0]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp ebx, 0xffffffff
je 0x4a22d7b0
push esi
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40
pop esi
call fcn.4a22d3db
test eax, eax
je 0x4a22d6f5
mov eax, 0x5a4d
xor ecx, ecx
cmp ax, word [ebp - 0x44]
sete cl
mov eax, ecx
jmp 0x4a22d6f7
xor eax, eax
cmp eax, edi
je 0x4a22d7a6
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [fcn.4a211284]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
je 0x4a22d7a6
lea eax, [ebp - 0x50]
push eax
push ebx
push 4
pop esi
call fcn.4a22d3db
test eax, eax
je 0x4a22d73c
xor eax, eax
cmp dword [ebp - 0x50], 0x4550
sete al
jmp 0x4a22d73e
xor eax, eax
cmp eax, edi
je 0x4a22d7a6
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x14
pop esi
call fcn.4a22d3db
test eax, eax
je 0x4a22d7a6
cmp word [ebp - 0x54], di
jbe 0x4a22d7a6
movzx eax, word [ebp - 0x54]
mov edi, dword [fcn.4a211294]
push eax
push 8
call edi
push eax
call dword [fcn.4a2112a8]
mov ebx, eax
test ebx, ebx
je 0x4a22d7a6
movzx esi, word [ebp - 0x54]
push ebx
push dword [ebp - 0x4c]
call fcn.4a22d3db
test eax, eax
je 0x4a22d79a
mov edx, dword [ebp - 0x64]
mov ecx, ebx
call fcn.4a22d3b9
test eax, eax
je 0x4a22d79a
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
push ebx
push 0
call edi
push eax
call dword [fcn.4a211290]
push dword [ebp - 0x4c]
call dword [0x4a2112ac]
pop esi
mov ax, word [ebp - 0x48]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4a2113a9
leave
ret 4
Function at 0x10001ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10015818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov edi, dword [esp + 0x38]
cmp edi, ebx
mov byte [esp + 0x30], 2
jne 0x10001d2c
push 0x8e
push str.D:mvstudio.netVC7_atlmfcinclude_atlcomcli.h
push str.p_0
call fcn.1000a430
add esp, 0xc
mov eax, dword [edi]
push esi
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [eax + 0x1c]
mov esi, dword [esp + 0x40]
cmp esi, ebx
jle 0x10001d50
push 0x10017680
call fcn.1000c54a
add esp, 4
dec esi
jne 0x10001d40
mov edx, dword [esp + 0x14]
push edx
push 0x1001767c
call fcn.1000c54a
mov eax, dword [edi]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [eax + 0x44]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10001e70
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [edx + 0x2c]
cmp dword [esp + 0x18], ebx
jle 0x10001d97
push 0x10017678
call fcn.1000c54a
add esp, 4
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jle 0x10001e70
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x10001dc8
push 0x8e
push str.D:mvstudio.netVC7_atlmfcinclude_atlcomcli.h
push str.p_0
call fcn.1000a430
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
call dword [edx + 0x28]
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x10001df7
push 0x8e
push str.D:mvstudio.netVC7_atlmfcinclude_atlcomcli.h
push str.p_0
call fcn.1000a430
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0x1c]
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x10001e25
push 0x8e
push str.D:mvstudio.netVC7_atlmfcinclude_atlcomcli.h
push str.p_0
call fcn.1000a430
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x20]
cmp word [esp + 0x1c], 8
jne 0x10001e51
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
push str._S____S_
call fcn.1000c54a
add esp, 0xc
jmp 0x10001e63
mov ecx, dword [esp + 0x14]
push ecx
push str._S_____
call fcn.1000c54a
add esp, 8
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x10001da5
push 0x1001765c
call fcn.1000c54a
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x34], 1
pop esi
je 0x10001e91
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x30], bl
je 0x10001ea3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [edi]
push edi
mov dword [esp + 0x34], 0xffffffff
call dword [edx + 8]
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x1000baa0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x1000bab0
mov eax, esi
push 0
push str.SQLAnywhere_Fatal_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x1000bacd
push esi
call fcn.1000e19c
add esp, 4
push 1
call fcn.1000e16b
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1000ca2a
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000cb17
mov eax, 0x94
call fcn.1000e730
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000cb8c
mov ecx, dword [esi + 0x10]
mov dword [0x1003fcac], ecx
mov eax, dword [esi + 4]
mov dword [0x1003fcb8], eax
mov edx, dword [esi + 8]
mov dword [0x1003fcbc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1003fcb0], esi
je 0x1000ca95
or esi, 0x8000
mov dword [0x1003fcb0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1003fcb4], eax
call fcn.100110ea
test eax, eax
pop ecx
je 0x1000cb8c
call fcn.1000ebb8
test eax, eax
jne 0x1000cac2
call fcn.1001113b
jmp 0x1000cb8c
call fcn.10011048
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100414d4], eax
call fcn.10010f26
mov dword [0x1003fc90], eax
call fcn.10010a07
test eax, eax
jl 0x1000cb10
call fcn.10010e84
test eax, eax
jl 0x1000cb0b
call fcn.10010c51
test eax, eax
jl 0x1000cb0b
call fcn.1000e033
test eax, eax
jne 0x1000cb0b
inc dword [0x1003fc8c]
jmp 0x1000cb9d
call fcn.10010c05
call fcn.1000e9ab
jmp 0x1000cab8
test eax, eax
jne 0x1000cb47
cmp dword [0x1003fc8c], eax
jle 0x1000cb8c
dec dword [0x1003fc8c]
cmp dword [0x1003fce8], eax
jne 0x1000cb36
call fcn.1000e18d
call fcn.10010c05
call fcn.1000e9ab
call fcn.1001113b
jmp 0x1000cb9d
cmp eax, 2
jne 0x1000cb90
push 0x88
push 1
call fcn.1001094c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000cb8c
push esi
push dword [0x1003e964]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x1000cb86
call fcn.1000e9c9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000cb9d
call fcn.1000cdb0
pop ecx
xor eax, eax
jmp 0x1000cba0
cmp eax, 3
jne 0x1000cb9d
push 0
call fcn.1000ea4d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000db4f
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 0x1000dd15
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100403a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000dd15
test cl, 0x48
je 0x1000dbb5
mov al, byte [eax + 5]
cmp al, 0xa
je 0x1000dbb5
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 0x1000dc07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000dbef
call fcn.1000df6c
mov dword [eax], 9
call fcn.1000df75
mov dword [eax], esi
jmp 0x1000dbff
cmp eax, 0x6d
je 0x1000dd15
push eax
call fcn.1000df7e
pop ecx
or eax, 0xffffffff
jmp 0x1000dd17
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x1000dd10
test edx, edx
je 0x1000dc2a
cmp byte [ebx], 0xa
jne 0x1000dc2a
or al, 4
jmp 0x1000dc2c
and al, 0xfb
mov byte [ecx], al
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 0x1000dd0a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000dcfa
cmp al, 0xd
je 0x1000dc60
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000dcec
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000dc7a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000dc75
add dword [ebp + 0x10], 2
jmp 0x1000dcce
mov dword [ebp + 0x10], eax
jmp 0x1000dce8
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 0x1000dca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000dce8
cmp dword [ebp - 0xc], 0
je 0x1000dce8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000dcc3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000dcce
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000dceb
cmp ebx, dword [ebp + 0xc]
jne 0x1000dcd3
cmp byte [ebp - 1], 0xa
jne 0x1000dcd3
mov byte [ebx], 0xa
jmp 0x1000dceb
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100129b6
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000dcec
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000dc44
jmp 0x1000dd0a
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1000dd0a
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000dd17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000dd1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1003ec10]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x1000dd45
xor eax, eax
jmp 0x1000deb3
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100403a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000dd78
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.1000d472
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000de4a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1000de85
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x1000ddd3
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000ddc4
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1000dda7
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000de13
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1000de1c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1000dd98
jmp 0x1000de1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1000deae
cmp dword [ebp - 8], edi
je 0x1000de85
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1000de77
call fcn.1000df6c
mov dword [eax], 9
call fcn.1000df75
mov dword [eax], esi
jmp 0x1000de80
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000de6c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x1000de1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000de1e
push dword [ebp - 8]
call fcn.1000df7e
pop ecx
or eax, 0xffffffff
jmp 0x1000deb1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000de9a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1000de9a
xor eax, eax
jmp 0x1000deb1
call fcn.1000df6c
mov dword [eax], 0x1c
call fcn.1000df75
mov dword [eax], edi
jmp 0x1000de80
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.100108c8
leave
ret
Function at 0x1000e098
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.100114a2
xor esi, esi
inc esi
cmp dword [0x1003fcec], esi
pop ecx
jne 0x1000e0c0
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 [0x1003fce8], esi
mov byte [0x1003fce4], al
jne 0x1000e126
mov ecx, dword [0x100414cc]
test ecx, ecx
je 0x1000e107
mov eax, dword [0x100414c8]
sub eax, 4
cmp eax, ecx
jmp 0x1000e100
mov eax, dword [eax]
test eax, eax
je 0x1000e0f2
call eax
mov eax, dword [0x100414c8]
sub eax, 4
cmp eax, dword [0x100414cc]
mov dword [0x100414c8], eax
jae 0x1000e0ea
mov eax, 0x1001d0e8
mov esi, 0x1001d0f0
cmp eax, esi
mov edi, eax
jae 0x1000e126
mov eax, dword [edi]
test eax, eax
je 0x1000e11f
call eax
add edi, 4
cmp edi, esi
jb 0x1000e117
mov eax, 0x1001d0f4
mov esi, 0x1001d0fc
cmp eax, esi
mov edi, eax
jae 0x1000e145
mov eax, dword [edi]
test eax, eax
je 0x1000e13e
call eax
add edi, 4
cmp edi, esi
jb 0x1000e136
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x1000e156
push 8
call fcn.1001140e
jmp 0x1000e168
push dword [ebp + 8]
mov dword [0x1003fcec], 1
call fcn.1000dff1
pop ecx
pop ebp
ret