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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x7528e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b41a
cmp word [esi], dx
jne 0x49b41a
or byte [edi + eax + 0x28], 4
jmp 0x49b41f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49b572
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49b552
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49b461
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49b497
cmp eax, edx
jae 0x49b4a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49b439
jmp 0x49b572
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b54e
cmp dword [ebp - 0x14], 0
je 0x49b54e
mov eax, dword [ebx*4 + 0x7528e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49b526
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49b4ef
mov word [esi], cx
jmp 0x49b522
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7528e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7528e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7528e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49b572
pop ebx
cmp word [ebp - 4], bx
jne 0x49b537
cmp esi, dword [ebp + 0xc]
jne 0x49b537
mov word [esi], bx
jmp 0x49b56f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49b572
push 0xd
jmp 0x49b56b
mov ecx, dword [ebx*4 + 0x7528e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b572
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2b41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x74d3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a2b8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a3003
test al, al
jne 0x4a2b86
sub edx, 2
cmp edx, edi
jne 0x4a2b6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a2bae
lea eax, [edi + 2]
cmp edx, eax
je 0x4a2bae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a273a
add esp, 0x10
jmp 0x4a2ca8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a3003
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2bf1
push dword [ebp - 0x25c]
jmp 0x4a2b9e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a2c2e
cmp word [ebp - 0x226], 0
je 0x4a2c4f
cmp word [ebp - 0x226], ax
jne 0x4a2c2e
cmp word [ebp - 0x224], 0
je 0x4a2c4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a273a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a2c9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a2c08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a2c83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a2ca8
push 0x4a2122
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004061fe
add esp, 0x10
jmp 0x4a2c78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x100265f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10061808]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [0x10062544]
push dword [0x100644b0]
push 0x100644e0
push str.C:_vm3dum_log_vm3dum_s__d__d.log
push 0x80
push 0x10064500
call fcn.100269a0
push 0x20
push 0x10054018
push 0x10064500
call fcn.10037ae8
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x100266d5
push edi
lea eax, [ebp - 0x144]
push eax
push str.C:_vm3dum_log_vm3dum.log
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100266c1
push esi
lea eax, [ebp - 0x144]
mov esi, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1002669b
nop dword [eax]
inc esi
cmp esi, 0x200
ja 0x1002669b
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10026680
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x200
pop esi
ja 0x100266c1
pop edi
mov dword [0x10062540], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e19b
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10037639
push 0x10064500
call fcn.10037c79
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002e19b
mov esp, ebp
pop ebp
ret

Function at 0x10026a10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 1
push dword [eax]
call fcn.100269d0
cmp byte [0x10064421], 0
je 0x10026a8a
rdtsc
mov ebx, dword [ebp + 8]
mov edi, eax
mov esi, edi
mov dword [ebp - 4], edx
sub esi, dword [ebx + 0x10]
mov ecx, dword [ebx]
sbb edx, dword [ebx + 0x14]
add ecx, 8
push edx
push esi
push ecx
call fcn.100269d0
mov esi, dword [ebp - 4]
mov ecx, edi
sub ecx, dword [ebx + 8]
mov eax, esi
sbb eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx]
push ecx
add eax, 0x10
push eax
call fcn.100269d0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10026a7d
sub edi, dword [ebx + 8]
sbb esi, dword [ebx + 0xc]
add dword [eax + 0x10], edi
adc dword [eax + 0x14], esi
mov eax, dword [ebx + 0x18]
push eax
push dword [0x10064424]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10026aa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10064421], 0
push ebx
push esi
push edi
je 0x10026aea
push 0
push 1
push 0x10067730
call fcn.100269d0
rdtsc
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push dword [0x10064424]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 0x18], eax
push dword [0x10064424]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10026c80
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10064420], 0
jne 0x10026d04
mov word [0x10064420], 0x101
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push dword [ebp + 8]
mov dword [0x10064424], eax
push 0x10053f98
push 0xffffffffffffffff
push 0x40
push 0x10064428
call fcn.10026930
mov eax, dword [0x10064424]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10026ceb
push str.Unable_allocate_TLS_for_MKSGuestStats.__Timing_will_be_unavailable._n
call fcn.10026380
add esp, 4
mov byte [0x10064421], 0
push dword [ebp + 8]
push str.MKSGuestStats_enabled_for__s._n
call fcn.10026380
add esp, 8
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp + 8]
push str.MKSGuestStats_enabled_for__s._n
call fcn.10026380
add esp, 8
pop ebp
ret 4
Function at 0x10027880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10061808]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x220], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x10027a35
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10027a27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10027a27
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10027a02
push edi
call fcn.100322b1
mov esi, eax
add esp, 4
test esi, esi
je 0x10027a26
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100279c5
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0
push eax
push 0x10054498
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100279e9
mov eax, dword [ebp - 0x214]
push 3
mov edi, dword [eax + 8]
mov ecx, edi
mov ebx, dword [eax + 0xc]
xor eax, eax
or eax, ebx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], eax
call fcn.1001ae80
test al, al
je 0x100279e9
movzx eax, bx
push eax
shr ebx, 0x10
push ebx
movzx eax, di
push eax
shr edi, 0x10
push edi
push str.Version:__hu___hu___hu___hu_n
call fcn.10026380
add esp, 0x14
push esi
call fcn.1003228b
add esp, 4
pop ebx
pop edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10027a5a
push 3
call fcn.1001ae80
test al, al
je 0x100279e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UMFileUtil_GetModuleVersion
push str._s:_GetFileVersionInfo_failed_with_error_code:__u_n
call fcn.10026380
add esp, 0xc
push esi
call fcn.1003228b
add esp, 4
pop ebx
pop edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10027a5a
push 3
call fcn.1001ae80
test al, al
je 0x10027a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UMFileUtil_GetModuleVersion
push str._s:_GetFileVersionInfoSize_failed_with_error_code:__u_n
call fcn.10026380
add esp, 0xc
pop edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10027a5a
push 3
call fcn.1001ae80
test al, al
je 0x10027a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.UMFileUtil_GetModuleVersion
push str._s:_GetModuleHandleEx_error_for_module__ls:__u_n
call fcn.10026380
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x21c]
xor ecx, ebp
mov eax, dword [ebp - 0x220]
pop esi
call fcn.1002e19b
mov esp, ebp
pop ebp
ret 4

Function at 0x10029f70
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5658
mov dword [eax], 0x564d5868
mov word [eax + 0xc], cx
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1002a070
Function at 0x1002da30
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10061808]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 8]
movq qword [ebp - 0x10], xmm0
call fcn.1002dcd0
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002da74
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e19b
mov esp, ebp
pop ebp
ret 4
push ebx
mov dword [ebp - 0x18], 0x1002db40
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push 0x1a05
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
mov bl, al
test bl, bl
jne 0x1002dacc
push str.WDDMCoreDump:_MiniDumpWriteDump___failed._n
call fcn.100268a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1002e19b
mov esp, ebp
pop ebp
ret 4
Function at 0x1003aa54
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003a9d6
Function at 0x10049010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x10049102
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10049102
mov dword [ecx], 0x74
mov dword [ecx + 4], 1
mov eax, dword [edx + 0x58]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 1
mov eax, dword [edx + 0x5c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 1
mov dword [ecx + 0x18], 0x20
mov dword [ecx + 0x1c], 1
mov dword [ecx + 0x20], 0x20
mov eax, dword [edx + 0x64]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x68]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 0x78]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 0x7c]
mov dword [ecx + 0x38], eax
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x84]
mov dword [ecx + 0x40], eax
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x44], eax
mov eax, dword [edx + 0x8c]
and eax, 0xffefffff
mov dword [ecx + 0x48], eax
mov eax, dword [edx + 0x90]
mov dword [ecx + 0x4c], eax
movzx eax, word [edx + 0x94]
mov word [ecx + 0x50], ax
movzx eax, word [edx + 0x98]
mov word [ecx + 0x52], ax
mov eax, dword [edx + 0xa0]
mov dword [ecx + 0x54], eax
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x58], eax
movzx eax, word [edx + 0xa4]
mov word [ecx + 0x5c], ax
movzx eax, word [edx + 0xa8]
mov word [ecx + 0x5e], ax
mov eax, dword [edx + 0x9c]
or eax, 4
mov dword [ecx + 0x60], eax
pop ebp
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40153b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x2c], 1
je 0x401554
movzx esi, word [esp + 0x30]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4044e0], eax
mov dword [ebp - 0x4c], 0x30
call fcn.0040152b
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x40120e
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Trick
mov dword [ebp - 0x20], eax
call fcn.0040151e
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x401626
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0x80
push str.Qindom
push str.Trick
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4044e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4044e8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401626
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40160a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4019a0
Capabilities:
Manipulate user privileges

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4019b3
xor eax, eax
pop ebx
add esp, 0x14
ret
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 4
test eax, eax
je 0x4019ce
mov eax, 1
pop ebx
add esp, 0x14
ret
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.00401190
add esp, 0xc
test eax, eax
je 0x4019f9
mov eax, dword [esp + 0x1c]
push eax
call sub.ADVAPI32.dll_LsaClose
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00401140
add esp, 4
test eax, eax
je 0x401a20
mov ecx, dword [esp + 0x20]
push ecx
call sub.ADVAPI32.dll_LsaClose
pop edi
mov eax, 3
pop ebx
add esp, 0x14
ret
mov eax, str.SeServiceLogonRight
mov dword [esp + 0x18], eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a30
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push esi
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
add eax, 2
lea edx, [esp + 0x10]
push edx
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x20], 0xffffffff
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
test eax, eax
je 0x401ac0
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov esi, eax
cmp esi, 2
je 0x401ac0
push edi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x24]
push ecx
call sub.ADVAPI32.dll_LsaClose
push esi
call fcn.004020f0
add esp, 4
push eax
push ebx
push 0x40000209
call fcn.0041439a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 0x10
pop esi
pop edi
mov eax, 4
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x401b02
lea esp, [esp]
mov dx, word [eax + esi*8]
cmp dx, word [esp + 0x18]
jne 0x401afb
movzx ecx, word [esp + 0x1a]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + esi*8 + 4]
push ecx
push edx
push eax
call fcn.00414a46
add esp, 0xc
test eax, eax
je 0x401b63
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [esp + 0x10]
jb 0x401ad0
push eax
call sub.ADVAPI32.dll_LsaFreeMemory
mov ecx, dword [esp + 0x24]
push 1
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
call sub.ADVAPI32.dll_LsaAddAccountRights
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [esp + 0x24]
push edx
call sub.ADVAPI32.dll_LsaClose
test esi, esi
je 0x401b87
push esi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
push eax
call fcn.004020f0
add esp, 4
push eax
push 0x4000020a
call fcn.0041439a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 0xc
pop esi
pop edi
mov eax, 5
pop ebx
add esp, 0x14
ret
push edi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0xc]
push ecx
call sub.ADVAPI32.dll_LsaFreeMemory
mov edx, dword [esp + 0x24]
push edx
call sub.ADVAPI32.dll_LsaClose
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebx
push 0x40000204
call fcn.0041439a
add eax, 0x20
push eax
call fcn.004022a0
add esp, 0xc
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x401ea0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x54
push esi
call fcn.00408810
push 0x44
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00414b00
add esp, 0xc
xor eax, eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
push eax
push 0x404
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
test eax, eax
je 0x401f11
mov ecx, dword [esp]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x57
sete dl
lea edx, [edx + edx - 1]
mov eax, edx
add esp, 0x54
ret

Function at 0x401f60
Capabilities:
Query environment variable

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x401f6f
pop esi
ret
push edi
push esi
call fcn.00401c30
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4020f0
Capabilities:
Get thread local storage value
Identify system language via api
Set thread local storage value

Disassembly:
mov eax, dword [0x429600]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40212b
push 0xffff
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x40211d
mov eax, str._out_of_memory_for_error_message_
pop esi
ret
mov ecx, dword [0x429600]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push edi
push 0
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageW]
movzx edx, ax
push edx
push edi
push 0
push 0x1200
call ebx
test eax, eax
jne 0x40218c
push eax
push 0xffff
push esi
push eax
push edi
push eax
push 0x1200
call ebx
test eax, eax
jne 0x40218c
push edi
push str.system_error__lu
push 0xffffffffffffffff
push 0xffff
push esi
call fcn.0041454f
add esp, 0x14
test eax, eax
jge 0x40218c
pop edi
pop ebx
xor eax, eax
pop esi
ret
pop edi
pop ebx
mov eax, esi
pop esi
ret