joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x405e50
Capabilities:
Encode data using xor

Disassembly:
call esi
mov edi, dword [eax]
jmp [ebp + 0x57]
pop ecx
mov ebx, dword [edx - 0x2b]
fadd qword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
test ebx, ebx
push edi
jge 0x405e95
mov ebx, 0x590001
mov dl, 0x83
cmp byte [eax], al
jne 0x405e74
rcr word [esi + 2], cl
add byte [eax + eax*2 + 0x74], dh
add eax, 0xffffffe8
jmp 0x405e18
inc ebp
adc byte [ebp + 0x56014019], cl
mov dword [ebp - 4], esi
dec eax
pop esp
rol dword [eax - 0x1a], 0x83
les ecx, [eax]
lea ecx, [ebp - 4]
mov dword [edi], eax
lea edx, [ebp - 0xd]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push edx
mov ah, pe_nt_image_headers32
xor al, 0x4d
inc ecx
add byte [ebx + 0x78bfc55], cl
sub esi, edx
movsd dword es:[edi], dword [esi]
push eax
call dword [0xb6402220]
mov ecx, 0xcfc801
adc dword [eax - 0x76f7c4f8], 7
jle 0x405f02
lea ecx, [ebx - 1]
invalid
inc byte [ebp - 0x35]
invalid
Function at 0x100313d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and byte [ebp - 0x400], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x1003291
cmp dword [esi + 4], edi
jne 0x100316a
xor eax, eax
inc eax
jmp 0x1003293
mov eax, dword [esi + 8]
cmp eax, edi
je 0x100327d
cmp byte [eax], 0
je 0x100327d
push 0x10011c0
push eax
call fcn.01004d0f
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
jne 0x10031c1
cmp dword [ebp + 0xc], edi
je 0x1003291
push dword [0x100b74c]
call fcn.01004eea
push eax
push dword [0x100b968]
push 0x1001358
push dword [ebp + 0xc]
call fcn.01004a34
add esp, 0x14
jmp 0x1003291
mov edi, 0x400
jmp 0x1003219
lea eax, [ebp - 0x800]
push eax
call fcn.010034ba
cmp byte [eax], 0
je 0x1003219
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.01002c10
cmp eax, 1
jne 0x1003219
mov edx, dword [ebp + 8]
push edx
push esi
call fcn.01002d24
push dword [edx + 0x10]
push dword [edx + 0xc]
push dword [edx + 8]
push dword [edx]
push 0x1001340
push 2
call fcn.01003044
add esp, 0x18
push ebx
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.01004fa8
add esp, 0xc
test eax, eax
jne 0x10031c8
push ebx
call fcn.01004b10
cmp dword [esi + 0xc], 0
pop ecx
je 0x100324d
cmp byte [ebp - 0x400], 0
jne 0x1003256
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x400], 0
je 0x1003270
lea eax, [ebp - 0x400]
push eax
push dword [esi + 8]
push 0x1001314
push dword [ebp + 0xc]
call fcn.01004a34
add esp, 0x10
xor eax, eax
cmp byte [ebp - 0x400], al
sete al
jmp 0x1003293
cmp dword [ebp + 0xc], edi
je 0x1003291
push 0x1001300
push dword [ebp + 0xc]
call fcn.01004a34
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100352e
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100b93c]
test eax, eax
je 0x100353e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x100b960
call fcn.01002d6f
push dword [esp + 4]
push 0x1001450
push 1
call fcn.01003044
add esp, 0xc
push dword [esp + 4]
call fcn.01004ca5
int3
Function at 0x1003828
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1b4
push esi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10038a0
xor eax, eax
inc eax
cmp dword [ebp - 0x24], eax
jne 0x100396b
cmp dword [ebp - 0x30], 4
jne 0x100396b
cmp dword [ebp - 0x2c], 0
jne 0x100396b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp + 0x6c]
push eax
push 0x1001914
push 0x80000001
call esi
test eax, eax
jne 0x10038a0
lea eax, [ebp + 0x68]
push eax
push 0x10018e4
push 0x80000002
call esi
test eax, eax
je 0x10038a7
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100396b
push ebx
push edi
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp + 0x60]
push eax
push 0
mov esi, 0x10018d8
push esi
push dword [ebp + 0x6c]
mov dword [ebp + 0x74], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x1003907
push dword [ebp + 0x74]
lea eax, [ebp - 0x13c]
push eax
xor edi, edi
inc edi
push edi
push 0
push esi
push dword [ebp + 0x68]
call ebx
test eax, eax
jne 0x1003907
mov dword [ebp + 0x64], edi
jmp 0x100390b
and dword [ebp + 0x64], 0
xor eax, eax
lea edi, [ebp + 0x70]
stosw word es:[edi], ax
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
xor edi, edi
push edi
mov esi, 0x10018c8
push esi
push dword [ebp + 0x6c]
mov dword [ebp + 0x74], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x100394b
push dword [ebp + 0x74]
lea eax, [ebp + 0x70]
push eax
push 1
push edi
push esi
push dword [ebp + 0x68]
call ebx
cmp dword [ebp + 0x64], edi
je 0x1003957
cmp eax, edi
jne 0x1003957
xor edi, edi
inc edi
push dword [ebp + 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 0x68]
call esi
mov eax, edi
pop edi
pop ebx
pop esi
add ebp, 0x78
leave
ret
Function at 0x1003d51
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1003dbb
push 0x104
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1003dc2
cmp dword [ebp + 0x10], ebx
je 0x1003dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x100
mov esi, eax
lea eax, [ebp - 0x204]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x204]
push eax
push esi
push 0x1001a88
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0x10
xor eax, eax
jmp 0x1003e8c
push edi
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x104]
push 0x1001a74
push eax
call fcn.01004a34
lea eax, [ebp - 0x104]
push 0x1001194
push eax
call fcn.01004d0f
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x1003e1d
cmp dword [ebp + 0x10], ebx
je 0x1003e19
push dword [0x100b74c]
call fcn.01004eea
push eax
push dword [ebp + 0xc]
push 0x1001a50
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0x14
xor eax, eax
jmp 0x1003e8b
mov esi, dword [esi + 0x20]
jmp 0x1003e5e
push dword [esi + 4]
call fcn.0100503d
mov eax, dword [esi + 0x10]
cmp eax, ebx
pop ecx
pop ecx
je 0x1003e4e
cmp byte [eax], bl
je 0x1003e4e
push edi
push 0x1001a4c
call fcn.0100503d
push edi
push dword [esi + 0x10]
call fcn.0100503d
add esp, 0x10
push edi
push 0x1001168
call fcn.0100503d
mov esi, dword [esi + 0x14]
pop ecx
pop ecx
cmp esi, ebx
push edi
jne 0x1003e22
call fcn.01004b10
mov edx, dword [ebp + 0xc]
cmp edx, ebx
pop ecx
je 0x1003e88
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x104]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1003e7e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004828
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001fa0
call fcn.01005a90
mov edi, 0x94
mov eax, edi
call fcn.01005000
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100b758], ecx
mov eax, dword [esi + 4]
mov dword [0x100b764], eax
mov edx, dword [esi + 8]
mov dword [0x100b768], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100b75c], esi
cmp ecx, 2
je 0x1004888
or esi, 0x8000
mov dword [0x100b75c], esi
shl eax, 8
add eax, edx
mov dword [0x100b760], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10048c3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10048c3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10048db
cmp eax, 0x20b
je 0x10048c8
mov dword [ebp - 0x1c], esi
jmp 0x10048ef
cmp dword [ecx + 0x84], 0xe
jbe 0x10048c3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x10048e9
cmp dword [ecx + 0x74], 0xe
jbe 0x10048c3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.01005a3c
pop ecx
test eax, eax
jne 0x100491b
cmp dword [0x100b748], 1
jne 0x1004908
call fcn.01005250
push 0x1c
call fcn.01005087
push 0xff
call fcn.01004b66
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.01005877
test eax, eax
jge 0x100492f
push 0x1b
call fcn.01004803
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100cd34], eax
call fcn.01005751
mov dword [0x100b740], eax
call fcn.010056af
test eax, eax
jge 0x1004955
push 8
call fcn.01004803
pop ecx
call fcn.01005463
test eax, eax
jge 0x1004966
push 9
call fcn.01004803
pop ecx
call fcn.01004b96
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1004979
push eax
call fcn.01004803
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010053fa
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x100499a
movzx eax, word [ebp - 0x34]
jmp 0x100499d
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01004215
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x10049bb
push edi
call fcn.01004ca5
call fcn.01004cc7
jmp 0x10049ed
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01005ac9
ret
Function at 0x1005087
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x100b010]
je 0x10050a7
inc eax
cmp eax, 0x12
jb 0x1005098
shl eax, 3
cmp edx, dword [eax + 0x100b010]
mov dword [ebp + 8], eax
jne 0x1005245
mov ecx, dword [0x100b748]
cmp ecx, 1
je 0x100521a
test ecx, ecx
jne 0x10050d9
cmp dword [0x100b004], 1
je 0x100521a
cmp edx, 0xfc
je 0x1005245
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005114
push 5
pop ecx
mov esi, 0x1002314
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005123
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100515b
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100513b
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1002310
push ebx
call fcn.010078d0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005160
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100b014]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1005177
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01005000
mov edx, esp
push 6
pop ecx
mov esi, 0x10022f4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10051a3
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10051af
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10051c8
mov eax, dword [ebp + 8]
mov esi, 0x10022f0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100b014]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10051e3
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10051ef
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10022c8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010077d7
add esp, 0xc
jmp 0x1005245
mov ecx, dword [eax + 0x100b014]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1005225
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10071c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100cc08]
push ebx
push esi
push edi
jae 0x100734a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100cc20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x100734a
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x1007219
xor eax, eax
jmp 0x100735e
test al, 0x20
je 0x100722a
push 2
push edi
push edi
push ecx
call fcn.010088ee
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10072e6
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x100731e
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1007280
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1007271
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1007256
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10072c0
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x10072c9
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100724a
jmp 0x10072cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1007345
cmp dword [ebp + 8], edi
je 0x100731e
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1007313
mov dword [0x100b750], eax
jmp 0x1007351
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007308
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x10072cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10072cb
push dword [ebp + 8]
call fcn.010083f5
pop ecx
jmp 0x100735b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1007333
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1007212
mov dword [0x100b74c], 0x1c
mov dword [0x100b750], edi
jmp 0x100735b
sub eax, dword [ebp - 0x10]
jmp 0x100735e
and dword [0x100b750], 0
mov dword [0x100b74c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10077d7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100b8f0], ebx
push esi
push edi
jne 0x1007857
push 0x1002740
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1007892
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002734
push edi
call esi
test eax, eax
mov dword [0x100b8f0], eax
je 0x1007892
push 0x1002724
push edi
call esi
push 0x1002710
push edi
mov dword [0x100b8f4], eax
call esi
cmp dword [0x100b758], 2
mov dword [0x100b8f8], eax
jne 0x1007857
push 0x10026f4
push edi
call esi
test eax, eax
mov dword [0x100b900], eax
je 0x1007857
push 0x10026dc
push edi
call esi
mov dword [0x100b8fc], eax
mov eax, dword [0x100b8fc]
test eax, eax
je 0x100789c
call eax
test eax, eax
je 0x1007883
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100b900]
test eax, eax
je 0x1007883
test byte [ebp - 8], 1
jne 0x100789c
cmp dword [0x100b764], 4
jb 0x1007896
or byte [ebp + 0x12], 0x20
jmp 0x10078bb
xor eax, eax
jmp 0x10078cb
or byte [ebp + 0x12], 4
jmp 0x10078bb
mov eax, dword [0x100b8f4]
test eax, eax
je 0x10078bb
call eax
mov ebx, eax
test ebx, ebx
je 0x10078bb
mov eax, dword [0x100b8f8]
test eax, eax
je 0x10078bb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100b8f0]
pop edi
pop esi
pop ebx
leave
ret