joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e170
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x636760]
push edi
push pe_nt_image_headers32
call fcn.0042eb6e
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 4
mov ebx, eax
push pe_nt_image_headers32
push ebx
push esi
mov dword [ebx], 0
call edi
mov esi, dword [0x636764]
push pe_nt_image_headers32
mov dword [0x6369bc], ebx
call fcn.0042eb6e
add esp, 4
mov ebp, eax
push pe_nt_image_headers32
push ebp
push esi
mov dword [ebp], 0
call edi
mov dword [0x6369c0], ebp
call fcn.0040de00
test eax, eax
jne 0x40e27b
push ebp
push ebx
call fcn.00405650
push dword [0x6367a0]
call fcn.0040e1ee
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40e280
Capabilities:
Create thread

Disassembly:
cmp dword [0x6367a0], 0
jne 0x40e29a
push dword [0x636760]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [0x6367a0], eax
push esi
mov esi, dword [esp + 8]
cmp esi, dword [0x636768]
jne 0x40e2c8
mov ecx, dword [0x636734]
test ecx, ecx
je 0x40e2bc
call fcn.0040e170
mov ecx, dword [0x636734]
xor eax, eax
test ecx, ecx
sete al
mov dword [0x636734], eax
cmp esi, dword [0x636774]
jne 0x40e301
mov ecx, dword [0x63673c]
test ecx, ecx
je 0x40e2f5
push 0
push 0
push 0
push 0x40dd90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x63673c]
xor eax, eax
test ecx, ecx
sete al
mov dword [0x63673c], eax
cmp esi, dword [0x63676c]
jne 0x40e33f
mov ecx, dword [0x636744]
test ecx, ecx
je 0x40e333
push dword [0x636780]
push dword [0x63677c]
push dword [0x636778]
call fcn.00403c80
mov ecx, dword [0x636744]
add esp, 0xc
xor eax, eax
test ecx, ecx
sete al
mov dword [0x636744], eax
cmp esi, dword [0x636770]
pop esi
jne 0x40e37e
mov ecx, dword [0x63674c]
test ecx, ecx
je 0x40e372
push dword [0x636780]
push dword [0x63677c]
push dword [0x636778]
call fcn.004042a0
mov ecx, dword [0x63674c]
add esp, 0xc
xor eax, eax
test ecx, ecx
sete al
mov dword [0x63674c], eax
ret

Function at 0x40e380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x44d958]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0xff
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push 0
push eax
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x10], 0xff
call fcn.00430eb0
push 0xff
lea eax, [esp + 0x11c]
push 0
push eax
call fcn.00430eb0
add esp, 0x18
lea eax, [esp]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x43ae70
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x110]
push eax
push 0
push 0
push 0x43ae80
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0xc]
push eax
push dword [0x636760]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x10c]
push eax
push dword [0x636764]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042eb7c
add esp, 0x210
ret
Function at 0x4131e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439598
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44d958]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x413343
cmp byte [ebx + 0x3d], 0
je 0x413343
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x413234
xor al, al
jmp 0x413345
mov ecx, 0xf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4132b9
sub eax, 1
je 0x4132bd
sub eax, 2
je 0x41330f
xor bl, bl
jmp 0x413311
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4132f5
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0041e1bf
add esp, 0x10
cmp esi, eax
jne 0x4132b5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x41330f
test esi, esi
jne 0x413280
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00414990
jmp 0x413279
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41332d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004029e0
mov dword [ebp - 0x14], 0xf
mov al, bl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x413345
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eb7c
mov esp, ebp
pop ebp
ret
Function at 0x423dc8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423c47

Function at 0x42a034
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429cf4
Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4032ec], eax
mov eax, dword [ebp + 4]
mov dword [0x40313a], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40313a]
mov dword [ebp - 0x48], eax
mov eax, 0x4021c7
mov dword [ebp - 0x54], eax
mov ecx, 0x4031e6
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40313a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403338], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403338]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
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 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.00416e2d
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.00416ea0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.00416eb0
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 [0x436180], 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 0x42e3e4
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 0x42e39c
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 0x401aad
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 0x401ac2
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401ad4
xor eax, eax
jmp 0x401b06
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 0x401af8
cmp esi, eax
jae 0x401ad0
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401aea
cmp esi, eax
jae 0x401ad0
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x401da4
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 + 0x436190]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401e09
push dword [esi + 0x436198]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0x4361b4], eax
je 0x401e09
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 + 0x4361d8]
push eax
call ebx
push 0
push 0
push edi
call fcn.00415b72
add esp, 0xc
add esi, 0x68
cmp esi, 0x138
jb 0x401db7
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x401e85
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.00416e2d
cmp eax, ebx
pop ecx
pop ecx
je 0x401f32
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00416ea0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.00416eb0
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 [0x4362c8], eax
setne al
jmp 0x401f34
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x401fd3
Capabilities:
Encode data using xor

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402002
test al, 0x10
je 0x402002
xor eax, eax
inc eax
jmp 0x402004
xor eax, eax
ret 4
Function at 0x402007
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 0x40203e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x402043
or eax, 0xffffffff
jmp 0x4020aa
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, pe_overlay
push ebx
mov esi, 0x4388b8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x402097
cmp dword [ebp - 4], 0
jbe 0x40209d
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 0x40206d
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 0x4020ae
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 pe_overlay
push 0x4388b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020fa
cmp word [0x4388b8], 0x5a4d
jne 0x4020fa
mov ecx, dword [0x4388f4]
cmp dword [ecx + 0x4388b8], 0x4550
je 0x4020ff
or eax, 0xffffffff
jmp 0x40212a
push esi
movzx esi, word [ecx + 0x4388be]
xor eax, eax
cmp esi, edi
jle 0x402129
lea edx, [ecx + 0x4389c0]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x40211e
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x402113
pop esi
pop edi
leave
ret

Function at 0x40224b
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 0x40227b
xor eax, eax
jmp 0x4022cb
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push dword [0x538acc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x538acc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push dword [0x538acc]
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 0x4024d7
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 0x40261e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x40261e
push edi
call esi
mov esi, 0x209
cmp eax, esi
jbe 0x402529
push 0x6f
pop eax
jmp 0x402621
push edi
push str._s.
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00402423
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 0x40261a
lea eax, [ebp - 0x114]
push 0x42e68c
push eax
call fcn.00417f80
test eax, eax
pop ecx
pop ecx
je 0x4025de
lea eax, [ebp - 0x114]
push 0x42e688
push eax
call fcn.00417f80
test eax, eax
pop ecx
pop ecx
je 0x4025de
lea eax, [ebp - 0x114]
push eax
push edi
push 0x42e680
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00402423
add esp, 0x14
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x34c]
jne 0x4025c5
push eax
call fcn.004024d7
pop ecx
jmp 0x4025de
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 0x402602
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x402602
mov dword [ebp + 8], 1
cmp dword [ebp + 8], 0
je 0x402562
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x402621
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402626
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, 0x5388c0
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40264d
push edi
push str.C:Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00401fea
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x40266e
push esi
call fcn.00401e1c
pop ecx
push ebx
push esi
call ebp
test eax, eax
je 0x4026cd
push 0x5c
push esi
call fcn.00416e2d
cmp eax, ebx
pop ecx
pop ecx
je 0x402683
cmp byte [eax + 1], bl
jne 0x402683
mov byte [eax], bl
push edi
push str.RsdSfxTmp
push esi
call fcn.004175fb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4026b8
push esi
call fcn.004024d7
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.00401e1c
pop ecx
push ebx
push esi
call ebp
push esi
call fcn.00401fea
test eax, eax
jne 0x4026e4
cmp dword [esp + 0x14], ebx
jne 0x4026e0
push 0x10
push 9
push ebx
call fcn.0040219a
add esp, 0xc
xor eax, eax
jmp 0x4026e7
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402928
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 0x4029fb
cmp dword [ebp + 0xc], ebx
je 0x4029fb
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 0x42e6ec
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.00402423
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 0x4029f0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x42e6e0
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call fcn.00416720
test eax, eax
pop ecx
je 0x4029e7
cmp esi, 0x7fffffff
ja 0x4029e7
push 0x42e6dc
push esi
push dword [ebp + 0xc]
call fcn.0040244a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
call fcn.00416720
pop ecx
jmp 0x4029fd
xor eax, eax
pop ebx
leave
ret
Function at 0x402aa9
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.00402a00
test eax, eax
pop ecx
pop ecx
je 0x402ba3
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 0x42e710
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 0x402ba3
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push 0x42e70c
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00418008
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ebx
ja 0x402ba6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push 0x42e704
push eax
call fcn.00418008
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, ebx
ja 0x402ba6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push 0x42e700
push eax
call fcn.00418008
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, ebx
ja 0x402ba6
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
leave
ret