joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4753d9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0xc5a094]
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 0x475424
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004756c9
test al, al
jne 0x47541e
sub edx, 2
cmp edx, edi
jne 0x475404
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x475446
lea eax, [edi + 2]
cmp edx, eax
je 0x475446
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00475325
add esp, 0x10
jmp 0x47553e
push esi
lea ecx, [ebp - 0x255]
call fcn.004756c9
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x475487
push dword [ebp - 0x25c]
jmp 0x475436
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 0x4754c4
cmp word [ebp - 0x226], 0
je 0x4754e5
cmp word [ebp - 0x226], ax
jne 0x4754c4
cmp word [ebp - 0x224], 0
je 0x4754e5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00475325
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x475531
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47549e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x475519
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47553e
push 0x475707
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00480090
add esp, 0x10
jmp 0x47550e
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.004099e9
leave
ret
Function at 0x476b3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x476bd8
push ebx
push esi
call fcn.00476c3e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046ac53
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x476b85
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476bd7
push edi
push eax
call fcn.0046ab40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x476ba5
call fcn.0046aaf0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476bd6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046ac53
add esp, 0x20
test eax, eax
jne 0x476bc4
push edi
call fcn.0046aaf0
jmp 0x476bcc
push ebx
call fcn.0046aaf0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x476bdb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x476bec
pop esi
ret
push ebx
push edi
push esi
call fcn.00476c3e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046ab40
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x476c14
push ebx
push esi
push edi
call fcn.00431ae0
add esp, 0xc
push 0
call fcn.0046aaf0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x476cda
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476f67

Function at 0x4775ed
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477676
Function at 0x47f1ef
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x47f209
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x47f220
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x47f278
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00477798
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x47f278
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x47f278
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x47f278
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x47f272
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x47f274
xor bl, bl
mov al, bl
jmp 0x47f27a
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x482f28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xc5cba0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x482f6a
cmp byte [ebx], 0xa
jne 0x482f6a
or byte [edi + eax + 0x28], 4
jmp 0x482f6f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x483072
mov cl, byte [eax]
cmp cl, 0x1a
je 0x48304d
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x482f9e
mov eax, dword [ebp - 8]
jmp 0x482fbe
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x482fda
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x482fb8
add eax, 2
mov cl, 0xa
jmp 0x482fbb
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x482f80
jmp 0x483072
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x483048
cmp dword [ebp - 0x10], 0
je 0x483048
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0xc5cba0]
test byte [eax + edi + 0x28], 0x48
je 0x483027
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x483017
mov byte [esi], 0xa
jmp 0x483071
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0xc5cba0]
mov byte [eax + edi + 0x2a], cl
jmp 0x483071
cmp byte [ebp - 1], 0xa
jne 0x483031
cmp esi, ebx
je 0x483012
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048228b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x483072
mov byte [esi], 0xd
jmp 0x483071
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0xc5cba0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x48306f
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x483072
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48307b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0xc5cba0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4830bf
push 0xa
pop esi
cmp word [ebx], si
jne 0x4830bf
or byte [eax + edi + 0x28], 4
jmp 0x4830c4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x48322f
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x483207
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x483111
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x48313b
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x48315a
push 0xa
pop ebx
cmp word [edx], bx
jne 0x483128
push ebx
add eax, 4
pop edx
jmp 0x483130
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4830d6
jmp 0x48322f
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 0x483202
cmp dword [ebp - 0x14], 0
je 0x483202
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0xc5cba0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4831de
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4831a6
mov word [esi], ax
jmp 0x48322c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0xc5cba0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xc5cba0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xc5cba0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x48322c
cmp word [ebp - 4], ax
jne 0x4831e8
cmp esi, ebx
je 0x48319e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048228b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48322f
push 0xd
pop eax
jmp 0x48319e
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0xc5cba0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x483229
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x48322f
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4021b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040483b
xor ebx, ebx
cmp dword [0x40eef4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jmp loc.004177a1

Function at 0x402e94
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, dword [ecx*8 + 0x40d880]
je 0x402eb5
inc ecx
cmp ecx, 0x2d
jl 0x402e9a
jmp loc.00419a30
mov eax, dword [ecx*8 + 0x40d884]
ret

Function at 0x4031b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e038]
jne 0x4031c1
repz ret
jmp fcn.00401818

Function at 0x404525
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push ebx
pushfd
pop eax
mov ecx, eax
xor eax, 0x200000
push eax
popfd
pushfd
pop edx
sub edx, ecx
je 0x404568
push ecx
popfd
xor eax, eax
cpuid
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
pop ebx
test dword [ebp - 4], 0x4000000
je 0x404580
jmp 0x4192e9
xor eax, eax
pop ebx
leave
ret

Function at 0x404cb7
Capabilities:
Packed with generic packer

Disassembly:
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je fcn.00404cdc
push str.CorExitProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je fcn.00404cdc
jmp loc.00418236

Function at 0x405bb2
Capabilities:
Packed with generic packer

Disassembly:
push 0xc
push 0x40bff8
call fcn.0040833c
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
xor ebx, ebx
cmp dword [0x40ed6c], ebx
jne 0x405be6
jmp loc.00416026
mov esi, dword [ebp + 8]
lea esi, [esi*8 + 0x40d760]
cmp dword [esi], ebx
je 0x405bf8
mov eax, edi
jmp 0x405c66
push 0x18
call fcn.00406ee5
pop ecx
mov edi, eax
cmp edi, ebx
jne 0x405c15
call fcn.00404512
mov dword [eax], 0xc
xor eax, eax
jmp 0x405c66
push 0xa
call fcn.00402b57
pop ecx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jne 0x405c50
push 0xfa0
push edi
call fcn.00404acc
pop ecx
pop ecx
test eax, eax
jne 0x405c4c
push edi
call fcn.0040200d
pop ecx
call fcn.00404512
mov dword [eax], 0xc
mov dword [ebp - 0x1c], ebx
jmp 0x405c57
mov dword [esi], edi
jmp 0x405c57
push edi
call fcn.0040200d
pop ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.00405c6c
mov eax, dword [ebp - 0x1c]
call fcn.00408381
ret

Function at 0x40644a
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00407bf6
push dword [ebp + 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040911c
add esp, 0x1c
cmp byte [ebp - 4], 0
je fcn.00406488
jmp loc.00416e15
Function at 0x40648a
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00407bf6
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc8]
movzx eax, word [ecx + eax*2]
and eax, 0x8000
cmp byte [ebp - 4], 0
je fcn.004064be
jmp loc.0041857f

Function at 0x406672
Capabilities:
Packed with generic packer

Disassembly:
push 0
push 0
push dword [esp + 0xc]
jmp loc.00419e96

Function at 0x406683
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax*8 + 0x40d760]
jmp loc.00417213

Function at 0x4067e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x40eec0]
jmp loc.00419f1d

Function at 0x406ac9
Capabilities:
Packed with generic packer

Disassembly:
push dword [0x40eef0]
call fcn.00401faa
test eax, eax
pop ecx
je 0x406ae8
jmp loc.004199f1
xor eax, eax
ret

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

Disassembly:
push dword [0x40d754]
jmp loc.00417dea

Function at 0x406f73
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x40ed58]
push ebx
push ebp
push esi
push edi
jmp loc.00417d9b

Function at 0x40712d
Capabilities:
Packed with generic packer

Disassembly:
push esi
call fcn.0040483b
mov esi, eax
push esi
call fcn.0040191c
push esi
jmp loc.00419e48

Function at 0x40859b
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, 0x101
mov esi, eax
push ebp
xor edi, edi
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00408d00
jmp loc.004161b7

Function at 0x418627
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
salc
add dh, dl
salc
pop edi
push ebx
dec edi
pop edi
dec edi
dec ecx
and al, 0
add al, 0
popal
popfd
jmp loc.004080b0
Function at 0x40785b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
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.00406549
and dword [ebp - 0x14], 0
cmp dword [0x4374d8], 0
mov dword [ebp - 0x18], eax
jne 0x40790e
push 0x401e7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4079b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401e70
push ebx
call edi
test eax, eax
je 0x4079b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401e60
push ebx
mov dword [0x4374d8], eax
call edi
push eax
call esi
push 0x401e4c
push ebx
mov dword [0x4374dc], eax
call edi
push eax
call esi
push 0x401e30
push ebx
mov dword [0x4374e0], eax
call edi
push eax
call esi
mov dword [0x4374e8], eax
test eax, eax
je 0x40790e
push 0x401e18
push ebx
call edi
push eax
call esi
mov dword [0x4374e4], eax
mov eax, dword [0x4374e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407967
cmp dword [0x4374e8], ecx
je 0x407967
push eax
call esi
push dword [0x4374e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407967
test ebx, ebx
je 0x407967
call edi
test eax, eax
je 0x40795e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40795e
test byte [ebp - 8], 1
jne 0x407967
or dword [ebp + 0x10], 0x200000
jmp 0x40799a
mov eax, dword [0x4374dc]
cmp eax, dword [ebp - 0x18]
je 0x40799a
push eax
call esi
test eax, eax
je 0x40799a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40799a
mov eax, dword [0x4374e0]
cmp eax, dword [ebp - 0x18]
je 0x40799a
push eax
call esi
test eax, eax
je 0x40799a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4374d8]
call esi
test eax, eax
je 0x4079b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4079b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407bd5
leave
ret

Function at 0x407bd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407bdf
repz ret
jmp fcn.0040bc1c
Function at 0x4149d0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Get uefi variable
Read pipe
Write pipe

Disassembly:
mov eax, 0x1004
call fcn.0040eec0
cmp dword [0x2b6105c], 0x37
jne 0x414a9c
push 0x4035a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40356c
push 0x403594
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0x403628
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
lea eax, [esp + 0x408]
push eax
push 0x403644
push 0x403660
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea ecx, [esp + 0xc08]
push ecx
push 0x40367c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b61470]
mov ecx, dword [0x2b60b40]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x1004
ret
Function at 0x415120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x2b6105c]
sub esp, 0x884
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x4151a6
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403974
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x403988
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x436ba8]
mov dword [0x2b6105c], eax
jne 0x415145
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x436b9c]
mov dword [0x2b61470], edx
call fcn.00414d30
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x402693
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + esi]
xor byte [edi + eax], cl
inc eax
cmp eax, edx
jb 0x402683
pop edi
pop esi
pop ebp
ret

Function at 0x4026a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x40aec0]
je 0x402700
mov edx, 1
mov dword [0x40aec0], eax
push ebx
mov dword [0x40a500], eax
mov ebx, edx
mov edi, 4
lea esi, [edx + 7]
nop word [eax + eax]
mov eax, dword [edi + 0x40a4fc]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
lea edx, [ebx + 1]
mov dword [edi + 0x40a500], eax
mov ebx, edx
mov edi, esi
add esi, 4
cmp edx, 0x270
jl 0x4026d0
pop ebx
jmp 0x402710
mov eax, dword [0x40aec4]
cmp eax, 0x270
jl 0x4027d8
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [eax*4 + 0x40a500]
mov edx, dword [eax*4 + 0x40a504]
xor edx, ecx
and edx, 0x7fffffff
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
mov ecx, dword [ecx*4 + 0x401134]
xor ecx, dword [eax*4 + 0x40ab34]
xor ecx, edx
mov dword [eax*4 + 0x40a500], ecx
inc eax
cmp eax, 0xe3
jl 0x402720
mov edi, dword [eax*4 + 0x40a500]
lea esi, [eax*4 + 0x40a500]
nop dword [eax]
mov eax, edi
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x401134]
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x40aebc
jl 0x402770
mov ecx, dword [0x40aebc]
mov eax, dword [0x40a500]
and ecx, 0x80000000
and eax, 0x7fffffff
or ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x401134]
xor ecx, dword [0x40ab30]
xor eax, eax
mov dword [0x40aebc], ecx
mov ecx, dword [eax*4 + 0x40a500]
inc eax
mov dword [0x40aec4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
pop edi
xor eax, ecx
pop esi
ret