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

Disassembly:
mov eax, 0x200c
call fcn.00459eb0
push esi
mov esi, dword [esp + 0x2014]
test esi, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
jne 0x44e106
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 0x200c
ret 0x10
mov eax, dword [ecx + 4]
test eax, eax
je 0x44e216
cmp eax, 0xffffffff
je 0x44e216
push ebx
push ebp
mov ebp, dword [esi + 4]
add ebp, 4
push ebp
call fcn.00459619
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44e206
mov eax, dword [esi]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
mov esi, dword [esi + 8]
push edi
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x1c]
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push ebx
mov dword [esp + 0x18], esi
call fcn.0045932f
add esp, 4
test esi, esi
je 0x44e205
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push 0x2000
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x14], eax
je 0x44e205
cmp dword [esp + 0x10], 4
jb 0x44e205
mov eax, dword [esp + 0x2024]
test eax, eax
je 0x44e1c2
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov esi, dword [esp + 0x202c]
test esi, esi
je 0x44e1d3
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov edi, dword [esp + 0x2028]
test edi, edi
je 0x44e205
mov ecx, dword [esi]
push ecx
call fcn.00459619
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x44e205
mov ecx, dword [esi]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x24]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop esi
add esp, 0x200c
ret 0x10
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 0x200c
ret 0x10
Function at 0x44e660
Capabilities:
Create pipe
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
push esi
mov esi, ecx
je 0x44e7d4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x44e7d4
push ebx
mov ebx, dword [esp + 0x34]
push edi
lea edi, [ebx*4]
push edi
call fcn.0045b8a1
add esp, 4
test eax, eax
mov dword [esi + 0x10], eax
je 0x44e6c0
xor eax, eax
test ebx, ebx
jle 0x44e6b0
mov ecx, dword [esi + 0x10]
mov dword [ecx + eax*4], 0xffffffff
inc eax
cmp eax, ebx
jl 0x44e6a1
push edi
call fcn.0045b8a1
add esp, 4
test eax, eax
mov dword [esi + 0x14], eax
jne 0x44e6d3
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x20
ret 0xc
xor eax, eax
test ebx, ebx
jle 0x44e6ef
lea esp, [esp]
mov edx, dword [esi + 0x14]
mov dword [edx + eax*4], 0
inc eax
cmp eax, ebx
jl 0x44e6e0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 8], eax
je 0x44e6c8
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0xc], ebx
call fcn.004322a0
add esp, 8
xor edi, edi
test ebx, ebx
jle 0x44e7b9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ebx, [ebx]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push 0xbb8
push 0x2000
push 0x2000
push ebx
push 6
push 0x40000003
push eax
call ebp
mov ecx, dword [esi + 0x10]
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x44e7c8
cmp eax, 0xffffffff
je 0x44e7c8
push 0xc
call fcn.0045b8a1
mov ecx, dword [esp + 0x3c]
add esp, 4
push 0
push 0
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + edi*4]
push eax
push 0x44e370
mov dword [eax], ecx
mov edx, dword [esi + 8]
push 0
push 0
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x14]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x44e7c8
cmp eax, 0xffffffff
je 0x44e7c8
inc edi
cmp edi, ebx
jl 0x44e730
pop ebp
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x20
ret 0xc
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x20
ret 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 0x20
ret 0xc
Function at 0x44f430
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x110
push ebp
push edi
mov edi, dword [esp + 0x11c]
xor ebp, ebp
test edi, edi
je 0x44f5b8
cmp byte [edi], 0
je 0x44f5b8
push ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x44f5ad
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x44f5a7
lea eax, [esp + 0x10]
push eax
push 0x47e4b8
push 1
push ebp
push 0x47e578
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x44f5a7
push str.ROOTCIMV2
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebp
call fcn.0044e980
mov eax, dword [eax]
test eax, eax
je 0x44f4bb
mov ecx, dword [eax]
jmp 0x44f4bd
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
lea esi, [esp + 0x10]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0044ea70
test esi, esi
pop esi
jl 0x44f59d
mov eax, dword [esp + 0xc]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x44f593
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edi
push edx
mov dword [esp + 0x14], 0
call fcn.0044f2c0
mov ebp, eax
add esp, 0xc
cmp ebp, 1
je 0x44f582
push 0x2e
push edi
call fcn.0045a180
add esp, 8
test eax, eax
je 0x44f554
push 4
push str..exe
push eax
call fcn.0045c0d0
add esp, 0xc
test eax, eax
je 0x44f57d
push edi
lea eax, [esp + 0x18]
push str._s.exe
push eax
call fcn.00458ee7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0044f2c0
add esp, 0x18
mov ebp, eax
cmp ebp, 1
jne 0x44f593
mov eax, dword [esp + 0x120]
test eax, eax
je 0x44f593
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, ebp
pop ebp
add esp, 0x110
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x110
ret
Function at 0x451270
Capabilities:
Check mutex on windows
Check os version

Disassembly:
sub esp, 0x3c4
xor ecx, ecx
push ebx
mov dword [esp + 0x11], ecx
push ebp
mov dword [esp + 0x19], ecx
xor eax, eax
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x21], ecx
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x29], ecx
push edx
lea eax, [esp + 0x14]
xor ebx, ebx
mov word [esp + 0x31], cx
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x37], cl
call fcn.004322a0
add esp, 8
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0xd0], bl
mov dword [esp + 0x34], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4512f9
cmp dword [esp + 0x34], 5
jb 0x4512f9
mov edx, dword [str.Global_]
mov eax, dword [0x46bbcc]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
lea edi, [esp + 0xcc]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x451301
mov ecx, 7
mov esi, str.KaseyaAppTableWSockAccessSema
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xcc]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
cmp ebp, ebx
je 0x451402
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4513fb
mov edx, dword [0x4ce620]
cmp edx, ebx
je 0x4513f4
mov edi, dword [0x4ce624]
cmp edi, ebx
je 0x4513f4
mov ecx, dword [edx + 0x64]
mov eax, dword [esp + 0x3dc]
cmp eax, ecx
jle 0x451372
mov eax, ecx
mov esi, dword [esp + 0x3d8]
mov ecx, eax
imul ecx, ecx, 0x10c
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x68], eax
lea eax, [esp + 0x1d0]
push eax
push 0x14
call fcn.00423070
add esp, 8
test eax, eax
jne 0x4513cc
mov ecx, dword [esp + 0x1d0]
mov eax, 1
cmp ecx, eax
jne 0x4513cc
cmp dword [esp + 0x1d4], eax
jne 0x4513cc
mov ecx, dword [0x4ce620]
mov dword [ecx + 0x58], eax
jmp 0x4513d9
mov edx, dword [0x4ce620]
mov dword [edx + 0x58], 0
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c4
ret
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3c4
ret
Function at 0x452bb0
Capabilities:
Check os version

Disassembly:
mov al, byte [0x4ce850]
sub esp, 0x9c
test al, al
jne 0x452c17
lea eax, [esp]
push eax
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x452bf4
cmp dword [esp + 4], 5
jb 0x452bf4
mov ecx, dword [str.Global_]
mov edx, dword [0x46bbcc]
mov dword [0x4ce850], ecx
mov dword [0x4ce854], edx
push esi
push edi
mov edi, 0x4ce850
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x452c00
mov ecx, 8
mov esi, str.KaseyaWsockHookMsgQueueWriteSema
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 0x4ce850
add esp, 0x9c
ret
Function at 0x4599db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4599f8
call fcn.0045bfa9
mov dword [eax], 0x16
xor eax, eax
jmp 0x459a62
push esi
push 0x8c
push 1
call fcn.00459dd1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x459a4d
push esi
call fcn.0045fc89
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x459a2b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x459946
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x459a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0045932f
test ebx, ebx
pop ecx
je 0x459a5f
push ebx
call fcn.0045bfbb
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45c282
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x482020
call fcn.0045dee0
mov edi, 0x94
mov eax, edi
call fcn.00459eb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4ceaec], ecx
mov eax, dword [esi + 4]
mov dword [0x4ceaf8], eax
mov edx, dword [esi + 8]
mov dword [0x4ceafc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4ceaf0], esi
cmp ecx, 2
je 0x45c2e2
or esi, 0x8000
mov dword [0x4ceaf0], esi
shl eax, 8
add eax, edx
mov dword [0x4ceaf4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x45c31d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45c31d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45c335
cmp eax, 0x20b
je 0x45c322
mov dword [ebp - 0x1c], esi
jmp 0x45c349
cmp dword [ecx + 0x84], 0xe
jbe 0x45c31d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x45c343
cmp dword [ecx + 0x74], 0xe
jbe 0x45c31d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0045e4f7
pop ecx
test eax, eax
jne 0x45c35d
push 0x1c
call fcn.0045c25e
pop ecx
call fcn.0045fe89
test eax, eax
jne 0x45c36e
push 0x10
call fcn.0045c25e
pop ecx
call fcn.00463b16
mov dword [ebp - 4], esi
call fcn.0045f6bc
test eax, eax
jge 0x45c387
push 0x1b
call fcn.0045c239
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4d0204], eax
call fcn.004639f4
mov dword [0x4ce968], eax
call fcn.00463952
test eax, eax
jge 0x45c3ad
push 8
call fcn.0045c239
pop ecx
call fcn.0046371f
test eax, eax
jge 0x45c3be
push 9
call fcn.0045c239
pop ecx
push 1
call fcn.0045ffd2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x45c3d4
push eax
call fcn.0045c239
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004636c2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x45c3f5
movzx eax, word [ebp - 0x40]
jmp 0x45c3f8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004147d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x45c416
push edi
call fcn.004600ff
call fcn.00460121
jmp 0x45c448
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045df1b
ret
Function at 0x45df2c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4877c8]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x45df68
xor eax, eax
jmp 0x45e0d2
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4cf0c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45dfa6
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004640e9
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45e040
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x45e0a3
jmp 0x45dfca
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x45e005
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45dff6
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x45dfd6
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45e064
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x45e06d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45dfc8
jmp 0x45e06d
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45e064
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x45e06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x45e0cd
cmp dword [ebp - 0x68], eax
je 0x45e0a0
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x45e095
call fcn.0045bfa9
mov dword [eax], 9
call fcn.0045bfb2
mov dword [eax], esi
jmp 0x45e0c8
push dword [ebp - 0x68]
call fcn.0045bfbb
pop ecx
jmp 0x45e0c8
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45e0b5
cmp byte [edi], 0x1a
jne 0x45e0b5
xor eax, eax
jmp 0x45e0d0
call fcn.0045bfa9
mov dword [eax], 0x1c
call fcn.0045bfb2
and dword [eax], 0
or eax, 0xffffffff
jmp 0x45e0d0
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0045c488
add ebp, 0x3a4
leave
ret
Function at 0x45f2d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x45f4a6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4cf0c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x45f4a6
test cl, 0x48
je 0x45f33b
cmp byte [eax + 5], 0xa
je 0x45f33b
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f38d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x45f375
call fcn.0045bfa9
mov dword [eax], 9
call fcn.0045bfb2
mov dword [eax], esi
jmp 0x45f385
cmp eax, 0x6d
je 0x45f4a6
push eax
call fcn.0045bfbb
pop ecx
or eax, 0xffffffff
jmp 0x45f4a8
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x45f4a1
test eax, eax
je 0x45f3b4
cmp byte [ebx], 0xa
jne 0x45f3b4
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45f3bd
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x45f49b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x45f48b
cmp al, 0xd
je 0x45f3ef
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x45f47d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x45f409
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x45f404
add dword [ebp + 0x10], 2
jmp 0x45f45d
mov dword [ebp + 0x10], eax
jmp 0x45f479
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f431
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45f479
cmp dword [ebp - 0xc], 0
je 0x45f479
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x45f452
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x45f45d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45f47c
cmp ebx, dword [ebp + 0xc]
jne 0x45f462
cmp byte [ebp - 1], 0xa
jne 0x45f462
mov byte [ebx], 0xa
jmp 0x45f47c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004640e9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45f47d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x45f3d3
jmp 0x45f49b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x45f49b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x45f4a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46003c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x482188
call fcn.0045dee0
push 8
call fcn.0045e69b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4ceb2c], esi
jne 0x460070
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4ceb28], esi
mov al, byte [ebp + 0x10]
mov byte [0x4ceb24], al
cmp dword [ebp + 0xc], edi
jne 0x4600ba
cmp dword [0x4cf0a8], edi
je 0x4600aa
mov eax, dword [0x4cf0a4]
sub eax, 4
mov dword [0x4cf0a4], eax
cmp eax, dword [0x4cf0a8]
jb 0x4600aa
mov eax, dword [eax]
cmp eax, edi
je 0x46008b
call eax
jmp 0x46008b
push 0x486054
mov eax, 0x48604c
call fcn.0045ffba
pop ecx
push 0x486060
mov eax, 0x486058
call fcn.0045ffba
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4600eb
cmp dword [ebp + 0x10], edi
jne 0x4600f9
mov dword [0x4ceb2c], esi
push dword [ebp + 8]
call fcn.0045ff78
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4600f8
push 8
call fcn.0045e5e6
pop ecx
ret
call fcn.0045df1b
ret
Function at 0x460310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46033e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x460345
cmp ebx, dword [eax + 4]
jae 0x460345
xor eax, eax
jmp 0x460535
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x460356
xor eax, eax
inc eax
jmp 0x460534
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46036c
cmp ecx, edx
jae 0x4604b1
cmp dword [eax + 4], 0
je 0x460375
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46035d
cmp dword [ebp + 8], 0
je 0x460397
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4604b1
cmp eax, esi
jae 0x4604b1
mov eax, dword [0x4ceb30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4603bc
cmp dword [esi*4 + 0x4ceb38], edi
je 0x4604b5
inc esi
cmp esi, eax
jl 0x4603aa
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x460531
cmp dword [ebp - 8], 0x1000000
jne 0x460531
test byte [ebp - 0xc], 0xcc
je 0x46043a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x460531
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x460531
cmp word [eax + 0x18], 0x10b
jne 0x460531
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x460531
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46043a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46043a
test byte [ecx + 0x27], 0x80
jne 0x4604b1
push 1
push 0x4ceb78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x46034e
mov ecx, dword [0x4ceb30]
test ecx, ecx
mov edx, ecx
jle 0x46046e
lea eax, [ecx*4 + 0x4ceb34]
cmp dword [eax], edi
je 0x46046e
dec edx
sub eax, 4
test edx, edx
jg 0x460462
test edx, edx
jne 0x46049f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46047b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x460493
lea eax, [edx*4 + 0x4ceb38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x460481
cmp ecx, 0x10
jge 0x46049f
inc ecx
mov dword [0x4ceb30], ecx
push 0
push 0x4ceb78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x46034e
xor eax, eax
jmp 0x460534
test esi, esi
jle 0x46034e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4ceb78
call ebx
test eax, eax
jne 0x46034e
cmp dword [esi*4 + 0x4ceb38], edi
je 0x46050b
mov eax, dword [0x4ceb30]
lea esi, [eax - 1]
test esi, esi
jl 0x4604f9
cmp dword [esi*4 + 0x4ceb38], edi
je 0x4604f5
dec esi
jns 0x4604e9
test esi, esi
jge 0x460509
cmp eax, 0x10
jge 0x460504
inc eax
mov dword [0x4ceb30], eax
lea esi, [eax - 1]
jmp 0x46050b
je 0x460523
xor ecx, ecx
test esi, esi
jl 0x460523
lea eax, [ecx*4 + 0x4ceb38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x460511
push 0
push 0x4ceb78
call ebx
jmp 0x46034e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret