joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4388aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [esp + 0xc], esi
mov dword [esi], 0x43c89c
call fcn.00405180
xor edi, edi
lea ecx, [esi + 0x48]
mov dword [esp + 0x18], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 0xc8
call fcn.004053c0
lea ebp, [esi + 0x58]
push 0x12c
mov ecx, ebp
mov byte [esp + 0x1c], 1
mov dword [ebp], edi
mov dword [ebp + 4], edi
call fcn.00402f60
mov eax, dword [ebp]
mov word [eax], di
lea ebp, [esi + 0x60]
push 0x12c
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [ebp], edi
mov dword [ebp + 4], edi
call fcn.00402f60
mov ecx, dword [ebp]
mov word [ecx], di
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x10c0], edi
mov dword [esi + 0x10c4], edi
mov dword [esi + 0x10c8], edi
lea ebp, [esi + 0x10dc]
push 0x12c
mov ecx, ebp
mov byte [esp + 0x1c], 4
mov dword [ebp], edi
mov dword [ebp + 4], edi
call fcn.00402f60
mov edx, dword [ebp]
mov word [edx], di
mov dword [esi + 0x10d8], 1
mov dword [esi + 0x10e4], edi
mov dword [esi + 0x10e8], edi
mov dword [esi + 0x10ec], edi
xor eax, eax
mov dword [esi + 0x10cc], eax
mov dword [esi + 0x10d0], eax
mov dword [esi + 0x10d4], eax
mov dword [esi + 0x10f0], edi
mov dword [esi + 0x110c], edi
mov dword [esi + 0x10fc], edi
mov dword [esi + 0x1100], 0x4e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x1108], eax
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0x1108]
xor ebp, ebp
cmp ecx, eax
je 0x405e91
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f3
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x44d508]
cmp eax, 0xffffffff
push edi
je 0x405ee7
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
cmp eax, ebp
je 0x405ec5
mov dword [esi + 0x10e4], 0x3f4
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x44d508]
cmp eax, 0xffffffff
je 0x405ee7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x405ee7
mov eax, dword [0x44d508]
push eax
call edi
cmp eax, ebp
jne 0x405f03
pop edi
mov dword [esi + 0x10e4], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e8], 0xe
pop esi
xor eax, eax
pop ebp
ret
lea edi, [esi + 0x10cc]
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
xor ecx, ecx
mov edx, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
cmp dword [esi + 0x10f0], ebp
jne 0x405ebf
cmp dword [esi + 0x110c], ebp
jne 0x405fca
push ebx
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call ebx
mov dword [esi + 0x1110], eax
mov eax, dword [esi + 0x110c]
push str.FDICopy
push eax
call ebx
mov ecx, dword [esi + 0x110c]
push str.FDIIsCabinet
push ecx
mov dword [esi + 0x1114], eax
call ebx
mov edx, dword [esi + 0x110c]
push str.FDIDestroy
push edx
mov dword [esi + 0x1118], eax
call ebx
cmp dword [esi + 0x1110], ebp
mov dword [esi + 0x111c], eax
pop ebx
je 0x405fb1
cmp dword [esi + 0x1114], ebp
je 0x405fb1
cmp dword [esi + 0x1118], ebp
je 0x405fb1
cmp eax, ebp
jne 0x405fca
mov dword [esi + 0x110c], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
mov dword [edi + 0x18], 0x3e8
pop edi
pop esi
xor eax, eax
pop ebp
ret
push edi
push 1
push 0x405810
push 0x4057e0
push 0x404790
push 0x405790
push 0x405e30
push 0x403e00
push 0x403df0
call dword [esi + 0x1110]
add esp, 0x24
xor ecx, ecx
cmp eax, ebp
setne cl
pop edi
mov dword [esi + 0x10f0], eax
pop esi
pop ebp
mov eax, ecx
ret
Function at 0x409680
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0x43ab18
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x4096b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2c
mov eax, dword [0x44c41c]
push esi
mov dword [esp + 0x2c], eax
push 0xa
lea eax, [esp + 8]
mov esi, ecx
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.004181cd
mov esi, dword [esi]
mov ecx, dword [esp + 0x44]
add esp, 0xc
push esi
push 0x64
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea eax, [esp + 0x18]
push eax
call fcn.004169e1
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
call fcn.004148c1
add esp, 0x2c
ret 0x10

Function at 0x4099a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x194
mov ecx, dword [ecx]
mov eax, dword [0x44c41c]
mov edx, dword [esp + 0x198]
push esi
push ecx
mov ecx, dword [esp + 0x1a4]
push 0x190
mov dword [esp + 0x19c], eax
lea eax, [esp + 0xc]
push eax
push 0x43ab18
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099e4
mov ecx, dword [esp + 0x1a4]
sub eax, edx
push eax
lea eax, [esp + 8]
push eax
call fcn.00401640
mov ecx, dword [esp + 0x194]
mov eax, esi
pop esi
call fcn.004148c1
add esp, 0x194
ret 0xc
Function at 0x40b93a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40b98d
call fcn.00435a29
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40b98d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b983
xor eax, eax
jmp 0x40baa6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40b9bd
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40b9bd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40baa3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40b9ea
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040cf50
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40baa3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ba33
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40ba33
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40ba2d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040cf50
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40ba93
and dword [ebp + 0xc], 0
jmp 0x40ba93
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40ba93
push 0xc
call fcn.004298cd
mov esi, eax
test esi, esi
pop ecx
je 0x40ba75
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40ba77
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40ba8e
push dword [ebp - 8]
call fcn.00423f8c
jmp 0x40ba93
call fcn.00423f63
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40b9f8
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4150f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00418bdc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x415119
test byte [esp + 8], 2
je 0x415119
call fcn.00418bca
mov dword [eax], 0xd
call fcn.00418bd3
mov dword [eax], 5
jmp 0x4150f2
xor eax, eax
ret
Function at 0x415929
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x415afd
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x450ac0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x415afd
test cl, 0x48
je 0x415994
cmp byte [eax + 5], 0xa
je 0x415994
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4159e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4159ce
call fcn.00418bca
mov dword [eax], 9
call fcn.00418bd3
mov dword [eax], esi
jmp 0x4159de
cmp eax, 0x6d
je 0x415afd
push eax
call fcn.00418bdc
pop ecx
or eax, 0xffffffff
jmp 0x415aff
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x415af8
test eax, eax
je 0x415a0d
cmp byte [ebx], 0xa
jne 0x415a0d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x415a16
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x415af2
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x415ae2
cmp al, 0xd
je 0x415a48
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x415ad4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x415a62
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x415a5d
add dword [ebp + 0x10], 2
jmp 0x415ab6
mov dword [ebp + 0x10], eax
jmp 0x415ad0
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415ad0
cmp dword [ebp - 0xc], 0
je 0x415ad0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x415aab
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415ab6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x415ad3
cmp ebx, dword [ebp + 0xc]
jne 0x415abb
cmp byte [ebp - 1], 0xa
jne 0x415abb
mov byte [ebx], 0xa
jmp 0x415ad3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415f46
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415ad4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x415a2c
jmp 0x415af2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x415af2
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x415aff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415baf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44c41c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x415be0
xor eax, eax
jmp 0x415d69
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x450ac0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x415c1c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041c735
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415cf7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x415d35
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x415c80
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x415c71
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x415c51
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415cc0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x415cc9
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x415c42
jmp 0x415ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x415d64
cmp dword [ebp - 0x6c], edi
je 0x415d35
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x415d2a
call fcn.00418bca
mov dword [eax], 9
call fcn.00418bd3
mov dword [eax], esi
jmp 0x415d5f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415d1f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x415ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x415ccb
push dword [ebp - 0x6c]
call fcn.00418bdc
pop ecx
jmp 0x415d5f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x415d4d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x415d4d
xor eax, eax
jmp 0x415d67
call fcn.00418bca
mov dword [eax], 0x1c
call fcn.00418bd3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x415d67
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004148c1
add ebp, 0x3a0
leave
ret
Function at 0x41674e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416420
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4167e9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44f538]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4167e9
cmp eax, 1
je 0x41680a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4167e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4167b6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4167e5
xor eax, eax
inc eax
jmp 0x416829
cmp edi, eax
jae 0x4167ed
xor eax, eax
jmp 0x416829
cmp eax, esi
jae 0x4167f4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44f538]
jmp 0x41680d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416a2f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x441778
call fcn.00417720
mov edi, 0x94
mov eax, edi
call fcn.00416420
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 [0x44f538], ecx
mov eax, dword [esi + 4]
mov dword [0x44f544], eax
mov edx, dword [esi + 8]
mov dword [0x44f548], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44f53c], esi
cmp ecx, 2
je 0x416a8f
or esi, 0x8000
mov dword [0x44f53c], esi
shl eax, 8
add eax, edx
mov dword [0x44f540], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x416aca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416aca
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x416ae2
cmp eax, 0x20b
je 0x416acf
mov dword [ebp - 0x1c], esi
jmp 0x416af6
cmp dword [ecx + 0x84], 0xe
jbe 0x416aca
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x416af0
cmp dword [ecx + 0x74], 0xe
jbe 0x416aca
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c992
pop ecx
test eax, eax
jne 0x416b0a
push 0x1c
call fcn.00416a0b
pop ecx
call fcn.0041a54a
test eax, eax
jne 0x416b1b
push 0x10
call fcn.00416a0b
pop ecx
call fcn.0041e0f5
mov dword [ebp - 4], esi
call fcn.0041c537
test eax, eax
jge 0x416b34
push 0x1b
call fcn.004169e6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x450e10], eax
call fcn.0041dfd3
mov dword [0x44f524], eax
call fcn.0041df31
test eax, eax
jge 0x416b5a
push 8
call fcn.004169e6
pop ecx
call fcn.0041dcfe
test eax, eax
jge 0x416b6b
push 9
call fcn.004169e6
pop ecx
push 1
call fcn.004173ba
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x416b81
push eax
call fcn.004169e6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041dca1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x416ba2
movzx eax, word [ebp - 0x40]
jmp 0x416ba5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004231e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x416bc3
push edi
call fcn.004174e7
call fcn.00417509
jmp 0x416bf5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041775b
ret
Function at 0x417424
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4417b0
call fcn.00417720
push 8
call fcn.0041b6d1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44f578], esi
jne 0x417458
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44f574], esi
mov al, byte [ebp + 0x10]
mov byte [0x44f570], al
cmp dword [ebp + 0xc], edi
jne 0x4174a2
cmp dword [0x450e08], edi
je 0x417492
mov eax, dword [0x450e04]
sub eax, 4
mov dword [0x450e04], eax
cmp eax, dword [0x450e08]
jb 0x417492
mov eax, dword [eax]
cmp eax, edi
je 0x417473
call eax
jmp 0x417473
push 0x44b09c
mov eax, 0x44b094
call fcn.004173a2
pop ecx
push 0x44b0a8
mov eax, 0x44b0a0
call fcn.004173a2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4174d3
cmp dword [ebp + 0x10], edi
jne 0x4174e1
mov dword [0x44f578], esi
push dword [ebp + 8]
call fcn.00417360
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4174e0
push 8
call fcn.0041b61c
pop ecx
ret
call fcn.0041775b
ret

Function at 0x417618
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x417635
call fcn.00418bca
mov dword [eax], 0x16
xor eax, eax
jmp 0x41769f
push esi
push 0x8c
push 1
call fcn.00419817
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41768a
push esi
call fcn.0041a350
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x417668
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x417583
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41769e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004166dd
test ebx, ebx
pop ecx
je 0x41769c
push ebx
call fcn.00418bdc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41c7b8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00416420
mov eax, dword [0x44c41c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00415f46
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41c8eb
push 2
push esi
push dword [ebp + 8]
call fcn.00415f46
add esp, 0xc
cmp eax, ebx
je 0x41c8eb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41c88b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00416c10
push 0x8000
push dword [ebp + 8]
call fcn.004213c0
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41c841
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00415baf
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c861
sub edi, eax
test edi, edi
jg 0x41c839
jmp 0x41c879
call fcn.00418bd3
cmp dword [eax], 5
jne 0x41c876
call fcn.00418bca
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004213c0
pop ecx
pop ecx
jmp 0x41c8d3
jge 0x41c8d3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415f46
push dword [ebp + 8]
call fcn.00418884
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41c8d3
call fcn.00418bca
mov dword [eax], 0xd
call fcn.00418bd3
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00415f46
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41c8ed
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004148c1
leave
ret