joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
mov esi, 0x800
push esi
push 0
mov ebx, 0x4a1d28
push ebx
call sub.NSCRT.dll_memset
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
xor eax, eax
add esp, 0xc
cmp ecx, eax
je 0x409c62
mov edx, dword [edi]
cmp edx, eax
je 0x409c62
push edx
push ecx
call dword [sym.imp.NSCRT.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x409c60
push esi
push ebx
push 0x140
jmp 0x409dfa
xor eax, eax
cmp dword [0x4a4d64], 1
jge 0x409c9e
mov ecx, dword [edi + 8]
cmp ecx, 0x6c33504d
jne 0x409c82
push esi
push ebx
push 0x141
jmp 0x409dfa
cmp ecx, 0x48434141
je 0x409c92
cmp ecx, 0x4841344d
jne 0x409c9e
push esi
push ebx
push 0x142
jmp 0x409dfa
push dword [edi]
fldz
or dword [ebp - 8], 0xffffffff
fstp dword [ebp - 0x10]
lea ecx, [ebp - 0x844]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
call fcn.0040979b
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [0x4ac3f0]
push eax
call fcn.0046e993
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x409ce0
or eax, 0xffffffff
cmp dword [ebp + 8], 0
mov dword [edi + 0x34], eax
jne 0x409d21
mov eax, dword [ebp - 4]
dec eax
dec eax
push esi
push ebx
je 0x409d17
dec eax
je 0x409d0d
dec eax
dec eax
je 0x409d03
push 0x146
jmp 0x409dfa
push 0x145
jmp 0x409dfa
push 0x144
jmp 0x409dfa
push 0x143
jmp 0x409dfa
push 0x100
lea eax, [edi + 0x40]
push 0
push eax
call sub.NSCRT.dll_memset
lea eax, [edi + 8]
add esp, 0xc
cmp dword [eax], 0x204d4350
je 0x409d98
xor ecx, ecx
cmp dword [edi + 0x20], 0x20494e49
jne 0x409d4d
mov ecx, dword [edi + 0x24]
push ecx
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 1
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00409223
add esp, 0x20
test eax, eax
jne 0x409d8a
push dword [ebp + 8]
mov ecx, dword [0x4ac3f0]
call fcn.0046e840
push 0x800
push ebx
push 0x147
jmp 0x409dfa
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x58], eax
mov esi, 0x800
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push 0x80
push 2
mov dword [edi + 0x40], ecx
mov ecx, dword [ebp - 0x1c]
push eax
mov dword [edi + 0x5c], ecx
mov ecx, dword [ebp - 0x18]
push 1
push 0x40000000
push dword [edi + 4]
mov dword [edi + 0x60], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x64], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x409e09
push dword [ebp + 8]
mov ecx, dword [0x4ac3f0]
call fcn.0046e840
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x409def
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [edi + 0x54], 0
push esi
push ebx
push 0x148
call fcn.004720ed
add esp, 0xc
mov dword [edi + 0x2c], eax
xor eax, eax
jmp 0x409e27
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push edi
push 0x409811
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x4c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e2c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x1000
xor ebx, ebx
push ebx
mov esi, 0x4a0d28
push esi
call sub.NSCRT.dll_memset
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, ebx
je 0x409e79
mov ecx, dword [edi]
cmp ecx, ebx
je 0x409e79
push ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x409e79
push 0x800
push esi
push 0x140
jmp 0x40a01b
cmp dword [0x4a4d64], 1
jge 0x409eba
mov eax, dword [edi + 8]
cmp eax, 0x6c33504d
jne 0x409e9c
push 0x800
push esi
push 0x141
jmp 0x40a01b
cmp eax, 0x48434141
je 0x409eaa
cmp eax, 0x4841344d
jne 0x409eba
push 0x800
push esi
push 0x142
jmp 0x40a01b
mov ecx, dword [0x4ac3f0]
fldz
or dword [ebp - 0x10], 0xffffffff
fstp dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push dword [edi]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call fcn.0046e993
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x409ef0
or eax, 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [edi + 0x34], eax
jne 0x409f34
mov eax, dword [ebp - 0xc]
dec eax
dec eax
push 0x800
push esi
je 0x409f2a
dec eax
je 0x409f20
dec eax
dec eax
je 0x409f16
push 0x146
jmp 0x40a01b
push 0x145
jmp 0x40a01b
push 0x144
jmp 0x40a01b
push 0x143
jmp 0x40a01b
push 0x100
lea eax, [edi + 0x40]
push ebx
push eax
call sub.NSCRT.dll_memset
lea eax, [edi + 8]
add esp, 0xc
cmp dword [eax], 0x204d4350
je 0x409fac
xor ecx, ecx
cmp dword [edi + 0x20], 0x20494e49
jne 0x409f5f
mov ecx, dword [edi + 0x24]
push ecx
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push 1
push dword [ebp - 0x1c]
mov esi, eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00409223
add esp, 0x20
cmp eax, ebx
jne 0x409f9e
push dword [ebp + 8]
mov ecx, dword [0x4ac3f0]
call fcn.0046e840
push 0x800
push 0x4a0d28
push 0x147
jmp 0x40a01b
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x58], eax
mov esi, 0x4a0d28
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 2
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x24]
push ebx
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x20]
push 1
push 0x40000000
push dword [edi + 4]
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40a02a
push dword [ebp + 8]
mov ecx, dword [0x4ac3f0]
call fcn.0046e840
mov ecx, dword [edi + 0x54]
cmp ecx, ebx
je 0x40a001
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [edi + 0x58]
mov dword [edi + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x800
push esi
mov dword [edi + 0x58], ebx
push 0x148
call fcn.00472111
add esp, 0xc
mov dword [edi + 0x2c], eax
xor eax, eax
jmp 0x40a046
mov dword [edi + 0x50], eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0x4099e9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x4c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bc90
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [sym.imp.NSCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x40bcb5
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.NSCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x40bcdc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40bd47
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x400
jmp 0x40bd1d
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 4]
call fcn.0040bcdc
test eax, eax
pop ecx
pop ecx
jne 0x40bd30
push edi
lea eax, [ebp - 0x804]
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
je 0x40bd08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
leave
ret
Function at 0x410fad
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push edi
push 0x1f
pop ecx
xor eax, eax
mov byte [ebp - 0x80], 0
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4a09c0
push 0x7f
stosb byte es:[edi], al
lea eax, [ebp - 0x7f]
push eax
push 0x486d4c
push 0x488088
push str.winamp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x7f], 0
push 0x4a3ff0
sete al
dec al
and eax, 0x2e
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x80]
push eax
push 0x49c918
push str.wa_s_s_s
push 0x100
push dword [ebp + 8]
call fcn.00402528
add esp, 0x18
pop edi
leave
ret
Function at 0x411b75
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
lea eax, [ebp - 0x588]
push eax
mov ebx, 0x104
push ebx
call esi
and dword [ebp - 0x5c], 0
push 0x15
xor eax, eax
cmp dword [0x4a420c], eax
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
jne 0x411d2f
push 0x7ff00
push 0x40
mov dword [0x4a420c], 1
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], 0x58
mov dword [ebp - 0x58], eax
call fcn.0042d141
cmp dword [ebp + 8], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x178]
push 0x80
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x3ff7f
push eax
je 0x411c04
push 0xfa
jmp 0x411c09
push 0xfb
call fcn.00472111
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x20], 0x486d6c
mov dword [ebp - 0x30], eax
jne 0x411c33
mov ecx, dword [0x4ac3ec]
call fcn.0045caf2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4ac344]
mov dword [ebp - 0x28], 0x81a04
jne 0x411c4a
call fcn.004114a2
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x411cdc
lea eax, [ebp - 0x380]
push eax
push ebx
call esi
mov ecx, dword [0x4ac3ec]
lea eax, [ebp - 0x380]
push eax
call fcn.0045cf8a
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411c88
xor esi, esi
call fcn.0043e320
jmp 0x411c8f
call fcn.0043d213
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], bx
je 0x411cb8
push edi
call fcn.0043ec41
test byte [0x4a0188], 1
pop ecx
je 0x411cd0
push esi
push 2
call fcn.0043ffb3
pop ecx
jmp 0x411ccf
push ebx
push 1
push edi
call fcn.0043fbf9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x411cd0
push edi
call fcn.0043e8e2
pop ecx
cmp dword [ebp + 8], ebx
je 0x411cde
call fcn.0041d583
jmp 0x411cde
xor ebx, ebx
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4ac344]
jne 0x411cfb
call fcn.004113fd
push 1
push 0x20d
push 0x200
push dword [0x4ac344]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x411cfb
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov dword [0x4a420c], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41211c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov byte [eax], cl
cmp byte [esi], cl
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 0x110]
je 0x412303
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x412150
xor ecx, ecx
mov al, byte [esi]
cmp al, 0x25
jne 0x4121dd
cmp dword [ebp - 4], ecx
je 0x4121b0
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov byte [edi], 0
mov byte [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp dword [ebp + 0x10], 0x7fffffff
ja 0x41219d
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00406279
push esi
lea edi, [ebp - 0x110]
call ebx
mov byte [esi], 0
mov dword [ebp + 8], eax
mov esi, eax
jmp 0x4121cd
push esi
call ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
mov byte [esi], 0
push dword [ebp + 0xc]
call fcn.00407714
mov esi, dword [ebp - 8]
mov dword [ebp + 8], esi
xor eax, eax
cmp dword [ebp - 4], eax
sete al
mov dword [ebp - 4], eax
jmp 0x4122f9
cmp al, 0x7b
jne 0x412240
cmp dword [ebp - 4], ecx
push esi
je 0x412218
call ebx
sub eax, esi
je 0x4122f9
mov ecx, edi
lea edx, [ebp - 0x110]
sub ecx, edx
dec eax
cmp ecx, 0x104
jge 0x4122f9
mov dl, byte [esi]
mov byte [edi], dl
inc edi
inc ecx
inc esi
test eax, eax
jne 0x4121fb
jmp 0x4122f9
call ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
mov byte [esi], 0
push dword [ebp + 0xc]
call fcn.00407714
mov esi, dword [ebp - 8]
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], 1
jmp 0x4122f9
cmp al, 0x7d
jne 0x4122c3
cmp dword [ebp - 4], ecx
je 0x412270
push esi
call ebx
sub eax, esi
je 0x41226e
mov ecx, edi
lea edx, [ebp - 0x110]
sub ecx, edx
dec eax
cmp ecx, 0x104
jge 0x41226e
mov dl, byte [esi]
mov byte [edi], dl
inc edi
inc ecx
inc esi
test eax, eax
jne 0x41225a
xor ecx, ecx
push ecx
lea eax, [ebp - 0x110]
push eax
mov byte [edi], 0
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp dword [ebp + 0x10], 0x7fffffff
ja 0x4122ac
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00406279
push esi
lea edi, [ebp - 0x110]
call ebx
and dword [ebp - 0xc], 0
mov byte [esi], 0
mov dword [ebp + 8], eax
mov esi, eax
jmp 0x4122f9
cmp dword [ebp - 4], ecx
jne 0x4122d4
cmp dword [ebp - 0xc], ecx
jne 0x4122d4
push esi
call ebx
mov esi, eax
jmp 0x4122f9
push esi
call ebx
sub eax, esi
je 0x4122f9
mov ecx, edi
lea edx, [ebp - 0x110]
sub ecx, edx
dec eax
cmp ecx, 0x104
jge 0x4122f9
mov dl, byte [esi]
mov byte [edi], dl
inc edi
inc ecx
inc esi
test eax, eax
jne 0x4122e5
cmp byte [esi], 0
jne 0x41214e
pop ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407714
pop edi
pop esi
leave
ret
Function at 0x41234a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
push 0
push 0
push 0x49d770
call fcn.00402b25
add esp, 0xc
mov esi, eax
push str.paths.ini
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push esi
call dword [sym.imp.NSCRT.dll_free]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ecx
lea eax, [ebp - 0x108]
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x508]
push eax
push 0x486d4c
push str.inidir
mov ebx, 0x486c04
push ebx
call edi
cmp byte [ebp - 0x508], 0
je 0x4123d5
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00412315
lea eax, [ebp - 0x508]
push eax
call fcn.004070a2
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x508]
push eax
push 0x486d4c
push str.m3udir
push ebx
call edi
cmp byte [ebp - 0x508], 0
je 0x41242a
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00412315
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.00402cab
push eax
mov dword [ebp - 4], eax
call fcn.004070cd
push dword [ebp - 4]
call dword [sym.imp.NSCRT.dll_free]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x508]
push eax
push 0x486d4c
push str.m3ubase
push ebx
call edi
cmp byte [ebp - 0x508], 0
je 0x41247f
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00412315
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.00402cab
push eax
mov dword [ebp - 4], eax
call fcn.004070f9
push dword [ebp - 4]
call dword [sym.imp.NSCRT.dll_free]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x508]
push eax
push 0x486d4c
push str.inifile
push ebx
call edi
cmp byte [ebp - 0x508], 0
je 0x4124c0
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00412315
lea eax, [ebp - 0x508]
push eax
call fcn.004061e8
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x508]
push eax
push 0x486d4c
push str.class
push ebx
call edi
cmp byte [ebp - 0x508], 0
je 0x41251d
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00412315
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.00402cab
add esp, 0x10
push eax
push 0x40
push 0x4b0460
mov dword [ebp - 4], eax
call fcn.0047aaff
push dword [ebp - 4]
call dword [sym.imp.NSCRT.dll_free]
pop ecx
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x508]
push eax
push 0x486d4c
push 0x48769c
push ebx
call edi
cmp byte [ebp - 0x508], 0
je 0x41257a
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00412315
pop ecx
pop ecx
push 0x103
push 0x4a0ad0
push 0xffffffffffffffff
lea eax, [ebp - 0x508]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x41257a
mov word [eax*2 + 0x4a0ad0], si
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412bbb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x412b9c
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a4a4c], eax
leave
ret
Function at 0x4133a3
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x49fb6d]
cmp al, 1
je 0x4133c0
cmp al, 2
je 0x4133c0
cmp dword [0x4a4cf8], 0
je 0x4133cb
call fcn.00418cdb
jmp 0x4133cb
push 0x4b0700
call fcn.00418d1c
pop ecx
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4ac344]
call esi
mov al, byte [0x49fb6d]
cmp al, 1
je 0x4133fe
cmp al, 3
je 0x4133fe
push 0xffffffffffffffec
push dword [0x4ac344]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffffff7f
jmp 0x413411
push 0xffffffffffffffec
push dword [0x4ac344]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [0x4ac344]
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [0x4a4a54], 0
je 0x41343c
cmp dword [0x4ac3a0], 0
jne 0x41343c
push 8
push dword [0x4ac344]
call esi
mov dword [0x4a4a54], 1
pop esi
ret

Function at 0x414f26
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x960
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
push 0x48a070
push dword [ebp + 8]
lea eax, [ebp - 0x960]
push eax
call esi
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x960]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x414fbd
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x550]
push eax
call esi
test byte [ebp - 0x140], 0x10
je 0x414f97
cmp byte [ebp - 0x114], 0x2e
je 0x414fa4
lea eax, [ebp - 0x550]
push eax
call fcn.00414f26
pop ecx
jmp 0x414fa4
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414f63
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x414fca
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x488450
push dword [ebp + 8]
lea eax, [ebp - 0x664]
push eax
call edi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4150b5
push ebx
mov ebx, dword [sym.imp.NSCRT.dll_wcscmp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call edi
test byte [ebp - 0x254], 0x10
je 0x41506c
lea eax, [ebp - 0x228]
push 0x48844c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x415092
lea eax, [ebp - 0x228]
push 0x488444
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x415092
lea eax, [ebp - 0x45c]
push eax
call fcn.00414fca
pop ecx
jmp 0x415092
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415092
push 4
push eax
lea eax, [ebp - 0x45c]
push eax
call esi
push 4
push 0
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415019
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
leave
ret
Function at 0x415149
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00483980
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
xor edi, edi
call fcn.00402b8d
push dword [eax]
lea eax, [ebp - 0x10004]
push 0xffff
push eax
push 0x486d4c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 4]
call dword [sym.imp.NSCRT.dll_free]
pop ecx
lea eax, [ebp - 0x10004]
xor edx, edx
mov cl, byte [eax]
cmp cl, 0x20
je 0x4151ab
cmp cl, 9
je 0x4151ab
cmp cl, 0x2c
jne 0x4151ae
inc eax
jmp 0x41519a
cmp byte [eax], 0x2d
jne 0x4151b4
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jl 0x4151d2
cmp cl, 0x39
jg 0x4151cb
xor edx, edx
inc edx
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jge 0x4151bb
cmp edx, ebx
je 0x4151d2
inc edi
jmp 0x415198
cmp edi, ebx
jne 0x4151da
xor eax, eax
jmp 0x415255
push esi
mov eax, edi
shl eax, 2
push eax
push ebx
lea esi, [ebp - 0x10004]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp - 4], edi
cmp ebx, dword [ebp - 4]
jge 0x415252
xor edi, edi
xor eax, eax
xor edx, edx
inc edi
mov cl, byte [esi]
cmp cl, 0x20
je 0x415213
cmp cl, 9
je 0x415213
cmp cl, 0x2c
jne 0x415216
inc esi
jmp 0x415202
cmp byte [esi], 0x2d
jne 0x41521f
or edi, 0xffffffff
inc esi
mov cl, byte [esi]
cmp cl, 0x30
jl 0x415252
cmp cl, 0x39
jg 0x415240
movsx ecx, cl
lea eax, [edx + edx*4]
lea edx, [ecx + eax*2 - 0x30]
inc esi
mov cl, byte [esi]
xor eax, eax
inc eax
cmp cl, 0x30
jge 0x415226
test eax, eax
je 0x415252
mov eax, dword [ebp + 0x14]
imul edi, edx
mov eax, dword [eax]
mov dword [eax + ebx*4], edi
inc ebx
jmp 0x4151f6
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x415259
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.00402b8d
push dword [eax]
lea eax, [ebp - 0x70]
push 0x64
push eax
push 0x486d4c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x415297
cmp byte [ebp - 0x70], bl
mov byte [ebp - 1], bl
jne 0x41529b
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.NSCRT.dll_free]
cmp byte [ebp - 1], bl
pop ecx
pop ebx
je 0x4152b0
mov eax, dword [ebp + 0x10]
leave
ret
cmp byte [ebp - 0x70], 0x23
lea eax, [ebp - 0x70]
mov dword [ebp - 8], eax
jne 0x4152c2
lea eax, [ebp - 0x6f]
mov dword [ebp - 8], eax
push 0x10
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.NSCRT.dll_strtol]
movzx ecx, ah
mov ch, al
sar eax, 0x10
movzx eax, al
add esp, 0xc
shl ecx, 8
or eax, ecx
leave
ret
Function at 0x415610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0047aaff
lea eax, [ebp - 0x208]
push eax
push 0x48a2fc
push eax
call fcn.00418a7d
xor edi, edi
mov word [eax], di
add esp, 0xc
cmp word [ebp - 0x208], di
lea eax, [ebp - 0x208]
je 0x41566a
cmp word [eax], 0x2f
jne 0x415663
mov word [eax], 0x5c
inc eax
inc eax
cmp word [eax], di
jne 0x415658
push dword [ebp + 0xc]
call dword [sym.imp.NSCRT.dll_wcslen]
lea esi, [ebp + eax*2 - 0x208]
cmp word [esi], di
pop ecx
je 0x4156c8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x415697
cmp word [esi], di
je 0x4156a2
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], 0x5c
jne 0x415689
cmp word [esi], di
jne 0x4156ae
push edi
lea eax, [ebp - 0x208]
push eax
call ebx
jmp 0x4156c2
push edi
lea eax, [ebp - 0x208]
push eax
mov word [esi], di
call ebx
mov word [esi], 0x5c
inc esi
inc esi
cmp word [esi], di
jne 0x415697
pop ebx
pop edi
pop esi
leave
ret