joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402af4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
shr edi, 0x10
xor esi, esi
push 1
cmp di, si
pop ebx
jne 0x402b68
movzx eax, word [ebp + 0xc]
dec eax
je 0x402bbd
dec eax
je 0x402b82
sub eax, 4
je 0x402ba3
sub eax, 0x6d
je 0x402b96
sub eax, 0xa
je 0x402b8c
dec eax
je 0x402b82
sub eax, 0x18
jne 0x402b68
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, esi
je 0x402b4e
push 0x408704
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push esi
push esi
push esi
push dword [0x408390]
push 0x408018
push dword [ebp + 8]
call fcn.0040248f
add esp, 0x1c
cmp word [ebp + 0xc], 0x77
jne 0x402bc7
cmp di, si
jne 0x402bff
push ebx
push esi
push esi
push str.http:__eula.mindspark.com_eula__
jmp 0x402bf3
push dword [ebp + 8]
call fcn.00402d08
jmp 0x402c01
push dword [ebp + 8]
call fcn.00402c08
jmp 0x402c01
push esi
push esi
push esi
push esi
mov dword [0x408390], ebx
push ebx
jmp 0x402b58
mov eax, dword [0x408ab4]
push 2
pop ecx
push eax
push esi
push eax
mov dword [0x408390], ecx
push dword [0x408ab0]
push ecx
jmp 0x402b58
push dword [ebp + 8]
call fcn.00402d6f
jmp 0x402c01
cmp word [ebp + 0xc], 0x93
jne 0x402bde
cmp di, si
jne 0x402bff
push ebx
push esi
push esi
push str.http:__www.mindspark.com_faq.html_
jmp 0x402bf3
cmp word [ebp + 0xc], 0xe1
jne 0x402bff
cmp di, si
jne 0x402bff
push ebx
push esi
push esi
push str.http:__eula.mindspark.com_ask__
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, ebx
jmp 0x402c01
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x402e2a
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
push ebx
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
cmp eax, ebx
je 0x402fb8
lea ecx, [ebp - 0x170]
push 0x104
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x402fb8
lea eax, [ebp - 0x170]
test eax, eax
je 0x402fb8
lea eax, [ebp - 0x170]
push str.finish
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402fb8
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
mov byte [ebp - 0x570], bl
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00401117
lea eax, [ebp - 0x6c]
push 0x64
push eax
push 0x405338
push str.SoftwareFromDocToPDF_65_bar
push 0x80000002
call fcn.004043fd
add esp, 0x1c
test eax, eax
je 0x402f1f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x6c]
push eax
call esi
mov edi, eax
movsx eax, byte [ebp - 0x6c]
push eax
call fcn.0040420e
cmp edi, 2
pop ecx
jl 0x402f22
push str.http:__download.fromdoctopdf.com_successRedirect.jhtml_
call esi
mov ecx, 0x3f1
sub ecx, eax
cmp ecx, edi
jle 0x402f22
cmp dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
je 0x402f18
push str._new_window_http:__download.fromdoctopdf.com_successRedirect.jhtml_partner_s
lea eax, [ebp - 0x570]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x402f22
push str._new_http:__download.fromdoctopdf.com_successRedirect.jhtml_partner_s
jmp 0x402f06
mov byte [ebp - 0x6c], bl
cmp byte [ebp - 0x570], bl
pop edi
pop esi
jne 0x402f4a
cmp dword [ebp - 4], ebx
je 0x402f38
push str._new_window_http:__download.fromdoctopdf.com_successRedirect.jhtml_
jmp 0x402f3d
push str._new_http:__download.fromdoctopdf.com_successRedirect.jhtml_
lea eax, [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push 0xf0
push 0x71
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 1
jne 0x402f79
lea eax, [ebp - 0x570]
push str.sa1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push 1
jmp 0x402f8e
lea eax, [ebp - 0x570]
push str.sa0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push ebx
call fcn.00401b05
add esp, 0xc
cmp dword [ebp - 4], ebx
mov eax, str.firefox.exe
jne 0x402fa5
mov eax, str.iexplore.exe
push 1
lea ecx, [ebp - 0x570]
push ebx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00401afb
call fcn.004017ad
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
push 1
pop eax
pop ebx
leave
ret 8
Function at 0x40331f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x403398
cmp dword [eax + 4], 0x6f
jne 0x403398
cmp dword [eax + 8], 0x70b
jne 0x403398
cmp dword [eax + 0xc], 0x202
jne 0x403398
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov esi, eax
sub esi, ecx
cmp esi, 0x3e8
jae 0x403398
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3f4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x44b
push 0x6f
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp esi, eax
jne 0x403398
push 1
push edi
lea eax, [ebp - 0x3f4]
push edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x4037fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x40395d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupGetFileCompressionInfoA
push edi
call esi
push str.SetupDecompressOrCopyFileA
push edi
mov dword [0x408ae0], eax
call esi
cmp dword [0x408ae0], ebx
mov dword [0x408ae4], eax
je 0x40394a
cmp eax, ebx
je 0x40394a
push str.MyFree
push edi
call esi
push ebx
mov dword [0x408ae8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [ebp + 8]
push 0x408978
push esi
mov dword [ebp - 8], eax
call fcn.0040411e
pop ecx
mov edx, eax
mov al, byte [0x408adc]
pop ecx
neg edx
push 0x4a
mov byte [ebp - 0x140], al
sbb edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
neg edx
neg edx
stosb byte es:[edi], al
sbb edx, edx
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x140]
mov esi, 0x12a
and edx, 2
push eax
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x403930
cmp byte [ebp - 0x140], bl
je 0x403930
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x141], 0x5c
lea eax, [ebp + eax - 0x141]
je 0x4038f6
inc eax
mov byte [eax], 0x5c
mov byte [eax + 1], bl
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x140]
push eax
push 0x403967
push str.PART
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x406bc0]
cmp eax, 4
mov dword [ebp - 0x14], eax
jne 0x4038f9
push dword [ebp - 4]
mov dword [0x408ae0], ebx
mov dword [0x408ae4], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x403960
push edi
mov dword [0x408ae0], ebx
mov dword [0x408ae4], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403cff
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
jne 0x403d21
xor eax, eax
jmp 0x403d84
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x403da4
push 0
push 0
call fcn.00404220
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x403d60
and dword [edi], eax
xor esi, esi
jmp 0x403d7b
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4043fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404422
xor eax, eax
jmp 0x40447f
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40446d
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x40446d
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40446d
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x404549
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x40459c
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40457e
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x4045fe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x404597
cmp eax, 2
je 0x404597
xor esi, esi
jmp 0x4045e5
push 1
pop esi
jmp 0x4045e5
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4045c1
xor eax, eax
jmp 0x4045fe
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x4045f3
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x40467d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x404690
or dword [eax], 0xffffffff
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404722
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x40471b
cmp dword [ebp + 8], edi
jne 0x40471b
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
call fcn.00403fd4
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x40471b
lea ecx, [ebp + 0x10]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404712
cmp dword [ebp + 0x10], esi
jne 0x404712
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404706
mov dword [eax], ebx
jmp 0x40470d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x404729
push dword [ebp - 4]
call fcn.00403fdf
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006150
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1000379c
mov eax, dword [ebx]
call fcn.1000390c
mov edx, eax
test edx, edx
jle 0x10006187
mov eax, 1
mov ecx, dword [ebx]
mov cx, word [ecx + eax*2 - 2]
xor cx, 0x13
mov esi, dword [ebx]
mov word [esi + eax*2 - 2], cx
inc eax
dec edx
jne 0x10006171
pop esi
pop ebx
ret

Function at 0x1000618c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.10003c18
xor eax, eax
push ebp
push 0x10006270
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffe00
mov word [eax], bx
inc ebx
add eax, 2
cmp ebx, 0x100
jne 0x100061c0
xor ebx, ebx
lea esi, [ebp - 0x208]
mov eax, dword [ebp - 4]
call fcn.1000390c
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 4]
mov ax, word [eax + edx*2]
mov word [esi], ax
inc ebx
add esi, 2
cmp ebx, 0x100
jne 0x100061d7
mov ebx, pe_nt_image_headers32
mov eax, dword [ebp + 8]
add eax, 0xfffffe00
lea edx, [ebp - 0x208]
mov cx, word [eax]
movzx esi, cx
add esi, dword [ebp - 8]
movzx edi, word [edx]
add esi, edi
and esi, 0x800000ff
jns 0x1000622f
dec esi
or esi, 0xffffff00
inc esi
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov si, word [esi + edi*2 - 0x200]
mov word [eax], si
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov word [esi + edi*2 - 0x200], cx
add edx, 2
add eax, 2
dec ebx
jne 0x10006211
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10006277
lea eax, [ebp - 4]
call fcn.10003760
ret

Function at 0x100064c8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x10006538
inc ebx
mov dword [ebp - 4], ebx
mov esi, edx
inc byte [eax + 0x100]
xor edx, edx
mov dl, byte [eax + 0x100]
mov dl, byte [eax + edx]
add byte [eax + 0x101], dl
xor ebx, ebx
mov bl, byte [eax + 0x101]
mov bl, byte [eax + ebx]
push ebx
xor ebx, ebx
mov bl, byte [eax + 0x100]
lea edi, [eax + ebx]
pop ebx
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [eax + 0x101]
mov byte [eax + ebx], dl
xor ebx, ebx
mov bl, byte [eax + 0x100]
add dl, byte [eax + ebx]
and edx, 0xff
mov dl, byte [eax + edx]
xor dl, byte [esi]
mov byte [ecx], dl
inc ecx
inc esi
dec dword [ebp - 4]
jne 0x100064dd
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x1000a240
Capabilities:
Persist via active setup registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x287
push 0
push 0
dec ecx
jne 0x1000a248
push ecx
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x1398]
mov ecx, 0x4e2
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.10003c18
xor eax, eax
push ebp
push 0x1000a4df
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x74c], 0
je 0x1000a499
cmp byte [ebp - 0x5dc], 1
jne 0x1000a2c2
mov eax, dword [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x139c]
lea edx, [ebp - 0x74a]
mov ecx, 0x3d
call fcn.100038d0
mov ecx, dword [ebp - 0x139c]
mov edx, 0x1000a4f4
mov eax, 0x80000002
call fcn.100056d4
cmp byte [ebp - 0x5db], 1
jne 0x1000a2fc
mov eax, dword [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x13a0]
lea edx, [ebp - 0x6d0]
mov ecx, 0x3d
call fcn.100038d0
mov ecx, dword [ebp - 0x13a0]
mov edx, 0x1000a4f4
mov eax, 0x80000001
call fcn.100056d4
cmp byte [ebp - 0x5da], 1
jne 0x1000a3a2
lea eax, [ebp - 0x13a8]
lea edx, [ebp - 0x656]
mov ecx, 0x3d
call fcn.100038d0
mov ecx, dword [ebp - 0x13a8]
lea eax, [ebp - 0x13a4]
mov edx, 0x1000a554
call fcn.10003978
mov edx, dword [ebp - 0x13a4]
mov eax, 0x80000001
call fcn.10005940
lea eax, [ebp - 0x13ac]
mov ecx, 0x1000a5c4
mov edx, dword [ebp - 4]
call fcn.10003978
mov eax, dword [ebp - 0x13ac]
push eax
push 2
lea eax, [ebp - 0x13b4]
lea edx, [ebp - 0x656]
mov ecx, 0x3d
call fcn.100038d0
mov ecx, dword [ebp - 0x13b4]
lea eax, [ebp - 0x13b0]
mov edx, 0x1000a554
call fcn.10003978
mov edx, dword [ebp - 0x13b0]
mov ecx, 0x1000a5dc
mov eax, 0x80000002
call fcn.100056d4
cmp byte [ebp - 0x5d9], 1
jne 0x1000a499
lea eax, [ebp - 0x13b8]
lea edx, [ebp - 0x4e4]
mov ecx, 0x3d
call fcn.100034a0
mov eax, dword [ebp - 0x13b8]
mov edx, 0x1000a5f8
call fcn.1000361c
jne 0x1000a3fa
lea edx, [ebp - 0x1434]
mov eax, dword [ebp - 4]
call fcn.10005198
lea esi, [ebp - 0x1434]
lea edi, [ebp - 0x4e4]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x5d8]
mov ecx, 0x3d
call fcn.100038d0
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x1000a608
call fcn.10003b84
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.10003aa8
mov edx, dword [ebp - 0xc]
mov eax, 0x1000a608
call fcn.10003b84
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.10003af4
mov eax, dword [ebp - 8]
call fcn.100059ec
mov ebx, eax
lea eax, [ebp - 0x1438]
lea edx, [ebp - 0x4e4]
mov ecx, 0x3d
call fcn.100038d0
mov eax, dword [ebp - 0x1438]
push eax
push 2
lea eax, [ebp - 0x143c]
lea edx, [ebp - 0x55e]
mov ecx, 0x3d
call fcn.100038d0
mov ecx, dword [ebp - 0x143c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.100056d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000a4e6
lea eax, [ebp - 0x143c]
mov edx, 2
call fcn.10003778
lea eax, [ebp - 0x13b8]
call fcn.100032cc
lea eax, [ebp - 0x13b4]
mov edx, 7
call fcn.10003778
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.10003778
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1189f30
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
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 [0x1189f30], ecx
mov eax, dword [esi + 4]
mov dword [0x1189f34], eax
mov edx, dword [esi + 8]
mov dword [0x1189f38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1189f3c], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x1189f40], esi
shl eax, 8
add eax, edx
mov dword [0x1189f30], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x1189f30], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1189f30], eax
call fcn.00401224
mov dword [0x1189f34], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1c2000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0xfc837c
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x40167e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2d388f4]
sub esp, 0x400
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d382ec]
test esi, esi
je 0x4016c9
cmp eax, 0x959
jne 0x4016b5
push 0
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016c9
mov eax, dword [0x2d388f4]
jmp 0x40169d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4