joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fbb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458d60
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x531014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.00446498
push dword [esi + 0xc0]
call fcn.00446498
push dword [esi + 0x9c]
call fcn.00446498
push dword [esi + 0x90]
call fcn.00446498
push dword [esi + 0x30]
call fcn.00446498
push dword [esi + 0x24]
call fcn.00446498
push dword [esi + 0x18]
call fcn.00446498
add esp, 0x1c
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41fc30
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41fc44
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41fc58
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x41fc6b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4221e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x531014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x42231d
nop dword [eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x422318
inc eax
cmp eax, 0x40
jb 0x4222f6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446487
mov esp, ebp
pop ebp
ret
inc edx
cmp edx, esi
jl 0x4222f0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00446487
mov esp, ebp
pop ebp
ret

Function at 0x422370
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4223a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4223a3
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
pop edi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x531014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00448710
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4227e3
mov edx, edi
mov ecx, esi
call fcn.00422370
push dword [edi]
mov dword [ebp - 0x210], 0
call fcn.004465e7
add esp, 4
mov dword [ebx], eax
lea ecx, [ebp - 0x210]
push 0
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446487
mov esp, ebp
pop ebp
ret
Function at 0x48c890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d000]
push edi
or ebp, 0xffffffff
jmp 0x48c8b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48c8b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48c8a8
mov eax, 1
add ebx, ebx
jne 0x48c8cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48c8dc
jne 0x48c8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48c8fb
dec eax
add ebx, ebx
jne 0x48c8e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48c8c0
add ebx, ebx
jne 0x48c8f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48c94d
xor ecx, ecx
sub eax, 3
jb 0x48c913
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48c982
sar eax, 1
mov ebp, eax
jmp 0x48c91e
add ebx, ebx
jne 0x48c91e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48c8ec
inc ecx
add ebx, ebx
jne 0x48c92c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48c8ec
add ebx, ebx
jne 0x48c939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48c92e
jne 0x48c94a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48c92e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48c96c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48c95e
jmp 0x48c8ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48c96c
add edi, ecx
jmp 0x48c8ae
pop esi
mov edi, esi
mov ecx, 0x27d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48c98a
cmp byte [edi], 0x2d
jne 0x48c98a
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 0x48c98f
lea edi, [esi + 0x89000]
mov eax, dword [edi]
or eax, eax
je 0x48ca07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9ff04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa001c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48c9bc
mov ecx, edi
jns 0x48c9eb
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 + 0xa0020]
or eax, eax
je 0x48ca01
mov dword [ebx], eax
add ebx, 4
jmp 0x48c9d9
call dword [esi + 0xa0028]
mov ebp, dword [esi + 0xa0024]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x48ca3b
sub esp, 0xffffff80
jmp 0x448e60
Function at 0x10019380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1f02f86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x1f1633c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xa4], ebx
call fcn.1003567e
mov edx, dword [0x1f1633c]
mov dword [esp + 0x30], edx
cmp esi, ebx
mov byte [esp + 0xa0], 1
jne 0x100193da
mov dword [esp + 0x10], ebx
jmp 0x100193e1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
push edi
mov ecx, esi
call fcn.10037749
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffff96
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edx
call fcn.10038104
mov eax, dword [esi + 0x20]
mov dword [esp + 0x58], ebx
cmp eax, ebx
jne 0x1001942e
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x1f054bc]
push eax
call fcn.10034ccf
mov edi, eax
cmp edi, ebx
jne 0x1001943e
xor eax, eax
jmp 0x10019441
mov eax, dword [edi + 0x1c]
push eax
call dword [0x1f054cc]
mov ebp, dword [0x1f054d0]
test eax, eax
je 0x10019467
mov ecx, esi
call fcn.10037749
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [edi + 0x1c]
push 0x4e
push eax
call ebp
mov ecx, dword [esi + 0x1c]
push ebx
push ebx
push 0x10
push ecx
call dword [0x1f054a4]
mov eax, dword [esi + 0x44]
pop edi
cmp eax, 0xd
jne 0x100194a0
mov esi, dword [esi + 0x54]
mov eax, dword [esi + 0x3b4]
cmp eax, 1
je 0x10019491
cmp eax, 2
jne 0x100194a0
mov edx, dword [esi + 0x1c]
push 1
push 0xd
push 0x100
push edx
call ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], bl
call fcn.10038017
lea ecx, [esp + 0xc]
mov dword [esp + 0xa0], 0xffffffff
call fcn.10038017
mov ecx, dword [esp + 0x98]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret
Function at 0x100193a2
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1f02f86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x1f1633c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xa4], ebx
call fcn.1003567e
mov edx, dword [0x1f1633c]
mov dword [esp + 0x30], edx
cmp esi, ebx
mov byte [esp + 0xa0], 1
jne 0x100193da
mov dword [esp + 0x10], ebx
jmp 0x100193e1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
push edi
mov ecx, esi
call fcn.10037749
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffff96
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edx
call fcn.10038104
mov eax, dword [esi + 0x20]
mov dword [esp + 0x58], ebx
cmp eax, ebx
jne 0x1001942e
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x1f054bc]
push eax
call fcn.10034ccf
mov edi, eax
cmp edi, ebx
jne 0x1001943e
xor eax, eax
jmp 0x10019441
mov eax, dword [edi + 0x1c]
push eax
call dword [0x1f054cc]
mov ebp, dword [0x1f054d0]
test eax, eax
je 0x10019467
mov ecx, esi
call fcn.10037749
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [edi + 0x1c]
push 0x4e
push eax
call ebp
mov ecx, dword [esi + 0x1c]
push ebx
push ebx
push 0x10
push ecx
call dword [0x1f054a4]
mov eax, dword [esi + 0x44]
pop edi
cmp eax, 0xd
jne 0x100194a0
mov esi, dword [esi + 0x54]
mov eax, dword [esi + 0x3b4]
cmp eax, 1
je 0x10019491
cmp eax, 2
jne 0x100194a0
mov edx, dword [esi + 0x1c]
push 1
push 0xd
push 0x100
push edx
call ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], bl
call fcn.10038017
lea ecx, [esp + 0xc]
mov dword [esp + 0xa0], 0xffffffff
call fcn.10038017
mov ecx, dword [esp + 0x98]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret
Function at 0x10024f10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1f03848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.1003b468
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.10024e50
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1003b396
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x1f054e0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10024fd7
cmp dword [esp + 0x40], 1
jne 0x10024fd5
cmp ecx, eax
jge 0x10024fd7
mov eax, ecx
cmp eax, 0x12c
jge 0x10024fe3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.10025030
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x1f05414]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1003b4da
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x8f803f
Capabilities:
Packed with generic packer

Disassembly:
add ah, bh
out dx, eax
loopne 0x8f8007
dec dword [ecx - 0x10fff855]
add byte [eax], al
add byte [edi], bh
mov dword [ebx + 0xef0007], ebp
add byte [eax], al
aas
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, bh
clc
clc
jmp 0x8f802c
pushal
jmp 0x8f8036
call 0x8f803f
lahf
and al, 0x65
pop ebx
jmp 0x8f804b
add ebx, 0xffffffc5
jmp 0x8f8058
cmp dword [ebx], 0
jmp 0x8f8067
je 0x8f80ed
clc
jae 0x8f8075
movsd dword es:[edi], dword [esi]
nop
aam 0x2a
xor ecx, dword [ebx + 0x4506ebcb]
arpl si, bx
fadd st(3), st(0)
loopne 0x8f8003
mov ecx, ebx
jmp 0x8f807f
add ebx, 4
ret
Function at 0x403090
Capabilities:
Get disk information

Disassembly:
sub esp, 0x838
mov eax, dword [esp + 0x83c]
mov ecx, dword [eax]
mov edx, dword [0x43ff5c]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x43ff58]
mov dword [esp + 0x38], eax
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x40], 0x9e3779b9
mov dword [esp + 0x38], edx
call fcn.00403060
mov eax, dword [0x43ff60]
mov edx, dword [0x43ff64]
add dword [esp + 0x10], 0x23f
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], 0x20
jmp 0x403114
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [0x2aeca24]
shl ecx, 4
add ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
cmp eax, 0xfa9
jne 0x403144
mov dword [0x2aeca20], 0xedeb2e40
jmp 0x403155
cmp eax, 0x3eb
jne 0x403155
mov dword [0x2ae992c], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x18]
mov dword [0x2aeca1c], 0xf4ea3dee
call fcn.00403070
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor dword [esp + 0x18], eax
cmp dword [0x2aeca24], 0x213
jne 0x4031dc
push 0
push 0
call edi
lea ecx, [esp + 0x48]
push ecx
push 0
call ebx
push 0
push 0x402c40
push 0x402ca4
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov eax, esi
mov dword [esp + 0x30], esi
call fcn.00403050
mov edx, dword [esp + 0x3c]
add dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
cmp dword [0x2aeca24], 0x121
jne 0x403248
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
call fcn.00403080
mov eax, dword [esp + 0x40]
sub dword [esp + 0x10], eax
sub dword [esp + 0x2c], 1
jne 0x403110
mov eax, dword [esp + 0x84c]
mov edx, dword [esp + 0x28]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x838
ret 4
Function at 0x409e10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fbc0]
jne 0x409e1a
repz ret
jmp fcn.0040de8b

Function at 0x40d6e4
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.00409170
and dword [ebp - 4], 0
cmp dword [0x441d30], 0
mov ebx, eax
jne 0x40d795
push 0x401b28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d846
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b1c
push edi
call esi
test eax, eax
je 0x40d846
push eax
call fcn.004090fe
mov dword [esp], 0x401b0c
push edi
mov dword [0x441d30], eax
call esi
push eax
call fcn.004090fe
mov dword [esp], 0x401af8
push edi
mov dword [0x441d34], eax
call esi
push eax
call fcn.004090fe
mov dword [esp], 0x401adc
push edi
mov dword [0x441d38], eax
call esi
push eax
call fcn.004090fe
pop ecx
mov dword [0x441d40], eax
test eax, eax
je 0x40d795
push 0x401ac4
push edi
call esi
push eax
call fcn.004090fe
pop ecx
mov dword [0x441d3c], eax
mov eax, dword [0x441d3c]
cmp eax, ebx
je 0x40d7ed
cmp dword [0x441d40], ebx
je 0x40d7ed
push eax
call fcn.00409179
push dword [0x441d40]
mov esi, eax
call fcn.00409179
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7ed
test edi, edi
je 0x40d7ed
call esi
test eax, eax
je 0x40d7e4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7e4
test byte [ebp - 0xc], 1
jne 0x40d7ed
or dword [ebp + 0x10], 0x200000
jmp 0x40d826
mov eax, dword [0x441d34]
cmp eax, ebx
je 0x40d826
push eax
call fcn.00409179
pop ecx
test eax, eax
je 0x40d826
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d826
mov eax, dword [0x441d38]
cmp eax, ebx
je 0x40d826
push eax
call fcn.00409179
pop ecx
test eax, eax
je 0x40d826
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441d30]
call fcn.00409179
pop ecx
test eax, eax
je 0x40d846
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d848
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ad8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c400]
jne 0x406ae2
repz ret
jmp fcn.00408a36

Function at 0x407263
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c400]
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.0040529d
and dword [ebp - 0x14], 0
cmp dword [0x42ca94], 0
mov dword [ebp - 0x18], eax
jne 0x407316
push 0x4021a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4073be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402194
push ebx
call edi
test eax, eax
je 0x4073be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402184
push ebx
mov dword [0x42ca94], eax
call edi
push eax
call esi
push 0x402170
push ebx
mov dword [0x42ca98], eax
call edi
push eax
call esi
push 0x402154
push ebx
mov dword [0x42ca9c], eax
call edi
push eax
call esi
mov dword [0x42caa4], eax
test eax, eax
je 0x407316
push 0x40213c
push ebx
call edi
push eax
call esi
mov dword [0x42caa0], eax
mov eax, dword [0x42caa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40736f
cmp dword [0x42caa4], ecx
je 0x40736f
push eax
call esi
push dword [0x42caa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40736f
test ebx, ebx
je 0x40736f
call edi
test eax, eax
je 0x407366
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407366
test byte [ebp - 8], 1
jne 0x40736f
or dword [ebp + 0x10], 0x200000
jmp 0x4073a2
mov eax, dword [0x42ca98]
cmp eax, dword [ebp - 0x18]
je 0x4073a2
push eax
call esi
test eax, eax
je 0x4073a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4073a2
mov eax, dword [0x42ca9c]
cmp eax, dword [ebp - 0x18]
je 0x4073a2
push eax
call esi
test eax, eax
je 0x4073a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ca94]
call esi
test eax, eax
je 0x4073be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4073c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ad8
leave
ret
Function at 0x409db0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xe3c
cmp dword [0x4a85f8], 0x37
jne 0x409e35
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0x402a58
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
lea ecx, [esp + 0x23c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x63c]
push ecx
push 0x402a7c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x4a85fc]
mov ecx, dword [0x4a7cdc]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xe3c
ret

Function at 0x409ec0
Capabilities:
Decrypt data using tea

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov ecx, dword [0x42bc40]
push ebx
push ebp
mov ebp, dword [0x42bc3c]
push esi
mov esi, dword [eax]
mov eax, dword [0x42bc38]
mov dword [esp + 0x1c], eax
mov eax, dword [0x42bc44]
push edi
mov edi, 0xc6ef3720
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ebx, 0x20
lea esp, [esp]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x18]
mov eax, esi
shr eax, 5
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
lea ecx, [edi + esi]
push ecx
lea ecx, [esp + 0x14]
mov dword [0x4a7ce0], 0xffcf03fc
call fcn.00409e60
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x10]
mov dword [0x4a7ce0], 0
sub edx, eax
mov dword [esp + 0x14], eax
mov eax, edx
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
mov eax, edx
shr eax, 5
add eax, ebp
lea ecx, [edi + edx]
xor ecx, eax
mov eax, dword [esp + 0x10]
xor eax, ecx
sub esi, eax
add edi, 0x61c88647
dec ebx
mov dword [0x4a7ce8], 0xff6b3619
mov dword [0x4a7cec], 0xffffffff
jne 0x409f00
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x14
ret 4