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

Disassembly:
pushal
call fcn.0093d592
add byte [eax], al
inc edi
je 0x8bac3f
jns 0x8bac59
outsd dx, dword [esi]
popal
jb 0x8bac5f
dec esp
popal
jns 0x8bac6e
jne 0x8bac75
add byte [ebx + 0x48], dl
inc ebp
dec esp
dec esp
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [eax], al
add byte [eax + 0x65], cl
popal
add byte [eax], al
dec eax
popal
jo 0x8bac67
inc ecx
insb byte es:[edi], dx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [eax], ax
add byte [eax], al
inc esi
imul ebp, dword [esp + ebp*2 + 0x52], 0x746365
jmp 0x954ff6
push edx
arpl word gs:[eax + eax - 0x17], si
retf 0x9a3
outsd dx, dword [esi]
imul esp, dword [ebp + 0x6e], 0
jmp 0x8baf94
jne 0x8babf9
pop es
add al, bh
jnp 0x8bac0e
in eax, dx
jmp dword [eax - 0x7f]
dec ebp
invalid
pop ecx
jl 0x8bac78
add byte [eax], al
add byte [ecx + 0x73], cl
push edi
jae 0x8bacce
imul ebp, dword [esi + 0x64], 0xe800776f
jp 0x8bac22
outsb dx, byte [esi]
outsd dx, dword fs:[esi]
ja entry0
in eax, dx
inc dword [eax]
add byte [edi + 0x65], al
je 0x8baccb
push eax
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
add byte [esi - 0x64], ah
pop word [esp + 2]
cmc
rol dl, cl
mov dl, byte [esi]
call fcn.00a51423
add byte [eax], al
push edx
popal
inc ebx
outsd dx, dword [esi]
outsb dx, byte [esi]
jae 0x8bad19
insb byte es:[edi], dx
dec ecx
outsb dx, byte [esi]
jo 0x8bad25
je 0x8bacf3
add byte [eax + 0x60], ah
mov dword [esp + 0x3c], 0xdff1f979
lea esp, [esp + 0x3c]
jns 0xa51077
push 0xed973009
in eax, dx
push ebp
pushal
pushfd
lea esp, [esp + 0x28]
jmp 0xa529fc
or al, al
jmp 0x8bacf9
ror bl, cl
inc bl
or bl, 0x20
and bl, bh
add al, 0xae
not bl
stosb byte es:[edi], al
call fcn.0093557d
movsd dword es:[edi], dword [esi]
or dword [eax], eax
fld qword [ebx]
mov dword [esp + 0x24], 0xf252c52b
pushfd
mov byte [esp + 0xc], 0xd5
pushfd
pushfd
lea esp, [esp + 0x30]
jmp 0xa53c53
bt bx, ax
cmp byte [edi], 0x23
jmp 0x8babe8
push dword [edi]
pop dword [esp + 0x28]
test di, 0x40e3
test cl, 0xdb
bt di, bx
stc
cmp edi, ebx
call fcn.00796070
call 0x7942d8
add byte [eax], al
inc edi
imul esi, dword fs:[eax + 0x44], 0x74656c65
push eax
outsb dx, byte gs:[esi]
add byte [eax], al
add byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0xa510f4
jb 0xa510fa
push ebx
je 0xa5110a
imul ebp, dword [esi + 0x67], 0xf3150057
arpl word [edx], si
cmc
rol esi, 0x39
test al, 0xe0
xchg edi, eax
xor byte [eax - 0x15c15c1b], ah
fimul dword [ecx + 0x55]
ret
push ss
scasd eax, dword es:[edi]
leave
pop edx
nop
adc al, 0x14
ret 0x51d5
adc al, 0xc2
aad 0x51
imul edi, dword [ebx - 0x3f], 0x24
lahf
stc
mov byte [esi - 0x3f], bl
and ch, bh
stc
jb 0xa51109
dec esi
mov al, byte [0xc163106e]
ljmp 0x7243
mov byte [esp], 0x9c
mov dword [esp + 0x38], edx
mov word [esp + 4], 0xc03f
pushfd
lea esp, [esp + 0x3c]
jmp 0xa525b0
mov byte [esp], 0x65
mov dword [esp + 0x3c], esi
jmp 0xa52049
pushal
pushal
jmp 0xa52835
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x44217e
call fcn.00444dfb
jmp 0x442188
push 0x14
push 0x456368
call fcn.00443f80
call fcn.00443c9e
movzx esi, ax
push 2
call fcn.00444dae
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4421b6
xor ebx, ebx
jmp 0x4421e9
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4421b2
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4421b2
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4421e9
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004433e5
test eax, eax
jne 0x4421fd
push 0x1c
call fcn.004422d8
pop ecx
call fcn.00443278
test eax, eax
jne 0x44220e
push 0x10
call fcn.004422d8
pop ecx
call fcn.00444e95
and dword [ebp - 4], 0
call fcn.004447f2
test eax, eax
jns 0x442228
push 0x1b
call fcn.004422d8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45f608], eax
call fcn.00444ed5
mov dword [0x45b6b0], eax
call fcn.00444aa0
test eax, eax
jns 0x44224e
push 8
call fcn.00443475
pop ecx
call fcn.00444ccd
test eax, eax
jns 0x44225f
push 9
call fcn.00443475
pop ecx
push 1
call fcn.004434af
pop ecx
test eax, eax
je 0x442272
push eax
call fcn.00443475
pop ecx
call fcn.00444f60
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x442294
push esi
call fcn.0044370b
call fcn.004434a0
jmp 0x4422c9
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00443fc5
ret
Function at 0x401c80
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov eax, ebx
mov esi, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
xor ecx, ecx
push edi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401cb5
mov eax, dword [edx]
mov dword [esi + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, ebx
jb 0x401ca8
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x401d36
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
movzx ecx, byte [ecx + str.cw]
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x401d89
cmp edi, 4
jne 0x401d8c
cmp ebx, 6
jbe 0x401d8c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
add esi, 4
mov dword [esi + ebx*4 - 4], eax
dec edi
cmp esi, ecx
jne 0x401cd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401db0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.00401c80
lea ebx, [esi + 0x14]
xor esi, esi
test ebx, ebx
je 0x401e31
lea ebx, [ebx]
mov edx, dword [edi + esi*4 + 0x20]
mov eax, edx
shr eax, 0x10
and eax, 0xff
inc esi
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*4 + 0x45cc00]
shr eax, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x45c800]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x45d000]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x45c400]
mov dword [edi + esi*4 + 0x1c], ecx
cmp esi, ebx
jb 0x401dd0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x402d40
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x45a050]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402d89
push str.SetDefaultDllDirectories
push 0x454b38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402d89
push 0xc00
call eax
test eax, eax
jne 0x402e27
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e27
cmp eax, 0x104
ja 0x402e27
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402dc7
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402e26
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
inc esi
mov ecx, edi
test al, al
je 0x402e00
movzx eax, al
mov word [ecx], ax
mov al, byte [esi]
add ecx, 2
inc esi
test al, al
jne 0x402df0
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx], 0x64002e
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x402de7
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440876
mov esp, ebp
pop ebp
ret
Function at 0x407dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
mov eax, dword [esi + 4]
cmp eax, ecx
cmova eax, ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
push edi
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x407ede
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x407eb8
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
mov eax, dword [eax + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x407ea0
mov eax, dword [ebp - 4]
add ebx, 0x28
dec eax
mov dword [ebp - 4], eax
jne 0x407e94
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x407ed9
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
lea eax, [ecx + 5]
mov dword [esi + 0x28], 0
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00406a30
mov edi, eax
test edi, edi
jne 0x407fa8
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407f6f
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x407fa8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x407f8c
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x407fa8
push ebx
call fcn.00407a00
mov edi, eax
test edi, edi
je 0x407fba
mov ecx, esi
mov dword [esi + 0x44], 0
call fcn.00406ae0
test edi, edi
jle 0x407fb3
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x407fba
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x407fd3
cmp dword [esi + 0x40], 0
jne 0x407fd3
cmp dword [esi + 0x3c], 0
jne 0x407fd3
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ff0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x45af30]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4084d0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov edx, dword [esi + 8]
and edx, 0x3f
inc edx
mov byte [edx + esi + 0x3f], 0x80
push edi
cmp edx, 0x38
jbe 0x408517
cmp edx, 0x40
je 0x408509
mov ecx, 0x40
sub ecx, edx
lea edi, [esi + 0x40]
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00445020
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
shld eax, ecx, 3
shl ecx, 3
bswap eax
add esp, 0xc
mov dword [esi + 0x78], eax
bswap ecx
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea edx, [esi + 0x20]
mov edi, 4
lea ebx, [ebx]
mov ecx, dword [edx + 4]
bswap ecx
mov eax, dword [edx]
mov dword [ebx + 4], ecx
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
lea edx, [edx + 8]
dec edi
jne 0x408560
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret

Function at 0x40b8d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c151], 0
push esi
mov esi, edx
jne 0x40b90d
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004096f0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004411c8
add esp, 4
test esi, esi
je 0x40b920
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40b920
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b930
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c151], 0
jne 0x40b96a
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004411c8
add esp, 4
test esi, esi
pop esi
je 0x40b97b
mov al, 1
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40b97b
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40b990
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d018
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x45c151], 0
jne 0x40b9fc
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004096f0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004411c8
add esp, 4
test esi, esi
je 0x40ba1d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ba1d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ba3e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040ba90
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040d000
test al, al
jne 0x40ba60
xor bl, bl
jmp 0x40ba69
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004411c8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be10
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c151], 0
push ebx
push esi
mov esi, ecx
jne 0x40be44
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.004411c8
add esp, 4
jmp 0x40be52
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40be71
cmp ebx, 0xffffffff
je 0x40be71
test bl, 0x10
jne 0x40be71
test bl, 1
je 0x40be71
and ebx, 0xfffffffe
mov edx, ebx
mov ecx, esi
call fcn.0040b8d0
test al, al
je 0x40beb8
cmp byte [0x45c151], 0
jne 0x40bea5
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004411c8
add esp, 4
test esi, esi
je 0x40beb8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40beb8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c260
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c151], 0
jne 0x40c29b
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004411c8
add esp, 4
xor eax, eax
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x40c2b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d096
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x45a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x45c151], cl
jne 0x40c35a
lea eax, [ebp - 0x128]
push eax
push 0x114
mov byte [ebp - 0x128], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c40d
cmp eax, 0x114
jae 0x40c40d
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x360]
mov byte [ebp - 0x14], 0
call fcn.004097b0
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00409300
push dword [ebp - 0x360]
call fcn.004411c8
add esp, 4
mov al, 1
jmp 0x40c40f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40c40d
cmp esi, 0x114
jae 0x40c3a4
xor eax, eax
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
mov ecx, edi
call fcn.00409280
mov al, 1
jmp 0x40c40f
lea ecx, [ebp - 0x360]
call fcn.00409120
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40c3ca
push esi
lea ecx, [ebp - 0x360]
call fcn.00408f20
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40c3ff
push esi
lea ecx, [ebp - 0x360]
call fcn.0040b7f0
cmp dword [ebp - 0x35c], ebx
jne 0x40c3ff
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40c3ff
lea eax, [ebp - 0x360]
jmp 0x40c33d
push dword [ebp - 0x360]
call fcn.004411c8
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440876
mov esp, ebp
pop ebp
ret
Function at 0x40c4b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d0cb
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x45a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x45c151], 0
jne 0x40c53a
lea eax, [ebp - 0x128]
push eax
push 0x114
mov byte [ebp - 0x128], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x360]
mov edi, eax
call fcn.004097b0
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00409300
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x360]
call fcn.004411c8
add esp, 4
jmp 0x40c565
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x354]
push eax
mov ecx, esi
call fcn.00409280
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c5a1
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x40c5a1
cmp eax, 0x2f
je 0x40c5a1
cmp dword [esi + 8], ecx
jne 0x40c589
mov ecx, esi
call fcn.00408f90
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, 0x5c
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
test edi, edi
je 0x40c5b1
cmp edi, 0x114
jae 0x40c5b1
mov al, 1
jmp 0x40c5b3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440876
mov esp, ebp
pop ebp
ret
Function at 0x40cfb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c151], 0
jne 0x40cfe6
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004411c8
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edx, 0x400000
mov edi, edi
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push edi
push dword [ecx]
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40da58
test ecx, ecx
je 0x40da4d
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp - 4]
mov edx, 0x400000
jne 0x40da10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40da70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edx, 0x400000
mov edi, edi
push 0
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40dad8
test ecx, ecx
je 0x40dacd
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp - 4]
mov edx, 0x400000
jne 0x40da90
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411a80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x411ab8
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x411ab8
call fcn.0040eaf0
jmp 0x411ac7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esp + 0x10], 0x40000000
mov dword [esp + 0x14], 0
mov dword [esi + 0x20], 0x40000000
mov dword [esi + 0x24], 0
mov dword [esi + 0x10], 0x40000000
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x40000000
mov dword [esi + 0x1c], 0
call fcn.0040eb60
mov byte [esi + 9], al
test al, al
je 0x411b68
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x411b34
cmp ebx, 0x70000000
jbe 0x411b3b
mov ebx, 0x70000000
xor edi, edi
push 0
push 0x50
push edi
push ebx
call fcn.00411a20
shrd ebx, edi, 5
mov dword [esi + 0x10], eax
shr edi, 5
mov eax, ebx
mov ecx, edi
shld ecx, eax, 4
shl eax, 4
add eax, ebx
adc ecx, edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret