joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51efe6
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x51f11c
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x51f0f7
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x51f045
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x51f021
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x527257
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5272af
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x5272af
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x5272af
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x5272d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x527346
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52733d
cmp dword [ebp - 0xc], 4
jne 0x52733d
cmp dword [ebp - 0x10], edi
je 0x52733d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5fab68], edi
xor eax, eax
jmp 0x52736e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5fab68], edi
jge 0x527369
mov dword [0x5fab68], edi
call fcn.005272b3
test eax, eax
je 0x527369
emms
mov dword [0x5fab68], 1
mov eax, dword [0x5fab68]
pop edi
leave
ret

Function at 0x52744e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x527485
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x5274a7
cmp dword [ebp - 0x20], 4
ja 0x5274b1
jne 0x5274a1
cmp dword [ebp - 0x1c], 0xa
jb 0x5274a1
cmp word [ebp - 0x18], 0x55d
jae 0x5274b1
mov byte [ebp + 0x73], 1
jmp 0x5274b1
cmp dword [ebp - 0x14], 2
jne 0x5274c7
test bl, bl
je 0x5274e2
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x5274d2
dec eax
je 0x5274cb
sub eax, 3
jne 0x5274c7
cmp byte [ebp + 0x73], 0
je 0x5274f3
xor eax, eax
jmp 0x5274fb
call fcn.00527371
jmp 0x5274fb
cmp byte [ebp + 0x73], 0
jne 0x5274c7
call fcn.005273a9
and eax, 4
jmp 0x5274fb
cmp dword [ebp + 0x7c], 0xa
je 0x5274f3
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x5274fb
call fcn.005273a9
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x528e33
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x528e60
push esi
call fcn.0053144a
cmp byte [esi + 0x40], 0
pop ecx
je 0x528e59
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x528ecf
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x528ec4
mov eax, dword [esi + 8]
test eax, eax
je 0x528e81
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x528ec0
cmp eax, 2
je 0x528ec4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x528e76
cmp eax, 3
je 0x528ea5
cmp eax, 1
jne 0x528e76
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x528e76
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x528e76
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x528eed
cmp eax, 0xcc
je 0x528eed
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.00528b92
pop esi
ret

Function at 0x532eb6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x532ec4
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x532f98
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d1a18]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d1a18]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d1a18]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d1a18]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d1a18]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d1a18]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d1a18]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d1a18]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x532ee1
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x532fb8
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x5d1a18]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x532f9e
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x558e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b2c0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], 0x5d7dd4
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
call fcn.005573f0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x55cb46
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b2d9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x5d7de0
mov dword [esp + 8], esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 3
call fcn.00560520
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3743c], edi
mov dword [esi + 0x37438], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x55e920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b2e41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 0xc], esi
mov dword [esi], 0x5d7e98
call fcn.00572700
lea ebx, [esi + 0x3c]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.0055ddf0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea ebx, [esi + 0x48]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.0055ddf0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea ecx, [esi + 0xac]
mov byte [esp + 0x18], 2
call fcn.005721b0
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0xb8], edi
mov word [esi + 0x94], ax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
pop edi
mov dword [esi + 0x84], 0x3951b717
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x567320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x400
push esi
push edi
xor eax, eax
mov esi, ecx
xor dl, dl
mov byte [esp + 8], dl
mov ecx, 0x7f
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x208], dl
mov ecx, 0x7f
lea edi, [esp + 0x209]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x210]
push str._s_s
push eax
call fcn.0059000d
lea ecx, [esp + 0x218]
push ecx
call fcn.00436a80
mov edx, dword [ebp + 0xc]
add esp, 0x14
push edx
mov ecx, esi
call fcn.00566ea0
mov esi, eax
lea eax, [esp + 8]
push eax
call fcn.00436a80
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5753d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0xca
jne 0x575412
mov ecx, dword [ebp + 8]
push ecx
call fcn.0057b6b0
add esp, 4
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x40]
test eax, eax
je 0x575408
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xcf
mov al, 1
jmp 0x575528
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0xcb
jne 0x5754e8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18c]
movzx eax, byte [edx + 0x10]
test eax, eax
je 0x5754d7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x57544f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18c]
call dword [ecx]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x575471
xor al, al
jmp 0x575528
cmp dword [ebp - 4], 2
jne 0x575479
jmp 0x5754d7
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x5754d2
cmp dword [ebp - 4], 3
je 0x57548e
cmp dword [ebp - 4], 1
jne 0x5754d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 8]
jl 0x5754d2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x118]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [ecx + 8], eax
jmp 0x575437
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dword [edx + 0x84], ecx
jmp 0x57551c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0xcc
je 0x57551c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x12
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00575530
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x575530
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0xcc
je 0x575566
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x17c]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x17c]
movzx edx, byte [ecx + 8]
test edx, edx
je 0x57562b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x78]
cmp edx, dword [ecx + 0x60]
jae 0x5755f7
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x5755bf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
call dword [edx + 4]
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x5755f5
xor al, al
jmp 0x575646
jmp 0x57557b
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x17c]
call dword [ecx + 4]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x17c]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x575566
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x41]
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], ecx
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x590f03
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5da6e8
call fcn.00597368
push 8
call fcn.00597b03
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0xafb444], esi
jne 0x590f37
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0xafb440], esi
mov al, byte [ebp + 0x10]
mov byte [0xafb43c], al
cmp dword [ebp + 0xc], edi
jne 0x590f81
cmp dword [0xafccf0], edi
je 0x590f71
mov eax, dword [0xafccec]
sub eax, 4
mov dword [0xafccec], eax
cmp eax, dword [0xafccf0]
jb 0x590f71
mov eax, dword [eax]
cmp eax, edi
je 0x590f52
call eax
jmp 0x590f52
push 0x5f019c
mov eax, 0x5f0190
call fcn.00590e63
pop ecx
push 0x5f01a8
mov eax, 0x5f01a0
call fcn.00590e63
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x590fb2
cmp dword [ebp + 0x10], edi
jne 0x590fc0
mov dword [0xafb444], esi
push dword [ebp + 8]
call fcn.00590e21
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x590fbf
push 8
call fcn.00597a36
pop ecx
ret
call fcn.005973a3
ret
Function at 0x591ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x591edd
call fcn.0059a9a5
mov dword [eax], 0x16
xor eax, eax
jmp 0x591f47
push esi
push 0x8c
push 1
call fcn.00591c67
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x591f32
push esi
call fcn.00596405
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x591f10
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x591e2b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x591f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0059107d
test ebx, ebx
pop ecx
je 0x591f44
push ebx
call fcn.0059a9b7
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x592f63
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x592f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0059a9b7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x592fa6
test byte [esp + 8], 2
je 0x592fa6
call fcn.0059a9a5
mov dword [eax], 0xd
call fcn.0059a9ae
mov dword [eax], 5
jmp 0x592f7f
xor eax, eax
ret
Function at 0x593451
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5da830
call fcn.00597368
mov edi, 0x94
mov eax, edi
call fcn.00590180
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0xafb404], ecx
mov eax, dword [esi + 4]
mov dword [0xafb410], eax
mov edx, dword [esi + 8]
mov dword [0xafb414], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xafb408], esi
cmp ecx, 2
je 0x5934b1
or esi, 0x8000
mov dword [0xafb408], esi
shl eax, 8
add eax, edx
mov dword [0xafb40c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5934ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5934ec
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x593504
cmp eax, 0x20b
je 0x5934f1
mov dword [ebp - 0x1c], esi
jmp 0x593518
cmp dword [ecx + 0x84], 0xe
jbe 0x5934ec
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x593512
cmp dword [ecx + 0x74], 0xe
jbe 0x5934ec
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0059917f
pop ecx
test eax, eax
jne 0x59352c
push 0x1c
call fcn.005933d7
pop ecx
call fcn.0059660b
test eax, eax
jne 0x59353d
push 0x10
call fcn.005933d7
pop ecx
call fcn.005990dd
mov dword [ebp - 4], esi
call fcn.0059b674
test eax, eax
jge 0x593556
push 0x1b
call fcn.005933b2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xafbcd0], eax
call fcn.0059c42a
mov dword [0xafb450], eax
call fcn.0059c388
test eax, eax
jge 0x59357c
push 8
call fcn.005933b2
pop ecx
call fcn.0059c155
test eax, eax
jge 0x59358d
push 9
call fcn.005933b2
pop ecx
push 1
call fcn.00590e99
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x5935a3
push eax
call fcn.005933b2
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0059c0f8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x5935c4
movzx eax, word [ebp - 0x40]
jmp 0x5935c7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040f870
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5935e5
push edi
call fcn.00590fc6
call fcn.00590fe8
jmp 0x593617
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005973a3
ret

Function at 0x594b95
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x594bc3
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x594bc8
cmp eax, 1
je 0x594bc8
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x594bcc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5fe940]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x594c44
push ebx
call fcn.00594b95
test eax, eax
pop ecx
jne 0x594c13
call fcn.0059a9ae
mov dword [eax], 0xf
call fcn.0059a9a5
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.005900c7
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x594c56
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x594c06
inc eax
cmp eax, 0x104
ja 0x594c06
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x594c8e
cmp eax, dword [ebp + 0x10]
jg 0x594c71
mov eax, dword [ebp + 0x10]
push eax
call fcn.00591195
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x594ca3
call fcn.0059a9a5
mov dword [eax], 0xc
jmp 0x594c06
cmp eax, dword [ebp + 0x10]
jle 0x594ca3
call fcn.0059a9a5
mov dword [eax], 0x22
jmp 0x594c06
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.005978a0
pop ecx
pop ecx
jmp 0x594c08