joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a32b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x52e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x80
push 0
push eax
mov dword [ebp - 0x90c], edi
call fcn.004c9a10
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004c9a10
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x14c]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
push 0x3c
push ebx
call fcn.004a2880
mov eax, dword [esi + 0x1eb0]
add esp, 0x28
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4a3498
cmp ecx, 0x23
je 0x4a3472
cmp ecx, 0x27
jne 0x4a3526
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004920b0
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x4a3411
nop
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3397
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x4a33ff
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.00415010
add esp, 0x10
test eax, eax
je 0x4a33ff
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004920b0
add esp, 0x1c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x4a3390
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004920b0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a346c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00483130
add esp, 0xc
push edi
jmp 0x4a3514
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3480
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x4a34b9
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a34a3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.004920b0
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a3510
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00483130
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.004a2880
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7060
mov esp, ebp
pop ebp
ret
Function at 0x4a4230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x52e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x720]
mov ebx, dword [eax]
lea esi, [edi + 0x15c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x4a42c3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.004c86f0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x4a42f6
push str.Received_too_short_packet
push ebx
call fcn.00483130
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
push esi
call fcn.004a3e20
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4a4311
jmp dword [eax*4 + 0x4a4458]
cmp edx, 4
jle case.0x4a4311.4
push esi
call fcn.004a3e00
movzx ecx, word [edi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x4a4311.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push dword [ebp - 0x90]
call fcn.00483080
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a4376
push 5
push edi
call fcn.004a4cf0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.0048e6d0
jmp 0x4a441e
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x15c]
push eax
call fcn.004a3e00
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.004a3dd0
add esp, 0xc
cmp eax, esi
jae case.0x4a4311.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.00483210
jmp 0x4a441e
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.004a3fe0
add esp, 0xc
test eax, eax
je case.0x4a4311.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x501ea0
push ebx
call fcn.00483130
add esp, 0xc
push dword [ebp - 0x90]
call fcn.0048e9c0
add esp, 4
test eax, eax
je 0x4a42e3
push 5
push edi
call fcn.004a4cf0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004b7060
mov esp, ebp
pop ebp
ret
Function at 0x4a4cf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x4a4d02
jmp dword [edx*4 + 0x4a4d58]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004a4730
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004a4470
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004a4f00
push str.TFTP_finished
push 0x4fcf88
push eax
call fcn.00483210
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x501ea0
push eax
call fcn.00483130
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4b3e80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4b3eb3
push 0x2e
push edi
call fcn.004c8180
add esp, 8
test eax, eax
je 0x4b3eb1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4b5010
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4b50a7
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.004b5110
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004b6da0
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4b50b9
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004b7060
mov esp, ebp
pop ebp
ret

Function at 0x4b6e90
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000000
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4b6ecf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret
Function at 0x4b6f50
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 [0x52e1a8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b6f7d
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 0x4b6fc4
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 0x4b6fca
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 0x4b702b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
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
sub dword [ebp + 0x10], 1
jne 0x4b6ff0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4b7057
mov eax, dword [esi + 4]
push 1
push 0x5085e6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5085e7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4b7030
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e63c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e6244

Function at 0x4e7ffe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e7cbe
Function at 0x10005dd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 5
mov dword [edi + 4], 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
mov dword [edi + 0x2c], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffe8cd
mov dword [edi + 0x20], eax
call esi
push 0xffd199
mov dword [edi + 0x28], eax
call esi
cmp dword [0x1001d2b8], 0
mov dword [edi + 0x24], eax
jne 0x10005f21
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1001d2b8], eax
test eax, eax
je 0x10005f21
mov esi, dword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
lea ecx, [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xe000d
push ecx
push eax
mov dword [ebp - 0x18], str.IsThemeActive
call esi
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
mov dword [ebp - 0xc], 0xe000d
lea eax, [ebp - 0x24]
mov dword [ebp - 8], str.OpenThemeData
push eax
push edx
lea eax, [ebp - 0xc]
cmovs ecx, edx
push eax
push dword [0x1001d2b8]
mov dword [0x1001d2a8], ecx
call esi
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
mov dword [ebp - 0x14], 0xf000e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], str.CloseThemeData
push eax
push edx
lea eax, [ebp - 0x14]
cmovs ecx, edx
push eax
push dword [0x1001d2b8]
mov dword [0x1001d2b0], ecx
call esi
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
mov dword [ebp - 0xc], 0x130012
lea eax, [ebp - 0x18]
mov dword [ebp - 8], str.IsThemePartDefined
push eax
push edx
lea eax, [ebp - 0xc]
cmovs ecx, edx
push eax
push dword [0x1001d2b8]
mov dword [0x1001d2ac], ecx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0xc000b
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.GetThemeInt
push eax
push dword [0x1001d2b8]
call esi
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [0x1001d2b4], ecx
jmp 0x10005f27
mov ecx, dword [0x1001d2b4]
mov eax, dword [0x1001d2a8]
test eax, eax
je 0x10005f88
cmp dword [0x1001d2b0], 0
je 0x10005f88
test ecx, ecx
je 0x10005f88
cmp dword [0x1001d2ac], 0
je 0x10005f88
call eax
test eax, eax
je 0x10005f88
push str.EDIT
push dword [edi + 0x14]
call dword [0x1001d2b0]
lea ecx, [edi + 8]
mov esi, eax
push ecx
push 0x963
push 1
push 6
push esi
call dword [0x1001d2b4]
push esi
call dword [0x1001d2ac]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000960d
mov esp, ebp
pop ebp
ret
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
add eax, eax
mov dword [edi + 8], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000960d
mov esp, ebp
pop ebp
ret
Function at 0x100060a0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
push edi
push dword [esi + 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x100061de
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov edi, eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
test cl, 2
je 0x10006119
push dword [esi + 0x24]
jmp 0x10006126
test cl, 1
je 0x10006123
push dword [esi + 0x28]
jmp 0x10006126
push dword [esi + 0x20]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [0x1001d288]
push 1
cmp dword [eax], 0
mov eax, dword [esi + 0x2c]
push eax
push eax
mov eax, dword [ebp - 8]
push 0
push 0
jbe 0x1000616f
sub eax, dword [esi + 0x10]
sub eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x14]
push eax
push edi
push 0
jmp 0x10006194
sub eax, dword [esi + 0x10]
sub eax, dword [ebp - 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x14]
push eax
push edi
push 1
push dword [esi + 0x1c]
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
push 0xcc0020
push 0
push 0
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000960d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006c80
Capabilities:
Hide graphical window

Disassembly:
push edi
push 0x34
call dword [sym.imp.ProcessHacker.exe__PhAllocate_4]
push 0x34
mov edi, eax
push 0
push edi
call fcn.1000a5d0
add esp, 0xc
mov dword [edi], 0x8001
push 0
push 0
push 0
push dword [0x1001d1f0]
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x56000080
push 0
push str.Edit
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [0x1001d1dc], 1
mov dword [edi + 0x14], eax
jne 0x10006cef
push 0
push dword [0x1001d28c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.10005dd0
mov ecx, edi
call fcn.10005fb0
push str.Search_Processes__CtrlK_
push 0
push 0x1501
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push str.EditSubclassContext
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetPropW]
push edi
push 0
push 0x10006200
push dword [edi + 0x14]
call dword [sym.imp.COMCTL32.dll_SetWindowSubclass]
push 0
push 0
push 0x31a
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x14]
pop edi
ret
Function at 0x1001ada8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x1001adcb
mov eax, 0x8876086c
jmp 0x1001aee0
cmp dword [ebp + 0xc], esi
push ebx
je 0x1001ae63
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x1001ae43
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.101166d0
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x1001ae27
mov eax, 0x8007000e
jmp 0x1001aedf
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x1001ae63
push esi
push 0x10000000
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1001ae7c
push esi
push 0x10000000
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.101163a0
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x1001aecd
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x1001aecd
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x1001aecd
cmp eax, esi
je 0x1001aeda
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x1001aedd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x1001aedf
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x1001b6ce
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1001b73e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10182850
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b735
cmp dword [ebp - 0xc], 4
jne 0x1001b735
cmp dword [ebp - 0x10], edi
je 0x1001b735
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x101c6c90], edi
xor eax, eax
jmp 0x1001b77d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x101c6c90], edi
jge 0x1001b778
lea eax, [ebp - 0x34]
push eax
mov dword [0x101c6c90], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x1001b778
cmp word [ebp - 0x14], 5
jb 0x1001b778
call fcn.1001b6a6
test eax, eax
je 0x1001b778
emms
mov dword [0x101c6c90], 1
mov eax, dword [0x101c6c90]
pop edi
leave
ret

Function at 0x1001b930
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x1001b953
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x1001b979
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x1001b960
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x1001ba30
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1001ba67
push esi
call fcn.10022f90
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1001ba60
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x1001bae6
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001bad0
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x1001ba8a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x1001bac9
cmp eax, 2
je 0x1001bad0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001ba80
cmp eax, 3
je 0x1001baad
cmp eax, 1
jne 0x1001ba80
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x1001ba80
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x1001ba80
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.1001b930
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x1001bafd
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.1001b930
pop esi
pop ebp
ret 4
Function at 0x10024416
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x10024425
xor eax, eax
jmp 0x10024508
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x100244e8
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
inc edx
dec edi
jne 0x10024445
pop edi
test eax, eax
je 0x10024502
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101847c0]
inc edx
dec eax
jne 0x100244ec
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc