joyce8/EMBER2024-capa huggingface dataset:
Function at 0x85cb80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x92f584]
xor eax, esp
mov dword [esp + 0xac], eax
xor eax, eax
push ebx
push esi
mov esi, ecx
mov byte [esp + 0x6c], al
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov byte [esp + 0x90], al
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
cmp edi, eax
je 0x85cca7
mov ecx, edi
lea ebx, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, al
jne 0x85cc20
sub ecx, ebx
je 0x85cca7
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00832e60
lea esi, [esp + 0x14]
lea ebx, [esp + 0x70]
call fcn.00832f20
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call fcn.008126c0
lea edx, [esp + 0x9c]
push edx
push edi
call fcn.0089367b
add esp, 0x14
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00892239
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xb4]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00892239
mov esp, ebp
pop ebp
ret

Function at 0x85d110
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x92f584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x85d19e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x85d164
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
Function at 0x85d410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
push 0
push 0x1000
push 4
push 0
push 0
push 0x10000000
push str..pipeProcessHelper_communication_pipe
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x85d473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x85d503
push 0x12c
push str..pipeProcessHelper_communication_pipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x85d503
inc ebx
cmp ebx, 3
jl 0x85d424
xor edi, edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x85d503
push 0xa74
lea ecx, [ebp - 0xa7c]
push edi
push ecx
call fcn.00896830
mov edx, dword [ebp + 8]
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0xa74
lea ecx, [ebp - 0xa7c]
push ecx
push esi
mov dword [ebp - 0xa7c], 0x1008
mov dword [ebp - 0xa78], edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x85d4f3
push edi
lea edx, [ebp - 4]
push edx
push 8
lea eax, [ebp - 0xa7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x85d4f3
mov edi, dword [ebp - 0xa78]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x85d940
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x92f584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x85d990
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x85d98a
shr eax, 8
cmp al, 2
jne 0x85d98a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00892239
mov esp, ebp
pop ebp
ret

Function at 0x8663f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x866423
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x866570
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x86658b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x8665bf
cmp eax, 2
jg 0x8665bf
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x90ada8]
push 2
push edx
call fcn.0089453e
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0089453e
add esp, 0x20
xor eax, eax
ret

Function at 0x8667d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x86684c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x866821
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.0086b3e0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00866730
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8594], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x868330
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [edi + 0x408], eax
push 4
lea ecx, [ebp - 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x868369
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.008666b0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x868980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x92f584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a4], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0x868b17
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], pe_nt_image_headers32
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x868a0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0086b3e0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00866730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], pe_nt_image_headers32
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x868a5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0086b3e0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00866730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.00868940
test eax, eax
jne 0x868ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0086b3e0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00866730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.00868940
test eax, eax
jne 0x868b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.0086b3e0
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00866730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.008688e0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00892239
mov esp, ebp
pop ebp
ret

Function at 0x868b40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x868b86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0086b3e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.008666b0
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.008666b0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x868c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x554]
test esi, esi
je 0x868c6b
mov eax, dword [edi + 0xc]
test eax, eax
je 0x868c6b
push 0x868c00
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x64]
push ecx
push edx
call fcn.008705c0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x868c74
mov dword [edi + 0x554], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x868c7d
mov dword [eax], esi
cmp dword [esi + 0x150], 0
mov edi, dword [esi + 0x130]
jne 0x868c6b
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x868c6b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x869520
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x8696b6
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x869698
push esi
cmp dword [edi + 4], 2
jne 0x86961c
cmp dword [edi + 0x18], ebx
je 0x86961c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x86961c
cmp eax, 0x10
jb 0x86961c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x869629
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x869632
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x869607
push eax
call dword [0x92f00c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x869645
cmp dword [ebp - 4], ebx
jne 0x86960f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x869619
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x869562
jmp 0x869660
mov dword [ebp - 8], 8
jmp 0x869660
push esi
mov dword [ebp - 8], 8
call dword [0x92f004]
add esp, 4
jmp 0x869660
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x92f004]
push esi
call dword [0x92f004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x86966f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x869693
mov eax, dword [ebp - 4]
push eax
call fcn.008694d0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x8696aa
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x86ad60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.008950fe
add esp, 0x18
test eax, eax
je 0x86ad84
cmp eax, 0xffffffff
jne 0x86ad86
xor eax, eax
pop ebp
ret
Function at 0x86f830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x86f841
jmp dword [ecx*4 + 0x86f8b0]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
Function at 0x872c50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x92f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00897ba2
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x872cb4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x872cb4
lea edx, [ebp - 0x108]
push edx
call dword [0x92f00c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00892239
mov esp, ebp
pop ebp
ret

Function at 0x872cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00872c50

Function at 0x875f00
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x875f22
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x875f16
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x875f52
cmp dword [esi + 8], 0
jne 0x875f45
mov ecx, dword [eax + 8]
push 0x91e470
push ecx
call fcn.00894378
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x875f45
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00895e06
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x875f74
mov eax, dword [esi + 8]
test eax, eax
je 0x875f6e
push eax
call fcn.00894869
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x87a1a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x923490
push 0x8987b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, dword gs:[0x60]
mov dword [ebp - 0x24], ecx
mov ecx, dword gs:[0x64]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x87a28e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x30]
jne 0x87a28e
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
jne 0x87a28e
mov ecx, dword [ebp - 0x30]
add ecx, 0x20
mov edx, dword [ebp - 0x2c]
adc edx, 0
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x34]
je 0x87a28e
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
jne 0x87a28e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x40], 0
je 0x87a28c
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x44], 0
jne 0x87a28c
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0087f510
add esp, 8
movzx edx, al
test edx, edx
je 0x87a28c
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x24], 0
jne 0x87a28a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x1c], edx
jmp 0x87a28e
jmp 0x87a231
mov dword [ebp - 4], 0xffffffff
jmp 0x87a2a7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x87a3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x87a434
push 2
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00879440
add esp, 0x10
test eax, eax
je 0x87a434
movzx eax, word [ebp - 4]
cmp eax, 0x5a4d
jne 0x87a434
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x3c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00879440
add esp, 0x10
test eax, eax
je 0x87a434
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00879440
add esp, 0x10
test eax, eax
je 0x87a434
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
jne 0x87a434
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 0x16]
and eax, 0x2000
jne 0x87a434
mov dword [ebp - 0x10], 1
jmp 0x87a43b
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 9], cl
movzx edx, byte [ebp - 9]
test edx, edx
je 0x87a454
mov eax, dword [ebp + 0x10]
add eax, 0x78
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x87a460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9234a0
push 0x8987b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0087a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x87a620
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x87a4ef
mov dword [ebp - 0x24], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00898945
add esp, 8
mov eax, dword [ebp - 0x24]
jmp 0x87a624
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0087a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x87a607
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x935d78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x87a54b
mov dword [ebp - 0x28], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00898945
add esp, 8
mov eax, dword [ebp - 0x28]
jmp 0x87a624
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0087a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x87a607
mov ecx, dword [ebp - 0x20]
push ecx
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x87a5a0
mov dword [ebp - 0x2c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00898945
add esp, 8
mov eax, dword [ebp - 0x2c]
jmp 0x87a624
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0087a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x87a607
push 0x8000
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x87a5ee
mov dword [ebp - 0x30], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00898945
add esp, 8
mov eax, dword [ebp - 0x30]
jmp 0x87a624
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0087a640
add esp, 0x10
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xffffffff
call fcn.0087a615
jmp 0x87a620
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x87a640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov byte [ebp - 0x211], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x87a66a
cmp dword [ebp + 0x10], 0
je 0x87a66a
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0087a6f0
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0087a750
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.008984db
add esp, 4
cmp eax, 6
jbe 0x87a6e1
movzx eax, word [ebp - 0x20e]
cmp eax, 0x3a
je 0x87a6b9
movzx ecx, word [ebp - 0x210]
cmp ecx, 0x5c
jne 0x87a6e1
movzx edx, word [ebp - 0x20e]
cmp edx, 0x5c
jne 0x87a6e1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x87a6e1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00883e90
mov byte [ebp - 0x211], 1
mov al, byte [ebp - 0x211]
mov esp, ebp
pop ebp
ret