joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403236
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
call fcn.00403427
cmp dword [ebp + 8], 0
je 0x403421
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [0x40dbc4], edx
mov dword [0x40dbd0], edx
mov dword [0x40dbc8], eax
dec cl
mov esi, 0x40be20
js 0x40327b
mov esi, 0x40be10
je 0x40327b
mov esi, 0x40be30
mov edi, 0x40dbb4
lea ecx, [eax + 4]
rep movsd dword es:[edi], dword [esi]
push eax
push eax
push eax
lea edx, [ebp - 0x12]
push edx
dec eax
push eax
mov dword [ebp - 0x12], 0x20001
mov dword [ebp - 6], 0x100004
mov dword [ebp - 0xe], 0xac44
mov dword [ebp - 0xa], 0x2b110
push 0x40dbb0
call sub.winmm.dll_waveOutOpen
test eax, eax
cdq
xchg edx, eax
jne 0x403421
push 0x14b
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
xchg edi, eax
push dword [ebp + 8]
call dword [0x40dbb4]
push edi
call fcn.00404ea0
test eax, eax
jne 0x4032e6
push edi
call fcn.00403427
xor edi, edi
call dword [0x40dbb8]
pop ecx
pop ecx
xchg edi, eax
test eax, eax
mov dword [0x40dba4], eax
je 0x403421
xchg esi, eax
mov ecx, 0x1500
xor eax, eax
mov edi, 0x40dd80
rep stosd dword es:[edi], eax
mov ecx, 0x418
mov edi, 0x40cb20
rep stosd dword es:[edi], eax
mov eax, 0x413180
dec cl
cdq
inc edx
sub eax, 0x54
mov dword [eax], ecx
mov dword [eax + 0x30], edx
dec ecx
jns 0x403320
lea edi, [esi + 0x12a]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], ecx
dec edx
mov dword [esi + 8], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [edi], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x1c], edx
movzx ecx, word [esi + 0x1c]
test ecx, ecx
je 0x403362
mov dword [edx + 0x40cb23], eax
add eax, 0x54
add edx, 0x83
loop 0x403351
mov word [ebp - 2], cx
movsx eax, word [esi + 0x22]
mov dword [edi + 4], eax
movsx eax, word [esi + 0x24]
mov dword [edi - 4], 0x40
mov dword [0x40dbe4], esi
push eax
push esi
call fcn.00403220
mov edi, sub.KERNEL32.DLL_LocalAlloc
push 0x258
push 0x40
call edi
mov dword [0x40dbe0], eax
mov esi, 0x40db80
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 0x56540
mov dword [esi + 4], eax
push eax
push 0x40
call edi
or dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [esi], eax
mov dword [esi + 0x10], 0xc
push 0x20
push esi
push dword [0x40dbb0]
call sub.winmm.dll_waveOutPrepareHeader
push 0xacb80
push 0x40
call edi
xor edi, edi
mov dword [0x40dbd8], eax
add eax, 0xf
and al, 0xf0
mov dword [0x40dbdc], eax
call fcn.0040355b
cmp dword [0x40dbe8], edi
jne 0x4033e8
push 0x20
push esi
push dword [0x40dbb0]
call sub.winmm.dll_waveOutWrite
mov dword [0x40dbd4], edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push 0x40367f
push edi
push edi
call sub.KERNEL32.DLL_CreateThread
push eax
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
leave
ret 0xc
Function at 0x10001000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
lea eax, [ebp + 0xc]
mov dword [ebp - 0x404], eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov dword [ebp - 0x404], 0
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x100027c6
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100030d8
push 0x10002a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed0
push ebx
push esi
push edi
push 0xcd
push 4
push 0x100043b8
push 0x10
push 0x100043bc
call fcn.10001f80
push 0x9a
push 0x10
push 0x100043bc
push 0x28
push 0x100043cc
call fcn.10001f80
push 0x100043cc
push 0x100048b0
call fcn.10001000
add esp, 8
push 0x100043cc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000285c
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002a04
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x66
push 0x10
push 0x100043bc
push 0x28
push 0x100043cc
call fcn.10001f80
push 0x33
push 4
push 0x100043b8
push 0x10
push 0x100043bc
call fcn.10001f80
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0x104
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
push 0x1000271d
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov dword [0x100048d4], eax
cmp dword [0x100048d4], 0
jne 0x10002908
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
jmp 0x10002a04
push 1
push 0
push 2
call fcn.100026c7
push 0
push 0
push 4
call fcn.100026c7
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0x10002200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100048dc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x20]
push edx
push str.threadId___d__d_n
call fcn.10001000
add esp, 0xc
push 1
push 0
push 3
call fcn.100026c7
cmp dword [0x100048dc], 0
je 0x1000297b
push 0xffffffffffffffff
mov eax, dword [0x100048dc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 1
call fcn.100026c7
mov dword [ebp - 4], 0xffffffff
call fcn.10002994
jmp 0x10002a04
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4eff30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x9dc000
lea edi, [esi - 0x9b000]
push edi
jmp 0x4eff4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4eff51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eff40
mov eax, 1
add ebx, ebx
jne 0x4eff63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4eff74
jne 0x4eff93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eff93
dec eax
add ebx, ebx
jne 0x4eff80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4eff58
add ebx, ebx
jne 0x4eff8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4effe5
xor ecx, ecx
sub eax, 3
jb 0x4effab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f001a
sar eax, 1
mov ebp, eax
jmp 0x4effb6
add ebx, ebx
jne 0x4effb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eff84
inc ecx
add ebx, ebx
jne 0x4effc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eff84
add ebx, ebx
jne 0x4effd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4effc6
jne 0x4effe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4effc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f0004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4efff6
jmp 0x4eff46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f0004
add edi, ecx
jmp 0x4eff46
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f0022
cmp byte [edi], 0x11
jne 0x4f0022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f0027
lea edi, [esi + 0xe8000]
mov eax, dword [edi]
or eax, eax
je 0x4f009f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1076b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x107830]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f0054
mov ecx, edi
jns 0x4f0083
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x107834]
or eax, eax
je 0x4f0099
mov dword [ebx], eax
add ebx, 4
jmp 0x4f0071
call dword [esi + 0x107844]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f00d0
cmp al, 0xef
ja 0x4f00c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f00a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f00b2
mov ebp, dword [esi + 0x107838]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f0104
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x402bf0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004047e0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004047e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x408078]
test esi, esi
jle 0x402d70
mov eax, dword [0x40807c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402c84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402d07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402c70
mov dword [esp], ebx
call fcn.004035d0
mov edi, eax
test eax, eax
je 0x402d97
mov eax, dword [0x40807c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403710
mov edx, dword [0x40807c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402d77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402d00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402d10
add dword [0x408078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40807c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402bf0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x402c8e
mov eax, dword [0x40807c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402bf0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402bf0
lea esi, [esi]
nop
Function at 0x403250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x408094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40808c]
sub esp, 4
test ebx, ebx
je 0x4032a5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40329e
test esi, esi
je 0x40329e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403280
mov dword [esp], 0x408094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4035d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4035f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403600
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4035f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x403648
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40363e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40364a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403630
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1008390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
movzx eax, byte [0x10b22ff]
cmp eax, 1
jne 0x1008415
mov ecx, dword [ebp + 8]
push ecx
call fcn.0100b180
add esp, 4
movzx edx, al
cmp edx, 1
jne 0x10083c1
mov byte [0x10b22fe], 0x21
jmp 0x1008413
mov eax, dword [ebp + 8]
push eax
call fcn.0100c4c0
add esp, 4
movzx ecx, al
cmp ecx, 1
jne 0x10083de
mov byte [0x10b22fe], 0x20
jmp 0x1008413
push str.BIOS_UEFI_version_not_supported._n
call fcn.01001fe0
add esp, 4
mov edx, dword [0x10b2dc0]
or edx, dword [0x10b2dc4]
je 0x100840c
push 1
mov eax, dword [0x10b2dc0]
xor ecx, ecx
push ecx
push eax
call fcn.0108e840
add esp, 0xc
push 1
call fcn.010242d3
jmp 0x1008484
mov edx, dword [ebp + 8]
push edx
call fcn.0100c4c0
add esp, 4
movzx eax, al
cmp eax, 1
jne 0x1008432
mov byte [0x10b22fe], 0x20
jmp 0x1008484
mov ecx, dword [ebp + 8]
push ecx
call fcn.0100b180
add esp, 4
movzx edx, al
cmp edx, 1
jne 0x100844f
mov byte [0x10b22fe], 0x21
jmp 0x1008484
push str.BIOS_UEFI_version_not_supported._n
call fcn.01001fe0
add esp, 4
mov eax, dword [0x10b2dc0]
or eax, dword [0x10b2dc4]
je 0x100847d
push 1
mov ecx, dword [0x10b2dc0]
xor edx, edx
push edx
push ecx
call fcn.0108e840
add esp, 0xc
push 1
call fcn.010242d3
mov esp, ebp
pop ebp
ret

Function at 0x100bcb0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 8], 0
jmp 0x100bccf
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xff
jg 0x100bd64
push 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.0100bd70
add esp, 8
shl eax, 0x18
mov edx, dword [ebp - 8]
mov dword [edx*4 + 0x10b29b8], eax
mov dword [ebp - 0xc], 0
jmp 0x100bd09
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x100bd40
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x10b29b8]
shl edx, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x10b29b8]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 4]
xor edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x10b29b8], edx
jmp 0x100bd00
push 0x20
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x10b29b8]
push edx
call fcn.0100bd70
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x10b29b8], eax
jmp 0x100bcc6
mov esp, ebp
pop ebp
ret
Function at 0x1026e0a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10a4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.01024f75
mov dword [ebp - 0x14], eax
cmp dword [0x10ac580], esi
jne 0x1026efd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1026e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1026fdd
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1026fdd
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1026fdd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x10ac580], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x10ac584], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x10ac588], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10ac590], eax
test eax, eax
je 0x1026efa
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10ac58c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1026f22
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1026f15
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1026f37
push 4
pop eax
jmp 0x1026fdf
cmp dword [ebp - 0x14], esi
je 0x1026f37
push dword [0x10ac580]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1026f1c
mov eax, dword [0x10ac58c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1026f95
cmp dword [0x10ac590], edi
je 0x1026f95
push eax
call ebx
push dword [0x10ac590]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1026f95
test eax, eax
je 0x1026f95
call ecx
test eax, eax
je 0x1026f8a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1026f8a
test byte [ebp - 8], 1
jne 0x1026f95
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1026fc5
mov eax, dword [0x10ac584]
cmp eax, edi
je 0x1026fc2
push eax
call ebx
test eax, eax
je 0x1026fc2
call eax
mov esi, eax
test esi, esi
je 0x1026fc2
mov eax, dword [0x10ac588]
cmp eax, edi
je 0x1026fc2
push eax
call ebx
test eax, eax
je 0x1026fc2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10ac580]
call ebx
test eax, eax
je 0x1026fdd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1026fdf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01026ff0
mov esp, ebp
pop ebp
ret
Function at 0x1038740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10a4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [str.diskpart__s_Efi.txt]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x1096458]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x109645c]
mov dword [ebp - 0x10], edx
mov eax, dword [0x1096460]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x1096464]
mov dword [ebp - 8], ecx
push 0x44
push 0
lea edx, [ebp - 0x70]
push edx
call fcn.01027af0
add esp, 0xc
mov dword [ebp - 0x70], 0x44
push 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.01027af0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10387ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_createProcess_Failed:__x_n
call fcn.01072843
add esp, 8
mov eax, 0xffff
jmp 0x1038843
mov dword [ebp - 0x1c], 0x103
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x1038829
cmp dword [ebp - 0x1c], 0
jne 0x103880f
jmp 0x1038829
cmp dword [ebp - 0x1c], 0xc0
je 0x1038827
cmp dword [ebp - 0x1c], 0x103
je 0x1038827
mov ax, word [ebp - 0x1c]
jmp 0x1038843
jmp 0x10387f4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1038843
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01026ff0
mov esp, ebp
pop ebp
ret

Function at 0x1038d20
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push str.00000000_0000_0000_0000_000000000000
push 0x1095267
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x1038d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x1038d5a
push str.ERROR:_Windows_was_installed_using_legacy_BIOS_n
call fcn.01072843
add esp, 4
or eax, 0xffffffff
jmp 0x1038d64
xor eax, eax
jmp 0x1038d64
xor eax, eax
jmp 0x1038d64
pop ebp
ret
Function at 0x10490a0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10490db
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10490c2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10490d3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10490dd
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10490b8
xor eax, eax
pop edi
pop esi
ret

Function at 0x1064ff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10a4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.01065320
mov dword [0x10b163c], 0
mov dword [0x10b1640], 0
mov byte [ebp - 0x45], 0x7a
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x43], ecx
mov dword [ebp - 0x3f], ecx
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], ecx
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov word [ebp - 0x27], cx
mov byte [ebp - 0x25], cl
push 8
push 0
push 0x10b1848
call fcn.01027af0
add esp, 0xc
movsx edx, byte [ebp - 0x45]
push edx
push 0x109b0cc
push 0x10b1848
call fcn.01071ae4
add esp, 0xc
push 0x10b1848
push 0x109b0d0
lea eax, [ebp - 0x24]
push eax
call fcn.01071ae4
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
push str.mountvol.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01026ff0
mov esp, ebp
pop ebp
ret

Function at 0x1065170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10a4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
movzx ecx, byte [0x10b1639]
test ecx, ecx
je 0x10651e1
push 0x10b1848
push str._s__d
lea edx, [ebp - 0x24]
push edx
call fcn.01071ae4
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push str.mountvol.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [0x10b1639], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01026ff0
mov esp, ebp
pop ebp
ret