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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x5c517079
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x5c51708a
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.5c5170cb
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x5c519437
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x5c519380
add ebx, 0
push ecx
call 0x5c519395
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x7249a0fd
sub ebx, dword [0x724b993c]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x724b992c
call fcn.5c514e5f
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.5c51436d
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x5c5194f3
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x5c5194f3
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x5c5194aa
mov eax, 1
lock xchg dword [0x724b9938], eax
push 0x3dd1fc71
call 0x5c519437
push esi
add esp, 8
cmp eax, 0
jne 0x5c519420
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x5c519446
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x5c51945b
cmp ecx, edx
cmp eax, 0
je 0x5c519480
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x5c51946a
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.5c519499
dec eax
loope 0x5c51949c
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x724b9938], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x5c5194d0
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x5c5194e5
jmp 0x5c5194f0
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x5c5193de
Function at 0x5c520558
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x5c52082e
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x724a65b0
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7249d576
push 0xffffffffffffffff
call fcn.5c517758
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x5c5205c2
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.5c5205da
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x5c520822
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x5c5207f6
Function at 0x5c530028
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c53004a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c53004a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c53004a
ret
cmp word [ebx + 4], 0x14c
jne 0x5c53004a
test word [ebx + 0x16], 2
je 0x5c53004a
test word [ebx + 0x16], 0x100
je 0x5c53004a
cmp word [ebx + 0x18], 0x10b
jne 0x5c53004a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c53004a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c5300d6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c53006a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c516fb5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c53004a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x5c5300d6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c53004a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c53004a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c53004a
ret
cmp word [ebx + 4], 0x14c
jne 0x5c53004a
test word [ebx + 0x16], 2
je 0x5c53004a
test word [ebx + 0x16], 0x100
je 0x5c53004a
cmp word [ebx + 0x18], 0x10b
jne 0x5c53004a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c53004a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c5300d6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c53006a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c516fb5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c53004a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x5c53018d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c5301e6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c53018d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c53019c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c935e3f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c5301ed
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c517063
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c53028c
add edi, 4
add eax, 2
dec ecx
jne 0x5c5301d2
call 0x5c530239
loope 0x5c53022f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c530289
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c53029a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c53024d
cmp eax, ecx
ja 0x5c53024d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c5302d7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c5302cd
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c517542
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x5c53019c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c5301e6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c53018d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c53019c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c935e3f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c5301ed
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c517063
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c53028c
add edi, 4
add eax, 2
dec ecx
jne 0x5c5301d2
call 0x5c530239
loope 0x5c53022f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c530289
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c53029a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c53024d
cmp eax, ecx
ja 0x5c53024d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c5302d7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c5302cd
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c517542
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4037a0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x4037de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x20], eax
jne 0x403812
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
push 0x4035a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x403865
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
call ebp
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x1c], edi
call ebp
push esi
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4038ca
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x1c], edi
call ebx
mov edx, dword [esi + 0x18]
push edx
call ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x404330
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c89cb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [esp + 0x248]
xor edi, edi
push 0x208
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x18], edi
call fcn.0049fd30
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push edi
push edi
push 0x8023
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jge 0x4043bd
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0x4d6590
mov ecx, esi
mov word [esi + 4], di
call fcn.00402f90
jmp 0x40443b
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4043d5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.00402f90
push 0x19
push str.ASMSoftwareBlackBox1.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x248], edi
call fcn.00403280
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00402ea0
cmp dword [esp + 0x28], 8
jb 0x40443b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049f16d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x238
ret
Function at 0x405c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8c74
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00404590
fld qword [0x4d65b8]
xor eax, eax
fstp qword [esi + 0x30]
fld qword [0x4d65b0]
mov dword [esp + 0x14], eax
fstp qword [esi + 0x38]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
fld qword [0x4d6500]
fstp qword [esi + 0x68]
lea ecx, [esi + 0x78]
fld qword [0x4d64f8]
mov byte [esp + 0x14], 3
fstp qword [esi + 0x70]
mov byte [esi + 0x60], 1
call fcn.00404e10
lea ecx, [esi + 0xd4]
mov byte [esp + 0x14], 4
call fcn.00405760
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x405e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0049fd30
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
push 0x430
push eax
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
push eax
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x54
ret
mov eax, dword [esp]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405ebd
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x405ec8
push eax
call esi
xor eax, eax
pop esi
add esp, 0x54
ret
Function at 0x406d00
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0xffffffffffffffff
push 0x4c8d46
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.0049fd00
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x102c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x103c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x1040]
push 0
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x34]
push ecx
push esi
mov dword [esp + 0x28], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp edi, ecx
jne 0x406d93
cmp eax, 0xea
je 0x406e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406ec4
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
jbe 0x406dc8
push edi
call fcn.0048c20c
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x406dc8
push edi
push 0
push esi
mov dword [esp + 0x2c], edi
call fcn.0049fd30
add esp, 0xc
lea edx, [esp + 0x1c]
cmp ebx, edx
mov dword [esp + 0x1034], 0
je 0x406de6
push ebx
mov eax, edx
push eax
mov ecx, ebx
call fcn.004065c0
test esi, esi
je 0x406df3
push esi
call fcn.0049fdaa
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0049ffd0
add esp, 0xc
jmp 0x406ec2
lea edx, [esp + 0x24]
push edx
push ecx
push ecx
push ecx
push ecx
push esi
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x406d88
mov eax, dword [esp + 0x24]
push eax
call fcn.0048c20c
mov edx, dword [esp + 0x28]
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
mov edi, eax
push edi
push esi
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
je 0x406d88
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00406170
cmp ebx, eax
mov dword [esp + 0x1034], 1
je 0x406e84
push ebx
push eax
mov ecx, ebx
call fcn.004065c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x406e95
push eax
call fcn.0049fdaa
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0049ffd0
mov edx, dword [esp + 0x24]
mov eax, dword [ebx]
add eax, dword [esp + 0x20]
push edx
push edi
push eax
call fcn.0049ffd0
push edi
call fcn.0049fdaa
add esp, 0x1c
xor eax, eax
mov ecx, dword [esp + 0x102c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1014]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x1024
ret
Function at 0x4072d0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x214
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [esp + 0x224]
mov ecx, edi
call fcn.00406bf0
mov eax, dword [esp + 0x220]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40732c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x214
ret
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x10]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x40736a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x214
ret
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
jbe 0x407342
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407390
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00402f90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0049fcf1
add esp, 0x214
ret
Function at 0x4073d0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x4c8de8
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.0049fd00
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x1040]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1050]
mov edi, dword [esp + 0x1054]
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x28]
xor ebx, ebx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov byte [edi], bl
mov dword [esp + 0x20], ebx
call sub.PSAPI.DLL_EnumProcesses
cmp eax, ebx
jne 0x407450
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407529
mov ebp, dword [esp + 0x14]
shr ebp, 2
mov esi, ebx
je 0x407525
nop
mov dword [esp + 0x1038], 7
mov dword [esp + 0x1034], ebx
mov word [esp + 0x1024], bx
mov ecx, dword [esp + esi*4 + 0x20]
lea eax, [esp + 0x1020]
push eax
push ecx
mov dword [esp + 0x1050], ebx
call fcn.004072d0
add esp, 8
cmp eax, ebx
je 0x4074b9
cmp dword [esp + 0x1038], 8
mov dword [esp + 0x1048], 0xffffffff
jb 0x407516
mov edx, dword [esp + 0x1024]
push edx
jmp 0x40750e
cmp dword [esp + 0x1038], 8
mov edi, dword [esp + 0x1024]
jae 0x4074d1
lea edi, [esp + 0x1024]
mov ecx, dword [esp + 0x1c]
call fcn.004067a0
push eax
push edi
call fcn.004a04d7
add esp, 8
test eax, eax
jne 0x4074f1
cmp dword [esp + 0x1034], ebx
jne 0x407551
cmp dword [esp + 0x1038], 8
mov dword [esp + 0x1048], 0xffffffff
jb 0x407516
mov eax, dword [esp + 0x1024]
push eax
call fcn.0049f16d
add esp, 4
add esi, 1
cmp esi, ebp
jb 0x407460
mov edi, dword [esp + 0x18]
mov byte [edi], bl
xor eax, eax
mov ecx, dword [esp + 0x1040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x1038
ret
cmp dword [esp + 0x1038], 8
mov ecx, dword [esp + 0x18]
mov byte [ecx], 1
jb 0x407527
mov edx, dword [esp + 0x1024]
push edx
call fcn.0049f16d
add esp, 4
jmp 0x407527

Function at 0x407600
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c8e58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00402ea0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407660
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403280
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00402ea0
cmp dword [esp + 0x28], 8
jb 0x4076ab
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049f16d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret