joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573137
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005a6627
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x57325a
push ecx
lea ecx, [esi + 0x18]
call fcn.00592957
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x573271
push ecx
lea ecx, [esi + 0x24]
call fcn.00592867
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5bc6e7
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005efbd7
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x5bc80a
push ecx
lea ecx, [esi + 0x18]
call fcn.005dbf07
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x5bc821
push ecx
lea ecx, [esi + 0x24]
call fcn.005dbe17
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5ef5b7
Capabilities:
Encode data using xor

Disassembly:
sahf
mov dword [eax + 0x4eccdce4], esp
and al, 0xbd
push es
lahf
add byte [edx - 0x76b975df], bl
push ds
fstp qword fs:[edi - 0x249300ba]
ror byte [edi - 0x450d62ca], 1
out dx, al
or eax, 0x9da88882
mov dword [0x61e97598], eax
dec ebp
mov ah, 0x5b
test dword [edx - 0x1d], eax
mov esi, eax
mov esi, 0x9f3fc2e3
inc eax
inc edi
sub byte [ebx - 0x48], 0x81
xchg ebp, eax
wait
Function at 0x605d77
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00639267
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x605e9a
push ecx
lea ecx, [esi + 0x18]
call fcn.00625597
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x605eb1
push ecx
lea ecx, [esi + 0x24]
call fcn.006254a7
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6247dc
Capabilities:
Encode data using xor

Disassembly:
not ecx
push 0xfd4added
xchg edi, eax
rcl byte [esi + 0x1e0183ac], 0x1d
cmp dword [ebp + 0xf], edx
jo 0x6247bf
add dword [esi], ebx
sbb eax, 0x700f5539
push edi
add dword [eax], edi
add byte [edx - 0x2d], al
jns 0x624760
jge 0x624754
out 0xc5, al
out dx, al
adc ch, bl
inc esi
invalid
int3
not byte [ebp - 0x30]
jne 0x624768
aam 0x5a
in eax, 0x81
stc
sub al, 7
pop es
mov ss, word [ebp + 0x6e]
sub al, 0x15
mov dword [edx + 0x4d], esp
sub esi, dword [ebp - 0x3c]
push ebx
leave
sbb eax, 0x915f4c02
pop edi
xchg ecx, eax
dec eax
xor esp, esi
and ebx, edi
push ds
fistp word [esi]
lcall 0xbf72, 0xb7b66e57
dec ebx
lea esi, [ebx + 0x432dac35]
ja 0x6247a6
mov bh, 0x72
mov edi, 0x35b38d4b
lodsb al, byte [esi]
sub eax, 0xb6be7743
lahf
mov dh, 0x9f
pushal
push ebp
jb 0x6247d0
push ds
jmp 0x624851
inc esi
jno 0x6247d6
xor eax, 0x11623bf1
jo 0x6247b3
dec ecx
fisubr dword [ebx - 0x40f1f03]
stosd dword es:[edi], eax
std
loopne 0x624825
sti
jecxz 0x6247be
invalid
mov ch, 0x8e
and al, 0xe6
rol dword [edx + 0x5497c4a9], cl
test byte [ecx + 0x5543579e], bh
popfd
rcr byte [edx + 0x75], 0x5f
test dword [esi + 0x14], ecx
jg 0x624831
pop ds
pop ebp
xchg edx, eax
add al, 0x16
invalid

Function at 0x624d17
Capabilities:
Encode data using xor

Disassembly:
clc
mov byte [ebx - 0x4aebc221], dl
popal
mov word [edx + 0x22], ds
clc
push eax
push ecx
inc ebx
xor eax, 0x52276ce
cwde
xchg edi, eax
pop es
adc al, al
invalid
Function at 0x64cd4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x654390
cmp edx, dword [eax]
je 0x64cd6f
add eax, 8
inc ecx
cmp eax, 0x654420
invalid
invalid
jl 0x64cd60
push esi

Function at 0x79dbb4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79dbba
pop ebp
sub ebp, 6
sub ebp, 0x39dbb4
jmp 0x79dc18
jmp 0x79dc21
mov eax, 0x39dbb4
add eax, ebp
add eax, 0x93
mov ecx, 0x633
mov edx, 0xf146d169
xor byte [eax], dl
inc eax
dec ecx
jne 0x79dc38
jmp 0x79dc4b
add ebp, dword [ecx]
add dword [ecx + 0x79], ebp
imul ebp, dword [ecx + 1], 0x6945a569
call 0x6a152ff5
or al, 0xe8
cdq
push ebx
wait
imul ecx, dword [edx + ebx*2], 0xfc9639a9
lodsd eax, dword [esi]
leave
pop ecx
imul edi, dword [ecx], 0xe0e2a4e2
push ebp
imul ebp, dword [ecx + 0x69], 0x6991a8e8
imul ebp, dword [ecx + 0x6a], 0x696dd1a4
imul ebp, dword [ecx - 0x2d], 0x69696941
call 0x69e36e22
imul ebp, dword [edx - 0x5c], 0x69696dd1
imul edx, ebx, 0x69696941
sahf
mov ebp, dword [edx - 0x5f]
loop 0x79dc75
imul ebp, dword gs:[ecx + 0x69], 0x139ac6a
pop edi
push eax
pushal
imul eax, dword [ecx], 0x6959cb12
push 0x69014d45
imul ebp, dword [ecx + 0x69], 0x69696c81
imul eax, dword [eax + 0x69696941], 0xe2343d3c
in al, dx
popal
imul ebp, dword [ecx + 0x69], 0x6965fce2
imul ebp, dword [ecx - 0x1e], 0x696979e4
imul ebp, dword [eax + 0x6b586b80], 0x206dabea
in al, dx
popfd
xchg esi, eax
xchg esi, eax
xchg esi, eax
xor al, 0xab
imul esp, edx, 0x696d4de5
imul ebp, dword [ecx + 1], 0x6960505f
add dword [edx], edx
retf
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x79d958
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d95e
pop ebp
sub ebp, 6
sub ebp, 0x39d958
jmp 0x79d9bc
jmp 0x79d9c5
mov eax, 0x39d958
add eax, ebp
add eax, 0x93
mov ecx, 0x61e
mov edx, 0x2312fd2b
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d9dc
jmp 0x79d9ef
inc ecx
imul eax, dword [ebx + 0x2b], 0x3b
sub ebp, dword [ebx]
inc ebx
sub esp, edi
pop es
sub ebx, dword [eax]
jmp 0x79da79
sbb eax, 0x50432b22
mov dword [ebx], ebx
sub ebp, dword [edx]
pop es
invalid

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401554
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401e00
sub eax, fcn.004015cb
push eax
push fcn.004015cb
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107d
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401478
mov eax, ebx
call fcn.004014c9
lea eax, [ebx + 0x1b600]
lea edx, [ebx - 1]
lea ecx, [ebp - 2]
and edx, eax
test ebx, ebx
je 0x401071
mov eax, 0x402054
add eax, eax
jmp 0x401076
mov eax, 0x402054
mov ebx, ecx
call fcn.004015cb
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret

Function at 0x401554
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x11c, 0
lea ebx, [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetWindow]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x18]
movzx ebx, byte [ebp - 0x18]
push eax
sub ebx, 0x41
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
leave
pop edx
pop ecx
pop ebx
ret

Function at 0x4015cb
Capabilities:
Delete file

Disassembly:
hlt
push edi
mov edi, 0x72647246
jb 0x401617
ror byte [ecx + 0x6ed8c765], 0
inc edi
add al, 0xe8
push edi
jbe 0x4015a9
popal
mov dword [ebx + edx*2 + 0x6c], ebp
mov dword [ecx + 0x45], esp
jae 0x401612
and byte [ebp + eax*2], 0x8d
mov dword [edx - 0x39], edx
invalid
inc ebp
call 0x6e75775d
outsb dx, byte [esi]
inc ebp
inc ebp
add al, 0xa2
invalid
Function at 0x4010d4
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
cmp dword [ebp + 8], 0
je 0x40120f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40120f
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40120f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x1c], 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401205
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4011fb
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call section..text
add esp, 4
test eax, eax
je 0x4011e8
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov cx, word [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00401063
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x108]
push edx
call fcn.00407571
add esp, 4
lea eax, [ebp - 0x108]
push eax
call fcn.004075cd
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 3
je 0x401291
cmp dword [ebp - 0x10c], 2
jne 0x4012c8
movsx edx, byte [ebp - 0x107]
cmp edx, 0x3a
jne 0x4012c8
mov dword [ebp - 0x110], 1
lea eax, [ebp - 0x108]
push eax
call fcn.00401499
add esp, 4
push 0x416030
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4012ff
cmp dword [ebp - 0x110], 0
je 0x4012f3
mov dword [ebp - 0x114], 0xffffffff
jmp 0x4012fd
mov dword [ebp - 0x114], 0xfffffffe
jmp 0x40131e
cmp dword [ebp - 0x110], 0
je 0x401314
mov dword [ebp - 0x114], 1
jmp 0x40131e
mov dword [ebp - 0x114], 2
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret

Function at 0x4018cb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40194f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xb7
jne 0x401900
xor eax, eax
jmp 0x401958
cmp dword [ebp - 0x108], 5
jne 0x401910
mov eax, 7
jmp 0x401958
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00401847
add esp, 8
test eax, eax
je 0x40194d
lea eax, [ebp - 0x104]
push eax
call fcn.004018cb
add esp, 4
test eax, eax
jne 0x40194d
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
inc eax
jmp 0x401958
jmp 0x401953
xor eax, eax
jmp 0x401958
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401a3d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x41a854], 0
je 0x401a86
mov eax, dword [ebp + 0xc]
push eax
push 0x416038
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, dword [0x41a854]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x419360
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x401a88
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401f2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x100
push 0x8000
mov eax, dword [ebp + 8]
push eax
call fcn.004015ca
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401f9f
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov ax, word [edx + 0x1a]
push eax
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x401f95
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x401f95
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x27
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4024ec
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4160c8
mov ecx, dword [0x41a8b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
push 0x8101
lea edx, [ebp - 0x104]
push edx
call fcn.004015ca
add esp, 0xc
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xffffffff
je 0x4025e4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x108]
push eax
call fcn.004016e7
add esp, 0xc
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.0040170a
add esp, 4
push 0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x10c], eax
push 0x1001
lea ecx, [ebp - 0x194]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
call sub.LZ32.dll_LZCopy
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 0x10c]
push edx
call sub.LZ32.dll_LZClose
mov eax, dword [ebp - 0x220]
push eax
call sub.LZ32.dll_LZClose
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x10]
jmp 0x4025e7
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40265f
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 0x104]
push eax
push 0
push str.welcome
mov ecx, dword [0x41a8b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.004024ec
add esp, 0xc
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jl 0x402727
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
push 0x100
push 0x8000
lea eax, [ebp - 0x104]
push eax
call fcn.004015ca
add esp, 0xc
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
push ecx
call fcn.0040de90
add esp, 4
mov dword [0x41a844], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [0x41a844]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.004016c4
add esp, 0xc
mov edx, dword [ebp - 0x110]
push edx
call fcn.0040170a
add esp, 4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x40272a
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x40272e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
call fcn.0040de90
add esp, 4
mov dword [0x41a854], eax
mov eax, dword [0x41a854]
push eax
push 0
push 0x4160dc
mov ecx, dword [0x41a8b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x41a854]
push ecx
call fcn.004024ec
add esp, 0xc
test eax, eax
jge 0x4027a5
push 0
push str.Error
push str.LoadLanguage_Failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x41a854]
push edx
call fcn.0040df40
add esp, 4
mov dword [0x41a854], 0
xor eax, eax
pop ebp
ret