joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a6e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x46f650]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x44a6fc
cmp dword [ebp + 8], 0xffffffff
jne 0x44a703
xor eax, eax
jmp 0x44a824
cmp dword [ebp + 0xc], 0
jne 0x44a710
xor eax, eax
jmp 0x44a824
cmp dword [ebp + 0x14], 0
jne 0x44a723
cmp dword [ebp + 0x18], 0
je 0x44a723
xor eax, eax
jmp 0x44a824
cmp dword [ebp + 0x20], 0
jne 0x44a730
mov dword [ebp + 0x20], 1
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x44a749
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x20]
jge 0x44a822
push 0x50
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0042ac10
add esp, 0xc
mov eax, 0x2c
mov word [ebp - 0x60], ax
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x59], 0x18
mov byte [ebp - 0x58], 1
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x54], ecx
movzx edx, byte [ebp + 0x1c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov cl, byte [ebp + 0x10]
mov byte [ebp - 0x5a], cl
movzx edx, byte [ebp - 0x5a]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0042a8a0
add esp, 0xc
mov dword [ebp - 0x48], 0x30
push 0
lea edx, [ebp - 4]
push edx
push 0x50
lea eax, [ebp - 0x60]
push eax
push 0x50
lea ecx, [ebp - 0x60]
push ecx
push 0x4d014
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x44a7f1
lea eax, [ebp - 0x30]
push eax
call fcn.0044a190
add esp, 4
test eax, eax
je 0x44a816
cmp dword [ebp - 0x64], 0
je 0x44a800
mov dword [ebp - 0x68], str.r1_retry_0_n
jmp 0x44a807
mov dword [ebp - 0x68], str.r1_retry_1_n
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x44a740
mov eax, 1
jmp 0x44a824
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00428d44
mov esp, ebp
pop ebp
ret
Function at 0x44b040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xcc
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd8]
push ebx
movzx ebx, byte [esp + 0xd8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
push edi
mov edi, dword [esp + 0xe0]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xa
lea edx, [esp + 0x30]
push edx
push 0xa
mov dword [esp + 0x34], eax
mov eax, edx
push eax
push 0x220420
push edi
mov dword [esp + 0x44], ebx
call ebp
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
test eax, eax
je 0x44b0a8
cmp ecx, 0xa
ja 0x44b0b1
mov ecx, 0x62
mov dword [esp + 0x10], ecx
push ecx
call fcn.0040b5c4
add esp, 4
push 0
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esi], ebx
mov eax, dword [esp + 0x18]
push eax
push esi
push eax
push esi
push 0x220420
push edi
call ebp
test eax, eax
jne 0x44b0e7
push esi
call fcn.0040b5f3
add esp, 4
jmp 0x44b1ef
mov ebp, dword [esp + 0x20]
lea edx, [esi + 8]
push edx
lea ebx, [ebp + 0x12]
push 0x2c
push ebx
call fcn.00429007
push esi
call fcn.0040b5f3
push 0x56
lea eax, [esp + 0x94]
push 0
mov ecx, 0x14
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [esp + 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0042ac10
push ebx
lea ecx, [esp + 0x9e]
push 0x2c
push ecx
call fcn.00429007
add esp, 0x28
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
lea eax, [esp + 0x3c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44b1ef
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edi, [ebp + 0x6a]
push edi
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x28]
push str.DriverDesc
push eax
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x34], 1
call esi
cmp eax, 0xea
jne 0x44b1e4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b5c4
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x14]
push edx
mov ebx, eax
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push str.DriverDesc
push ecx
call esi
test eax, eax
jne 0x44b1db
push 0x4604ec
push 4
add ebp, 0x9e
mov ecx, 0xd
mov esi, ebx
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.00429007
add esp, 0xc
push ebx
call fcn.0040b5f3
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428d44
add esp, 0xcc
ret 0xc
Function at 0x44bc90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x86c
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x868], eax
mov eax, dword [esp + 0x870]
push ebx
push ebp
mov ebp, dword [esp + 0x87c]
push esi
push edi
push eax
lea eax, [esp + 0x674]
push 0x104
push eax
mov ebx, ecx
call fcn.00429007
mov ecx, 0xf
mov esi, str.SYSTEMCurrentControlSetEnum_
lea edi, [esp + 0x280]
rep movsd dword es:[edi], dword [esi]
push 0x1b6
lea ecx, [esp + 0x2c2]
push 0
push ecx
movsw word es:[edi], word [esi]
call fcn.0042ac10
lea edx, [esp + 0x688]
push edx
lea eax, [esp + 0x290]
push 0xfa
push eax
call fcn.00429076
lea ecx, [esp + 0x298]
push 0x23
push ecx
call fcn.0042b769
add esp, 0x2c
test eax, eax
je 0x44bd4d
mov edx, 0x5c
mov word [eax], dx
mov esi, eax
lea eax, [esp + 0x274]
push 0x23
push eax
call fcn.0042b769
add esp, 8
test eax, eax
jne 0x44bd24
test esi, esi
je 0x44bd4d
xor ecx, ecx
mov word [esi], cx
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x280]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44bde9
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.DeviceDesc
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x468]
push 0x3b
push eax
call fcn.0042b769
add esp, 8
test eax, eax
je 0x44bdd5
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x24]
push ecx
add eax, 2
push ebp
push eax
call edx
jmp 0x44bdf8
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x24]
push ecx
lea eax, [esp + 0x46c]
push ebp
push eax
call edx
jmp 0x44bdf8
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x24]
push eax
push ebp
push str.USB_Root_Hub
call ecx
mov edx, dword [0x460560]
mov cx, word [0x460568]
add esp, 0xc
push 0x1fe
mov dword [esp + 0x70], edx
mov edi, eax
mov eax, dword [0x460564]
lea edx, [esp + 0x7a]
push 0
push edx
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], cx
call fcn.0042ac10
lea eax, [esp + 0x67c]
push eax
lea ecx, [esp + 0x84]
push 0x100
push ecx
call fcn.00429007
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0x4c
lea ecx, [esp + 0x2c]
push ecx
push 0x4c
mov edx, ecx
push edx
push 0x220408
push esi
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44bea7
mov eax, dword [esp + 0x26]
push edi
push eax
lea ecx, [esp + 0x74]
push ecx
push esi
mov ecx, ebx
call fcn.0044ba50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x878]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428d44
add esp, 0x86c
ret 8
Function at 0x44c040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2f0
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x2ec], eax
push ebp
mov ebp, dword [esp + 0x2f8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [esp + 0xc]
push eax
push 6
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x28]
push ecx
push 6
mov edx, ecx
push edx
push 0x220424
push ebp
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
test eax, eax
je 0x44c193
cmp ecx, 6
jbe 0x44c193
push ebx
push ecx
call fcn.0040b5c4
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
push eax
push ebx
push eax
push ebx
push 0x220424
push ebp
call esi
test eax, eax
jne 0x44c0d0
push ebx
call fcn.0040b5f3
add esp, 4
jmp 0x44c192
push edi
mov ecx, 0x14
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [esp + 0x2c]
push 0x78
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x80]
push 0
push ecx
call fcn.0042ac10
lea edx, [ebx + 4]
push edx
lea eax, [esp + 0x3c]
push 0x64
push eax
call fcn.00429076
push ebx
call fcn.0040b5f3
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x38]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x44c192
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.DriverDesc
push eax
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x44c192
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
push edx
lea eax, [esp + 0xf4]
push eax
call ecx
add esp, 8
push eax
push ebp
mov ecx, esi
call fcn.0044bf90
pop ebx
mov ecx, dword [esp + 0x2f4]
pop esi
pop ebp
xor ecx, esp
call fcn.00428d44
add esp, 0x2f0
ret 4
Function at 0x44e9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x44e9bc
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x24], 0xffffffff
jne 0x44e9c3
xor eax, eax
jmp 0x44ead7
movzx edx, word [ebp + 0xc]
test edx, edx
jne 0x44e9d2
xor eax, eax
jmp 0x44ead7
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x20]
shl ecx, 9
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + 4]
push esi
mov ecx, dword [ecx]
push ecx
push eax
push edx
call fcn.0042ecc0
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
adc ecx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x44ea37
xor eax, eax
jmp 0x44ead7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
mov dword [ebp - 0x14], edx
movzx eax, word [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x44ea58
movzx ecx, word [ebp + 0xc]
mov dword [ebp - 0x28], ecx
jmp 0x44ea5e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040b5c4
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44eaae
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040b5f3
add esp, 4
xor eax, eax
jmp 0x44ead7
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042a8a0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040b5f3
add esp, 4
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44eae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x44eafc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x24], 0xffffffff
jne 0x44eb03
xor eax, eax
jmp 0x44ebce
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
sub ecx, dword [eax + 0x10]
sar ecx, 3
mov edx, dword [ebp - 0x10]
cmp ecx, dword [edx + 0x1c]
jb 0x44eb21
xor eax, eax
jmp 0x44ebce
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
shl ecx, 9
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + 4]
push esi
mov ecx, dword [ecx]
push ecx
push eax
push edx
call fcn.0042ecc0
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
adc ecx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
mov dword [ebp - 0xc], edx
movzx eax, word [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jae 0x44eb9c
movzx ecx, word [ebp + 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x44eba2
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44ebcb
xor eax, eax
jmp 0x44ebce
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x44ec10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
push 0x21
push 0
mov eax, dword [ebp - 4]
add eax, 0x68
push eax
call fcn.0042ac10
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x402f42
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call main
mov ebx, eax
cmp ebx, edi
jge 0x402f7c
push str.Failed_to_allocate_message_to_write.
push ebx
call main
pop ecx
pop ecx
jmp 0x402fe9
push esi
xor esi, esi
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x402fe8
push edi
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x402fac
add esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
jb 0x402f87
jmp 0x402fe8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x402fc0
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x402fcb
mov ebx, 0x80004005
push ebx
push 0x309
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_write_message_type_to_pipe.
push ebx
call main
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x402ff6
push dword [ebp - 8]
call main
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x402ffe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403063
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xea
jne 0x403049
and dword [ebp - 4], 0
jmp 0x403063
cmp eax, 0x6d
je 0x4030ae
test eax, eax
jle 0x40305c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4030be
add esi, dword [ebp - 8]
cmp esi, 8
jb 0x403018
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebx + 4], eax
cmp eax, esi
je 0x403139
push esi
push eax
call main
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x4030d7
mov esi, 0x8007000e
push esi
push 0x33c
push str.pipe.cpp
mov dword [ebp - 4], esi
call fcn.0043294e
push str.Failed_to_allocate_data_for_message.
push esi
jmp 0x403129
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 1
jmp 0x40306b
push dword [ebp - 4]
push 0x331
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_read_message_from_pipe.
jmp 0x403126
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403132
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x403101
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40310f
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x340
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_read_data_for_message.
push dword [ebp - 4]
call main
pop ecx
pop ecx
jmp 0x403139
mov dword [ebx + 8], 1
cmp dword [ebx + 8], 0
jne 0x40314c
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40314c
push ebx
call main
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94
Function at 0x42f0fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp dword [0x454ef0], 0xffffffff
mov dword [ebp + 8], eax
jne 0x42f134
push ebx
push edi
push 0x455d98
call main
mov ebx, eax
test ebx, ebx
js 0x42f18c
xor ebx, ebx
jmp 0x42f18c
test eax, eax
je 0x42f18c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [0x454ef0]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x42f172
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x42f16c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x42f17c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x42f138
jmp 0x42f18c
push ebx
push 0x318
push str.logutil.cpp
call fcn.0043294e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40597e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4059c4
call fcn.0040757f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4059c4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x405a07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4059f0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4059f0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x405a04
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408710
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40873e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40875c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040867a
jmp 0x40875c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40875c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040867a
test edi, edi
mov eax, edi
jne 0x408746
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x444b48]
test ecx, ecx
je 0x40881f
jmp 0x40870f
ret 8

Function at 0x40dcb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40dcf6
call fcn.0040757f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40dcf6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40dd11
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d86a
test ebx, ebx
mov esi, eax
je 0x40dd0f
test edi, edi
je 0x40dd0f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e459
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443504]
jne 0x41e463
repz ret
jmp fcn.00424b0c
Function at 0x42e40f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424553
xor ebx, ebx
cmp dword [0x4472ac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42e4e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42e44f
xor eax, eax
jmp 0x42e5a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4393f8
push edi
call esi
cmp eax, ebx
je 0x42e448
push eax
call fcn.004244f0
mov dword [esp], 0x4393e8
push edi
mov dword [0x4472ac], eax
call esi
push eax
call fcn.004244f0
mov dword [esp], 0x4393d4
push edi
mov dword [0x4472b0], eax
call esi
push eax
call fcn.004244f0
mov dword [0x4472b4], eax
lea eax, [ebp - 8]
push eax
call fcn.0041f8d6
test eax, eax
pop ecx
pop ecx
je 0x42e4b2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042332f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42e4e4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004244f0
cmp eax, ebx
pop ecx
mov dword [0x4472bc], eax
je 0x42e4e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004244f0
pop ecx
mov dword [0x4472b8], eax
mov eax, dword [0x4472b8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42e55d
cmp dword [0x4472bc], esi
je 0x42e55d
push eax
call fcn.0042455c
pop ecx
call eax
cmp eax, ebx
je 0x42e52a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4472bc]
call fcn.0042455c
pop ecx
call eax
test eax, eax
je 0x42e52a
test byte [ebp - 0x18], 1
jne 0x42e55d
lea eax, [ebp - 0xc]
push eax
call fcn.0041f90d
test eax, eax
pop ecx
je 0x42e545
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042332f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42e554
or dword [ebp + 0x10], 0x200000
jmp 0x42e58e
or dword [ebp + 0x10], 0x40000
jmp 0x42e58e
mov eax, dword [0x4472b0]
cmp eax, esi
je 0x42e58e
push eax
call fcn.0042455c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e58e
mov eax, dword [0x4472b4]
cmp eax, esi
je 0x42e58e
push dword [ebp - 4]
push eax
call fcn.0042455c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4472ac]
call fcn.0042455c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret