joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484370
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5a9b89
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], ebp
call fcn.004297c0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
push ebp
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4843d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x3c]
push esi
call fcn.00484060
add esp, 4
mov eax, dword [esi]
push ebp
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x20], 1
call edi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.004a581f
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x48441d
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._4d_02d_02d
push ecx
mov dword [esp + 0x48], 1
call fcn.0040cbe0
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 0x14
push eax
push ebp
mov ecx, esi
call fcn.0040c9c0
mov eax, dword [esi]
push 0
push eax
call edi
push 1
push 0x5bda1c
mov ecx, esi
call fcn.0040c9c0
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x484498
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
movzx ecx, word [esp + 0x28]
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._02d_02d_02d.log
push ecx
mov byte [esp + 0x48], 2
call fcn.0040cbe0
mov edi, dword [esp + 0x28]
mov eax, dword [edi - 0xc]
add esp, 0x14
push eax
push edi
mov ecx, esi
call fcn.0040c9c0
lea eax, [edi - 0x10]
mov byte [esp + 0x34], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x484502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484524
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x489420
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa210
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0x84000000
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push 0x400
mov edi, eax
call fcn.004a3d20
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x400
mov esi, eax
push esi
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
test esi, esi
je 0x4894bf
push esi
call fcn.004a3d2b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x489920
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x490
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x48c], eax
push esi
mov esi, dword [esp + 0x498]
push edi
mov edi, dword [esp + 0x4a8]
xor eax, eax
push 0x436
push eax
lea ecx, [esp + 0x66]
push ecx
mov word [esp + 0x68], ax
call fcn.004e5fc0
add esp, 0xc
test esi, esi
je 0x489a74
cmp word [esi], 0
je 0x489a74
push esi
push 0x5c7588
lea edx, [esp + 0x64]
push 0x438
push edx
call fcn.0041c900
mov esi, dword [esp + 0x4b0]
add esp, 0x10
test esi, esi
je 0x4899bd
cmp word [esi], 0
je 0x4899bd
push 0x5bfc4c
push 0x438
lea eax, [esp + 0x64]
push eax
call fcn.0041c780
push esi
push 0x438
lea ecx, [esp + 0x64]
push ecx
call fcn.0041c780
push 0x40
lea edx, [esp + 0x20]
push 0
push edx
call fcn.004e5fc0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
xor eax, eax
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0
mov eax, 5
mov word [esp + 0x64], ax
push 0
lea eax, [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x489a74
cmp dword [esp + 0x4a4], 0
je 0x489a34
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x489a44
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x490
ret
mov ecx, dword [esp + 0x494]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004e5fb0
add esp, 0x490
ret
Function at 0x489a90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x489ac0
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, 0xb
cmp dword [esp + 0x3c], esi
je 0x489ae3
mov eax, 0x10b
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x489c52
push edi
push esi
push esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp dword [esp + 0x10], esi
jbe 0x489c01
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 0xa
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3d20
add esp, 4
mov ebp, eax
mov dword [esp + 0x20], esi
cmp dword [esp + 0x10], esi
jbe 0x489bf2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push ebp
push 0
inc eax
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x489bdf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
lea edi, [eax + ecx + 2]
xor ecx, ecx
lea eax, [edi + 0xa]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3d20
mov esi, eax
mov eax, dword [esp + 0x40]
push ebp
push eax
push 0x5c6690
push edi
push esi
call fcn.0041c890
mov ecx, dword [esp + 0x58]
push ecx
push esi
push ebx
call fcn.00489a90
push esi
mov edi, eax
call fcn.004a3d15
add esp, 0x28
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x10]
jb 0x489b65
push ebp
call fcn.004a3d15
mov ebp, dword [esp + 0x40]
add esp, 4
xor esi, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x40], esi
je 0x489c3f
push str.RegDeleteKeyExW
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x489c4f
push esi
push 0x100
push ebp
push ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x48a0b0
Capabilities:
Write file on windows

Disassembly:
call fcn.0048a060
test eax, eax
je 0x48a0d7
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc
xor eax, eax
ret 0xc
Function at 0x48a1f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0048a060
test eax, eax
je 0x48a2f2
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp ebp, ebx
je 0x48a2f2
mov eax, dword [esi + 0x1008]
push edi
mov edi, dword [esp + 0x18]
cmp edi, eax
ja 0x48a257
push edi
lea ebx, [esi + 8]
push ebx
push ebp
call fcn.004e7bd0
mov eax, dword [esp + 0x28]
mov dword [eax], edi
sub dword [esi + 0x1008], edi
mov eax, dword [esi + 0x1008]
push eax
lea ecx, [edi + esi + 8]
push ecx
push ebx
call fcn.004ea8b0
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov edx, dword [esi + 0x100c]
cmp edx, dword [esi + 0x1010]
jb 0x48a295
cmp eax, ebx
jbe 0x48a277
push eax
lea eax, [esi + 8]
push eax
push ebp
call fcn.004e7bd0
add esp, 0xc
mov ecx, dword [esi + 0x1008]
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], ecx
mov dword [esi + 0x1008], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 4]
mov edx, 0x1000
sub edx, eax
push edx
lea eax, [eax + esi + 8]
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a2e3
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x48a2e3
mov edx, dword [esp + 0x1c]
add dword [esi + 0x1008], eax
add dword [esi + 0x100c], eax
push edx
push edi
push ebp
mov ecx, esi
call fcn.0048a1f0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x48a300
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
call fcn.0048a060
test eax, eax
jne 0x48a33e
mov eax, dword [esi]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x48a345
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x1010], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x48d100
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5aa523
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebp, ebp
push 0x14
mov dword [esp + 0x14], ebp
call fcn.004a3ce6
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
cmp eax, ebp
je 0x48d14d
mov esi, eax
call fcn.0048bd20
mov esi, eax
jmp 0x48d14f
xor esi, esi
mov dword [esp + 0x20], 0xffffffff
cmp esi, ebp
je 0x48d1f4
mov ebx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 1
lea ecx, [esi + 0xc]
test edi, edi
jne 0x48d178
xor eax, eax
jmp 0x48d193
mov eax, edi
lea ebp, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x48d180
sub eax, ebp
mov ebp, dword [esp + 0x10]
sar eax, 1
push eax
push edi
call fcn.0040c660
mov eax, dword [esp + 0x28]
push esi
push 0
push 0x48b280
mov dword [esi + 0x10], eax
call fcn.004eaf31
add esp, 0xc
cmp eax, 0xffffffff
je 0x48d1de
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x48d1d1
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
mov ebp, edx
jmp 0x48d1de
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 8], 1
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x48d1f4
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x48db70
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
call fcn.0048c000
mov ebp, eax
test ebp, ebp
jne 0x48dba6
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x210
ret
cmp dword [ebp + 0x20], 0
je 0x48dbc7
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x210
ret
push ebx
push edi
push 0x208
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004e5fc0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5cba6c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
jne 0x48dcee
lea edx, [esp + 0xc]
push esi
push edx
call fcn.0048dae0
mov edx, dword [eax]
add esp, 4
mov esi, 0x104
lea eax, [esp + 0x14]
jmp 0x48dc40
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x48dc62
movzx ecx, word [edx]
test cx, cx
je 0x48dc62
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x48dc40
jmp 0x48dc66
test esi, esi
jne 0x48dc69
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dc8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
jne 0x48dced
lea edx, [esp + 0x10]
push str.360NetBase.dll
push edx
call fcn.00426c60
mov edx, dword [eax]
add esp, 8
mov esi, 0x104
lea eax, [esp + 0x14]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x48dcd8
movzx ecx, word [edx]
test cx, cx
je 0x48dcd8
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x48dcb6
jmp 0x48dcdc
test esi, esi
jne 0x48dcdf
sub eax, 2
xor edx, edx
lea ecx, [esp + 0x10]
mov word [eax], dx
call fcn.0040c150
pop esi
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.0048b7e0
test eax, eax
je 0x48dd08
cmp dword [ebp + 0x20], ebx
je 0x48dd08
mov ebx, 1
mov ecx, dword [esp + 0x218]
pop edi
mov eax, ebx
pop ebx
pop ebp
xor ecx, esp
call fcn.004e5fb0
add esp, 0x210
ret
Function at 0x494b20
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
cmp eax, 0xffffffff
je 0x494b53
cmp dword [esi + 4], 0
je 0x494b46
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [esi + 0x10]
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x494b7f
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x494b7f
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xc]
push edx
call edi
mov eax, dword [esi + 0x248]
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x494b92
push eax
call edi
cmp dword [esi + 0x248], 0
je 0x494bc8
mov eax, dword [esi + 0x24c]
push eax
call edi
cmp dword [esi + 0x248], 0
je 0x494bc8
mov ecx, dword [esi + 0x250]
push ecx
call edi
cmp dword [esi + 0x248], 0
je 0x494bc8
mov edx, dword [esi + 0x254]
push edx
call edi
add esi, 0x230
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret
Function at 0x495b90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x495bbd
cmp dword [esi + 0xc], 0
jne 0x495bbd
push 0
push 0
push esi
push 0x495b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
ret 8
push ebp
test eax, eax
je 0x495c4c
cmp dword [esp + 0xc], 0
je 0x495c4c
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x495c4c
push ebx
lea ebx, [esi + 0x230]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x22c], 0
jne 0x495bfb
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop ebp
xor eax, eax
pop esi
ret 8
add esi, 0x214
push edi
mov ecx, esi
call fcn.00495350
mov edi, dword [eax]
mov ecx, esi
call fcn.004956b0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
mov esi, ebp
cmp ebp, eax
jb 0x495c24
mov esi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
call fcn.004e7bd0
mov edx, dword [edi]
push edx
call fcn.004a3d2b
push edi
call fcn.004a3d15
add esp, 0x14
pop edi
pop ebx
pop ebp
mov eax, esi
pop esi
ret 8
pop ebp
xor eax, eax
pop esi
ret 8

Function at 0x495c60
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x495d1a
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x495d1a
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x495d1a
cmp dword [edi + 0xc], 0
jne 0x495ca4
push 0
push 0
push edi
push 0x495b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
push esi
push 0xc
mov byte [edi + 0x27c], 0
call fcn.004a3ce6
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x495d11
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], ebx
push ebx
mov dword [esi + 8], eax
call fcn.004a3d20
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x495d11
push ebx
push ebp
push eax
call fcn.004e7bd0
add esp, 0xc
lea esi, [edi + 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x214]
call fcn.004957f0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x495d30
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
cmp eax, 0xffffffff
je 0x495d63
cmp dword [esi + 4], 0
je 0x495d56
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [esi + 0x10]
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x495d8f
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x495d8f
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xc]
push edx
call edi
mov eax, dword [esi + 0x248]
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x495da2
push eax
call edi
cmp dword [esi + 0x248], 0
je 0x495dd8
mov eax, dword [esi + 0x24c]
push eax
call edi
cmp dword [esi + 0x248], 0
je 0x495dd8
mov ecx, dword [esi + 0x250]
push ecx
call edi
cmp dword [esi + 0x248], 0
je 0x495dd8
mov edx, dword [esi + 0x254]
push edx
call edi
add esi, 0x230
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret

Function at 0x495e00
Capabilities:
Connect pipe
Create pipe

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffff
je 0x495e10
mov eax, 1
pop esi
ret
cmp dword [esi + 4], 0
push edi
je 0x495e5b
lea eax, [esi + 0x270]
push eax
push 0x1388
push 0x800
push 0x800
push 0xff
push 6
push 3
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x495e89
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [esi + 0x10], edi
pop edi
mov eax, 1
pop esi
ret
push 1
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x495e89
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x495e8e
pop edi
xor eax, eax
pop esi
ret
mov dword [esi + 0x10], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x4962c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x4963d8
push ebx
push edi
mov ecx, esi
call fcn.00495e00
test eax, eax
je 0x4963c5
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call ebx
test eax, eax
je 0x4963be
cmp dword [esp + 0x10], ebp
je 0x4963be
push 0xc
call fcn.004a3ce6
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x20], edi
call fcn.004a3d20
add esp, 8
mov dword [edi], eax
cmp eax, ebp
je 0x4963cd
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push ecx
push eax
push edx
call ebx
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x4963ab
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x228]
mov edx, dword [ebx + 4]
lea edi, [esi + 0x214]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.004950e0
push 1
mov ecx, edi
mov ebp, eax
call fcn.004956d0
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
jmp 0x4963cd
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
jmp 0x4963cd
mov dword [esi + 0x10], 0xffffffff
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 8], ebp
jne 0x4962d4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret