joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405340
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [0x457360]
push edi
push str.RT_RCDATA
push eax
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40538a
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00429296
add esp, 0xc
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x4053a7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4053bb
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00429296
add esp, 0xc
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40542b
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405409
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00429296
add esp, 0xc
ret
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405440
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00429296
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00429296
add esp, 0xc
ret

Function at 0x405660
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4056ce
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40569f
cmp eax, 2
jne 0x4056ba
test esi, esi
mov eax, dword [esp]
je 0x4056c8
test eax, eax
je 0x4056c3
test al, 1
jne 0x4056ba
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4056c8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x407e20
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x446238
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
xor edi, edi
xor ebx, ebx
call ebp
test eax, eax
jne 0x407e79
mov eax, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x407f66
lea edi, [ebx + 6]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x407f66
mov edx, dword [esp + 0x24]
push 5
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x407f66
call fcn.004274e4
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x407eb8
call ebx
push eax
push str.Update_replace_file_failed__err_u
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlUpdateUpdateMgr.cpp
call fcn.00427373
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00402670
push 4
push str..bak
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], 0
call fcn.004093b0
mov edx, dword [esp + 0x10]
push edx
call ebp
test eax, eax
je 0x407ef3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ecx
push esi
call edi
test eax, eax
je 0x407f35
mov edx, dword [esp + 0x24]
push esi
push edx
call edi
test eax, eax
je 0x407f26
mov eax, dword [esp + 0x10]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
xor ebx, ebx
jmp 0x407f3e
mov ecx, dword [esp + 0x10]
push esi
push ecx
call edi
mov edi, 6
jmp 0x407f3a
mov edi, 5
call ebx
mov ebx, eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407f66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov eax, edi
mov dword [ecx], ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x408040
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1214
call fcn.0043e550
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x120c], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0xf9c
lea eax, [esp + 0x28]
mov edi, ecx
push ebp
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
call fcn.0042b000
add esp, 0xc
push 0x208
lea ecx, [esp + 0x100e]
push ebp
push ecx
mov dword [esp + 0x1c], ebp
mov word [esp + 0x1014], bp
call fcn.0042b000
add esp, 0xc
push 0x40
lea edx, [esp + 0xfc6]
push ebp
push edx
mov dword [esp + 0x20], ebp
mov word [esp + 0xfcc], bp
call fcn.0042b000
add esp, 0xc
xor esi, esi
cmp edi, ebp
je 0x4081e7
cmp word [edi], bp
je 0x4081e7
lea eax, [esp + 0x10]
push eax
push 0xfa0
lea ecx, [esp + 0x28]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4081e7
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4081e7
shr eax, 2
mov dword [esp + 0x18], eax
mov ebx, ebp
je 0x4081d5
mov edx, dword [esp + ebx*4 + 0x20]
push edx
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebp
je 0x4081c8
push 0x20a
lea eax, [esp + 0x100c]
push ebp
push eax
mov dword [esp + 0x20], ebp
call fcn.0042b000
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4081c1
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x100c]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4081c1
lea edx, [esp + 0x1008]
push edx
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [esp + 0x1008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408185
sub eax, edx
sar eax, 1
push eax
lea esi, [esp + 0xfc4]
lea ecx, [esp + 0x100c]
call fcn.00416943
add esp, 4
test al, al
je 0x4081c1
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4081d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 1
cmp ebx, dword [esp + 0x18]
jb 0x408106
xor eax, eax
jmp 0x4081e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4081e9
mov eax, esi
mov ecx, dword [esp + 0x121c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429296
add esp, 0x1214
ret

Function at 0x408210
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0042b000
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408276
cmp dword [esp + 4], 6
jne 0x408276
cmp dword [esp + 8], 2
jb 0x408276
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00429296
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00429296
add esp, 0x118
ret
Function at 0x409cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x446ea3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esi + 0x14]
mov word [esi + 8], 0x167b
mov dword [esi + 0xc], 0x1bb
mov dword [esi + 0x10], 0x1f40
xor ebx, ebx
push 0x19
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.master.etl.desktop.qq.com
mov dword [esp + 0x14], esi
mov byte [ecx + 4], bl
call fcn.004041d0
push 0xffffffffffffffff
mov dword [esp + 0x3c], ebx
lea eax, [esi + 0x14]
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403b80
mov byte [esp + 0x38], 1
movzx edi, word [esi + 0xc]
call fcn.0041353d
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi], eax
mov eax, ecx
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x409d92
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x409d86
lea eax, [esp + 0x14]
push 1
push edi
push eax
call dword [0x457370]
mov dword [esi], eax
cmp dword [esp + 0x28], 0x10
jb 0x409da6
mov edx, dword [esp + 0x14]
push edx
call fcn.00428f1c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00429296
add esp, 0x30
ret

Function at 0x40a050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4478c5
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0xc0], 1
call fcn.0040a500
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
and dword [esp + eax + 0x34], 0xfffffffe
lea eax, [esp + eax + 0x24]
mov byte [esp + 0xbc], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], 0
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x10], 1
call fcn.0040aa10
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add esp, 8
test byte [edx + eax + 8], 6
jne 0x40a156
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0040a490
test al, al
je 0x40a156
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 1
call fcn.004086e0
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0042887c
add esp, 4
cmp dword [esp + 0xdc], 8
jb 0x40a13e
mov edx, dword [esp + 0xc8]
push edx
call fcn.00428f1c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xbc
ret
push str.bad_cast
lea ecx, [esp + 0x14]
call fcn.004290c4
mov eax, 0x455b80
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0x44f52c
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], vtable.QMDDetector::fund::bad_lexical_cast.0
call fcn.0042dbca
int3
Function at 0x40a850
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4458db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00428772
push 4
mov dword [esp + 0x20], 0
call fcn.00429528
mov edi, eax
add esp, 4
test edi, edi
je 0x40a8d0
call fcn.004285d2
mov dword [edi], eax
call fcn.00428406
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00428912
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a8c5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00428933
jmp 0x40a8d2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40c080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446d58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.004062a0
lea ecx, [esp + 0x14]
push ecx
push ecx
push eax
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp + 0xc]
push eax
lea edx, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x94], 0
call fcn.0040cda0
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00428d0d
fstp qword [esp + 0x3c]
mov dword [esp + 0x90], 0xffffffff
mov edi, dword [esp + 0x34]
add esp, 0x10
test edi, edi
je 0x40c172
push 0
lea ecx, [esp + 0x2c]
call fcn.00428912
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40c150
cmp eax, 0xffffffff
jae 0x40c150
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x28]
and esi, edi
call fcn.00428933
test esi, esi
je 0x40c172
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
jne 0x40c1b7
test edi, edi
je 0x40c1b1
mov eax, dword [edi + 0x20]
cmp dword [eax], 0
je 0x40c196
mov ecx, dword [edi + 0x30]
cmp dword [ecx], 0
jle 0x40c196
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40c1a2
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40c1b1
mov word [ebp + 0x16], ax
jmp 0x40c1b3
xor edi, edi
mov byte [ebp + 0x14], 1
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp + 0x1c]
jne 0x40c1ef
test esi, esi
je 0x40c1ed
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x40c1db
mov ecx, dword [esi + 0x30]
cmp dword [ecx], 0
jle 0x40c1db
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40c1e7
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
movzx eax, ax
cmp ax, 0xffff
jne 0x40c1ef
xor esi, esi
test edi, edi
jne 0x40c218
test esi, esi
je 0x40c21c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
cmp dword [esp + 0x18], ecx
je 0x40c225
cmp dword [esp + 0x14], 0
jne 0x40c225
fld qword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
fstp qword [edx]
jmp 0x40c228
test esi, esi
je 0x40c1f7
mov eax, dword [esp + 0x10]
or dword [eax], 1
jmp 0x40c1fb
or dword [eax], 2
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
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.00429296
mov esp, ebp
pop ebp
ret 0x28
Function at 0x40c260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446d58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.004062a0
lea ecx, [esp + 0x14]
push ecx
push ecx
push eax
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp + 0xc]
push eax
lea edx, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x94], 0
call fcn.0040cda0
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00428d74
fstp qword [esp + 0x3c]
mov dword [esp + 0x90], 0xffffffff
mov edi, dword [esp + 0x34]
add esp, 0x10
test edi, edi
je 0x40c352
push 0
lea ecx, [esp + 0x2c]
call fcn.00428912
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40c330
cmp eax, 0xffffffff
jae 0x40c330
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x28]
and esi, edi
call fcn.00428933
test esi, esi
je 0x40c352
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
jne 0x40c397
test edi, edi
je 0x40c391
mov eax, dword [edi + 0x20]
cmp dword [eax], 0
je 0x40c376
mov ecx, dword [edi + 0x30]
cmp dword [ecx], 0
jle 0x40c376
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40c382
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40c391
mov word [ebp + 0x16], ax
jmp 0x40c393
xor edi, edi
mov byte [ebp + 0x14], 1
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp + 0x1c]
jne 0x40c3cf
test esi, esi
je 0x40c3cd
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x40c3bb
mov ecx, dword [esi + 0x30]
cmp dword [ecx], 0
jle 0x40c3bb
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40c3c7
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
movzx eax, ax
cmp ax, 0xffff
jne 0x40c3cf
xor esi, esi
test edi, edi
jne 0x40c3f8
test esi, esi
je 0x40c3fc
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
cmp dword [esp + 0x18], ecx
je 0x40c405
cmp dword [esp + 0x14], 0
jne 0x40c405
fld qword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
fstp qword [edx]
jmp 0x40c408
test esi, esi
je 0x40c3d7
mov eax, dword [esp + 0x10]
or dword [eax], 1
jmp 0x40c3db
or dword [eax], 2
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
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.00429296
mov esp, ebp
pop ebp
ret 0x28
Function at 0x40f910
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x446238
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [0x4564f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4564f4
mov dword [esp + 0xc], 0x10
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edi
mov eax, dword [esi - 8]
mov ecx, dword [esp + 0xc]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x40f983
lea eax, [esp + 0x10]
call fcn.00402490
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push ecx
push edi
push esi
call fcn.0042b000
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
mov eax, 0xf
jne 0x40f9fc
cmp dword [esi - 8], eax
jl 0x40f9f2
mov dword [esi - 0xc], eax
push ebx
mov ecx, 0x44b2f8
mov word [esi + 0x1e], di
call fcn.0040fde0
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.00402470
cmp dword [esi - 8], eax
jl 0x40f9f2
mov dword [esi - 0xc], eax
mov word [esi + 0x1e], di
add esi, 0xfffffff0
mov eax, esi
call fcn.00402050
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa38
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40fa50
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x446208
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push eax
push esi
mov dword [esp + 0x18], esi
call ebp
test eax, eax
je 0x40fab2
push ebx
mov ecx, 0x44b2f8
call fcn.0040fde0
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, 0x100
cmp dword [esp + 0x10], eax
jae 0x40fac1
mov dword [esp + 0x10], eax
mov edx, dword [0x4564f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4564f4
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x10]
mov eax, dword [edi - 8]
add ecx, 1
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x40fb01
lea eax, [esp + 0x14]
call fcn.00402490
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
push edx
push esi
push edi
call fcn.0042b000
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
call ebp
test eax, eax
lea esi, [esp + 0x14]
mov eax, 0x100
jne 0x40fb72
call fcn.00408f80
push ebx
mov ecx, 0x44b2f8
call fcn.0040fde0
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
call fcn.00408f80
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00402050
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret