joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a6d1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002a64d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002a840
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002a840
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002a7f5
jg 0x1002a72d
test eax, eax
je 0x1002a7eb
push 1
push 0x1000
call fcn.1001d059
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002a750
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002a7e2
push 0x8000
push ebx
call fcn.1002a57e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002a779
jg 0x1002a774
cmp ecx, 0x1000
jb 0x1002a779
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001e374
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002a7be
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1002a774
jl 0x1002a7a5
test ecx, ecx
jne 0x1002a766
push dword [ebp - 0xc]
push ebx
call fcn.1002a57e
push esi
call fcn.1001d0b6
add esp, 0xc
xor ebx, ebx
jmp 0x1002a84e
cmp byte [edi + 0x24], 0
je 0x1002a7d5
cmp dword [edi + 0x20], 5
jne 0x1002a7d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002a7e0
mov ebx, dword [edi + 0x18]
jmp 0x1002a7e2
xor ebx, ebx
push esi
call fcn.1001d0b6
pop ecx
jmp 0x1002a84e
test ecx, ecx
jg 0x1002a7b7
jl 0x1002a7f5
test eax, eax
jae 0x1002a7b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100216d7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002a815
cmp byte [edi + 0x1c], 0
je 0x1002a7b7
jmp 0x1002a846
push ebx
call fcn.10025381
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002a7b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002a84e
cmp byte [edi + 0x1c], 0
je 0x1002a84b
mov ebx, dword [edi + 0x18]
jmp 0x1002a84e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100216d7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002c5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002c61d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002c61d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406914
Capabilities:
Encode data using xor

Disassembly:
mov ah, 0xd8
adc dword [edx + 0x65fe4449], esp
mov byte [0x65fe4449], al
cmpsd dword [esi], dword es:[edi]
xor ebx, dword [edi + ebp*8 + 0x61]
sbb cl, byte [edx + 0x28152834]
in eax, dx
jp 0x406918
loop 0x40691d
sub eax, 0xfccd461d
xchg edi, eax
test byte [esi - 0x33a3e7c0], 0x40
ljmp 0xcb8c

Function at 0x517b44
Capabilities:
Encode data using xor

Disassembly:
cmp bh, byte [ecx + 0x44b6c5b4]
push ds
xor ebp, eax
loope 0x517b6f
or byte [ecx], ch
add ebp, dword [edx]
mov bh, 0x3e
invalid
push eax
out 0xd3, eax
adc al, 0x55
ror byte [ebp - 0x36], cl
inc edx
xor ecx, esi
daa
add byte [esi + 0x98f919b], bh
mov bh, 0xfc
jle 0x517ae7
ljmp 0xb8ff:0x40b9801b
push edx
loope 0x517bb0
cmp esp, eax
invalid
leave
or byte [edi], dl
sub cl, byte cs:[edx + 0x32db58c7]
sbb byte [edx], ah
push 0x70c737fa
sub eax, ebx
mov eax, 0xe5b7d990
cmp ecx, dword [eax - 0x120f7a7b]
xor eax, 0x8c4c450c
cmp ecx, dword [edi - 0x5545252c]
jp 0x517c09
add eax, ecx
xor eax, 0xee2e72f2
insd dword es:[edi], dx
inc eax
sahf
or byte [0x2f0d5386], bh
pop esi
mov ecx, dword [0x68a444e1]
cmp bl, byte [ebp - 0x3b05c3e9]
adc ch, byte [ebx + 0x44]
jns 0x517c2c
scasd eax, dword es:[edi]
stc
jge 0x517c76
mov byte [ecx], dh
push es
and esp, dword [edx + 0x3e76d9d5]
jbe 0x517c49
retf
pop eax
dec esi
rcr dl, 0xd4
cmp byte [eax], bh
mov esi, 0x23e5a8dc
pop ds
movsb byte es:[edi], byte [esi]
lock add byte [eax + 0x55], al
and dword [ebp + 0x1f509405], edx
mov word [ebp - 0xdc78495], cs
movsb byte es:[edi], byte [esi]
repne movsb byte es:[edi], byte [esi]
outsb dx, byte [esi]
inc ebp
dec esp
add al, 0x3a
popal
sbb esi, dword [ecx - 0x53210b29]
mov edx, 0xd73ba93f
push eax
in eax, 0x2e
aam 0xc2
fsubr qword [esi + 0x3e]
cmc
invalid
xchg ecx, eax
les ebx, [ecx - 0x4527c5db]
insb byte es:[edi], dx
out 0x2f, eax
mov esi, 0xb606462d
rcr byte [ebx], 1
scasb al, byte es:[edi]
jmp 0xb08ac1ce

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0xd06c24
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
mov ecx, 0x3b4c4c24
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4012d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x218], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x108]
push ecx
call fcn.00416798
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x40139d
mov edx, dword [ebp - 0x10c]
mov byte [edx], 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004166a0
add esp, 8
push str._rsdebug.ini
lea edx, [ebp - 0x218]
push edx
call fcn.004166b0
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0
push str.IsDebug
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x4270e8], eax
cmp dword [0x4270e8], 0
setne al
jmp 0x40139f
xor al, al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401630
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x421304
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40164f
jmp 0x401726
push str.OpenThread
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push str.Thread32First
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push str.Thread32Next
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push 0x4212bc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
je 0x4016af
cmp dword [ebp - 4], 0
je 0x4016af
cmp dword [ebp - 0x40], 0
je 0x4016af
cmp dword [ebp - 0x1c], 0
jne 0x4016b1
jmp 0x401726
push 0
push 4
call dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x1c
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401726
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jne 0x401716
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x3c]
je 0x401716
mov edx, dword [ebp - 0x30]
push edx
push 0
push 2
call dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x401716
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
jmp 0x4016e2
mov esp, ebp
pop ebp
ret
Function at 0x40210b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
xor esi, esi
lea edi, [esi + 0x4270f8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x402170
push dword [esi + 0x427100]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0x42711c], eax
je 0x402170
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push eax
call ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x20
lea eax, [esi + 0x427140]
push eax
call ebx
push 0
push 0
push edi
call fcn.00414bd0
add esp, 0xc
add esi, 0x68
cmp esi, 0x138
jb 0x40211e
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x4021ec
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x104], bl
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x208], bl
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00416798
cmp eax, ebx
pop ecx
pop ecx
je 0x402299
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004166a0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.004166b0
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push ebx
push str.IsDebug
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [0x427230], eax
setne al
jmp 0x40229b
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x4022e0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x110], 0
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push str.SOFTWARE_risingRAV
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40236a
and dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x4214f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40236a
lea eax, [ebp - 0x110]
push str._rsmain.exe
push eax
call fcn.004166b0
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40236a
xor esi, esi
inc esi
jmp 0x40236c
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40237b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402393
test al, 0x10
je 0x402393
xor eax, eax
inc eax
jmp 0x402395
xor eax, eax
ret 4

Function at 0x402398
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4023cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x4023d4
or eax, 0xffffffff
jmp 0x40243b
push ebx
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
mov ebx, 0x100000
push ebx
mov esi, 0x428e98
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x402428
cmp dword [ebp - 4], 0
jbe 0x40242e
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4023fe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40243f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push 0x100000
push 0x428e98
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40248b
cmp word [0x428e98], 0x5a4d
jne 0x40248b
mov ecx, dword [0x428ed4]
cmp dword [ecx + 0x428e98], 0x4550
je 0x402490
or eax, 0xffffffff
jmp 0x4024bb
push esi
movzx esi, word [ecx + 0x428e9e]
xor eax, eax
cmp esi, edi
jle 0x4024ba
lea edx, [ecx + 0x428fa0]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x4024af
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x4024a4
pop esi
pop edi
leave
ret
Function at 0x402507
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402537
xor eax, eax
jmp 0x402587
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push dword [0x5290ac]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x5290ac]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push dword [0x5290ac]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x40268c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x34b]
mov byte [ebp - 0x34c], 0
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x4027d3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x4027d3
push edi
call esi
mov esi, 0x209
cmp eax, esi
jbe 0x4026de
push 0x6f
pop eax
jmp 0x4027d6
push edi
push str._s.
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.004025d8
and dword [ebp + 8], 0
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4027cf
lea eax, [ebp - 0x114]
push 0x421544
push eax
call fcn.004179a0
test eax, eax
pop ecx
pop ecx
je 0x402793
lea eax, [ebp - 0x114]
push 0x421540
push eax
call fcn.004179a0
test eax, eax
pop ecx
pop ecx
je 0x402793
lea eax, [ebp - 0x114]
push eax
push edi
push 0x421538
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.004025d8
add esp, 0x14
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x34c]
jne 0x40277a
push eax
call fcn.0040268c
pop ecx
jmp 0x402793
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4027b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4027b7
mov dword [ebp + 8], 1
cmp dword [ebp + 8], 0
je 0x402717
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x4027d6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040268c
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
xor ebx, ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x402811
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040268c
inc ebx
cmp ebx, 0xa
pop ecx
jl 0x4027f1
push esi
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret

Function at 0x40281e
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x528ea0
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402845
push edi
push str.C:Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.0040237b
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x402866
push esi
call fcn.00402183
pop ecx
push ebx
push esi
call ebp
test eax, eax
je 0x4028c5
push 0x5c
push esi
call fcn.00416798
cmp eax, ebx
pop ecx
pop ecx
je 0x40287b
cmp byte [eax + 1], bl
jne 0x40287b
mov byte [eax], bl
push edi
push str.RsdSfxTmp
push esi
call fcn.004174bb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4028b0
push esi
call fcn.0040268c
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00402183
pop ecx
push ebx
push esi
call ebp
push esi
call fcn.0040237b
test eax, eax
jne 0x4028dc
cmp dword [esp + 0x14], ebx
jne 0x4028d8
push 0x10
push 9
push ebx
call fcn.004024be
add esp, 0xc
xor eax, eax
jmp 0x4028df
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402996
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x402a69
cmp dword [ebp + 0xc], ebx
je 0x402a69
push edi
push 0x40
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x110], bl
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x421574
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push 0x104
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 1
call fcn.004025d8
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x402a5e
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x421568
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call fcn.00416610
test eax, eax
pop ecx
je 0x402a55
cmp esi, 0x7fffffff
ja 0x402a55
push 0x421564
push esi
push dword [ebp + 0xc]
call fcn.004025ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
call fcn.00416610
pop ecx
jmp 0x402a6b
xor eax, eax
pop ebx
leave
ret
Function at 0x402b17
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
or dword [ebp - 4], 0xffffffff
push ebx
push edi
push 0x40
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x218], bl
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x18]
mov eax, 0x104
call fcn.00402a6e
test eax, eax
pop ecx
pop ecx
je 0x402c11
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0x421598
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x114], bl
mov dword [ebp - 4], eax
je 0x402c11
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push 0x421594
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00417a28
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ebx
ja 0x402c14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push 0x42158c
push eax
call fcn.00417a28
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, ebx
ja 0x402c14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push 0x421588
push eax
call fcn.00417a28
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, ebx
ja 0x402c14
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
leave
ret
Function at 0x402c88
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, ebx
mov esi, 0x105
je 0x402cf0
cmp byte [edi], bl
je 0x402cf0
push 0x5c
push edi
call fcn.00417440
test eax, eax
pop ecx
pop ecx
jne 0x402d1a
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.00416798
cmp eax, ebx
pop ecx
pop ecx
je 0x402ced
mov byte [eax + 1], bl
push edi
jmp 0x402d04
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4214d0
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004025ff
lea eax, [ebp - 0x10c]
mov dword [ebp + 0xc], eax
push ebx
push 0x20
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402e22
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
shl ecx, 0xa
cmp eax, ecx
jbe 0x402df4
cmp eax, 0xffffffff
je 0x402df4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41
pop ecx
xor eax, eax
push esi
push dword [ebp + 0xc]
mov byte [ebp - 0x214], bl
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push 0x2e
push eax
call fcn.00416798
cmp eax, ebx
pop ecx
pop ecx
je 0x402d9b
mov byte [eax], bl
push 0x42159c
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.004025ff
push 0x80
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
push 0x20
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00416610
pop ecx
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret