joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110b250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111f808
push 0x110f288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x110b329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x110b329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0110e1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x110b329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x110b329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x110b32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0110b351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x110bd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x110bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x110bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x110bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x110bd94
push eax
push esi
call fcn.0110e20b
add esp, 8
pop esi
ret 0x10

Function at 0x110bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x110be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x110be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x1124320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0110ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x110bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x110be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x110bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x110beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x1124320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0110ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x110beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x110be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x110c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x110c131
push esi
call fcn.0110f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.010fe080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x110c131
push 0
push ebp
call fcn.010fe3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.010fe260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x110c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.010fe2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x110c121
push 0x1124918
push edi
call fcn.0110d3f0
push eax
push ebx
push esi
call fcn.0110bf60
push 0x11248f8
push edi
call fcn.0110d3f0
push eax
push ebx
push esi
call fcn.0110bf60
push 0x11248d8
push edi
call fcn.0110d3f0
push eax
push ebx
push esi
call fcn.0110bf60
push 0x11248c0
push edi
call fcn.0110d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0110bf60
push 0x11248a0
push edi
call fcn.0110d3f0
push eax
push ebx
push esi
call fcn.0110bf60
push 0x1124888
push edi
call fcn.0110d3f0
push eax
push ebx
push esi
call fcn.0110bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x110d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0110d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0110d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0110d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0110d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x110dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x110dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x111f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x110dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x110dc52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7264312b
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x20b0409e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3df2755e
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
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x1943522e
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401087
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010ba
push 0xfffffffffffffffe
pop eax
jmp 0x40122c
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4010e3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010ff
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401107
or eax, 0xffffffff
jmp 0x40122c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x401215
cmp byte [esi + 1], 0x4d
jne 0x401215
push 0
sub edi, 0xe
pop eax
je 0x401135
mov cl, byte [eax + esi + 0xe]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x401129
cmp dword [esi + 0x10], 0
je 0x401142
push 0xfffffffffffffff0
jmp 0x401217
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
and dword [edi + 4], 0
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0xe]
dec eax
je 0x40117e
sub eax, 3
je 0x40117a
sub eax, 4
je 0x401173
sub eax, 0x10
jne 0x401215
xor eax, eax
jmp 0x401181
mov eax, 0x400
jmp 0x401181
push 0x40
jmp 0x401180
push 8
pop eax
mov ebx, dword [esi]
push 0
add ebx, eax
add ebx, esi
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp + 0xc], 0
push 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jne 0x4011ab
mov dword [ebp + 0xc], 1
cmp word [esi + 0xe], 8
jne 0x4011da
cmp dword [ebp + 0xc], 0
je 0x4011da
push esi
call fcn.00401233
pop ecx
mov dword [edi + 4], eax
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
push ebx
push 4
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [edi], eax
cmp word [esi + 0xe], 8
jne 0x401207
cmp dword [ebp + 0xc], 0
je 0x401207
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x401218
push 0xfffffffffffffff8
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4013ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x428774
push 0x428770
mov ebx, ecx
push esi
call fcn.00414530
pop ecx
test eax, eax
pop ecx
je 0x401490
push dword [0x420454]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.0040f821
lea eax, [ebp - 0x400]
push eax
call fcn.0040f959
test eax, eax
jne 0x40143d
push esi
call fcn.0040f993
jmp 0x401490
cmp dword [ebx + 8], 0x1f4
jae 0x401490
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.004144d0
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004016e2
test eax, eax
jne 0x401495
lea eax, [ebp - 0x400]
push eax
call fcn.0040f9cd
test eax, eax
je 0x401495
push esi
call fcn.0040f993
test eax, eax
je 0x401495
push 1
pop eax
jmp 0x401500
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x4014fe
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x420464]
push esi
push dword [0x420458]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.0040f9cd
test eax, eax
je 0x4014e9
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401715
jmp 0x4014ec
inc dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4014a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401797
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.0040d0a8
push 1
mov ecx, esi
mov edi, eax
call fcn.0040d08d
mov ecx, esi
call fcn.0040d086
push eax
mov ecx, esi
call fcn.0040d00d
mov ecx, edi
call fcn.0040e7e3
push eax
mov ecx, esi
call fcn.0040d048
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, ebx
call fcn.00401914
test eax, eax
jne 0x401816
mov edi, 0x47f
mov ecx, esi
mov dword [0x42b314], edi
call fcn.0040d055
shr eax, 0xa
push eax
push edi
call fcn.0040efbd
pop ecx
pop ecx
jmp 0x401908
lea eax, [ebp - 0x400]
push eax
push 0
lea eax, [ebp - 0x800]
push 0x424140
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.0040f9cd
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.004146b0
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.0040f976
test eax, eax
jne 0x40186c
lea eax, [ebp - 0x400]
push eax
call fcn.0040f8cc
lea eax, [ebp - 0x400]
mov edi, 0x428774
push eax
push edi
call fcn.004145c0
pop ecx
pop ecx
push dword [0x424f48]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040d961
test eax, eax
jne 0x4018bb
push 2
mov ecx, esi
call fcn.0040d08d
push dword [0x424f48]
mov ecx, esi
call fcn.0040d041
push eax
push 0x42a448
call fcn.0040f821
jmp 0x4018d7
push dword [0x424f48]
push edi
push 0x42a448
call fcn.0040f821
mov ecx, esi
call fcn.0040d9a6
test eax, eax
je 0x401908
mov ecx, ebx
call fcn.004019d5
test eax, eax
jne 0x4018f4
mov eax, 0x481
push 0
mov dword [0x42b314], eax
push eax
jmp 0x40180a
cmp dword [esi + 0x1488], 5
jne 0x40190c
mov ecx, esi
call fcn.0040daee
test eax, eax
jne 0x40190c
xor eax, eax
jmp 0x40190f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401914
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040d055
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401955
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.004019aa
test eax, eax
jne 0x4019a1
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401971
push esi
push edi
mov ecx, ebx
call fcn.004019aa
test eax, eax
jne 0x4019a1
push 0x428770
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0040f608
add esp, 0xc
test eax, eax
jge 0x4019a1
push edi
push esi
push 4
call fcn.0040f608
add esp, 0xc
test eax, eax
jge 0x4019a1
xor eax, eax
jmp 0x4019a4
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4019d5
Capabilities:
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
call fcn.00401046
mov ebp, eax
mov esi, 0x400
push esi
push 0
lea edi, [ebp + 0x478]
push edi
call fcn.004144d0
add esp, 0xc
mov ebx, 0x428770
push 0x42a448
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push dword [0x420470]
push dword [0x42046c]
call edi
lea eax, [ebp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ae3
lea eax, [ebp + 0x878]
push esi
push 0
push eax
call fcn.004144d0
add esp, 0xc
lea eax, [ebp + 0x878]
push 0x42a448
push esi
push eax
push ebx
push dword [0x420478]
push dword [0x42046c]
call edi
lea eax, [ebp + 0x878]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ae3
lea eax, [ebp + 0x78]
push esi
push 0
push eax
call fcn.004144d0
add esp, 0xc
lea eax, [ebp + 0x78]
push 0x42a448
push esi
push eax
push ebx
push dword [0x420474]
push dword [0x42046c]
call edi
lea eax, [ebp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ae3
push 2
lea eax, [esp + 0x16]
push 0
push eax
call fcn.004144d0
add esp, 0xc
lea eax, [esp + 0x12]
push 0x42a448
push 2
push eax
push ebx
push dword [0x42047c]
push dword [0x42046c]
call edi
lea eax, [esp + 0x12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x401aea
xor eax, eax
jmp 0x401bfb
and dword [ebp + 0x74], 0
cmp dword [0x42b318], 0
jne 0x401b12
lea eax, [esp + 0x12]
push 0x424148
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401b12
mov dword [ebp + 0x74], 1
and byte [esp + 0x14], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x15]
push 0x42a448
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
push ebx
push dword [0x420480]
push dword [0x420484]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
mov dword [ebp + 0x107c], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b71
lea eax, [esp + 0x14]
push eax
call fcn.004146e5
pop ecx
mov dword [ebp + 0x107c], eax
lea edi, [ebp + 0x1080]
push ebx
push edi
call fcn.00414530
pop ecx
test eax, eax
pop ecx
jne 0x401bd0
push 0x42a448
push esi
push edi
push ebx
push dword [0x420488]
push dword [0x42046c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call fcn.004146d7
pop ecx
mov ebx, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 0x1488], 5
je 0x401bd0
push 1
push edi
push 0x424144
mov ecx, ebp
call fcn.0040dd5f
add ebp, 0x1488
cmp dword [ebp], 0
jne 0x401bf8
push 0x42a448
push 0
push dword [0x42048c]
push dword [0x42046c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp], eax
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x401dc9
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x41eb66
call fcn.00414b54
sub esp, 0x428
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00401f88
test al, al
je 0x401dfc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401f78
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
mov byte [ebp - 0x434], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00401fb0
mov edi, 0x400
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
mov dword [esi + 0x60], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
push eax
push 0xffffffffffffffff
mov dword [esi + 0x64], eax
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
call fcn.004146d7
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x401e99
mov eax, dword [esi + 0x60]
lea ecx, [edi + 8]
push eax
mov dword [edi], ebx
mov dword [edi + 4], esi
call fcn.0040217a
mov dword [edi + 0x18], 0x1000
mov byte [edi + 0x1c], 1
jmp 0x401e9b
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x401d83
push ebx
push ebx
mov dword [esi + 0x68], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.004146d7
mov dword [eax], edi
pop ecx
mov edi, 0xff
mov dword [ebp + 8], eax
push edi
push 0xffffffffffffffff
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x401f1d
push 1
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401f14
cmp dword [ebp - 0x30], 0x8032
jne 0x401f08
mov ecx, dword [esi + 0x68]
call fcn.00402231
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401ee4
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
jmp 0x401ed4
push dword [ebp + 8]
call fcn.00414b73
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [esi + 0x60]
call edi
push dword [esi + 0x64]
call edi
mov esi, dword [esi + 0x68]
pop edi
cmp esi, ebx
je 0x401f4d
lea ecx, [esi + 8]
call fcn.0040207f
push esi
call fcn.00413d7e
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x401f57
xor eax, eax
jmp 0x401f78
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4021bf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x4021d8
xor esi, esi
jmp 0x402205
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00414d30
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402227
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40221e
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x4021ca
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret