joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526fc8
Capabilities:
Encode data using xor

Disassembly:
cdq
mov ss, word [edi + 0x60]
inc edx
push eax
cli
scasb al, byte es:[edi]
add dword [eax + 0x2b388245], ebx
xchg ebx, eax
jg 0x52703c
cmpsb byte [esi], byte es:[edi]
mov al, byte [0xe9c03a90]
sub cl, byte [esi + 0x1e9f3887]
xchg ebx, eax
push ebp
mov bh, 0xe1
ret 0x261b
nop
mov ch, 2
add al, 0x85
lea esi, [0x2d03fc0]
adc byte [edx - 2], 1
pop ss
movsd dword es:[edi], dword [esi]
pop edx
invalid

Function at 0x64ed1c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f370
push 0x64eca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0xa51f8c], 0xffffffff
or dword [0xa51f90], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0xa51f88]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0xa51f84]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0xa51f94], eax
call fcn.0064ee2f
add dword [eax], eax
add byte [ecx], bh
sbb eax, 0x651280
jne 0x64ed33
push 0x64ee2c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0064ee1a
push 0x65100c
push 0x651008
call sub.MSVCRT.dll__initterm
mov eax, dword [0xa51f80]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0xa51f7c]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x651004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x64edc6
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64ed9a
cmp al, 0x22
jne 0x64ed8c
cmp byte [esi], 0x22
jne 0x64eda3
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64edad
cmp al, 0x20
jbe 0x64ed9f
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x64edd1
movzx eax, word [ebp - 0x2c]
jmp 0x64edd4
cmp byte [esi], 0x20
jbe 0x64eda3
inc esi
mov dword [ebp - 0x74], esi
jmp 0x64edc6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
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 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c4004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048d925
leave
ret 4
Function at 0x4015d0
Capabilities:
Copy file

Disassembly:
mov eax, 0x1008
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathW]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push 0x4ad0e4
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40164e
push 0x4deb78
lea eax, [esp + 0x18]
push eax
call edi
push str.autobat.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push str.config.sys
push 0
call esi
test eax, eax
je 0x401698
push 0x4deb78
lea eax, [esp + 0x18]
push eax
call edi
push str.confsys.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push str.autoexec.nt
push 0
call esi
test eax, eax
je 0x4016e2
push 0x4deb78
lea eax, [esp + 0x18]
push eax
call edi
push str.autont.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push 0x4ad178
push 0
call esi
test eax, eax
je 0x40172c
push 0x4deb78
lea eax, [esp + 0x18]
push eax
call edi
push str.confnt.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push 0x4ad1a4
push 0
call esi
test eax, eax
je 0x401776
push 0x4deb78
lea eax, [esp + 0x18]
push eax
call edi
push str.winini.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push str.system.ini
push 0
call esi
test eax, eax
je 0x4017c0
push 0x4deb78
lea eax, [esp + 0x18]
push eax
call edi
push str.sysini.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x1008
ret
Function at 0x401d60
Capabilities:
Delete file

Disassembly:
mov eax, 0x1854
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x184c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
xor edi, edi
push 0x7fe
push eax
mov word [esp + 0x60], ax
xor ebp, ebp
lea eax, [esp + 0x62]
push eax
call fcn.0048e880
add esp, 0xc
xor eax, eax
mov word [esp + 0x858], ax
push 0x7fe
push eax
lea eax, [esp + 0x862]
push eax
call fcn.0048e880
add esp, 0xc
push 0x2751
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x401fb4
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0xf000
push edi
push 0x102c
push dword [esp + 0x20]
call esi
and eax, 0xfffff000
cmp eax, 0x2000
jne 0x401fa9
lea eax, [esp + 0x58]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push edi
push 0x1073
push dword [esp + 0x20]
mov dword [esp + 0x44], 0x104
call esi
lea eax, [esp + 0x58]
push eax
push 0x2727
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4deb78
lea eax, [esp + 0x85c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.Registry_
lea eax, [esp + 0x85c]
push eax
call ebx
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x1060], ax
lea eax, [esp + 0x1062]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x1058]
push 0xa
push 0xa
push eax
push ebp
call fcn.0048f70e
add esp, 0x10
lea eax, [esp + 0x1058]
push eax
lea eax, [esp + 0x85c]
push eax
call ebx
push str..pnt
lea eax, [esp + 0x85c]
push eax
call ebx
lea eax, [esp + 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x56], 0x5c
je 0x401efd
push 0x4ad2c0
lea eax, [esp + 0x5c]
push eax
call ebx
push 0x5c
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
lea eax, [esp + 0x58]
sub esi, eax
and esi, 0xfffffffe
cmp esi, 0x800
jae 0x401fd6
xor eax, eax
mov word [esp + esi + 0x58], ax
lea eax, [esp + 0x1058]
push 0x4ad2c4
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x105c]
push eax
call ebx
push 0x4ad2c0
lea eax, [esp + 0x105c]
push eax
call ebx
push 0
push 0
push 0x405
push 0x272a
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x5e]
lea ecx, [esp + 0x5c]
add esi, eax
call fcn.00478540
mov edx, esi
mov ecx, eax
call fcn.004017e0
add esp, 4
cmp eax, 0xffffffff
je 0x401fd2
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
inc ebp
inc edi
cmp edi, dword [esp + 0x18]
jl 0x401df1
mov eax, 1
mov ecx, dword [esp + 0x185c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x1854
ret
xor eax, eax
jmp 0x401fb9
call fcn.0048da55
int3
Function at 0x4028a0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x125c
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x1258], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0xa60]
push ebx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0xa60]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028e0
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0xa60]
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0xa5e], 0x5c
jne 0x40290e
push 0x4ad34c
jmp 0x402913
push 0x4ad2c8
push eax
call esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xa64]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402947
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1258]
xor ecx, esp
call fcn.0048d925
mov esp, ebp
pop ebp
ret
test byte [esp + 0x10], 0x10
jne 0x4029ad
push ebx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402967
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x25e], 0x5c
je 0x402990
push 0x4ad2c0
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x402a35
nop
test byte [esp + 0x10], 0x10
jne 0x402a29
push dword [esp + 0xc]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4029e3
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x25e], 0x5c
je 0x402a0c
push 0x4ad2c0
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x4029c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1264]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d925
mov esp, ebp
pop ebp
ret
Function at 0x402a60
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x274b
push dword [0x4def88]
xor esi, esi
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x20], eax
call ebx
test eax, eax
je 0x402ac5
push 0xf000
push ebp
push 0x102c
push dword [esp + 0x1c]
mov edi, esi
call ebx
push 0
push 0
shr eax, 0xc
lea esi, [edi + 1]
sub eax, 1
push 0x1004
push dword [esp + 0x1c]
cmove esi, edi
inc ebp
call ebx
cmp ebp, eax
jne 0x402a92
push 0x274c
push dword [0x4def88]
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x20], eax
call ebx
test eax, eax
je 0x402b23
nop word [eax + eax]
push 0xf000
push ebp
push 0x102c
push dword [esp + 0x1c]
mov edi, esi
call ebx
push 0
push 0
shr eax, 0xc
lea esi, [edi + 1]
sub eax, 1
push 0x1004
push dword [esp + 0x1c]
cmove esi, edi
inc ebp
call ebx
cmp ebp, eax
jne 0x402af0
push 0x2751
push dword [0x4def88]
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x20], eax
call ebx
test eax, eax
je 0x402b83
nop dword [eax + eax]
push 0xf000
push ebp
push 0x102c
push dword [esp + 0x1c]
mov edi, esi
call ebx
push 0
push 0
shr eax, 0xc
lea esi, [edi + 1]
sub eax, 1
push 0x1004
push dword [esp + 0x1c]
cmove esi, edi
inc ebp
call ebx
cmp ebp, eax
jne 0x402b50
push 0x4ded80
push 0
push 0x4ad350
push str.SYSFILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [esi + 1]
push 0
push 0
push 0x402
push 0x272a
push dword [0x4def88]
test eax, eax
cmove edi, esi
call ebp
push eax
call ebx
movzx esi, di
shl esi, 0x10
push esi
push 0
push 0x401
push 0x272a
push dword [0x4def88]
call ebp
push eax
call ebx
push 0
push 1
push 0x404
push 0x272a
push dword [0x4def88]
call ebp
push eax
call ebx
push 0
push 0
push 0x402
push 0x272b
push dword [0x4def88]
call ebp
push eax
call ebx
push esi
push 0
push 0x401
push 0x272b
push dword [0x4def88]
call ebp
push eax
call ebx
push 0
push 1
push 0x404
push 0x272b
push dword [0x4def88]
call ebp
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402fb0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x12b4
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x12ac], eax
push ebx
push ebp
push esi
push edi
push 0x2738
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push 0
push 0
push 0x1009
push esi
call edi
push 0x4deb78
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4ad34c
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
lea eax, [esp + 0x68]
push eax
push ebx
call ebp
test eax, eax
je 0x40314a
test byte [esp + 0x68], 0x10
je 0x40313a
push 0x4ad2d4
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40313a
push 0x4ad37c
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40313a
push 0
push 0
push 0x1004
push esi
call edi
push 0x4ce7b0
push 0
mov dword [0x4ce7b4], eax
lea eax, [esp + 0x9c]
push 0x104d
push esi
mov dword [0x4ce7cc], 0
mov dword [0x4ce7c4], eax
call edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x64]
push eax
movzx eax, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x6e]
push eax
push str._.2d._.2d._d__.2d:_.2d
lea eax, [esp + 0xad0]
push 0x400
push eax
call fcn.0040a3c0
add esp, 0x20
mov dword [esp + 0x24], 1
lea eax, [esp + 0xab8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push dword [0x4ce7b4]
push 0x1074
push esi
call edi
lea eax, [esp + 0x68]
push eax
push ebx
call ebp
test eax, eax
jne 0x403042
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0xb
push eax
push 0
push 0x102b
push esi
mov dword [esp + 0x38], 2
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x477150
push 1
push 0x1051
push esi
mov dword [0x4deb70], 0
mov dword [0x4deb6c], esi
call edi
mov ecx, dword [esp + 0x12bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x12b4
ret
Function at 0x4031b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1048
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x1044], eax
push ebx
push ebp
push esi
push 0x2751
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
push 0
push 0
push 0x1009
push ebx
call ebp
push 0x7fc
lea eax, [esp + 0x858]
mov dword [esp + 0x854], 0x30
push 0
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x50]
xor esi, esi
push 0x4ded80
push 0x400
push eax
push esi
lea eax, [esp + 0x860]
push eax
push 0x4ad0a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x403310
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [esp + 0x54]
inc esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], esi
xor esi, esi
push eax
call edi
test eax, eax
jle 0x403277
mov ax, word [esp + esi*2 + 0x56]
mov word [esp + esi*2 + 0x54], ax
lea eax, [esp + 0x54]
push eax
inc esi
call edi
cmp esi, eax
jl 0x403261
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4ce738
push 0
mov dword [0x4ce73c], eax
lea eax, [esp + 0x5c]
push 0x104d
push ebx
mov dword [0x4ce74c], eax
call ebp
cmp dword [esp + 0x10], 0x31
jne 0x4032ca
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4ce73c]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebx
call ebp
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x854]
push 0xa
push 0xa
push eax
push esi
call fcn.0048f70e
add esp, 0x10
lea eax, [esp + 0x54]
push 0x4ded80
push 0x400
push eax
push 0
lea eax, [esp + 0x864]
push eax
push 0x4ad0a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x403246
pop edi
mov ecx, dword [esp + 0x1050]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x1048
ret
Function at 0x403330
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x4bc
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push 0x274c
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
push 0
push 0
push 0x1009
push ebx
call ebp
push 0x204
lea eax, [esp + 0x2c4]
mov dword [esp + 0x2c0], 0x30
push 0
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x50]
xor esi, esi
push 0x4ded80
push 0x136
push eax
push esi
lea eax, [esp + 0x2cc]
push eax
push str.UNINSTALLFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40348f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [esp + 0x54]
inc esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], esi
xor esi, esi
push eax
call edi
test eax, eax
jle 0x4033f6
nop dword [eax]
mov ax, word [esp + esi*2 + 0x56]
mov word [esp + esi*2 + 0x54], ax
lea eax, [esp + 0x54]
push eax
inc esi
call edi
cmp esi, eax
jl 0x4033e0
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4ce774
push 0
mov dword [0x4ce778], eax
lea eax, [esp + 0x5c]
push 0x104d
push ebx
mov dword [0x4ce788], eax
call ebp
cmp dword [esp + 0x10], 0x31
jne 0x403449
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4ce778]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebx
call ebp
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x2c0]
push 0xa
push 0xa
push eax
push esi
call fcn.0048f70e
add esp, 0x10
lea eax, [esp + 0x54]
push 0x4ded80
push 0x136
push eax
push 0
lea eax, [esp + 0x2d0]
push eax
push str.UNINSTALLFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4033c2
pop edi
mov ecx, dword [esp + 0x4c4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x4bc
ret
Function at 0x403840
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x403a0b
push esi
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x403a03
cmp esi, 0xffffffff
je 0x403a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403a03
push ebp
lea eax, [esi + 2]
push 2
push eax
call fcn.0048f743
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x403a02
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esi + esi]
push esi
push ebp
mov dword [esp + 0x1c], eax
lea edi, [eax + 2]
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
push 2
push edi
test eax, eax
jne 0x4038ff
call fcn.0048f743
add esp, 8
mov edi, eax
push esi
push edi
push 0xffffffffffffffff
push ebp
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x403915
call fcn.0048f743
add esp, 8
mov edi, eax
push ebp
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov dword [esp + 0x10], esi
push ebx
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [esp + 0x14], eax
test esi, esi
je 0x403942
nop dword [eax]
cmp word [edi + ecx*2], 0xd
jne 0x40393d
xor eax, eax
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x403930
push 2
push 0x400
call fcn.0048f743
add esp, 8
mov dword [esp + 0x18], 0
cmp dword [esp + 0x10], 0
mov ebx, eax
jbe 0x4039e9
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
nop
lea esi, [ecx + edi]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x400
jge 0x4039ba
push 0
push 0
push 0x1004
push dword [esp + 0x20]
call ebp
push esi
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], 0
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x30]
mov dword [esp + 0x44], ebx
push eax
push 0
push 0x104d
push dword [esp + 0x20]
call ebp
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4039c0
mov eax, dword [esp + 0x18]
sub esi, ecx
sar esi, 1
add eax, 2
add eax, esi
mov dword [esp + 0x18], eax
lea ecx, [eax + eax]
cmp dword [esp + 0x10], ecx
ja 0x403970
mov ebp, dword [esp + 0x1c]
push ebx
call fcn.0048f74e
push edi
call fcn.0048f74e
push ebp
call fcn.0048f74e
mov edi, dword [esp + 0x2c]
add esp, 0xc
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x1c
ret