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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040ae10
mov eax, dword [0x41bce0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041099d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x410d48
push 2
push esi
push dword [ebp + 8]
call fcn.0041099d
add esp, 0xc
cmp eax, ebx
je 0x410d48
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x410ceb
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00412e10
push 0x8000
push dword [ebp + 8]
call fcn.004137e8
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x410ca4
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040ba19
add esp, 0xc
cmp eax, 0xffffffff
je 0x410cc4
sub edi, eax
test edi, edi
jg 0x410c9c
jmp 0x410cdc
call fcn.0040bc72
cmp dword [eax], 5
jne 0x410cd9
call fcn.0040bc69
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004137e8
pop ecx
pop ecx
jmp 0x410d33
jge 0x410d33
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041099d
push dword [ebp + 8]
call fcn.0040b57e
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x410d33
call fcn.0040bc69
mov dword [eax], 0xd
call fcn.0040bc72
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0041099d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x410d4a
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040f8d9
leave
ret

Function at 0x411f75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41bce0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x411ff0
push ebx
call fcn.00411f3e
test eax, eax
pop ecx
jne 0x411fc2
call fcn.0040bc72
mov dword [eax], 0xf
call fcn.0040bc69
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0040f8d9
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x412002
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x411fb2
inc eax
cmp eax, 0x104
ja 0x411fb2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41203a
cmp eax, dword [ebp + 0x10]
jg 0x41201d
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040a270
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41204f
call fcn.0040bc69
mov dword [eax], 0xc
jmp 0x411fb2
cmp eax, dword [ebp + 0x10]
jle 0x41204f
call fcn.0040bc69
mov dword [eax], 0x22
jmp 0x411fb2
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0040f7b0
pop ecx
pop ecx
jmp 0x411fb4
Function at 0x41213c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41d140], ebx
push esi
push edi
jne 0x4121bc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4121f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x418714
push edi
call esi
test eax, eax
mov dword [0x41d140], eax
je 0x4121f7
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41d144], eax
call esi
cmp dword [0x41ce4c], 2
mov dword [0x41d148], eax
jne 0x4121bc
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41d150], eax
je 0x4121bc
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41d14c], eax
mov eax, dword [0x41d14c]
test eax, eax
je 0x412201
call eax
test eax, eax
je 0x4121e8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41d150]
test eax, eax
je 0x4121e8
test byte [ebp - 8], 1
jne 0x412201
cmp dword [0x41ce58], 4
jb 0x4121fb
or byte [ebp + 0x12], 0x20
jmp 0x412220
xor eax, eax
jmp 0x412230
or byte [ebp + 0x12], 4
jmp 0x412220
mov eax, dword [0x41d144]
test eax, eax
je 0x412220
call eax
mov ebx, eax
test ebx, ebx
je 0x412220
mov eax, dword [0x41d148]
test eax, eax
je 0x412220
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41d140]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412868
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4128d3
push 0x3d
push dword [ebp + 8]
call fcn.00413e33
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4128d3
cmp dword [ebp + 8], esi
je 0x4128d3
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x41ce6c]
cmp eax, dword [0x41ce70]
jne 0x4128b9
mov edi, eax
call fcn.00412807
mov dword [0x41ce6c], eax
cmp eax, ebx
jne 0x412912
cmp dword [ebp + 0xc], ebx
je 0x4128db
cmp dword [0x41ce74], ebx
je 0x4128db
call fcn.0040da4b
test eax, eax
je 0x412912
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x412a16
push 4
call fcn.0040a270
cmp eax, ebx
pop ecx
mov dword [0x41ce6c], eax
je 0x4128d3
mov dword [eax], ebx
cmp dword [0x41ce74], ebx
jne 0x412912
push 4
call fcn.0040a270
cmp eax, ebx
pop ecx
mov dword [0x41ce74], eax
je 0x4128d3
mov dword [eax], ebx
mov ebx, dword [0x41ce6c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004127ba
mov edi, eax
test edi, edi
pop ecx
jl 0x41296b
cmp dword [ebx], 0
je 0x41296b
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040a158
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x412953
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4129a1
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41294a
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040bd29
test eax, eax
pop ecx
pop ecx
je 0x4129a1
jmp 0x41299c
cmp dword [ebp - 4], 0
jne 0x412a0f
test edi, edi
jge 0x41297b
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040bd29
test eax, eax
pop ecx
pop ecx
je 0x4128d3
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x41ce6c], eax
cmp dword [ebp + 0xc], 0
je 0x4129f8
push dword [ebp + 8]
call fcn.0040d9c0
inc eax
inc eax
push eax
call fcn.0040a270
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4129f8
push dword [ebp + 8]
push esi
call fcn.0040f7b0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4129f1
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040a158
pop ecx
cmp dword [ebp - 4], 0
je 0x412a07
push dword [ebp + 8]
call fcn.0040a158
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4128d6
push esi
call fcn.0040a158
pop ecx
xor eax, eax
jmp 0x4128d6
Function at 0x413088
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040ae10
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41311d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41ce4c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41311d
cmp eax, 1
je 0x413135
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41311d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4130f2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x413119
xor eax, eax
inc eax
jmp 0x413151
cmp esi, ebx
jae 0x413121
xor eax, eax
jmp 0x413151
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41ce4c]
jmp 0x413137
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40121f
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.0041615d
cmp eax, ebx
pop ecx
pop ecx
je 0x4012cc
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004161d0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.004161e0
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 [0x42f170], eax
setne al
jmp 0x4012ce
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x401339
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0x428374
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x4013ef
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThread
push edi
call esi
push str.Thread32First
push edi
mov dword [ebp - 4], eax
call esi
push str.Thread32Next
push edi
mov ebx, eax
call esi
push 0x42832c
push edi
mov dword [ebp - 8], eax
call esi
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x4013ed
cmp ebx, ecx
je 0x4013ed
cmp dword [ebp - 8], ecx
je 0x4013ed
cmp eax, ecx
je 0x4013ed
push ecx
push 4
call eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
push eax
push esi
mov dword [ebp - 0x28], 0x1c
call ebx
jmp 0x4013e9
cmp dword [ebp - 0x1c], edi
jne 0x4013e1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
je 0x4013e1
push eax
push 0
push 2
call dword [ebp - 4]
test eax, eax
je 0x4013e1
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 8]
test eax, eax
jne 0x4013c1
pop esi
pop ebx
pop edi
leave
ret

Function at 0x401a94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401aa9
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401abb
xor eax, eax
jmp 0x401aed
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401adf
cmp esi, eax
jae 0x401ab7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ad1
cmp esi, eax
jae 0x401ab7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x401d8b
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 + 0x42f180]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401df0
push dword [esi + 0x42f188]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0x42f1a4], eax
je 0x401df0
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 + 0x42f1c8]
push eax
call ebx
push 0
push 0
push edi
call fcn.00414eab
add esp, 0xc
add esi, 0x68
cmp esi, 0x138
jb 0x401d9e
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x401e6c
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.0041615d
cmp eax, ebx
pop ecx
pop ecx
je 0x401f19
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004161d0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.004161e0
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 [0x42f2b8], eax
setne al
jmp 0x401f1b
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x401f60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [esp + 4]
jle 0x401f76
mov dl, byte [esp + 0xc]
xor byte [eax], dl
inc eax
dec ecx
jne 0x401f6c
ret

Function at 0x401f77
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401f8f
test al, 0x10
je 0x401f8f
xor eax, eax
inc eax
jmp 0x401f91
xor eax, eax
ret 4
Function at 0x401f94
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 0x401fcb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x401fd0
or eax, 0xffffffff
jmp 0x402037
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, 0x431618
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x402024
cmp dword [ebp - 4], 0
jbe 0x40202a
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 0x401ffa
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 0x40203b
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 0x431618
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402087
cmp word [0x431618], 0x5a4d
jne 0x402087
mov ecx, dword [0x431654]
cmp dword [ecx + 0x431618], 0x4550
je 0x40208c
or eax, 0xffffffff
jmp 0x4020b7
push esi
movzx esi, word [ecx + 0x43161e]
xor eax, eax
cmp esi, edi
jle 0x4020b6
lea edx, [ecx + 0x431720]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x4020ab
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x4020a0
pop esi
pop edi
leave
ret

Function at 0x402103
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 0x402133
xor eax, eax
jmp 0x402183
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push dword [0x53182c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x53182c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push dword [0x53182c]
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 0x4023bb
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 0x402502
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x402502
push edi
call esi
mov esi, 0x209
cmp eax, esi
jbe 0x40240d
push 0x6f
pop eax
jmp 0x402505
push edi
push str._s.
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00402307
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 0x4024fe
lea eax, [ebp - 0x114]
push 0x42861c
push eax
call fcn.00417330
test eax, eax
pop ecx
pop ecx
je 0x4024c2
lea eax, [ebp - 0x114]
push 0x428618
push eax
call fcn.00417330
test eax, eax
pop ecx
pop ecx
je 0x4024c2
lea eax, [ebp - 0x114]
push eax
push edi
push 0x428610
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00402307
add esp, 0x14
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x34c]
jne 0x4024a9
push eax
call fcn.004023bb
pop ecx
jmp 0x4024c2
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 0x4024e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4024e6
mov dword [ebp + 8], 1
cmp dword [ebp + 8], 0
je 0x402446
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x402505
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40250a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.004023bb
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
xor ebx, ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x402540
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004023bb
inc ebx
cmp ebx, 0xa
pop ecx
jl 0x402520
push esi
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x40254d
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, 0x531620
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402574
push edi
push str.C:Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00401f77
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x402595
push esi
call fcn.00401e03
pop ecx
push ebx
push esi
call ebp
test eax, eax
je 0x4025f4
push 0x5c
push esi
call fcn.0041615d
cmp eax, ebx
pop ecx
pop ecx
je 0x4025aa
cmp byte [eax + 1], bl
jne 0x4025aa
mov byte [eax], bl
push edi
push str.RsdSfxTmp
push esi
call fcn.0041692b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4025df
push esi
call fcn.004023bb
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.00401e03
pop ecx
push ebx
push esi
call ebp
push esi
call fcn.00401f77
test eax, eax
jne 0x40260b
cmp dword [esp + 0x14], ebx
jne 0x402607
push 0x10
push 9
push ebx
call fcn.004020ba
add esp, 0xc
xor eax, eax
jmp 0x40260e
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4026fd
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 0x4027d0
cmp dword [ebp + 0xc], ebx
je 0x4027d0
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 0x42864c
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.00402307
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 0x4027c5
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x428640
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call fcn.00415a50
test eax, eax
pop ecx
je 0x4027bc
cmp esi, 0x7fffffff
ja 0x4027bc
push 0x42863c
push esi
push dword [ebp + 0xc]
call fcn.0040232e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
call fcn.00415a50
pop ecx
jmp 0x4027d2
xor eax, eax
pop ebx
leave
ret
Function at 0x40287e
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.004027d5
test eax, eax
pop ecx
pop ecx
je 0x402978
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 0x428670
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 0x402978
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push 0x42866c
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004173b8
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ebx
ja 0x40297b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push 0x428664
push eax
call fcn.004173b8
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, ebx
ja 0x40297b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push 0x428660
push eax
call fcn.004173b8
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, ebx
ja 0x40297b
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
leave
ret