joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e78
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409cf0
mov eax, dword [0x413c9c]
cmp byte [eax], 0
je 0x409ef4
mov eax, dword [0x413bd0]
call fcn.00402e70
call fcn.00402c1c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004070b8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409f3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409f2a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x413bb0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4167f0]
call fcn.00405124
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40bbbc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bc02
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040bb50
mov eax, dword [ebp - 4]
call fcn.00404640
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc09
lea eax, [ebp - 4]
call fcn.00404244
ret

Function at 0x40be10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bea4
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40be5b
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, edi
call fcn.00404334
jmp 0x40be8e
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
cmp byte [ebx], 0
jne 0x40be71
lea eax, [ebp - 4]
call fcn.00404244
jmp 0x40be84
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040bcd8
mov ebx, eax
test esi, esi
je 0x40be84
dec esi
jmp 0x40be62
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beab
lea eax, [ebp - 4]
call fcn.00404244
ret

Function at 0x40beb4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004071c0
add esp, 0x104
pop ebx
ret
Function at 0x40bff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c119
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40c103
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x40c051
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x40c103
cmp dword [ebp - 0x10], 0
jne 0x40c066
mov eax, dword [ebp - 8]
call fcn.00404244
mov bl, 1
jmp 0x40c103
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.00404334
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
call fcn.00404690
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x40c01d
test eax, eax
jne 0x40c103
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x40c0ad
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x40c103
jmp 0x40c0ad
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
je 0x40c0c0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp byte [eax + edx - 1], 0
je 0x40c0aa
cmp dword [ebp - 0xc], 7
jne 0x40c0cf
cmp dword [ebp - 0x10], 0
je 0x40c0cf
inc dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00404878
cmp dword [ebp - 0xc], 7
jne 0x40c0f6
cmp dword [ebp - 0x10], 0
je 0x40c0f6
lea eax, [ebp - 4]
call fcn.00404690
mov edx, dword [ebp - 0x10]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404298
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c120
lea eax, [ebp - 4]
call fcn.00404244
ret

Function at 0x40ca44
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417228
mov eax, esi
mov edx, 8
test al, 1
je 0x40ca60
shr eax, 1
xor eax, 0xedb88320
jmp 0x40ca62
shr eax, 1
dec edx
jne 0x40ca53
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40ca4c
pop esi
ret

Function at 0x40ca78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417224], 0
jne 0x40ca9b
call fcn.0040ca44
push 1
push 0x417224
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40cac6
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417228]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40caa1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40e274
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.0040e228
test al, al
jne 0x40e295
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e2e1
xor eax, eax
push ebp
push 0x40e2d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404640
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2d8
lea eax, [ebp - 9]
call fcn.0040e264
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e514
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e51c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e609
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040bee0
mov edx, dword [ebp - 8]
mov ecx, 0x40e620
xor eax, eax
call fcn.0040e400
push 0
mov eax, dword [ebp - 4]
call fcn.00404640
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40e5d7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e536
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040e088
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00406d34
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040c3b0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040e058
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x405f08]
call fcn.00409f70
call fcn.00403ca4
jmp 0x40e536
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e610
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404268
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404268
ret

Function at 0x40e630
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x413d04]
cmp dword [eax], 2
jne 0x40e698
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e653
xor eax, eax
jmp 0x40e6a7
lea eax, [esp + 8]
push eax
push 0x40e6ac
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40e698
xor eax, eax
jmp 0x40e6a7
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40e6c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e71a
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e6e6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e6f4
cmp edi, 1
jle 0x40e6f4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e274
test eax, eax
jne 0x40e71a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e71a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e71a
inc edi
dec esi
jne 0x40e6d6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x41190c
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x417a18], 0
je 0x411956
mov edi, dword [0x417b4c]
dec edi
test edi, edi
jl 0x411956
inc edi
xor esi, esi
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [0x417b48]
mov edx, dword [edx + eax*8]
mov eax, dword [0x417a18]
call fcn.00406ac8
test eax, eax
jne 0x411952
mov eax, esi
call fcn.004118b0
jmp 0x411a1f
inc esi
dec edi
jne 0x411927
movzx eax, byte [0x417b3c]
sub al, 1
jb 0x411965
je 0x41196e
jmp 0x411977
call fcn.0040c160
mov ebp, eax
jmp 0x411979
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x411979
xor ebp, ebp
test bp, bp
je 0x411a18
mov edi, dword [0x417b4c]
dec edi
test edi, edi
jl 0x4119c6
inc edi
xor esi, esi
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [0x417b48]
lea ebx, [edx + eax*8]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x4119c2
cmp dword [ebx + 0x2c], 0
je 0x4119b9
call sub.kernel32.dll_GetACP_1
cmp eax, dword [ebx + 0x2c]
jne 0x4119c2
mov eax, esi
call fcn.004118b0
jmp 0x411a1f
inc esi
dec edi
jne 0x411990
mov edi, dword [0x417b4c]
dec edi
test edi, edi
jl 0x411a18
inc edi
xor esi, esi
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [0x417b48]
lea ebx, [edx + eax*8]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x411a14
cmp dword [ebx + 0x2c], 0
je 0x411a0b
call sub.kernel32.dll_GetACP_1
cmp eax, dword [ebx + 0x2c]
jne 0x411a14
mov eax, esi
call fcn.004118b0
jmp 0x411a1f
inc esi
dec edi
jne 0x4119d4
xor eax, eax
call fcn.004118b0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x411ab0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411b85
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x411b9c
push ebx
push 0x411ba8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004045a4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f44
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404640
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x411b30
mov al, 0x62
call fcn.00411670
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00411a84
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x411b39
call fcn.00411a84
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b8c
lea eax, [ebp - 4]
call fcn.00404244
ret

Function at 0x411c48
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x411d13
jmp 0x411d07
cmp dword [esi + 0x10], 0x1000
jne 0x411cf3
test byte [esi + 0x15], 1
jne 0x411cf3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x411ca4
cmp ebp, 2
je 0x411ca4
cmp ebp, 0x10
je 0x411ca4
cmp ebp, 0x20
jne 0x411cc0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x411cc0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x411cd1
mov eax, dword [esi]
add eax, ebx
call fcn.00411c40
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x411cc4
cmp byte [esp + 4], 0
je 0x411cf3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x411d13
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x411c79
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2af668b1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
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
nop
pop eax
nop
nop
mov esi, 0x352500a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401160
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
push 0
push 0x4011a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4011c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x524
push ebx
push esi
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
push 0x104
mov byte [esp + 0x330], bl
mov byte [esp + 0x22c], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x1b], 0x5c
jne 0x40120f
lea edx, [esp + 0x1c]
lea eax, [esp + 0x120]
push edx
push 0x40708c
push eax
jmp 0x401221
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x120]
push ecx
push 0x40707c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x120]
lea ecx, [esp + 0x42c]
push eax
push 0x104
push ecx
push 0x409680
push 0x407074
push 0x407068
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push ebx
push 2
push ebx
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40136b
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push ebx
push 2
push ebx
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
mov eax, dword [esp + 0x10]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
jne 0x4012bf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x524
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ebp
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push esi
push 2
push ebx
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x40135c
cmp dword [esp + 0x10], ebx
jbe 0x40135c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esi, 0xc
mov ecx, dword [esi + 4]
lea edx, [esp + 0x430]
push ecx
push edx
call edi
test eax, eax
jne 0x401327
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x22c]
push eax
push ecx
call ebp
lea edx, [esp + 0x228]
push 0x407064
push edx
call edi
test eax, eax
je 0x401335
mov eax, dword [esp + 0x10]
inc ebx
add esi, 0x54
cmp ebx, eax
jb 0x4012f3
jmp 0x401358
mov ecx, dword [esp + 0x1c]
lea eax, [ebx*8]
sub eax, ebx
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 0xc]
lea eax, [esp + 0x32c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
lea ecx, [esp + 0x120]
lea edx, [esp + 0x328]
push ecx
push edx
call fcn.00401390
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x524
ret
Function at 0x401390
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x324
push ebx
mov ebx, dword [esp + 0x330]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push ebx
lea eax, [esp + 0x130]
push 0x104
push eax
push 0x409680
push 0x4070a8
push 0x407068
call esi
push ebx
lea ecx, [esp + 0x234]
push 0x104
push ecx
push 0x409680
push 0x4070a4
push 0x407068
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
xor edi, edi
push edx
push eax
push edi
push edi
push 2
push edi
push 2
mov byte [0x409788], 0
mov dword [esp + 0x34], edi
call sub.WINSPOOL.DRV_EnumPrintersA
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401547
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push edi
push edi
push 2
push edi
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
mov eax, dword [esp + 0x10]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x24], esi
jne 0x40145e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push esi
push 2
push edi
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x401539
cmp dword [esp + 0x14], edi
jbe 0x401539
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [esp + 0x1c], edi
add esi, 0x10
mov ecx, dword [esi]
lea edx, [esp + 0x12c]
push ecx
push edx
call ebp
test eax, eax
je 0x4014b9
mov eax, dword [esi]
lea ecx, [esp + 0x230]
push eax
push ecx
call ebp
test eax, eax
jne 0x4014c8
mov edx, dword [esi - 4]
push 0x40709c
push edx
call ebp
test eax, eax
je 0x4014d6
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x54
cmp edi, eax
jb 0x401497
jmp 0x401535
mov ecx, dword [esp + 0x24]
lea eax, [edi*8]
sub eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 4]
lea esi, [ecx + eax*4]
lea eax, [esp + 0x28]
push edx
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
push 0x409788
call edi
mov edx, dword [esp + 0x338]
push ebx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00401ab0
lea ecx, [esp + 0x34]
push ecx
call fcn.00402740
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x1c], 1
mov ebp, dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, eax
jne 0x401558
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
Function at 0x401570
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x524
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
mov esi, 1
push eax
push 0x104
mov byte [esp + 0x438], 0
mov byte [esp + 0x334], 0
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x1f], 0x5c
jne 0x4015c9
lea edx, [esp + 0x20]
lea eax, [esp + 0x124]
push edx
push 0x40708c
push eax
jmp 0x4015db
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push 0x40707c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x124]
lea ecx, [esp + 0x228]
push eax
push 0x104
push ecx
push 0x409680
push 0x407074
push 0x407068
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
xor edi, edi
push eax
push edi
push edi
push 2
push edi
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401726
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
push edi
push 2
push edi
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
mov eax, dword [esp + 0x14]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
cmp ebp, edi
je 0x40176e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push ebp
push 2
push edi
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x40170b
cmp dword [esp + 0x10], edi
jbe 0x40170b
lea esi, [ebp + 0xc]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x228]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4016d6
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x330]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x32c]
push 0x407064
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4016e4
mov eax, dword [esp + 0x10]
inc edi
add esi, 0x54
cmp edi, eax
jb 0x401696
jmp 0x40170b
lea eax, [edi*8]
lea edx, [esp + 0x430]
sub eax, edi
lea eax, [eax + eax*2]
mov ecx, dword [ebp + eax*4 + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x18], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
mov esi, 1
cmp eax, esi
je 0x40177b
cmp dword [esp + 0x1c], esi
jne 0x4017a3
lea eax, [esp + 0x124]
lea ecx, [esp + 0x228]
push eax
push 0x104
push ecx
push 0x409680
push 0x4070a8
push 0x407068
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x228]
test al, al
je 0x4017a3
jmp 0x40160e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x524
ret
mov edx, dword [esp + 0x53c]
mov eax, dword [esp + 0x538]
push edx
lea ecx, [esp + 0x128]
push eax
lea edx, [esp + 0x438]
push ecx
push edx
call fcn.004017b0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret