joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x424ad0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x425e80
push 0xff
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, 0x425e80
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a60
sub eax, edx
push eax
push 0x425e80
lea ecx, [ebp - 0x20]
call fcn.00401710
push str._sblomktupjpbv.exe
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00401970
mov esi, 0x10
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x401a9b
mov eax, dword [eax + 4]
jmp 0x401a9e
add eax, 4
push eax
push 0x68
lea ecx, [ebp - 0x21]
call fcn.00401040
cmp dword [ebp - 0x28], esi
jb 0x401aba
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00401c11
add esp, 4
push str._sblomktupjpbv.exe.config
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00401970
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x401ad9
mov eax, dword [eax + 4]
jmp 0x401adc
add eax, 4
push eax
push 0x69
lea ecx, [ebp - 0x21]
call fcn.00401040
cmp dword [ebp - 0x28], esi
jb 0x401af8
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00401c11
add esp, 4
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x44], esp
push str.parent.txt
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00401970
add esp, 0xc
lea ecx, [ebp - 0x21]
call fcn.00401590
push 0x41d41c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00401970
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x401b39
mov eax, dword [eax + 4]
jmp 0x401b3c
add eax, 4
push eax
push 0x66
lea ecx, [ebp - 0x21]
call fcn.00401040
cmp dword [ebp - 0x28], esi
jb 0x401b58
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00401c11
add esp, 4
push str._sblomktupjpbv.exe
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00401970
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x401b77
mov eax, dword [eax + 4]
jmp 0x401b7a
add eax, 4
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x401b85
lea ecx, [ebp - 0x1c]
push edi
push eax
push ecx
lea ecx, [ebp - 0x21]
call fcn.00401110
cmp dword [ebp - 0x28], esi
jb 0x401ba1
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00401c11
add esp, 4
cmp dword [ebp - 8], esi
jb 0x401bb2
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401c11
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040cb5c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40cb5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424ad0]
jne 0x40cb66
repz ret
jmp fcn.004121dc
Function at 0x418411
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00411bc0
and dword [ebp - 4], 0
cmp dword [0x4287e0], 0
mov ebx, eax
jne 0x4184c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418573
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f9b8
push edi
call esi
test eax, eax
je 0x418573
push eax
call fcn.00411b4e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4287e0], eax
call esi
push eax
call fcn.00411b4e
mov dword [esp], 0x41f994
push edi
mov dword [0x4287e4], eax
call esi
push eax
call fcn.00411b4e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4287e8], eax
call esi
push eax
call fcn.00411b4e
pop ecx
mov dword [0x4287f0], eax
test eax, eax
je 0x4184c2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411b4e
pop ecx
mov dword [0x4287ec], eax
mov eax, dword [0x4287ec]
cmp eax, ebx
je 0x41851a
cmp dword [0x4287f0], ebx
je 0x41851a
push eax
call fcn.00411bc9
push dword [0x4287f0]
mov esi, eax
call fcn.00411bc9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41851a
test edi, edi
je 0x41851a
call esi
test eax, eax
je 0x418511
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418511
test byte [ebp - 0xc], 1
jne 0x41851a
or dword [ebp + 0x10], 0x200000
jmp 0x418553
mov eax, dword [0x4287e4]
cmp eax, ebx
je 0x418553
push eax
call fcn.00411bc9
pop ecx
test eax, eax
je 0x418553
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418553
mov eax, dword [0x4287e8]
cmp eax, ebx
je 0x418553
push eax
call fcn.00411bc9
pop ecx
test eax, eax
je 0x418553
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4287e0]
call fcn.00411bc9
pop ecx
test eax, eax
je 0x418573
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418575
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea esi, [ebx - 1]
cmp esi, 0x100
ja 0x40118e
cmp byte [ebx + edi - 1], 0x5c
je 0x401039
mov byte [ebx + edi], 0x5c
inc ebx
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov word [eax], 0x2a
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
mov esi, dword [ebp + 0xc]
je 0x4010d9
test byte [ebp - 0x150], 0x10
je 0x4010bc
push 0x40ede0
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010bc
push 0x40ede4
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010bc
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push esi
push edi
call section..text
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40105f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebx + edi]
mov word [eax], 0x2a
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40116d
test byte [ebp - 0x150], 0x10
jne 0x401151
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40113b
cmp dword [ebp - 0xc], eax
jne 0x40113b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x40114e
test eax, eax
jne 0x40114e
cmp dword [ebp - 8], eax
je 0x40114e
push 4
push eax
push edi
call esi
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x150]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4010f7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
push edi
mov byte [eax - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40118e
test esi, esi
je 0x40118e
cmp dword [ebp - 8], eax
je 0x40118e
push 4
push eax
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401193
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExA
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4011db
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4011db
test edi, edi
je 0x4011db
push 4
push eax
push esi
call edi
pop edi
pop esi
ret
Function at 0x4011de
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4538
call fcn.0040a780
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x137]
push 0
push eax
mov edi, edx
mov ebx, ecx
mov byte [ebp - 0x138], 0
call fcn.00403aa0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 4], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401318
xor ecx, ecx
mov esi, ecx
test eax, eax
je 0x401318
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4538]
push eax
push esi
push ebx
mov dword [ebp - 4], 0x3fff
mov byte [ebp - 0x4538], cl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401306
lea eax, [ebp - 0x4538]
push edi
push eax
call fcn.00403430
pop ecx
pop ecx
test eax, eax
jne 0x401313
push 0x3ff
push eax
mov byte [ebp - 0x538], al
lea eax, [ebp - 0x537]
push eax
mov dword [ebp - 0x18], 1
call fcn.00403aa0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x4538]
push eax
push ebx
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401306
lea eax, [ebp - 0x538]
push edi
push eax
call fcn.00403430
pop ecx
pop ecx
test eax, eax
jne 0x401313
inc esi
cmp esi, dword [ebp - 8]
jae 0x401318
xor ecx, ecx
jmp 0x40126c
xor eax, eax
inc eax
jmp 0x40131a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40131f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 8], 0
push ebx
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40135b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401429
push 0x3ff
lea eax, [ebp - 0x417]
push 0
push eax
mov dword [ebp - 0x14], 7
mov byte [ebp - 0x418], 0
call fcn.00403aa0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov esi, eax
call edi
test esi, esi
jne 0x401429
mov eax, dword [ebp - 0xc]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x418]
test eax, eax
je 0x401429
push ebx
push esi
call fcn.00403430
pop ecx
pop ecx
test eax, eax
jne 0x40146a
push esi
call fcn.004033a0
mov ecx, dword [ebp - 4]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 4], ecx
call fcn.004033a0
inc eax
add esi, eax
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
cmp dword [ebp - 4], eax
jb 0x4013fa
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
jne 0x401471
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.004011de
push dword [ebp - 4]
test eax, eax
je 0x40146f
call edi
xor eax, eax
inc eax
jmp 0x4014ae
call edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4014ac
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.004011de
push dword [ebp - 4]
test eax, eax
jne 0x401468
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014b3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 4], 1
call fcn.004033a0
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x4014d7
mov word [eax + esi], 0x5c
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, str.LMIR
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call fcn.004033a0
mov edi, eax
pop ecx
cmp edi, 4
jbe 0x401500
push 4
pop edi
push esi
call fcn.004033a0
mov esi, dword [ebp - 4]
add edi, eax
pop ecx
add edi, ebx
push esi
push str._04X.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push str.LMIR
inc esi
call fcn.004033a0
mov ecx, edi
add esp, 0x10
sub ecx, eax
call fcn.0040131f
test eax, eax
jne 0x40154f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40155e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401557
cmp esi, 0xffff
jl 0x40150e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x401559
Function at 0x401563
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi], 2
jge 0x4016b3
mov esi, dword [ebp + 8]
cmp dword [edi], 0
mov byte [ebx], 0
mov byte [esi], 0
jne 0x401617
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401609
push str.SHGetSpecialFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4015b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401609
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x4015af
push 0x40eed4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Applet
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4015f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4015af
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.004033a0
pop ecx
test eax, eax
jne 0x401627
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x401623
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40169a
cmp eax, 0x103
ja 0x40169a
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.004014b3
pop ecx
test eax, eax
jne 0x401643
push 2
pop eax
jmp 0x4016a0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4016af
push ebx
call esi
push str.MoveFileExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x110]
xor edx, edx
push esi
push eax
inc edx
xor ecx, ecx
call section..text
pop ecx
pop ecx
push 3
pop eax
jmp 0x40169d
xor eax, eax
inc eax
mov esi, dword [ebp + 8]
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, 2
jl 0x40157f
jmp 0x4016b6
xor eax, eax
jmp 0x4016b6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x20
pop eax
mov word [ebp - 4], ax
xor eax, eax
mov ebx, edx
xor esi, esi
cmp byte [ebx], al
push esi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401a61
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401a5a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401a87
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401a87
xor eax, eax
inc eax
jmp 0x401b14
push 0xa
push 0x2711
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x412b3c], eax
test eax, eax
je 0x401aa5
call fcn.0040173f
jmp 0x401aa7
mov eax, edi
test eax, eax
je 0x401b14
mov ecx, dword [0x412b40]
mov eax, dword [0x412b48]
cmp ecx, 0x36
jb 0x401afe
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401afe
cmp dword [eax + 2], ecx
jne 0x401afe
cmp dword [eax + 0xe], 0x28
je 0x401adc
cmp dword [eax + 0xe], 0x6c
je 0x401adc
cmp dword [eax + 0xe], 0x7c
jne 0x401afe
cmp dword [eax + 0x12], 0x4e
jne 0x401afe
cmp dword [eax + 0x16], 0x20
je 0x401aee
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401afe
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.004017b0
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401783
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401b35
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b35
xor eax, eax
inc eax
jmp 0x401b7f
push 0xa
push 0x2716
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x412b3c], eax
test eax, eax
je 0x401b53
call fcn.0040173f
jmp 0x401b55
mov eax, edi
test eax, eax
je 0x401b7d
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.004017b0
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401783
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x402d4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [0x412b54]
mov esi, eax
test esi, esi
jne 0x402d75
inc eax
jmp 0x402e4b
push edi
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x208
lea eax, [ebp - 0x30c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
push 0x413ca0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x618]
push str.__s___service__sid___s___wd___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0xf01ff
push 0x413ce0
push esi
call dword [0x412b70]
mov edi, eax
test edi, edi
jne 0x402e0c
push ebx
push ebx
push 0x40f338
push ebx
push ebx
lea eax, [ebp - 0x618]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push 0x413de0
push 0x413ce0
push esi
call dword [0x412b68]
mov edi, eax
test edi, edi
je 0x402e41
push ebx
push ebx
push edi
call dword [0x412b6c]
test eax, eax
jne 0x402e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x402e37
xor ebx, ebx
cmp eax, 0x420
setne bl
lea ebx, [ebx*2 + 2]
jmp 0x402e3a
push 3
pop ebx
push edi
call dword [0x412b4c]
push esi
call dword [0x412b4c]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040a780
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
lea edi, [esi + 0x10]
cmp ebx, 0x1c
jb 0x403086
cmp dword [esi], 0x80000001
jne 0x403086
and dword [ebp - 8], 0
cmp dword [esi + 4], 0
jbe 0x403078
mov edx, dword [edi]
mov ecx, edx
jmp 0x402fdc
cmp byte [ecx + esi], 0
je 0x402fe3
inc ecx
mov dword [ebp - 4], ecx
cmp ebx, ecx
ja 0x402fd5
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
cmp ebx, eax
jb 0x403086
cmp ebx, ecx
je 0x403086
lea eax, [edx + esi]
push eax
lea eax, [ebp - 0x100c]
push eax
mov byte [ebp - 0x100c], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0xffffffff
je 0x403086
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
mov eax, dword [edi + 4]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40307d
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 8]
jne 0x40307d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
inc eax
add edi, 0xc
mov dword [ebp - 8], eax
cmp eax, dword [esi + 4]
jb 0x402fcf
xor eax, eax
inc eax
jmp 0x403090
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret