joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40499f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor eax, eax
mov word [ebp - 0x208], 0x22
mov ecx, 0x81
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x207]
push str.FMHelp.chm
push eax
call fcn.00404865
pop ecx
pop ecx
push str.Content
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x404a09
push 0x405e04
lea eax, [ebp - 0x208]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
push 0x405e00
lea eax, [ebp - 0x208]
push eax
call esi
push 5
push 0
lea eax, [ebp - 0x208]
push eax
push str.hh.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret

Function at 0x404a7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0xd
pop ecx
cmp dword [ebp + 0x10], ecx
lea esi, [eax + 8]
jle 0x404a97
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov dl, byte [ebp + 0x10]
mov byte [ecx], dl
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
xor bl, bl
xor dl, dl
inc ecx
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x10], bl
mov byte [ebp - 4], dl
xor eax, eax
xor dl, byte [ebp + eax - 0xc]
xor bl, byte [ebp + eax - 0x18]
inc eax
cmp eax, 8
mov byte [ebp - 4], dl
mov byte [ebp - 0x10], bl
jl 0x404ab8
mov edi, ecx
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add ecx, 8
xor edi, edi
lea esi, [ebp + edi - 0xc]
mov al, byte [esi]
mov dl, al
shr dl, 3
shl al, 5
or dl, al
inc edi
cmp edi, 9
mov byte [esi], dl
jl 0x404ad8
xor eax, eax
inc eax
cmp dword [ebp + 0x10], eax
mov dword [ebp + 0xc], eax
jl 0x404bbf
mov ebx, 0x4071fc
xor edi, edi
lea esi, [ebp + edi - 0xc]
mov al, byte [esi]
mov dl, al
shl dl, 6
shr al, 2
or dl, al
mov byte [esi], dl
lea esi, [ebp + edi - 0x18]
mov al, byte [esi]
mov dl, al
shl dl, 6
shr al, 2
or dl, al
inc edi
cmp edi, 9
mov byte [esi], dl
jl 0x404b06
xor esi, esi
cmp byte [ebp + 0x14], 0
je 0x404b58
mov eax, dword [ebp + 0xc]
lea eax, [esi + eax*2 - 1]
cdq
push 9
pop edi
idiv edi
movzx eax, byte [ebx + esi - 9]
mov dl, byte [ebp + edx - 0xc]
add dl, byte [eax + 0x4071e0]
mov byte [ecx], dl
jmp 0x404b69
movzx eax, byte [ebx + esi - 9]
mov al, byte [eax + 0x4071e0]
add al, byte [ebp + esi - 0xc]
mov byte [ecx], al
inc ecx
inc esi
cmp esi, 8
jl 0x404b32
xor esi, esi
cmp byte [ebp + 0x14], 0
je 0x404b96
mov eax, dword [ebp + 0xc]
lea eax, [esi + eax*2]
cdq
push 9
pop edi
idiv edi
movzx eax, byte [ebx + esi]
mov dl, byte [ebp + edx - 0x18]
add dl, byte [eax + 0x4071e0]
mov byte [ecx], dl
jmp 0x404ba6
movzx eax, byte [ebx + esi]
mov al, byte [eax + 0x4071e0]
add al, byte [ebp + esi - 0x18]
mov byte [ecx], al
inc ecx
inc esi
cmp esi, 8
jl 0x404b72
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add ebx, 0x12
cmp eax, dword [ebp + 0x10]
jle 0x404b04
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4157ea
Capabilities:
Encode data using xor

Disassembly:
test eax, 0xa4e32470
add al, 0xe
jae 0x415821
or byte [ebp - 0x7cf552b2], dl
cmp byte [edi + 0x3c], 0x5f
invalid
inc esi
invalid

Function at 0x436bef
Capabilities:
Encode data using xor

Disassembly:
test dword [edi + 0xe2560ab], ecx
push ebp
cld
test al, 0x53
movsd dword es:[edi], dword [esi]
xor byte [0xf550ffb2], ah
loop 0x436bfa
ror dl, 0x76
call 0x51fc5a74
sbb ebx, dword [esi + 0x302ee9c3]
invalid

Function at 0x44a810
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x14
push 0x40
mov esi, eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esi + 0x19]
test eax, eax
jne 0x44a8ca
mov eax, dword [esi + 0x1d]
test eax, eax
jne 0x44a8ca
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test ebp, ebp
je 0x44a870
mov ecx, dword [0x654d84]
push 0x654ab8
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalDeskFXEventWrite
push 0
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 1
push edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0
call edi
mov dword [esi + 0x19], eax
push str.GlobalDeskFXEventRead
push 0
lea eax, [esp + 0x1c]
push 1
push eax
call edi
mov ecx, dword [esi + 0x19]
mov dword [esi + 0x1d], eax
test ecx, ecx
je 0x44a8ca
test eax, eax
mov al, 1
jne 0x44a8cc
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x44a940
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x214
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0x104
push eax
push ecx
mov word [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x44aa02
cmp eax, 0x104
jne 0x44a985
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x44aa02
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x44aa02
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x44aa02
mov ecx, dword [esp + 0x10]
push ebx
push esi
push edi
lea edx, [esp + 0x24]
push ecx
push edx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44a9ea
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44a9ea
mov edx, dword [esp + 0x10]
mov ebx, 1
mov ax, word [edx]
mov word [ebp], ax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret 8
Function at 0x45d93b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
insb byte es:[edi], dx
or bh, byte [esi + 0x10]
imul esp, dword [edx - 0x5e], 0xffffffc4
push ds
ret 0x4cb3
sbb dl, byte [eax + 0x51484c3f]
in al, dx
pop esi
mov dword es:[0x175f7977], eax
movsd dword es:[edi], dword [esi]
mov ah, 0x66
clc
dec edi
jp 0x45d8e9
dec esi
xchg edi, eax
js 0x45d997
mov ch, 0x8b
std
sub byte [ebx + ebx*8 - 0x51], bh
pop edi
lcall 0x90a5, 0x905cbf0e
push cs
cld
push eax
leave
outsd dx, dword [esi]
pop ds
adc dword [eax - 0x62], edi
sahf
xor byte [eax - 0x7306d2ba], 2
cmpsb byte [esi], byte es:[edi]
les ebx, [eax + esi*4]
xor esp, dword [edx - 0x151280d]
cli
invalid
stc
jecxz 0x45d926
mov dword [0x936d2e1], eax
daa
inc esi
pushfd
scasd eax, dword es:[edi]
cmpsb byte [esi], byte es:[edi]
xchg bl, bh
jg 0x45d956
sbb esi, eax
dec bh
mov al, byte [0x26199604]
pop edi
invalid
Function at 0x486120
Capabilities:
Check for software breakpoints

Disassembly:
outsb dx, byte [esi]
pop ds
scasb al, byte es:[edi]
in eax, 4
and byte ds:[edx], ah
jo 0x486173
aas
dec esi
mov esi, 0xefd68af9
out dx, eax
out dx, eax
sahf
add al, 0x8b
outsb dx, byte [esi]
and al, 0xef
jecxz 0x486188
lahf
push cs
fnstsw word [esi + 0x6a]
cmp al, 0xcc
or cl, byte [ebx - 0x22445126]
jae 0x48610e
push cs
clc
cmp dword [ecx - 0x31], 0x55
mov al, byte [0x5eb647b1]
popfd
pop ebp
push ecx
add edi, dword [ebx + 0x445ef002]
das
jmp 0x48614f
cld
push es
pop esi
in eax, 0xa8
dec ebx
pushfd
inc ecx
mov cl, byte [edx - 0x68]
inc edi
and edi, dword [edi]
invalid
pop esp
dec ebx
jb 0x4861d6
push ss
inc byte [esi]
mov edi, 0xc74abc5c
mov edi, cs
mov eax, 0x7b6afefb
push esi
loope 0x48619a
mov al, 0xa3
jle 0x4861ce
jne 0x4861bf
sub bh, dh
mov ebx, 0xa9fc4d81
inc esi
push 0xaca55f82
sbb byte [edi - 0x5b], 0xac
shl byte [ebx - 0x25], 1
stosd dword es:[edi], eax
pop ebx
lcall 0xc87e, 0x46f7fd1b
scasd eax, dword es:[edi]
adc bl, bh
test byte [ebx + 0x419aa6a9], ch
scasb al, byte es:[edi]
push cs
lds ebp, [esi - 0x23]
test eax, 0xfb0795c7
mov esi, 0x5d880638
cmp byte [esi], al
mov byte [ebp - 0x71], bl
push es
pop dword [esi]
cmpsd dword [esi], dword es:[edi]
loop 0x4861c3
pop eax
inc edx
in al, dx
insb byte es:[edi], dx
pop edi
imul ebp, dword [eax - 0x25], 0xff0a528a
and eax, 0x648f242e
in eax, 0x4a
and al, 0x8f
in eax, 0x4a
and al, 0x3f
cmp dword [edi + 0x5b], 0x7e917f9a
nop
push cs
xor eax, 0x75aee06
mov esp, 0xe2042e5d
and eax, 0x2e5ddec8
jne 0x4861b3
out dx, eax
dec eax
aam 0xe6
mov edx, 0x77dde6e4
fdivr qword [edi + 0x23bf6f8f]
cmpsb byte [esi], byte es:[edi]
adc eax, 0x1ff696d3
cli
jg 0x486261
inc edi
pop ebx
invalid
ja 0x4862c5
sbb al, 0xcf
inc edi
push edi
jae 0x486279
sub eax, 0x35709fc0
lahf
jo 0x486299
inc esp
dec ebx
lodsd eax, dword [esi]
xor eax, 0xd10ade8e
outsd dx, dword [esi]
retf 0x2f6a
shr dword [edi - 0x36], 1
push 0x2f
sub al, 0x19
lodsb al, byte [esi]
into
mov dword [0x67937dff], eax
mov ecx, 0xef7f1641
mov ecx, 0xef7f1641
mov ebx, 0x6630fcce
test ebx, eax
scasb al, byte es:[edi]
and dword [eax - 0x584fa852], edi
xchg byte [edi + 0x43], dh
salc
invalid
push ds
loopne 0x486298
cmp eax, 0x7e05553c
jle 0x4862c2
sbb al, 0x90
jecxz 0x486256
sub eax, 0x94d5c82f
rcr cl, 1
out dx, eax
adc bl, 0x18
into
lahf
in al, dx
je 0x48626b
inc esp
lodsd eax, dword [esi]
pushal
jns 0x4862f7
sbb byte [ebp + 0x7f49e792], 0xaf
scasd eax, dword es:[edi]
insb byte es:[edi], dx
into
and al, 0x58
scasb al, byte es:[edi]
invalid
call 0x5e0e7f8b
sub esi, ebx
ja 0x486307
rol dword [esi], cl
adc ebp, dword cs:[esi + 0x42973af9]
mov fs, word [ebx - 0x5389064a]
cmp dl, byte [edi - 0x495c71be]
stc
jbe 0x4862bc
sbb al, 0xd6
cld
and ebx, esi
pushfd
std
hlt
Function at 0x4a4528
Capabilities:
Encode data using xor

Disassembly:
sub dword [ebp - 0x24], 0x69
xor cl, byte [ebx + 0xe]
xchg ecx, eax
mov bl, byte [esi + 0x56]
cmp eax, 0x99ec89e6
sbb esi, dword [edx + ebx*8]
jecxz 0x4a4563
inc ebx
dec esi
or edx, dword [eax - 0x5f07efba]
cmpsb byte [esi], byte es:[edi]
test byte [ecx - 0x10], dh
mov edx, 0x5b21c94e
rcl dword [eax + 0x446baa53], 0x61
inc esp
popal
pop ecx
ljmp 0x25a7
pushal
mov al, byte [0xc345eeed]
sub eax, 0x2dd790d3
push ss
shr dword [edx], cl
in eax, dx
xor bh, byte [0x8d918324]
aaa
call 0x8d475239
push edi
add byte [edx], 0xfd
das
aaa
jno 0x4a4553
cmpsb byte [esi], byte es:[edi]
and eax, 0xecc0ade7
lodsd eax, dword [esi]
sbb esp, dword [ebx + 0x6a]
sahf
add byte [edi - 0x1464469a], al
push edi
lodsb al, byte [esi]
jae 0x4a4583
mov byte [0xd2d0f3c2], al
daa
mov dword [0xc68378b3], eax
sbb ah, cl
imul esi, edx, 0x66819764
lea ecx, ss:[esi - 0x16c4f716]
cwde
fidiv word [ecx - 0x3777efc2]
push eax
rol edx, 1
jb 0x4a45d3
and al, 0x21
mov al, byte [0xfe1b139a]
and dword [eax - 0x1e4ec66], esp
xchg ebp, eax
dec edx
xor byte [eax + 0x2c813e8b], dl
and edi, eax
clc
imul edi, dword [ebx], 0x49
clc
jecxz 0x4a45c4
or eax, 0x55c71616
pop ebp
xchg ecx, eax
loop 0x4a4638
call 0x2444939f
push dword [ebp - 0x52959607]
wait
iretd
inc esi
call 0xd6ffa4af
push ebp
mov ss, word [edx - 5]
movsb byte es:[edi], byte [esi]
sbb ebx, dword [ecx - 0x6d93ccb3]
fstp qword [esi + 0x2644e391]
pop eax
bt dword [ebx], esi
pushfd
les esi, [bx + di]
mov esp, 0xa9f3e042
add dword [eax + 0x5adea8c3], ebx
salc
insd dword es:[edi], dx
lodsb al, byte [esi]
add al, 0x27
vpcmpgtw xmm2, xmm7, xmmword [esi]
jae 0x4a4695
push esi
invalid
invalid
Function at 0x4017f0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call fcn.00401a00
add esp, 8
test eax, eax
jne 0x40184c
pop edi
pop ebp
add esp, 0x20c
ret
push esi
lea esi, [esp + 0x114]
lea ecx, [esp + 0x10]
mov edx, 0x104
lea eax, [esp + 0x10]
sub esi, ecx
mov cl, byte [esi + eax]
test cl, cl
je 0x401872
mov byte [eax], cl
inc eax
dec edx
jne 0x401863
jmp 0x401876
test edx, edx
jne 0x401877
dec eax
lea edx, [esp + 0xc]
mov byte [eax], 0
push edx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00402090
test eax, eax
jl 0x4018ad
mov eax, dword [esp + 0xc]
mov ecx, 0x104
sub ecx, eax
push 0x410440
lea edx, [esp + eax + 0x14]
push ecx
push edx
call fcn.00402040
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x4018ca
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x4018e2
mov byte [eax], cl
inc eax
dec edx
jne 0x4018d3
jmp 0x4018e6
test edx, edx
jne 0x4018e7
dec eax
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x401911
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x401929
mov byte [eax], cl
inc eax
dec edx
jne 0x40191a
jmp 0x40192d
test edx, edx
jne 0x40192e
dec eax
push 1
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x401958
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x401970
mov byte [eax], cl
inc eax
dec edx
jne 0x401961
jmp 0x401974
test edx, edx
jne 0x401975
dec eax
push 1
lea edx, [esp + 0x14]
push 3
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x40199f
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x4019b7
mov byte [eax], cl
inc eax
dec edx
jne 0x4019a8
jmp 0x4019bb
test edx, edx
jne 0x4019bc
dec eax
push 1
lea edx, [esp + 0x14]
push 4
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
pop esi
jne 0x4019e7
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov eax, 1
pop ebp
add esp, 0x20c
ret
Function at 0x401c30
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Terminate process

Disassembly:
sub esp, 0x158
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
push 0x4104d8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401c91
push 0x1000
push 0x4104c8
push 0x4104b0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0x5c]
push 0x104
push eax
mov ecx, esi
call fcn.00401d00
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x18]
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0x44
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x401cf3
add esp, 0x158
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402260
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
push 0x4105e8
call fcn.00402760
mov ecx, dword [esp + 0x118]
mov esi, dword [esp + 0x114]
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push 0x3048
lea ecx, [esp + 0x10]
push 0x4105e0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00402760
push 0x4105dc
call fcn.00402760
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4022fb
call fcn.00402760
push 0x4105bc
call fcn.00402760
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x104
ret 8
push 0x493e0
push esi
push 0x410590
call fcn.00401180
add esp, 0xc
neg eax
sbb eax, eax
xor edx, edx
and eax, 2
pop edi
dec eax
pop esi
cmp eax, 1
sete dl
mov eax, edx
add esp, 0x104
ret 8
Function at 0x402330
Capabilities:
Get common file path
Move file
Read .ini file
Terminate process

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4106e0
stosb byte es:[edi], al
call fcn.00402760
add esp, 4
lea eax, [esp + 0x118]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x118]
lea ecx, [esp + 0x14]
mov esi, 0x104
lea eax, [esp + 0x14]
sub edx, ecx
mov cl, byte [edx + eax]
cmp cl, bl
je 0x4023e6
mov byte [eax], cl
inc eax
dec esi
jne 0x4023d7
jmp 0x4023ea
cmp esi, ebx
jne 0x4023eb
dec eax
mov byte [eax], bl
mov ecx, 0x104
lea eax, [esp + 0x14]
cmp byte [eax], bl
je 0x402400
inc eax
dec ecx
jne 0x4023f6
jmp 0x402443
cmp ecx, ebx
je 0x402443
lea edx, [esp + 0x10]
test edx, edx
je 0x402415
mov eax, 0x104
sub eax, ecx
jmp 0x402419
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x14]
je 0x402443
mov esi, 0x4106d8
sub esi, eax
mov cl, byte [esi + eax]
cmp cl, bl
je 0x40243c
mov byte [eax], cl
inc eax
dec edx
jne 0x40242d
jmp 0x402440
cmp edx, ebx
jne 0x402441
dec eax
mov byte [eax], bl
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40247c
push 0x4106c4
call fcn.00402760
add esp, 4
call fcn.00402760
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x414
ret
lea edx, [esp + 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x320]
lea ecx, [esp + 0x21c]
push eax
push 0x3048
push 0x4105e0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x320]
lea eax, [esp + 0x21c]
push edx
push 0x104
push eax
push ebx
push 0x4106c0
push 0x4106ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x118]
push 0x493e0
lea edx, [esp + 0x220]
push ecx
push edx
call fcn.00401180
add esp, 0xc
test eax, eax
jne 0x4024fd
push 0x41067c
jmp 0x40252e
push 0x410644
call fcn.00402760
add esp, 4
mov ecx, ebp
call fcn.004026e0
test eax, eax
je 0x402529
push 0x410620
call fcn.00402760
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x410600
call fcn.00402760
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x402550
Capabilities:
Check if file exists
Delete file
Get common file path
Read .ini file
Terminate process

Disassembly:
sub esp, 0x208
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push 0x3048
push 0x4105e0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x40260e
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40260e
push 0x1004
push 0x410754
push 0x410730
push eax
call edi
cmp eax, 6
jne 0x402603
call fcn.004020d0
jmp 0x40260e
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
lea edx, [esp + 0xc]
push 0x104
push edx
mov ecx, esi
call fcn.00402260
test eax, eax
jne 0x402630
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x208
ret
lea eax, [esp + 0xc]
push eax
push 0
push 0x410728
push 0x4106ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push 0x104
push edx
push 0
push 0x410724
push 0x4106ac
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x110]
push 0x410718
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x4026be
push 0x1024
push 0x410754
push 0x410700
push 0
call edi
cmp eax, 7
jne 0x4026ca
test esi, esi
je 0x4026be
push 0x1000
push 0x410754
push 0x4106f0
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
cmp eax, 6
jne 0x4026be
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret

Function at 0x4026e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esp + 4], ecx
push edx
mov dword [esp + 0xc], ecx
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0x44
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x158
ret
Function at 0x4027b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
push ebx
push esi
mov esi, dword [esp + 0x140]
push edi
mov ebx, dword [esp + 0x140]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 1
push esi
push ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.00408830
mov edx, dword [esp + 0x20]
add esp, 0x14
mov edi, eax
push edx
push 0x410868
call fcn.00402760
add esp, 8
test edi, edi
jne 0x4028a0
push 0x41084c
call fcn.00402760
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
push 2
push edi
push esi
push eax
push ebx
call fcn.00408880
add esp, 0x14
test eax, eax
jne 0x402887
push 0x410830
call fcn.00402760
push 4
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0xc
test eax, eax
jne 0x40286e
push 0x410814
call fcn.00402760
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x130
ret
push 0x4107e8
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x130
ret
push 0x4107c8
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x130
ret
push 0x4107a8
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x130
ret