joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
push eax
push 0x80
push 3
push eax
push 3
push 0x80000000
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x98], ebx
cmp ebx, 0xffffffff
jne 0x408800
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424436
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x20
lea eax, [ebp - 0x34]
mov dword [ebp - 0x9c], 0xffffffff
push eax
push ebx
call esi
test eax, eax
je 0x408992
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], 0
jbe 0x408988
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebx, [ebx]
push 0
push 0
push eax
push ebx
call edi
add dword [ebp - 0xa0], 0xc
lea eax, [ebp - 8]
push 0
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x408992
cmp dword [ebp - 0x14], 5
jne 0x408950
push 0
push 0
push dword [ebp - 0xc]
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push ebx
call esi
test eax, eax
je 0x408992
mov edi, dword [ebp - 0x94]
shl edi, 4
push edi
call fcn.0042593d
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408979
mov eax, dword [ebp - 0x94]
xor ebx, ebx
test eax, eax
je 0x408931
lea edi, [esi + 0xc]
mov edi, edi
cmp dword [edi - 4], 0x58
jb 0x408929
push 0
push 0
push dword [edi]
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x58
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408979
cmp dword [ebp - 0x90], 0x464e4956
je 0x40896d
mov eax, dword [ebp - 0x94]
inc ebx
add edi, 0x10
cmp ebx, eax
jb 0x4088e0
test esi, esi
je 0x40893e
push esi
call fcn.00425905
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, dword [ebp - 0x2c]
jae 0x408988
mov eax, dword [ebp - 0xa0]
jmp 0x408850
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
test esi, esi
je 0x408992
push esi
call fcn.00425905
add esp, 4
jmp 0x408992
mov dword [ebp - 0x9c], 0
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x9c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00424436
mov esp, ebp
pop ebp
ret
Function at 0x40a970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c5da
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004209b5
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40aa16
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00425f3f
push 0x44bfa8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x440324
push eax
call fcn.004273eb
push edi
push esi
call fcn.004207c0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424436
mov esp, ebp
pop ebp
ret 4
Function at 0x40f2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d044
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x44d740]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x44d740]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0xb5], 0
jne 0x40f348
mov eax, 0x80010109
jmp 0x40f4b1
cmp byte [esi + 0x20], 0
je 0x40f49c
push 0x60
lea eax, [esp + 0x60]
push 0
push eax
call fcn.00429830
add esp, 0xc
lea ecx, [esp + 0x44]
push 0x445e3c
call fcn.00402510
push 0x445e3c
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 1
call fcn.00402510
sub esp, 0x18
mov byte [esp + 0xe8], 2
mov ecx, esp
push 0x445e3c
call fcn.00402510
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0xe8], 3
lea eax, [esp + 0x2c]
push dword [esi + 0x24]
lea ecx, [esp + 0x78]
push eax
push edi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x54]
push eax
push 2
call fcn.00412110
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40f400
push dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.0040a7e0
push edi
call fcn.00424bf6
add esp, 0xc
cmp dword [esp + 0x40], 8
jb 0x40f413
push dword [esp + 0x2c]
call fcn.00424bf6
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0xd0], 7
cmp dword [esp + 0x58], 8
jb 0x40f445
push dword [esp + 0x44]
call fcn.00424bf6
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x14]
mov dword [esp + 0x54], 0
push eax
call fcn.00412200
push eax
mov byte [esp + 0xd4], 8
mov ecx, dword [esi + 0xb8]
push 0xb
call fcn.00411730
cmp dword [esp + 0x28], 0x10
jb 0x40f493
push dword [esp + 0x14]
call fcn.00424bf6
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.0040a2a0
movzx eax, byte [esi + 0xb5]
neg eax
sbb eax, eax
and eax, 0x7fffbffd
add eax, 0x80004004
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00424436
mov esp, ebp
pop ebp
ret 8
Function at 0x410be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d472
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x820], 0
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x445e3c
mov dword [ebp - 0x824], esi
mov word [esi], ax
call fcn.004028b0
lea eax, [ebp - 0x81c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_ExplorerInternational
push 0x80000001
mov dword [ebp - 0x820], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410ce5
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00429830
add esp, 0xc
mov dword [ebp - 0x814], 0
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push str.AcceptLanguage
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410ce5
cmp dword [ebp - 0x814], 1
jne 0x410ce5
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004025a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424436
mov esp, ebp
pop ebp
ret 4
Function at 0x411210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d579
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [edi + 0x60], eax
je 0x4113a9
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x5c]
add ecx, 0xa4
cmp ecx, edx
je 0x41126c
push 0xffffffffffffffff
push eax
push edx
call fcn.00402790
mov eax, dword [ebp - 0x18]
mov esi, dword [edi + 0x60]
test eax, eax
je 0x411279
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov eax, dword [esi]
push ecx
push 0x43f458
push esi
call dword [eax]
push str.about:blank
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x18]
mov esi, eax
push 0
push 0
push 0
mov edx, dword [ecx]
push 0
push esi
push ecx
call dword [edx + 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xb0
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00429830
add esp, 4
lea ecx, [ebp - 0xcc]
call fcn.00414120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
mov eax, dword [edi + 0x54]
cdq
push edx
push eax
call fcn.00414480
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00414250
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xfc]
call fcn.0040bcb0
push eax
push 9
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00411730
cmp dword [ebp - 0xe8], 0x10
jb 0x411332
push dword [ebp - 0xfc]
call fcn.00424bf6
add esp, 4
cmp dword [ebp - 0xd0], 8
jb 0x411349
push dword [ebp - 0xe4]
call fcn.00424bf6
add esp, 4
push 5
push dword [edi + 0x54]
xor eax, eax
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xd4], 0
mov word [ebp - 0xe4], ax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.004141d0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], vtable.std::ios_base.0
push eax
call fcn.00420908
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4113a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424436
mov esp, ebp
pop ebp
ret 4
Function at 0x4113d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x411417
cmp dword [esi + 8], 0x4f
je 0x41142f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x411436
cmp dword [esi + 8], 0x4e
jne 0x411436
xor eax, eax
jmp 0x411506
cmp dword [esi + 4], 0x100
jne case.0x411451.113
mov eax, dword [esi + 8]
add eax, 0xffffff90
cmp eax, 0xb
ja case.0x411451.113
movzx eax, byte [eax + 0x411530]
jmp dword [eax*4 + 0x411524]
mov eax, dword [edi + 0x5c]
mov al, byte [eax + 0xa1]
test al, al
jne case.0x411451.112
mov ecx, edi
call fcn.00410b60
mov eax, 1
jmp 0x411506
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.0040c6b0
push eax
push 0xa
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00411730
cmp dword [ebp - 0x1c], 0x10
jb 0x4114a2
push dword [ebp - 0x30]
call fcn.00424bf6
add esp, 4
mov eax, 1
jmp 0x411506
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x41142f
mov dword [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push 0x43f3d8
push ecx
call dword [eax]
test eax, eax
js 0x4114ee
mov eax, dword [ebp - 0x18]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4114ee
cmp eax, 1
je 0x4114ee
mov esi, 1
jmp 0x4114f0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x411504
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424436
mov esp, ebp
pop ebp
ret 4
Function at 0x411fe0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x38], edx
mov esi, ecx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x7f00
push 0
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x411f40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0xc], str.LIEFrameControl
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0
push 0
push 0x64
push 0x64
push 0
push 0
push 0
push str.IE_Message_Window
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x44e890
je 0x4120af
push 0xffffffffffffffff
push 0
push ebx
mov ecx, 0x44e890
call fcn.00402790
push 0
push 0
push 0
push 0x411f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, edi
mov esi, eax
call fcn.00411540
add esp, 4
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424436
mov esp, ebp
pop ebp
ret

Function at 0x418650
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x451bd4], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x451bd4], edx
inc eax
cmp eax, 0x270
jl 0x418661
mov dword [0x451bd0], 0x270
pop ebp
ret 8
Function at 0x41f040
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e386
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44d740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebx], vtable.NamedPipeMessenger.0
push 0xffffffffffffffff
lea edi, [ebx + 4]
mov dword [edi + 0x14], 7
mov ecx, edi
push eax
push dword [ebp + 8]
mov dword [edi + 0x10], 0
mov word [edi], ax
call fcn.00402790
lea esi, [ebx + 0x1c]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov edx, 0x446b70
mov byte [ebx + 0x34], al
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x74], 0
call fcn.0041c940
mov edi, eax
add esp, 4
cmp esi, edi
je 0x41f10f
cmp dword [esi + 0x14], 8
jb 0x41f0f4
push dword [esi]
call fcn.00424bf6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00402650
cmp dword [ebp - 0x18], 8
jb 0x41f120
push dword [ebp - 0x2c]
call fcn.00424bf6
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x48], eax
call edi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x5c], eax
call edi
cmp byte [ebx + 0x34], 0
mov dword [ebx + 0x70], eax
je 0x41f182
cmp dword [esi + 0x14], 8
jb 0x41f15b
mov esi, dword [esi]
push dword [ebp + 0x18]
push 0
push 0x800
push 0x800
push 0xff
push 6
push 0x40080003
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebx + 0x44], eax
jmp 0x41f1c9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
cmp eax, 2
jne 0x41f196
push 0x3e8
call edi
cmp dword [esi + 0x14], 8
jb 0x41f1a0
mov eax, dword [esi]
jmp 0x41f1a2
mov eax, esi
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41f18f
push 0
push 0
push ebx
push 0x41f020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x40], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41f2d0
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44d740]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x44d740]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
push 0x401
mov byte [ebx + 0x74], 1
call fcn.00420439
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
cmp byte [ebx + 0x34], 0
mov edi, eax
je 0x41f36e
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x54], 0
push ecx
push dword [ebx + 0x44]
mov dword [ebx + 0x58], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41f368
cmp eax, 0x217
je 0x41f368
cmp eax, 0x3e5
jne 0x41f368
push 0xffffffffffffffff
push dword [ebx + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebx + 0x4c]
lea ebx, [ebx]
mov dword [esp + 0x14], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x40], 0
push eax
lea eax, [esp + 0x18]
push eax
push 0x400
push edi
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
cmp eax, 0x3e5
jne 0x41f3fa
push 0xffffffffffffffff
push dword [ebx + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41f3ff
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0x4c]
push eax
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41f3ff
call esi
cmp eax, 6
je 0x41f47e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f486
cmp byte [eax + edi - 1], 0
mov byte [edi + 0x400], 0
sete byte [esp + 0x13]
cmp byte [edi], 0
jne 0x41f421
xor eax, eax
jmp 0x41f42f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f426
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00408b20
cmp byte [esp + 0x13], 0
lea eax, [ebx + 0x4c]
je 0x41f3b3
cmp dword [esp + 0x14], 0
je 0x41f486
push dword [ebx + 0x3c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x38]
call eax
add esp, 8
lea eax, [ebx + 0x4c]
cmp dword [esp + 0x2c], 0x10
jb 0x41f380
push dword [esp + 0x18]
call fcn.00424bf6
add esp, 4
jmp 0x41f377
mov dword [esp + 0x14], 0
cmp dword [esp + 0x2c], 0x10
jb 0x41f499
push dword [esp + 0x18]
call fcn.00424bf6
add esp, 4
push edi
mov byte [ebx + 0x74], 0
call fcn.00424bf6
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00424436
mov esp, ebp
pop ebp
ret
Function at 0x41f4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x41f500
mov ecx, dword [ecx]
lea edi, [esi + 0x60]
inc eax
push edi
lea edx, [ebp - 8]
push edx
push eax
push ecx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41f540
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41f540
push 1
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424436
mov esp, ebp
pop ebp
ret 4
Function at 0x41fb40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x40
jb 0x41fb57
mov eax, 0x10
pop esi
pop ebp
ret
lea eax, [ecx*8]
add dword [esi], eax
adc dword [esi + 4], 0
mov byte [ecx + esi + 0x20], 0x80
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x38
jbe 0x41fba1
cmp eax, 0x40
jae 0x41fb90
lea esp, [esp]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x40
jb 0x41fb80
lea edx, [esi + 0x20]
mov ecx, esi
call fcn.0041f6a0
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x1c], 0x38
jae 0x41fbc1
jmp 0x41fbb0
mov eax, dword [esi + 0x1c]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0x38
jb 0x41fbb0
movzx eax, byte [esi + 7]
lea edx, [esi + 0x20]
mov byte [esi + 0x58], al
mov ecx, esi
movzx eax, byte [esi + 6]
mov byte [esi + 0x59], al
movzx eax, byte [esi + 5]
mov byte [esi + 0x5a], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x5b], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x5c], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x5d], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x5e], al
movzx eax, byte [esi]
mov byte [esi + 0x5f], al
call fcn.0041f6a0
mov ecx, dword [ebp + 0xc]
movzx eax, byte [esi + 0xb]
mov byte [ecx], al
movzx eax, byte [esi + 0xa]
mov byte [ecx + 1], al
movzx eax, byte [esi + 9]
mov byte [ecx + 2], al
movzx eax, byte [esi + 8]
mov byte [ecx + 3], al
movzx eax, byte [esi + 0xf]
mov byte [ecx + 4], al
movzx eax, byte [esi + 0xe]
mov byte [ecx + 5], al
movzx eax, byte [esi + 0xd]
mov byte [ecx + 6], al
movzx eax, byte [esi + 0xc]
mov byte [ecx + 7], al
movzx eax, byte [esi + 0x13]
mov byte [ecx + 8], al
movzx eax, byte [esi + 0x12]
mov byte [ecx + 9], al
movzx eax, byte [esi + 0x11]
mov byte [ecx + 0xa], al
movzx eax, byte [esi + 0x10]
mov byte [ecx + 0xb], al
movzx eax, byte [esi + 0x17]
mov byte [ecx + 0xc], al
movzx eax, byte [esi + 0x16]
mov byte [ecx + 0xd], al
movzx eax, byte [esi + 0x15]
mov byte [ecx + 0xe], al
movzx eax, byte [esi + 0x14]
mov byte [ecx + 0xf], al
movzx eax, byte [esi + 0x1b]
mov byte [ecx + 0x10], al
movzx eax, byte [esi + 0x1a]
mov byte [ecx + 0x11], al
movzx eax, byte [esi + 0x19]
mov byte [ecx + 0x12], al
movzx eax, byte [esi + 0x18]
mov byte [ecx + 0x13], al
xor eax, eax
pop esi
pop ebp
ret