joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e86b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [ebx + 0x14], 8
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x4e86dc
mov eax, dword [ebx]
jmp 0x4e86de
mov eax, ebx
lea edx, [ebp - 8]
push edx
push 0x2001f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e8715
cmp byte [ebp + 0x18], 0
je 0x4e8743
cmp dword [ebx + 0x14], 8
jb 0x4e8703
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4e8743
mov eax, dword [esi + 0x10]
add eax, eax
cmp dword [esi + 0x14], 8
jb 0x4e8722
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4e872a
mov edi, dword [edi]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4ec560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598d28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4ec6b4
cmp byte [ebx + 0x45], 0
je 0x4ec6b4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4ec5c0
xor al, al
jmp 0x4ec6b6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4ec600
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4ec641
dec eax
je 0x4ec645
sub eax, 2
je 0x4ec69b
xor bl, bl
jmp 0x4ec69d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4ec67c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00560f5a
add esp, 0x10
cmp esi, eax
jne 0x4ec63d
cmp byte [ebx + 0x45], 0
je 0x4ec69b
test esi, esi
jne 0x4ec600
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004eaf00
jmp 0x4ec600
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4ec6b0
push dword [esp + 0x18]
call fcn.0055b689
add esp, 4
mov al, bl
jmp 0x4ec6b6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4ee740
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598efb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x18], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x224], 0
jb 0x4ee78c
mov eax, dword [eax]
lea edx, [ebp - 0x224]
push edx
push dword [ecx + 0x1c]
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ee8b9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0055e3d0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
call ebx
mov edi, eax
xor eax, eax
test edi, edi
jne 0x4ee8a2
inc esi
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], edi
mov word [ebp - 0x240], ax
cmp word [ebp - 0x21c], ax
je 0x4ee83f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ee830
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.004e9ac0
mov dword [ebp - 4], 0
movzx eax, byte [0x61edad]
push eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x248]
push eax
call fcn.004ef3e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x22c], 8
jb 0x4ee7b1
push dword [ebp - 0x240]
call fcn.0055b689
add esp, 4
jmp 0x4ee7b1
push dword [ebp - 0x224]
cmp edi, 0x103
cmove edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2120
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0055e710
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffc
lea eax, [ebp - 0x1800]
mov dword [ebp - 0x1804], 0
push 0
push eax
call fcn.0055e3d0
xor eax, eax
mov dword [ebp - 0x1808], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0055e3d0
add esp, 0x18
push ebx
push esi
push edi
nop
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1808]
push eax
push 0x1000
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4f2180
mov eax, dword [ebp - 0x1808]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x180c], eax
test eax, eax
je 0x4f2180
lea ecx, [ecx]
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0055e3d0
add esp, 0xc
xor ebx, ebx
push dword [ebp + esi*4 - 0x1804]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4f224f
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
mov eax, 1
push edi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4f224f
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f2222
sub eax, edx
sar eax, 1
cmp eax, 0x15
jl 0x4f224f
lea eax, [ebp + eax*2 - 0x82e]
push str.Windowsexplorer.exe
push eax
call fcn.0055f25d
add esp, 8
test eax, eax
je 0x4f2261
inc esi
cmp esi, dword [ebp - 0x180c]
jb 0x4f21c0
jmp 0x4f2180
mov eax, dword [ebp + esi*4 - 0x1804]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4f22c0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0x7c], edx
xor edi, edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0xc], 0
call fcn.004f2120
mov esi, eax
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x68], edi
push eax
push esi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4f233d
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4f233d
lea eax, [ebp - 0x6c]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
call ebx
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4f241f
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 0x74]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4f238d
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x68]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x68]
jmp 0x4f2393
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
push 1
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [ebp - 0x78]
test eax, eax
push 0x44
lea eax, [ebp - 0x64]
mov ecx, 0x400
push 0
push eax
cmovne esi, ecx
call fcn.0055e3d0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x44
mov ecx, 5
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], cx
push eax
movdqu xmmword [eax], xmm0
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0x70]
push esi
push 0
push 0
push 0
push dword [ebp - 0x78]
push 0
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x68]
cmovne edi, ecx
test eax, eax
je 0x4f2415
push eax
call ebx
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4f241f
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4f27b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x599398
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor eax, eax
push eax
movdqa xmmword [esp + 0x38], xmm0
movdqa xmmword [esp + 0x48], xmm0
push 0x5f6f5c
mov dword [esp + 0x38], 0
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004e9ac0
mov dword [esp + 0x50], 0x208
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [edi + 4]
mov dword [esp + 0x80], 0
cmp dword [eax + 0x14], 8
jb 0x4f286b
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push dword [edi + 0x1c]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4f2913
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x4f2894
mov edi, dword [edi]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004f2510
add esp, 4
push eax
lea eax, [esp + 0x74]
push eax
push 0
push edi
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4f2913
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.004f25b0
mov edi, eax
cmp esi, edi
je 0x4f28fe
cmp dword [esi + 0x14], 8
jb 0x4f28e3
push dword [esi]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004ebad0
cmp dword [esp + 0x2c], 8
jb 0x4f2911
push dword [esp + 0x18]
call fcn.0055b689
add esp, 4
xor edi, edi
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4f294b
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4f294b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f294b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x4c], 8
jb 0x4f295e
push dword [esp + 0x38]
call fcn.0055b689
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f42b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
mov edi, ecx
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0055e3d0
add esp, 0xc
mov dword [ebp - 0x808], 0
lea eax, [ebp - 0x808]
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x3100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [ebp - 0x808]
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x4f4320
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f4320
sub ecx, ebx
xor eax, eax
sar ecx, 1
mov word [edx + ecx*2 - 4], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push str._s__0x_x_
push eax
call fcn.00562d46
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x4f4375
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [ebp - 0x804], 0
jne 0x4f4383
xor eax, eax
jmp 0x4f439f
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f4390
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.004e9ac0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4f46e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59955e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
jne 0x4f471a
xor eax, eax
jmp 0x4f48ba
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4f48b8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4f48b8
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.004f42b0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.004e98c0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004ee440
push str.__failed_Error:
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
call fcn.004ee340
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ee980
mov edi, eax
add esp, 0x1c
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4f47e4
cmp dword [ebp - 0x14], 8
jb 0x4f47c7
push dword [ebp - 0x28]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004ebad0
cmp dword [ebp - 0x44], 8
jb 0x4f47f5
push dword [ebp - 0x58]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x4f481d
push dword [ebp - 0x88]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x4f4845
push dword [ebp - 0x70]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x4f4870
push dword [ebp - 0xa0]
call fcn.0055b689
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], 8
jb 0x4f4893
push dword [ebp - 0x28]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4f48b8
push dword [ebp - 0x40]
call fcn.0055b689
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4f6930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59979f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5f7c54
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e1200
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e11e0
push eax
mov dword [ebp - 4], 2
call fcn.004ee140
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f69fa
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f69fa
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f6a1f
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e1100
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004ecb00
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x61ece8]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5997ef
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5f887c
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e1200
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 4]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e11e0
push eax
mov dword [ebp - 4], 2
call fcn.004ee140
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f6b9c
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f6b9c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f6bc1
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e1100
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004ecb00
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x61ece8]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50dcf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b568
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CTcpServer.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x2710
call fcn.005153e0
mov dword [esi + 0x10], eax
mov eax, dword [0x61ef54]
mov dword [esi + 0x14], bind
mov dword [esi + 0x18], 0x12c
test al, 1
jne 0x50dd78
or eax, 1
mov dword [0x61ef54], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x30]
mov dword [0x61ef58], eax
jmp 0x50dd7d
mov eax, dword [0x61ef58]
mov dword [esi + 0x1c], eax
xor eax, eax
mov word [esi + 0x4c], ax
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0x7530
mov dword [esi + 0x24], 0x258
mov dword [esi + 0x28], 0x4b0
mov dword [esi + 0x2c], 0x258
mov dword [esi + 0x30], 0x4b0
mov dword [esi + 0x34], 0xea60
mov dword [esi + 0x38], 0x4e20
mov dword [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 3
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
push 0
push 0
push 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x70], eax
sub esp, 0xc
lea ecx, [esi + 0x80]
call fcn.0050e610
push ecx
mov byte [ebp - 4], 3
lea ecx, [esi + 0x164]
mov dword [esi + 0x160], 0
call fcn.0050e780
mov dword [esi + 0x2a4], 0
mov eax, dword [esi + 0x2a4]
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x2e4], 0
mov dword [esi + 0x324], 0
test eax, eax
je 0x50deb9
push eax
call fcn.0055e4e2
mov dword [esi + 0x2a4], 0
add esp, 4
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x2e4], 0
mov dword [esi + 0x324], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x364], 0
mov dword [esi + 0x368], 0
push 8
mov dword [esi + 0x374], 0
call fcn.0055b6b0
add esp, 4
test eax, eax
je 0x50def8
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x50defa
xor eax, eax
mov dword [esi + 0x370], eax
mov dword [esi + 0x36c], eax
mov eax, esi
mov dword [esi + 0x378], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4