joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [ecx + 8]
test eax, eax
je 0x1003d097
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call fcn.10023620
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1003d0bc
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
push eax
call fcn.10023620
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1003d0e1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
push eax
call fcn.10023620
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1003d122
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
push eax
call fcn.10023620
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1003d147
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
push eax
call fcn.10023620
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1003d16c
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
push eax
call fcn.10023620
add esp, 4
mov dword [esi + 0x5c], 0
add esi, 0x78
mov ecx, esi
pop esi
jmp fcn.1003d180
Function at 0x10075f30
Capabilities:
Hash data using fnv
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x10075f77
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, 0x1000
jb 0x10075f58
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10075f9a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100f1e8b
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov esi, dword [esi + 8]
test esi, esi
je 0x10075f98
lock dec dword [esi + 4]
jne 0x10075f98
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x10075f98
mov eax, dword [esi]
mov ecx, esi
pop esi
jmp dword [eax + 4]
pop esi
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
Function at 0x1008dd50
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
sub esp, 0x1c
mov eax, dword [0x1012d370]
cmp dword [eax + 0x4d30], 0
mov edx, dword [0x1012d364]
jne 0x1008dd73
mov esi, dword [ecx + 0x4c]
cmp esi, dword [edx + 0x1c]
je 0x1008dd73
inc dword [ecx + 0x54]
mov edx, dword [edx + 0x1c]
mov dword [ecx + 0x4c], edx
mov edx, dword [0x1012d334]
mov edx, dword [edx + 0x1804]
mov esi, dword [eax + 0x4d2c]
cmp edx, esi
jle 0x1008dd9c
mov eax, dword [eax + 0x4d30]
add eax, esi
inc eax
cmp edx, eax
jle 0x1008ddc3
cmp byte [ecx + 0x17], 0
je case.default.0x1008ddcc
mov eax, dword [ecx + 0x50]
test eax, eax
jne 0x1008dddc
cmp byte [ecx + 0x15], 0
je 0x1008dde1
mov ecx, dword [ecx + 0x54]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
and eax, 0xfffffffe
sub eax, ecx
add eax, 2
jmp 0x1008dddc
mov eax, dword [ecx + 0x2c]
dec eax
cmp eax, 3
ja case.default.0x1008ddcc
jmp dword [eax*4 + 0x100fe18c]
mov eax, 2
jmp 0x1008dddc
xor eax, eax
add esp, 0x1c
pop esi
ret
mov eax, dword [ecx + 0x30]
test eax, eax
je case.0x1008ddcc.2
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
cmp ax, 1
mov eax, 2
sbb eax, 0
jmp 0x1008dddc
mov eax, 1
jmp 0x1008dddc
mov ecx, 0x1b4e81b5
mov eax, esi
imul ecx
mov eax, edx
shr eax, 0x1f
sar edx, 4
add edx, eax
imul eax, edx, 0x96
sub esi, eax
cmp esi, 0x96
jae 0x1008ded9
mov eax, dword [0x1012d338]
imul ecx, esi, 0x858
vmovss xmm0, dword [eax + ecx + 0x14b4]
vmovss dword [esp + 0xc], xmm0
vmovss xmm0, dword [eax + ecx + 0x14bc]
vmovss dword [esp], xmm0
mov dword [esp + 4], 0x43b40000
mov esi, dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
call esi
fstp dword [esp + 0x18]
vmovss xmm0, dword [esp + 0x18]
vmovss dword [esp + 8], xmm0
vmovss xmm0, dword [esp + 0xc]
vmovss dword [esp], xmm0
mov dword [esp + 4], 0x43b40000
call esi
fstp dword [esp + 0x14]
vmovss xmm0, dword [esp + 8]
vsubss xmm0, xmm0, dword [esp + 0x14]
vmovss dword [esp], xmm0
mov dword [esp + 4], 0x43b40000
call esi
fstp dword [esp + 0x10]
vxorps xmm0, xmm0, xmm0
vucomiss xmm0, dword [esp + 0x10]
mov eax, 1
sbb eax, 0xffffffff
jmp 0x1008dddc
xor eax, eax
cmp dword [ecx + 0x58], 2
setne al
inc eax
mov dword [ecx + 0x58], eax
jmp 0x1008dddc
call fcn.1007cfb0
int3
Function at 0x1008e590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x1012d240]
xor eax, esp
mov dword [esp + 0x2c], eax
mov dword [ecx + 0x50], 0
mov eax, dword [0x1012d370]
cmp dword [eax + 0x4d30], 0
jne 0x1008e5bc
xor byte [esi + 0x48], 1
cmp dword [esi + 0x44], 0
je 0x1008e7af
mov edi, dword [esp + 0x40]
mov ecx, dword [0x1012d368]
mov dword [esp + 0x28], 0
vxorps xmm0, xmm0, xmm0
vmovlps qword [esp + 0x20], xmm0
mov eax, dword [ecx]
lea edx, [esp + 0x20]
mov dword [esp], edx
call dword [eax + 0x48]
sub esp, 4
vmovss xmm0, dword [esp + 0x24]
vmovss dword [edi], xmm0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1008e620
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
test ax, ax
je 0x1008e620
vmovss xmm0, dword [0x100fe0bc]
jmp 0x1008e7a7
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1008e645
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
test ax, ax
je 0x1008e645
vmovss xmm0, dword [0x100fe0e8]
jmp 0x1008e7a7
mov ebx, dword [esp + 0x44]
mov dword [esp], edi
mov ecx, esi
call fcn.1008aa20
sub esp, 4
mov dword [esp], edi
mov ecx, esi
call fcn.1008c730
sub esp, 4
test al, al
jne case.default.0x1008e678
mov eax, dword [esi + 0x44]
dec eax
cmp eax, 5
ja case.default.0x1008e678
jmp dword [eax*4 + 0x100fe19c]
vmovss xmm0, dword [edi]
vaddss xmm0, xmm0, dword [0x100fe0c0]
jmp 0x1008e77d
mov eax, dword [0x1012d364]
vmovss xmm0, dword [0x100fcf9c]
vmulss xmm0, xmm0, dword [eax + 0x10]
vcvtss2sd xmm0, xmm0, xmm0
vmovsd qword [esp], xmm0
mov dword [esp + 0xc], 0x405e0000
mov dword [esp + 8], 0
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
fstp dword [esp + 0x10]
vmovss xmm0, dword [0x100fcf9c]
vaddss xmm0, xmm0, dword [esp + 0x10]
vaddss xmm0, xmm0, dword [edi]
jmp 0x1008e77d
mov eax, dword [0x1012d364]
vmovss xmm0, dword [eax + 0x10]
vmulss xmm0, xmm0, dword [0x100fe0c0]
vcvtss2sd xmm0, xmm0, xmm0
vmovsd qword [esp], xmm0
mov dword [esp + 0xc], 0x40768000
mov dword [esp + 8], 0
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
fstp dword [esp + 0x14]
vmovss xmm0, dword [esp + 0x14]
jmp 0x1008e77d
mov eax, dword [0x1012d364]
vmovss xmm0, dword [eax + 0x10]
vmulss xmm0, xmm0, dword [0x100fe178]
vcvtss2sd xmm0, xmm0, xmm0
vmovsd qword [esp], xmm0
mov dword [esp + 0xc], 0x40768000
mov dword [esp + 8], 0
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
fstp dword [esp + 0x18]
vmovss xmm0, dword [esp + 0x18]
jmp 0x1008e77d
mov eax, dword [0x1012d320]
mov dword [esp + 4], 0x43340000
mov dword [esp], 0xc3340000
call dword [eax]
fstp dword [esp + 0x1c]
vmovss xmm0, dword [esp + 0x1c]
jmp 0x1008e77d
vmovss xmm0, dword [0x100fe174]
vmovss dword [edi], xmm0
xor eax, eax
cmp ebx, 2
sete al
vmovss xmm1, dword [esi + 0x1c]
xor ecx, ecx
cmp byte [esi + 0x48], 0
sete cl
vmovss xmm0, dword [ecx*4 + 0x100fd750]
vfmadd213ss xmm0, xmm1, dword [esi + eax*8 + 0x18]
vaddss xmm0, xmm0, dword [edi]
vmovss dword [edi], xmm0
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100f1e99
add esp, 0x30
pop esi
pop edi
pop ebx
ret 8
Function at 0x100da800
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x20]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
movzx edx, byte [ebx + 1]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [ebx + 2]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [ebx + 3]
xor edx, eax
imul esi, edx, 0x1000193
and esi, dword [ecx + 0x18]
mov edx, dword [ecx + 4]
mov dword [esp], ecx
mov ecx, dword [ecx + 0xc]
lea edi, [esi + esi]
mov ebp, dword [ecx + edi*4 + 4]
xor eax, eax
mov dword [esp + 8], edx
cmp ebp, edx
je 0x100da921
lea edx, [esi*2 + 1]
mov dword [esp + 4], edi
mov esi, dword [ecx + edi*4]
mov edi, dword [ebx]
cmp edi, dword [ebp + 8]
jne 0x100da87f
cmp esi, ebp
je 0x100da8be
mov eax, dword [ebp + 4]
mov dword [ecx + edx*4], eax
jmp 0x100da8ce
mov ebx, ebp
nop word cs:[eax + eax]
cmp ebx, esi
je 0x100da921
mov ebx, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jne 0x100da890
cmp ebp, ebx
je 0x100da8ba
mov ebp, ebx
cmp esi, ebx
mov edx, dword [esp]
jne 0x100da8d1
mov eax, dword [esi]
mov edi, dword [esp + 4]
mov dword [ecx + edi*4], eax
mov ebp, esi
jmp 0x100da8d1
cmp esi, ebx
jne 0x100da877
mov eax, dword [esp + 4]
mov esi, edx
mov edx, dword [esp + 8]
mov dword [ecx + eax*4], edx
mov dword [ecx + esi*4], edx
mov edx, dword [esp]
mov eax, dword [ebp]
dec dword [edx + 8]
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x100da911
mov eax, dword [ebp + 0x5c]
sub eax, ecx
cmp eax, 0x1000
jb 0x100da907
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x100da92b
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100f1e8b
add esp, 8
push 0x60
push ebp
call fcn.100f1e8b
add esp, 8
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x100daa00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x100db010
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
vmovss xmm0, dword [ecx]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
movzx ecx, word [ecx]
mov esi, dword [ebp + 0x24]
mov edi, dword [esi]
mov esi, dword [ebp + 0x1c]
mov byte [ebx + 4], 0
mov dword [ebx + 8], edi
vxorps xmm1, xmm1, xmm1
vmovups ymmword [ebx + 0xc], ymm1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], 0
mov word [ebx + 0x34], cx
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], ebx
vmovups ymmword [ebx + 0x38], ymm1
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], eax
vmovss dword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], esi
vzeroupper
call fcn.100c8520
sub esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
Function at 0x100f286d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100f2894
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100f2897
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100f2849
pop esi
leave
ret 8
Function at 0x4eb990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
jmp 0x4eb9aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4eb9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb9a0
mov eax, 1
add ebx, ebx
jne 0x4eb9c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4eb9d4
jne 0x4eb9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb9f3
dec eax
add ebx, ebx
jne 0x4eb9e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4eb9b8
add ebx, ebx
jne 0x4eb9ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4eba45
xor ecx, ecx
sub eax, 3
jb 0x4eba0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4eba7a
sar eax, 1
mov ebp, eax
jmp 0x4eba16
add ebx, ebx
jne 0x4eba16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb9e4
inc ecx
add ebx, ebx
jne 0x4eba24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb9e4
add ebx, ebx
jne 0x4eba31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4eba26
jne 0x4eba42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4eba26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4eba64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4eba56
jmp 0x4eb9a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4eba64
add edi, ecx
jmp 0x4eb9a6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4eba82
cmp byte [edi], 0x11
jne 0x4eba82
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 0x4eba87
lea edi, [esi + 0xe4000]
mov eax, dword [edi]
or eax, eax
je 0x4ebaff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfe43c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfe5b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ebab4
mov ecx, edi
jns 0x4ebae3
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 + 0xfe5bc]
or eax, eax
je 0x4ebaf9
mov dword [ebx], eax
add ebx, 4
jmp 0x4ebad1
call dword [esi + 0xfe5cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ebb30
cmp al, 0xef
ja 0x4ebb23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ebb05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ebb12
mov ebp, dword [esi + 0xfe5c0]
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 0x4ebb64
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x404520
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41245b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4034d4
call fcn.00404702
push 4
mov dword [esp + 0x18], 0
call fcn.00405659
mov edi, eax
add esp, 4
test edi, edi
je 0x404594
push ebx
call fcn.004049c0
mov dword [edi], eax
call fcn.004047d0
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004046c3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404588
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004046eb
pop ebx
jmp 0x404596
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x405c5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428a40]
jne 0x405c67
repz ret
jmp fcn.0040a5ac
Function at 0x40c2bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428a40]
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.00407a7d
and dword [ebp - 0x14], 0
cmp dword [0x821914], 0
mov dword [ebp - 0x18], eax
jne 0x40c36f
push 0x402b68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c417
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b5c
push ebx
call edi
test eax, eax
je 0x40c417
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402b4c
push ebx
mov dword [0x821914], eax
call edi
push eax
call esi
push 0x402b38
push ebx
mov dword [0x821918], eax
call edi
push eax
call esi
push 0x402b1c
push ebx
mov dword [0x82191c], eax
call edi
push eax
call esi
mov dword [0x821924], eax
test eax, eax
je 0x40c36f
push 0x402b04
push ebx
call edi
push eax
call esi
mov dword [0x821920], eax
mov eax, dword [0x821920]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c3c8
cmp dword [0x821924], ecx
je 0x40c3c8
push eax
call esi
push dword [0x821924]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c3c8
test ebx, ebx
je 0x40c3c8
call edi
test eax, eax
je 0x40c3bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c3bf
test byte [ebp - 8], 1
jne 0x40c3c8
or dword [ebp + 0x10], 0x200000
jmp 0x40c3fb
mov eax, dword [0x821918]
cmp eax, dword [ebp - 0x18]
je 0x40c3fb
push eax
call esi
test eax, eax
je 0x40c3fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c3fb
mov eax, dword [0x82191c]
cmp eax, dword [ebp - 0x18]
je 0x40c3fb
push eax
call esi
test eax, eax
je 0x40c3fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x821914]
call esi
test eax, eax
je 0x40c417
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c419
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c5d
leave
ret
Function at 0x40d8d0
Capabilities:
Delete directory
Delete file
Get common file path
Read .ini file

Disassembly:
mov eax, 0x215c
call fcn.0040d010
cmp dword [0x2f296fc], 0x37
jne 0x40d9db
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x4032d4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x155c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll__lread]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [esp + 0x558]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0
lea eax, [esp + 0x15c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
push 0
lea ecx, [esp + 0xd5c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0x195c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x2f29700]
mov dword [esp], eax
mov eax, 0x39ee
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x2f1f6a4]
mov byte [eax + esi], dl
add esp, 0x215c
ret
Function at 0x40da70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x81c
mov eax, dword [esp + 0x820]
mov ecx, dword [eax]
mov edx, dword [0x82061c]
push ebx
mov ebx, dword [0x820620]
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x820618]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [0x820624]
mov edi, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov ebp, 0x20
jmp 0x40dac8
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov edx, ecx
shl edx, 4
cmp dword [0x2f296fc], 5
mov dword [esp + 0x10], edx
jne 0x40dafa
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x4032b8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 5
add eax, dword [esp + 0x28]
add edx, ebx
xor eax, edx
lea edx, [edi + ecx]
xor eax, edx
sub esi, eax
mov dword [esp + 0x18], eax
mov eax, esi
shl eax, 4
mov dword [0x2f1f6a8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
add edi, esi
cmp dword [0x2f296fc], 0x1be
jne 0x40db49
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, esi
shr ecx, 5
mov dword [0x2f1f6b0], 0xff6b3619
mov dword [0x2f1f6b4], 0xffffffff
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
xor edx, edi
xor dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
call fcn.0040da00
dec ebp
jne 0x40dac0
cmp dword [0x2f296fc], 0x8d4
jne 0x40dbca
push 0x4032c8
push ebp
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, dword [esp + 0x830]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x81c
ret 4
mov eax, dword [esp + 0x830]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x81c
ret 4