joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b70]
jne 0x4099ba
repz ret
jmp fcn.0040b9dc

Function at 0x40a383
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ed3
and dword [ebp - 4], 0
cmp dword [0x447d2c], 0
mov ebx, eax
jne 0x40a434
push 0x402bdc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bd0
push edi
call esi
test eax, eax
je 0x40a4e5
push eax
call fcn.00405e61
mov dword [esp], 0x402bc0
push edi
mov dword [0x447d2c], eax
call esi
push eax
call fcn.00405e61
mov dword [esp], 0x402bac
push edi
mov dword [0x447d30], eax
call esi
push eax
call fcn.00405e61
mov dword [esp], 0x402b90
push edi
mov dword [0x447d34], eax
call esi
push eax
call fcn.00405e61
pop ecx
mov dword [0x447d3c], eax
test eax, eax
je 0x40a434
push 0x402b78
push edi
call esi
push eax
call fcn.00405e61
pop ecx
mov dword [0x447d38], eax
mov eax, dword [0x447d38]
cmp eax, ebx
je 0x40a48c
cmp dword [0x447d3c], ebx
je 0x40a48c
push eax
call fcn.00405edc
push dword [0x447d3c]
mov esi, eax
call fcn.00405edc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a48c
test edi, edi
je 0x40a48c
call esi
test eax, eax
je 0x40a483
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a483
test byte [ebp - 0xc], 1
jne 0x40a48c
or dword [ebp + 0x10], 0x200000
jmp 0x40a4c5
mov eax, dword [0x447d30]
cmp eax, ebx
je 0x40a4c5
push eax
call fcn.00405edc
pop ecx
test eax, eax
je 0x40a4c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4c5
mov eax, dword [0x447d34]
cmp eax, ebx
je 0x40a4c5
push eax
call fcn.00405edc
pop ecx
test eax, eax
je 0x40a4c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447d2c]
call fcn.00405edc
pop ecx
test eax, eax
je 0x40a4e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425393
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52ac9d
call fcn.0050d769
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4253b8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42540a
call fcn.0041b551
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dcd0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050d29d
push eax
call fcn.00401010
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012b0
mov eax, esi
call fcn.0050d841
ret 8

Function at 0x428e7a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x428eaf
xor eax, eax
jmp 0x428f02
lea eax, [ebp - 0x210]
push eax
call fcn.0050d36a
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x428ee0
push 0x55e2ac
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f8cc
add esp, 0xc
test eax, eax
jne 0x428eab
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f8cc
add esp, 0xc
test eax, eax
jne 0x428eab
lea eax, [ebp - 0x210]
push eax
call fcn.004160b6
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050c1b3
leave
ret

Function at 0x454353
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x45436d
call fcn.004210b9
mov esi, dword [eax + 0xc]
push dword [0x58eeb8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45438b
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x454383
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4543b8
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x454385
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00454281
mov esi, eax
jmp 0x4543aa

Function at 0x487c82
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004191a8
call fcn.0041613c
cmp eax, esi
pop esi
jne 0x487c9e
mov ecx, 0x58de78
jmp fcn.00429a94
ret

Function at 0x4bf98e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec edx
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
invalid
Function at 0x4bfa1d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
invalid
invalid

Function at 0x4f006d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f0085
mov edi, dword [esi + 0xc]
jmp 0x4f00c5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f009e
call fcn.00423e54
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f00b3
call fcn.00423e54
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f00c5
call fcn.00423e54
call fcn.004210b9
cmp dword [eax + 0x3c], 0
je 0x4f00da
push edi
mov ecx, ebx
call fcn.004eee97
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004eff87
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f00f8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f0104
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50c1b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58a6d0]
jne 0x50c1bd
repz ret
jmp fcn.005140a3
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6ddf6d36
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x690d0ae3
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x40
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.ntdll.dll_NtDeleteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40116e
mov al, 1
jmp 0x401170
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x401310
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push str.Start
mov eax, dword [str.RegistryMachineSystemCurrentControlSetServicesHuaweiBus]
push eax
call fcn.00401440
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40135f
push 4
push 0x402564
push 4
mov ecx, 4
shl ecx, 1
mov edx, dword [ecx + 0x403014]
push edx
push 0x402568
push 1
call dword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov al, 1
jmp 0x401430
cmp dword [ebp - 8], 2
jne 0x401371
xor al, al
jmp 0x401430
lea eax, [ebp - 0x14]
push eax
call sub.ntdll.dll_NtQuerySystemTime
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntdll.dll_RtlTimeToTimeFields]
lea eax, [ebp - 0x24]
push eax
call fcn.00401180
mov dword [ebp - 4], eax
movsx ecx, word [ebp - 0x24]
cmp ecx, 0x7e3
jge 0x4013a7
mov al, 1
jmp 0x401430
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4013cb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jbe 0x4013cb
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
sub eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
push 4
mov ecx, dword [ebp + 0xc]
push ecx
push 4
mov edx, 4
shl edx, 1
mov eax, dword [edx + 0x403014]
push eax
push 0x402568
push 1
call dword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0x278d00
jbe 0x40140a
mov al, 1
jmp 0x401430
push 4
lea edx, [ebp - 4]
push edx
push 4
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ecx + 0x403014]
push edx
push 0x402568
push 1
call dword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x401440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x40
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x48]
push eax
push 0xf003f
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntdll.dll_ZwOpenKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4014d5
mov eax, dword [ebp - 0xc]
jmp 0x401555
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x401517
cmp dword [ebp - 4], 0x80000005
je 0x401517
cmp dword [ebp - 4], 0xc0000023
je 0x401517
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc]
jmp 0x401555
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
push 2
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x2c], 4
jne 0x401548
cmp dword [ebp - 0x28], 4
jne 0x401548
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x401600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x40
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], 0x800
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0x40
push 3
push 2
push 0x80
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 2
lea eax, [ebp - 8]
push eax
call sub.ntdll.dll_NtCreateFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4017be
cmp dword [ebp - 8], 0
je 0x4017be
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 4
ja case.default.0x4016c4
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x4017cc]
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x403040]
push edx
push 0x403048
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.ntdll.dll_NtWriteFile
mov dword [ebp - 4], eax
jmp 0x4017a0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x403044]
push eax
push 0x4a5858
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call sub.ntdll.dll_NtWriteFile
mov dword [ebp - 4], eax
jmp 0x4017a0
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [0x4be85c]
push ecx
push str._HotaConfig__r_n_____HotaUrl_https:__query.hicloud.com_hid_and_common_v2_CheckEx.action_latesttrue__HotaUrl__r_n_____HotaVer_verTypetrue__HotaVer__r_n_____HotaDefence_defenceHijacktrue__HotaDefence__r_n__HotaConfig_
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_NtWriteFile
mov dword [ebp - 4], eax
jmp 0x4017a0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x4cb064]
push edx
push 0x4cb068
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.ntdll.dll_NtWriteFile
mov dword [ebp - 4], eax
jmp 0x4017a0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x4d786c]
push eax
push 0x4d7870
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call sub.ntdll.dll_NtWriteFile
mov dword [ebp - 4], eax
xor al, al
jmp 0x4017c4
cmp dword [ebp - 4], 0
je 0x4017b3
cmp dword [ebp - 4], 0x103
je 0x4017b3
xor al, al
jmp 0x4017c4
mov eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_NtClose
jmp 0x4017c2
xor al, al
jmp 0x4017c4
mov al, 1
mov esp, ebp
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 0xca0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xca01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xca007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca006a
add dl, dl
jne 0xca0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca00dc
xor eax, eax
add dl, dl
jne 0xca0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca017d
add dl, dl
jne 0xca00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xca00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xca0075
mov eax, 1
add dl, dl
jne 0xca00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca00e1
sub eax, ebx
mov ebx, 1
jne 0xca0128
mov ecx, 1
add dl, dl
jne 0xca010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xca0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xca013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xca014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca0136
cmp eax, 0x7d00
jae 0xca016d
cmp eax, 0x500
jb 0xca0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca0075
cmp eax, 0x7f
ja 0xca0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xca019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xca0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4065f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x4065ff
repz ret
jmp fcn.004085eb

Function at 0x407c03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004052ff
and dword [ebp - 0x14], 0
cmp dword [0x43bfb0], 0
mov dword [ebp - 0x18], eax
jne 0x407cb6
push 0x402190
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d5e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402184
push ebx
call edi
test eax, eax
je 0x407d5e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402174
push ebx
mov dword [0x43bfb0], eax
call edi
push eax
call esi
push 0x402160
push ebx
mov dword [0x43bfb4], eax
call edi
push eax
call esi
push 0x402144
push ebx
mov dword [0x43bfb8], eax
call edi
push eax
call esi
mov dword [0x43bfc0], eax
test eax, eax
je 0x407cb6
push 0x40212c
push ebx
call edi
push eax
call esi
mov dword [0x43bfbc], eax
mov eax, dword [0x43bfbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407d0f
cmp dword [0x43bfc0], ecx
je 0x407d0f
push eax
call esi
push dword [0x43bfc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407d0f
test ebx, ebx
je 0x407d0f
call edi
test eax, eax
je 0x407d06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407d06
test byte [ebp - 8], 1
jne 0x407d0f
or dword [ebp + 0x10], 0x200000
jmp 0x407d42
mov eax, dword [0x43bfb4]
cmp eax, dword [ebp - 0x18]
je 0x407d42
push eax
call esi
test eax, eax
je 0x407d42
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d42
mov eax, dword [0x43bfb8]
cmp eax, dword [ebp - 0x18]
je 0x407d42
push eax
call esi
test eax, eax
je 0x407d42
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43bfb0]
call esi
test eax, eax
je 0x407d5e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407d60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065f5
leave
ret
Function at 0x409ee0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x4b7b20], 0x37
jne 0x409f50
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x402a48
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x4b7b24]
mov eax, dword [0x4b7204]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x40a450
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4b7b20]
sub esp, 0x430
cmp eax, 0x422
jne 0x40a4aa
push 0
push 0
push 0
call fcn.00402cde
push 0x402adc
push 0
call fcn.00402cde
push 0
call fcn.00402cae
push 0
call fcn.00402bf0
push 0
call fcn.00402cae
push 0x402ae8
push 0x402aec
push 0x43c300
call fcn.00402cde
mov eax, dword [0x4b7b20]
add esp, 0x2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x40a4fd
push 0x402af4
call esi
push 0
lea eax, [esp + 0x44]
push eax
call edi
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call ebx
dec ebp
mov eax, dword [0x43b668]
mov dword [0x4b7b20], eax
jne 0x40a4c5
mov esi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov edi, 0x79a863
cmp eax, 0x4c5
jne 0x40a52c
push 0
lea eax, [esp + 0x44]
push eax
push 0
call esi
mov eax, dword [0x4b7b20]
dec edi
jne 0x40a515
mov ecx, dword [0x43b65c]
mov dword [0x4b7b24], ecx
call fcn.0040a150
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 0x10