joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa11256
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0xc]
jb 0xa11290
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 8], ecx
jb 0xa112b5
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
cmp dword [ebp - 8], ecx
jle 0xa112a1
mov eax, dword [ebp + 8]
jmp 0xa112ca
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0xa11274
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
sub edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0xa23796
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
xorpd xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov eax, dword [0x10095fa0]
or eax, dword [0x10095fa4]
jne 0xa237fd
push 0x33
call fcn.00a237c3
mov eax, dword [0x10095fa0]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x10095fa4]
mov dword [ebp - 8], ecx
push 0x33
call fcn.00a23815
Function at 0xa2da16
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
cmp dword [0x10096060], 0
jne 0xa2da39
xor eax, eax
xor edx, edx
jmp 0xa2dc05
lea eax, [ebp + 0x14]
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x10], 0
jle 0xa2da68
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x48]
add edx, 8
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x58], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x54], edx
jmp 0xa2da71
xorpd xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0x10], 0
jle 0xa2daa6
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx - 8]
mov dword [ebp - 0x68], edx
mov eax, dword [ecx - 4]
mov dword [ebp - 0x64], eax
jmp 0xa2daaf
xorpd xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x28], edx
cmp dword [ebp + 0x10], 0
jle 0xa2dae4
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x48]
add ecx, 8
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [edx - 4]
mov dword [ebp - 0x5c], ecx
jmp 0xa2daed
xorpd xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x10], 0
jle 0xa2db22
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x48]
add edx, 8
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x4c], edx
jmp 0xa2db2b
xorpd xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
xorpd xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov edx, dword [ebp - 0x48]
add edx, 8
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
sub eax, 8
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 0xc], esp
and esp, 0xfffffff0
push 0x33
call 0xa2db86
add dword [esp], 5
retf
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a706aa
mov esp, ebp
pop ebp
ret
Function at 0xa2dc16
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0xa2dc40
cmp dword [ebp + 0xc], 0
jne 0xa2dc3a
cmp dword [ebp + 0x10], 0
je 0xa2dc40
cmp dword [ebp + 0x14], 0
jne 0xa2dc44
xor al, al
jmp 0xa2dca8
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
push 0x33
call fcn.00a2dc5b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a706aa
mov esp, ebp
pop ebp
ret

Function at 0xa2e0a6
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0xa2e0d0
cmp dword [ebp + 0xc], 0
jne 0xa2e0ca
cmp dword [ebp + 0x10], 0
je 0xa2e0d0
cmp dword [ebp + 0x14], 0
jne 0xa2e0d2
jmp 0xa2e125
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0x33
call 0xa2e0e5
add dword [esp], 5
retf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a706aa
mov esp, ebp
pop ebp
ret

Function at 0xa2e186
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
xorpd xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push 0x33
call 0xa2e1a6
add dword [esp], 5
retf

Function at 0xa35c06
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0xa35c4f
mov al, byte [esi]
push eax
call fcn.00a42ff6
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0xa35c2d
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0xa3ec96
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x71e], 0
je 0xa3ed19
cmp dword [edi + 0x1b0], 0
je 0xa3ece3
push esi
push 1
push edi
call fcn.00a31b76
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00a31b76
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0xa3ed19
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x10081650
push 2
push eax
call fcn.00a7131b
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00a7131b
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0xa41396
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00a24236
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00a7d3c8
Function at 0xa46e06
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0xa46e24
cmp dword [esi + 0x78], 0
je 0xa46e24
push 2
push 3
push esi
call fcn.00a43616
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00a46806
add esp, 4
test esi, esi
je 0xa46e44
cmp dword [esi + 0x78], 0
je 0xa46e44
push 3
push esi
call fcn.00a43656
add esp, 8
pop esi
pop ebp
ret
Function at 0xa529c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00a75faa
add esp, 0x18
test eax, eax
je 0xa529e8
cmp eax, 0xffffffff
jne 0xa529ea
xor eax, eax
pop ebp
ret

Function at 0xa586a6
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 2
je 0xa586e3
push 0x100861ec
push esi
call fcn.00a3ed26
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0xa586fa
push ecx
push 0x10086208
push esi
call fcn.00a3ede6
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0xa58713
push ebx
push esi
call fcn.00a58366
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0xa58728
push esi
call fcn.00a57396
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0xa5873d
push esi
call fcn.00a58346
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0xa5874d
push esi
call fcn.00a58586
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xa6ee76
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100928cc]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa6eea3
pop edi
pop esi
mov esp, ebp
pop ebp
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 [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0xa6eeea
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0xa6eef0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa6ef50
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0xa6ef16
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0xa6ef7d
nop
mov eax, dword [esi + 4]
push 1
push 0x10089165
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10089164
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa6ef56
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xae8cd2
Capabilities:
Encode data using xor

Disassembly:
and byte [eax], 0x59
sub byte [esi], dh
dec esp
sahf
into
adc al, al
inc esp
cld
lahf
mov eax, 0xe84b7018
mov ecx, dword [esi + 0x54990562]
mov dword [ebp - 0x1047e341], esp
jecxz 0xae8cc2
popfd
push ds
pop edx
sub byte [edx - 0xa396914], ah
ficomp word [edi]
mov dh, 0x95
sbb byte [edx - 0x3de40a0e], bl
insd dword es:[edi], dx
adc al, 0x5f
std
push edi
test dword [edx - 0x5c5a4280], eax
pop ebx
cmpsb byte [esi], byte es:[edi]
cdq
fcmovnu st(0), st(4)
ja 0xae8c43
sar esp, 1
test al, 0xa5
enter 0xffffffffffffb1ec, 0xffffffffffffffc9
add bl, byte [esi + eax*2 - 0x4ea24d65]
std
mov byte [esi - 0x22044e88], dl
movsd dword es:[edi], dword [esi]
jns 0xae8c8d
mov edx, 0x7ab2efa5
in al, dx
test ebx, ebx
push eax
pop edx
pop edx
rep lodsb al, byte [esi]
push es
cmp al, 0x5a
mov eax, 0x22bf7160
int 0x72
out dx, eax
insd dword es:[edi], dx
jge 0xae8c24
sub byte [eax], ch
adc byte [ebx], dh
in eax, dx
sbb dword [eax + 0x5a], eax
hlt
inc esp
test cl, ah
xchg esp, eax
mov bh, 0x5c
jns 0xae8c5c
lodsd eax, dword [esi]
nop
xor ecx, dword [ebx + esi*2 - 0x67]
jb 0xae8d01
invalid
pop ecx
pop ecx
test al, 0x53
push esp
or byte [edi + ecx*2], bh
mov dword [0xd9225a5f], eax
cmp al, 0xeb
cmp dword [edi - 0xe], edx
aas
loopne 0xae8cd6
jg 0xae8c8f
leave
sub eax, 0x3759159a
salc
aad 0xb0
movsd dword es:[edi], dword [esi]
push ebp
insb byte es:[edi], dx
xchg ebp, eax
push esp
mov ch, 0x2e
xor eax, 0xc22b5a34
push es
xor byte [edx + edx*8 - 0x62], dh
lahf
add eax, dword [ecx]
pop esi
rcr byte [esi + 0x5e01039f], cl
invalid
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.0040d310
mov eax, dword [0x413948]
xor eax, esp
mov dword [esp + 0x1000], eax
mov ecx, dword [esp + 0x1008]
lea eax, [esp + 0x100c]
push eax
push ecx
push 0xffd
lea edx, [esp + 0xc]
push 0x1000
push edx
call fcn.00403c97
add esp, 0x14
test eax, eax
jge 0x401048
mov eax, 0xffd
push esi
lea esi, [esp + eax + 4]
lea eax, [esp + 4]
cmp esi, eax
jbe 0x401074
movsx ecx, byte [esi - 1]
push ecx
call fcn.00403d86
add esp, 4
test eax, eax
je 0x401074
add esi, 0xffffffff
lea edx, [esp + 4]
cmp esi, edx
mov byte [esi], 0
ja 0x401055
mov byte [esi], 0xd
add esi, 1
lea eax, [esp + 4]
mov byte [esi], 0xa
push eax
mov byte [esi + 1], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00403daf
add esp, 0x1004
ret

Function at 0x4010b0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.0040d310
mov eax, dword [0x413948]
xor eax, esp
mov dword [esp + 0x2000], eax
mov ecx, dword [esp + 0x2008]
lea eax, [esp + 0x200c]
push eax
push ecx
push 0x1ffd
lea edx, [esp + 0xc]
push 0x1000
push edx
call fcn.0040400d
add esp, 0x14
test eax, eax
jge 0x4010f8
mov eax, 0x1ffd
push esi
lea esi, [esp + eax*2 + 4]
lea eax, [esp + 4]
cmp esi, eax
jbe 0x401126
movzx ecx, word [esi - 2]
push ecx
call fcn.00403e02
add esp, 4
test eax, eax
je 0x401126
add esi, 0xfffffffe
lea edx, [esp + 4]
cmp esi, edx
mov word [esi], 0
ja 0x401105
mov word [esi], 0xd
add esi, 2
lea eax, [esp + 4]
mov word [esi], 0xa
push eax
mov word [esi + 2], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.00403daf
add esp, 0x2004
ret

Function at 0x401160
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp]
push eax
mov dword [esp + 4], str.AsSysCtrlService
mov dword [esp + 8], 0x4011a0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x401196
push str.StartServiceCtrlDispatcher_Fail__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add esp, 0x10
ret 0x10

Function at 0x401340
Capabilities:
Create thread
Print debug messages

Disassembly:
push str.Service_Start__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x414c68], 0
je 0x40135a
mov eax, 1
ret
push 0
push 0
push 0
push 0x4030c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x414c68], eax
mov eax, ecx
ret
Function at 0x4016d0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x40e9cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x413948]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x414c5c]
test eax, eax
jne 0x40174d
push 0x28
call fcn.004043ac
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x401720
mov esi, eax
call fcn.00401670
mov esi, eax
jmp 0x401722
xor esi, esi
cmp dword [esi], 0
mov eax, esi
mov dword [0x414c5c], eax
jne 0x40174d
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x401bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, dword [0x414c5c]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebp, [esi + 4]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [esi + 0x1c]
mov esi, dword [eax]
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp edi, edi
je 0x401b20
call fcn.0040437e
cmp esi, dword [esp + 0x18]
je 0x401bae
cmp esi, dword [edi + 4]
jne 0x401b34
call fcn.0040437e
mov eax, dword [esi + 0x28]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax]
push 4
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
test eax, eax
jne 0x401b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BasicMailslot_char_t_::Write__failed__GetLastError_returned__d_n
call section..text
add esp, 8
cmp byte [esi + 0x2d], 0
je 0x401b6f
call fcn.0040437e
jmp 0x401b17
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x401b8e
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x401b17
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x401b82
jmp 0x401b17
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x401ba7
cmp esi, dword [eax + 8]
jne 0x401ba7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x401b97
mov esi, eax
jmp 0x401b17
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x403570
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e949
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x413948]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x413948]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
mov eax, 0x5c
mov ecx, 0x4c
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov word [esp + 0x18], di
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], 0x4d
mov word [esp + 0x20], 0x41
mov word [esp + 0x22], 0x49
mov word [esp + 0x24], cx
mov word [esp + 0x26], 0x53
mov word [esp + 0x28], cx
mov word [esp + 0x2a], 0x4f
mov word [esp + 0x2c], 0x54
mov word [esp + 0x2e], ax
mov word [esp + 0x30], di
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], di
lea eax, [esp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0xc], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403630
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004029b0
mov eax, 0x410d10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403652
sub eax, edx
sar eax, 1
push eax
push 0x410d10
mov ecx, esi
call fcn.004033e0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403675
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004033e0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403696
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, esi
call fcn.004033e0
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00403daf
add esp, 0x38
ret
Function at 0x403700
Capabilities:
Check for peb beingdebugged flag
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x40e908
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x413948]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413948]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
mov eax, 0x5c
xor edi, edi
mov ebx, ecx
mov ecx, 0x50
mov word [esp + 0x30], ax
mov word [esp + 0x32], ax
mov word [esp + 0x34], 0x2e
mov word [esp + 0x36], ax
mov word [esp + 0x38], cx
mov word [esp + 0x3a], 0x49
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], 0x45
mov word [esp + 0x40], ax
mov word [esp + 0x42], di
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea eax, [esp + 0x30]
mov dword [esp + 0x50], edi
lea edx, [eax + 2]
jmp 0x4037a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4037a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x1c]
call fcn.004029b0
mov eax, str.ASUS_SYSTEM_CONTROL_PIPE
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4037c6
sub eax, edx
sar eax, 1
push eax
push str.ASUS_SYSTEM_CONTROL_PIPE
lea ecx, [esp + 0x1c]
call fcn.004033e0
mov eax, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x4037f7
lea eax, [esp + 0x18]
push ebp
push edi
push 0x4000
push 0x4000
push 1
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x40382b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BasicNamedPipe::Create__failed__GetLastError_returned__d
call section..text
add esp, 8
cmp dword [ebx], 0xffffffff
setne bl
cmp dword [esp + 0x2c], esi
jb 0x403844
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040438e
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00403daf
add esp, 0x40
ret 4

Function at 0x403daf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413948]
jne 0x403db9
repz ret
jmp fcn.00407203
Function at 0x40477d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x413030]
je 0x404798
inc edi
cmp edi, 0x17
jb 0x404789
cmp edi, 0x17
jae 0x404918
push ebp
push 3
call fcn.004093c9
cmp eax, 1
pop ecx
je 0x4048e4
push 3
call fcn.004093c9
test eax, eax
pop ecx
jne 0x4047cc
cmp dword [section..data], 1
je 0x4048e4
cmp ebx, 0xfc
je 0x404917
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4140e8
push ebp
call fcn.00408215
add esp, 0xc
test eax, eax
je 0x404802
push esi
push esi
push esi
push esi
push esi
call fcn.0040425e
add esp, 0x14
push 0x104
mov esi, 0x414101
push esi
push 0
mov byte [0x414205], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404846
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00408215
add esp, 0xc
test eax, eax
je 0x404846
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040425e
add esp, 0x14
push esi
call fcn.00408390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40488b
push esi
call fcn.00408390
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4143fc
push 0x40f7c4
sub ecx, eax
push ecx
push eax
call fcn.00409316
add esp, 0x14
test eax, eax
je 0x40488b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040425e
add esp, 0x14
jmp 0x40488d
xor esi, esi
push 0x40f7c0
push ebx
push ebp
call fcn.004092a5
add esp, 0xc
test eax, eax
je 0x4048ad
push esi
push esi
push esi
push esi
push esi
call fcn.0040425e
add esp, 0x14
push dword [edi*8 + 0x413034]
push ebx
push ebp
call fcn.004092a5
add esp, 0xc
test eax, eax
je 0x4048cf
push esi
push esi
push esi
push esi
push esi
call fcn.0040425e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004090e8
add esp, 0xc
jmp 0x404917
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x404917
cmp ebp, 0xffffffff
je 0x404917
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x413034]
push dword [esi]
call fcn.00408390
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret