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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5340e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x51b5cf
cmp byte [ebx], 0xa
jne 0x51b5cf
or byte [edi + eax + 0x28], 4
jmp 0x51b5d4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x51b6d3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x51b6b6
inc eax
cmp dl, 0xd
je 0x51b600
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x51b626
cmp eax, ecx
jae 0x51b634
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x51b5e8
jmp 0x51b6d3
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 0x51b6b1
cmp dword [ebp - 0x10], 0
je 0x51b6b1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5340e0]
test byte [eax + edi + 0x28], 0x48
je 0x51b68b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x51b676
mov byte [esi], dl
jmp 0x51b687
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5340e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x51b6d3
cmp byte [ebp - 1], 0xa
jne 0x51b69a
cmp esi, ebx
jne 0x51b69a
mov byte [esi], 0xa
jmp 0x51b6d2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00518942
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x51b6d3
mov byte [esi], 0xd
jmp 0x51b6d2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5340e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x51b6d0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x51b6d3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x51b6dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5340e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x51b722
cmp word [ebx], dx
jne 0x51b722
or byte [eax + edi + 0x28], 4
jmp 0x51b727
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x51b88a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x51b86a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x51b768
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x51b79e
cmp eax, edx
jae 0x51b7ac
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x51b743
jmp 0x51b88a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51b865
cmp dword [ebp - 0x18], 0
je 0x51b865
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5340e0]
test byte [eax + edi + 0x28], 0x48
je 0x51b83b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x51b7ff
mov word [esi], cx
jmp 0x51b836
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5340e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5340e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5340e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x51b88a
pop eax
cmp word [ebp - 4], ax
jne 0x51b84b
cmp esi, ebx
jne 0x51b84b
mov word [esi], ax
jmp 0x51b887
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00518942
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x51b88a
push 0xd
pop eax
jmp 0x51b846
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5340e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x51b884
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x51b88a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x521f48
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005220df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5220b7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5220b7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x52206c
jg 0x521fa4
test eax, eax
je 0x522062
push 1
push 0x1000
call fcn.005132d4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x521fc7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x522059
push 0x8000
push ebx
call fcn.0050cb7b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x521ff0
jg 0x521feb
cmp ecx, 0x1000
jb 0x521ff0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005198d6
add esp, 0x10
cmp eax, 0xffffffff
je 0x522035
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x521feb
jl 0x52201c
test ecx, ecx
jne 0x521fdd
push dword [ebp - 0xc]
push ebx
call fcn.0050cb7b
push esi
call fcn.00511f8f
add esp, 0xc
xor ebx, ebx
jmp 0x5220c5
cmp byte [edi + 0x24], 0
je 0x52204c
cmp dword [edi + 0x20], 5
jne 0x52204c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x522057
mov ebx, dword [edi + 0x18]
jmp 0x522059
xor ebx, ebx
push esi
call fcn.00511f8f
pop ecx
jmp 0x5220c5
test ecx, ecx
jg 0x52202e
jl 0x52206c
test eax, eax
jae 0x52202e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00518942
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x52208c
cmp byte [edi + 0x1c], 0
je 0x52202e
jmp 0x5220bd
push ebx
call fcn.00518fc7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x52202e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5220c5
cmp byte [edi + 0x1c], 0
je 0x5220c2
mov ebx, dword [edi + 0x18]
jmp 0x5220c5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00518942
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40743a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444248]
jne 0x407444
repz ret
jmp fcn.0040cbc8

Function at 0x40d6bf
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.00409bd5
and dword [ebp - 4], 0
cmp dword [0x447918], 0
mov ebx, eax
jne 0x40d770
push 0x4024dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d821
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024d0
push edi
call esi
test eax, eax
je 0x40d821
push eax
call fcn.00409b63
mov dword [esp], 0x4024c0
push edi
mov dword [0x447918], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x4024ac
push edi
mov dword [0x44791c], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x402490
push edi
mov dword [0x447920], eax
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x447928], eax
test eax, eax
je 0x40d770
push 0x402478
push edi
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x447924], eax
mov eax, dword [0x447924]
cmp eax, ebx
je 0x40d7c8
cmp dword [0x447928], ebx
je 0x40d7c8
push eax
call fcn.00409bde
push dword [0x447928]
mov esi, eax
call fcn.00409bde
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7c8
test edi, edi
je 0x40d7c8
call esi
test eax, eax
je 0x40d7bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7bf
test byte [ebp - 0xc], 1
jne 0x40d7c8
or dword [ebp + 0x10], 0x200000
jmp 0x40d801
mov eax, dword [0x44791c]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d801
mov eax, dword [0x447920]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447918]
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d821
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d823
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x2ed3327
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x24827a68
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x420303
Capabilities:
Check for trap flag exception

Disassembly:
push ebp
mov ebp, esp
nop
mov esi, edx
inc ebx
nop
push 0
pop dword [0x42311c]
nop
dec edi
nop
mov edx, esi
push 0
pop dword [0x4233ec]
nop
inc edi
dec esi
dec edi
nop
push 0
pop dword [0x4233f0]
inc ecx
dec esi
dec edx
push 0
pop dword [0x4233f4]
inc esi
dec edx
push 1
pop dword [0x423118]
inc ecx
nop
inc ebx
pushfd
dec ecx
inc ebx
inc esi
nop
pop edi
mov eax, ebx
dec ecx
or edi, 0x100
mov eax, edx
inc ebx
push edi
inc esi
inc ecx
inc edx
inc esi
popfd
call dword [ebp + 8]
mov dword [0x423118], 0
nop
dec edx
dec esi
inc edx
nop
nop
nop
nop
nop
push dword [0x4233ec]
pop eax
inc ebx
dec esi
nop
dec ecx
nop
mov ecx, dword [0x4233f4]
leave
ret 4
Function at 0xc08910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc73a6d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0xc8d028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00c08b50
mov eax, dword [ebp + 8]
push eax
call fcn.00c08900
add esp, 4
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00c08c60
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00c08ce0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00c08bb0
mov dword [ebp - 0x24], 0xc08120
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00c08ba0
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
call fcn.00c34349
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0xc089bc
lea ecx, [ebp - 0x14]
call fcn.00c08b70
jmp 0xc089cd
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
push 6
call fcn.00c0928a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00c08bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00c25ade
mov esp, ebp
pop ebp
ret 4

Function at 0xc26533
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0xc770d4]
test eax, eax
je 0xc26572
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xc26572
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc26572
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xc26572
cmp dword [ecx + 0x74], 0xe
jbe 0xc26572
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xc5f8ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00c5f4e6

Function at 0xc732c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xc732ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc732ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4092db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d410]
jne 0x4092e5
repz ret
jmp fcn.0040fac4

Function at 0x40c0ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d410]
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.00406a29
and dword [ebp - 0x14], 0
cmp dword [0x44c3dc], 0
mov dword [ebp - 0x18], eax
jne 0x40c19f
push 0x402398
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c247
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40238c
push ebx
call edi
test eax, eax
je 0x40c247
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40237c
push ebx
mov dword [0x44c3dc], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x44c3e0], eax
call edi
push eax
call esi
push 0x40234c
push ebx
mov dword [0x44c3e4], eax
call edi
push eax
call esi
mov dword [0x44c3ec], eax
test eax, eax
je 0x40c19f
push 0x402334
push ebx
call edi
push eax
call esi
mov dword [0x44c3e8], eax
mov eax, dword [0x44c3e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c1f8
cmp dword [0x44c3ec], ecx
je 0x40c1f8
push eax
call esi
push dword [0x44c3ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c1f8
test ebx, ebx
je 0x40c1f8
call edi
test eax, eax
je 0x40c1ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c1ef
test byte [ebp - 8], 1
jne 0x40c1f8
or dword [ebp + 0x10], 0x200000
jmp 0x40c22b
mov eax, dword [0x44c3e0]
cmp eax, dword [ebp - 0x18]
je 0x40c22b
push eax
call esi
test eax, eax
je 0x40c22b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c22b
mov eax, dword [0x44c3e4]
cmp eax, dword [ebp - 0x18]
je 0x40c22b
push eax
call esi
test eax, eax
je 0x40c22b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c3dc]
call esi
test eax, eax
je 0x40c247
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c249
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092db
leave
ret

Function at 0x41b1a0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x800
cmp dword [0x2b75f44], 0x37
jne 0x41b210
push 0x4035c8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4035f8
push 0x403648
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 4]
push eax
push 0x40367c
push 0x4036a4
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esp + 0x404]
push ecx
push 0x4036c8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b76358]
mov ecx, dword [0x2b75a28]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x800
ret
Function at 0x1000c70f
Capabilities:
Create thread

Disassembly:
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000692d
xor eax, eax
jmp 0x100025b3
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
jmp 0x10006df2
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x1000a6d5
jmp 0x10007e60
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
jmp 0x100023f5
mov dword [edx + 8], eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
jmp 0x100061ef
push edx
jmp 0x10003a2e
push 0xc
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.1000b54c
jmp 0x10008485
add esp, 4
jmp 0x10001ef0
mov edx, dword [ebp - 8]
jmp 0x1000c0e0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100025a6
xor eax, eax
jmp 0x100025b3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10007151
mov ecx, dword [ebp - 8]
jmp 0x10004a31
sub esp, 0x10
jmp 0x1000938d
push 0xc
jmp 0x1000ba12
call fcn.10003874
jmp 0x10006b5d
mov eax, dword [ebp + 0x10]
jmp 0x10005dab
push ebp
mov ebp, esp
jmp 0x10009083
Function at 0x401178
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push 0x3ff
push 0x40b6a0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4011be
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0x40b6a0
call section..text
pop ecx
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40b6a0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0xac], eax
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0xac], 0xffffffff
je 0x40138d
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40baa8
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push dword [ebp - 0xc]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [0x40baa8]
push str._d__d__d__d
lea eax, [ebp - 0x8c]
push eax
call fcn.00403787
add esp, 0x18
cmp dword [ebp - 0xc], 0x221c
jne 0x401342
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x94]
mov dword [0x40500c], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x98]
mov dword [0x405008], eax
jmp 0x401356
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x4013ae
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
leave
ret