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

Disassembly:
sub esp, 0x28
mov eax, dword [0x44b160]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x404383
mov dword [esp + 0x10], 0xffffffff
jmp 0x404389
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x404478
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4043db
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.00407490
add esp, 0xc
jmp 0x4044ae
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x404405
push 0x4437b4
push 0xfe
lea edx, [eax - 7]
push str..QHImageHlp.c
call fcn.004075c0
add esp, 0xc
jmp 0x4044ae
cmp dword [esp + 0x40], ebx
je 0x40444b
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x404431
push 0x443868
push 0x321
mov edx, 5
push str..QHImageHlp.c
call fcn.004075c0
add esp, 0xc
jmp 0x4044ae
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x4044a6
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x404463
push 0x443868
mov ebx, esi
push 0x32d
jmp 0x40441d
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x404493
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.00407490
add esp, 0xc
jmp 0x4044ae
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004039d0
test eax, eax
je 0x4044ae
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4044b8
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425cbc
add esp, 0x28
ret
Function at 0x404f30
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x404f7d
push str.GetFileSizeEx__
push 0x11e
push str..QHImageHlp.c
call fcn.00407490
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x405014
jg 0x404fa3
cmp ebx, ecx
jb 0x405014
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x404fd9
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.00407490
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.004039d0
test eax, eax
je 0x404fcf
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404ffa
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405021
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x405021
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4058e0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x44b160]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x405a20
cmp dword [esp + 0x28], ebp
je 0x405a20
push ebx
push 0x2800
call fcn.00425d99
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x405943
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00425cbc
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x405950
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.00403860
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059f6
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00425cd0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4059e9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x4059e9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.00405680
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x405a00
inc edi
cmp edi, 0x10
jl 0x405950
push ebx
call fcn.00425e63
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00425cbc
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00425cbc
add esp, 0x1c
ret
Function at 0x405ad0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x405b0a
cmp dword [esp + 0x34], esi
je 0x405b0a
push 0x200
call fcn.00425d99
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x405b15
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c74
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x405c0a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405b6d
mov eax, 0x80000002
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405be3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405bd8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.00405a40
cmp edx, edi
jb 0x405bd8
ja 0x405bd2
cmp eax, dword [esp + 0x24]
jbe 0x405bd8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x405b60
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x405c20
cmp dword [esp + 0x24], 0
jbe 0x405c74
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.00403860
add esp, 0xc
test eax, eax
jne 0x405c59
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00425e63
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.00405680
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.00425e63
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40f181
Capabilities:
Listen for remote procedure calls

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x40f25f
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x40f25f
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push str.D:_A__GR___WD__A__GR___AC_
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x14
call fcn.004257d6
test eax, eax
je 0x40f205
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f21b
push eax
push esi
push 0x28
push str.ncalrpc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
jne 0x40f205
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40f191
push 1
push str.rpcrt4.dll
call fcn.00401060
test eax, eax
je 0x40f205
push str.RpcServerRegisterIf3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f205
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push 0x4d2
push 0x28
push 0
push 0
push edi
call eax
test eax, eax
jne 0x40f205
lea esi, [ebp + 8]
push esi
mov dword [ebp + 4], edi
lea ebx, [eax + 2]
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
test eax, eax
jne 0x40f205
push eax
push eax
lea ebx, [eax + 6]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
test eax, eax
jne 0x40f205
push 1
push 0x28
push 1
lea ebx, [eax + 0xe]
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x40f1fd
cmp eax, 0x6b1
jne 0x40f205
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f214
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
jne 0x40f253
test bl, 8
je 0x40f22d
mov ecx, dword [ebp + 8]
push 0
push ecx
push edi
call dword [sym.imp.RPCRT4.dll_RpcEpUnregister]
cmp dword [ebp + 8], 0
lea esi, [ebp + 8]
je 0x40f243
push esi
call dword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
mov dword [esi], 0
test bl, 2
je 0x40f253
push 0
push 0
push edi
call dword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x40f270
Capabilities:
Listen for remote procedure calls

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0xc], ebx
cmp edi, ebx
je 0x40f356
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40f356
push esi
push ebx
push eax
push 0x28
push str.ncalrpc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
jne 0x40f312
push ebx
push 0x4d2
push 0x28
push ebx
push ebx
push edi
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
test eax, eax
jne 0x40f312
lea esi, [ebp + 8]
push esi
mov dword [ebp + 4], edi
lea ebx, [eax + 2]
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
test eax, eax
jne 0x40f312
push eax
push eax
lea ebx, [eax + 6]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
test eax, eax
jne 0x40f312
push 1
push 0x28
push 1
lea ebx, [eax + 0xe]
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x40f2fe
cmp eax, 0x6b1
jne 0x40f312
pop esi
pop edi
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret 8
test bl, 8
je 0x40f324
mov ecx, dword [ebp + 8]
push 0
push ecx
push edi
call dword [sym.imp.RPCRT4.dll_RpcEpUnregister]
cmp dword [ebp + 8], 0
lea esi, [ebp + 8]
je 0x40f33a
push esi
call dword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
mov dword [esi], 0
test bl, 2
je 0x40f34a
push 0
push 0
push edi
call dword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x413a30
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x413a50
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x413a64
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x413a90
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x413aa6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x413ab3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x414110
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x44b160]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x41418f
xor eax, eax
cmp ecx, ebx
je 0x414177
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x4141b3
cmp ecx, ebx
je 0x41419a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00425cbc
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x41421a
jmp 0x4141e0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00414110
mov edi, eax
cmp edi, ebx
jne 0x414269
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x4141e0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41422d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00413970
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x414250
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00425cbc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x414278
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00425cbc
mov esp, ebp
pop ebp
ret 4
Function at 0x415b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x43ad80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44b160]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x415b92
call fcn.00413840
mov edi, eax
jmp 0x415c74
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x415bab
call fcn.00413840
jmp 0x415c6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x415bc6
call fcn.00413840
jmp 0x415c6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x415bfc
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x415bea
lea ecx, [ebp]
call fcn.004140b0
lea ecx, [ebp - 0x20]
call 0x409690
mov eax, 0x8007000e
jmp 0x415c86
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004148b0
mov dword [ebp - 4], 1
jmp 0x415c28
mov eax, dword [ebp]
test eax, eax
jne 0x415c36
mov edi, 0x8007000e
jmp 0x415c6d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x415c4f
call fcn.00413840
jmp 0x415c6b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00415700
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x415c84
lea ecx, [ebp]
call fcn.004140b0
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 + 0x404]
xor ecx, ebp
call fcn.00425cbc
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416800
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43ae18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b160]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, ecx
test byte [0x44d268], 1
mov byte [esp + 0x17], 0
jne 0x41684b
or dword [0x44d268], 1
push 0x43c160
call fcn.00426f0c
add esp, 4
push 0x4f4
call fcn.004269ce
mov esi, eax
add esp, 4
test esi, esi
je 0x416928
mov ecx, esi
call fcn.00416460
push 0xc
mov dword [esi], vtable.CTransportPipe.0
call fcn.00425d99
mov edi, eax
add esp, 4
test edi, edi
je 0x41692c
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a80
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call edx
test al, al
sete bl
cmp dword [esp + 0x30], 8
mov dword [esp + 0x3c], 0xffffffff
jb 0x4168ca
mov eax, dword [esp + 0x1c]
push eax
call fcn.00425b1e
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
test bl, bl
jne 0x41692c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push 0
mov ecx, esi
call eax
test al, al
je 0x41692c
mov ecx, dword [ebp + 8]
push 0
push 0
push edi
push 0x4165f0
mov dword [edi + 4], ecx
mov edx, dword [ebp + 0xc]
push 0
push 0
mov dword [edi + 8], edx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41692c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x17], 1
jmp 0x416952
xor al, al
jmp 0x416956
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
mov ecx, esi
call fcn.00416560
push esi
call fcn.00425b1e
add esp, 4
test edi, edi
je 0x416952
push edi
call fcn.00425e63
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x416b00
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x44b160]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
mov esi, dword [esp + 0x134]
push 0x110
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00425cd0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416bc2
cmp dword [esp + 0x1c], 6
jb 0x416bdb
push ebx
lea edx, [esp + 0xc]
push edx
push 1
push 0x43f7f0
mov dword [esp + 0x18], ebx
call fcn.004257d6
test eax, eax
je 0x416bc2
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x416bb7
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x138]
push ecx
push ebx
push ebx
push ebx
push 0x10
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x416bb7
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00425cbc
add esp, 0x128
ret
mov ecx, dword [esp + 0x12c]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00425cbc
add esp, 0x128
ret

Function at 0x416ca0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x44b160]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push esi
xor ebx, ebx
push 0x208
mov esi, ecx
lea ecx, [esp + 0x1a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x14], ebx
mov word [esp + 0x20], ax
call fcn.00425cd0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push ebx
call sub.NETAPI32.dll_NetWkstaUserGetInfo
test eax, eax
jne 0x416d71
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x416d71
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0x474]
lea eax, [esp + 0x228]
push eax
lea ecx, [esi + 0x408]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push ebx
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x416d4e
mov bl, 1
mov ecx, dword [esp + 8]
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.00425cbc
add esp, 0x2bc
ret
mov ecx, dword [esp + 0x2c0]
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00425cbc
add esp, 0x2bc
ret