joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e4a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49e4ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049e963
test al, al
jne 0x49e4e6
sub edx, 2
cmp edx, edi
jne 0x49e4cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49e50e
lea eax, [edi + 2]
cmp edx, eax
je 0x49e50e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049e09a
add esp, 0x10
jmp 0x49e608
push esi
lea ecx, [ebp - 0x255]
call fcn.0049e963
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49e551
push dword [ebp - 0x25c]
jmp 0x49e4fe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49e58e
cmp word [ebp - 0x226], 0
je 0x49e5af
cmp word [ebp - 0x226], ax
jne 0x49e58e
cmp word [ebp - 0x224], 0
je 0x49e5af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049e09a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49e5fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49e568
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49e5e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49e608
push 0x49da82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040570e
add esp, 0x10
jmp 0x49e5d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x40110f
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40110b
or esi, 0xffffffff
mov eax, esi
pop esi
ret
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4010f7
Function at 0x40281b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402830
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402842
xor eax, eax
jmp 0x402874
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402866
cmp esi, eax
jae 0x40283e
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402858
cmp esi, eax
jae 0x40283e
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4033fe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040f200
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0040f200
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403457
push esi
push esi
push str.CreateProcess_failed.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40346a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x404084
Capabilities:
Check internet connectivity via wininet
Get common file path

Disassembly:
mov eax, 0x42f6d9
call fcn.0040fb84
sub esp, 0x114
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x50]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
xor ebx, ebx
cmp byte [0x43f0ff], 1
mov dword [esi + 0x50], ebx
jne 0x404155
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4040dd
push ebx
push ebx
push ebx
push ebx
push ebx
push str.http:__www.uj.com.tw_FS2_loader_SP_index.htm
lea ecx, [esi + 0x288]
call fcn.004055b1
jmp 0x40414f
lea eax, [ebp - 0x120]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403c18
push str.default.htm
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.004035e5
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403683
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004028a6
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
lea ecx, [esi + 0x288]
call fcn.004055b1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004028a6
mov byte [0x43f0ff], bl
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x64
push 2
push dword [esi + 0x1c]
call edi
push ebx
push 0xa
push 3
push dword [esi + 0x1c]
mov dword [esi + 0x50], eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x54], eax
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4042f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREUserJoy_TechnologyFantasia_Sango_2_Cht
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x1a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40434f
lea eax, [ebp - 8]
push eax
add esi, 0x20
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.Serial_code
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x404355
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREUserJoy_TechnologyFantasia_Sango_2_Cht
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4043b0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.GameVerSP
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0xc]
push eax
call fcn.004103e0
mov ecx, dword [esi + 4]
mov dword [ecx], eax
lea eax, [esi + 0xe]
push eax
call fcn.004103e0
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 0x10]
push eax
call fcn.004103e0
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
lea eax, [esi + 0x12]
push eax
call fcn.004103e0
mov ecx, dword [esi + 4]
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x14]
push eax
call fcn.004103e0
mov ecx, dword [esi + 4]
mov dword [ecx + 0x10], eax
add esp, 0x14
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40d538
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 edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40d58b
call fcn.0042c6b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40d58b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40d581
xor eax, eax
jmp 0x40d6a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40d5ba
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40d5ba
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40d69d
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x40d5e9
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x40d69d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40d627
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40d627
test edi, edi
mov dword [ebp - 8], edi
je 0x40d621
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x40d68d
and dword [ebp + 0x10], 0
jmp 0x40d68d
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40d68d
push 0xc
call fcn.0041be37
mov esi, eax
test esi, esi
pop ecx
je 0x40d66c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
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 + 0xc]
mov dword [esi], eax
jmp 0x40d66e
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40d688
push dword [ebp - 8]
call fcn.0041ba3b
jmp 0x40d68d
call fcn.0041ba12
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x40d5f5
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4104db
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4364d8
call fcn.00410f6c
mov edi, 0x94
mov eax, edi
call fcn.0040f0a0
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 [0x444490], ecx
mov eax, dword [esi + 4]
mov dword [0x44449c], eax
mov edx, dword [esi + 8]
mov dword [0x4444a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x444494], esi
cmp ecx, 2
je 0x41053b
or esi, 0x8000
mov dword [0x444494], esi
shl eax, 8
add eax, edx
mov dword [0x444498], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410576
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410576
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41058e
cmp eax, 0x20b
je 0x41057b
mov dword [ebp - 0x1c], esi
jmp 0x4105a2
cmp dword [ecx + 0x84], 0xe
jbe 0x410576
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41059c
cmp dword [ecx + 0x74], 0xe
jbe 0x410576
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412c1d
pop ecx
test eax, eax
jne 0x4105b6
push 0x1c
call fcn.004104b7
pop ecx
call fcn.00414108
test eax, eax
jne 0x4105c7
push 0x10
call fcn.004104b7
pop ecx
call fcn.00414ef8
mov dword [ebp - 4], esi
call fcn.00414cfa
test eax, eax
jge 0x4105e0
push 0x1b
call fcn.00410492
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x445cf0], eax
call fcn.00414bd8
mov dword [0x444480], eax
call fcn.00414b36
test eax, eax
jge 0x410606
push 8
call fcn.00410492
pop ecx
call fcn.00414903
test eax, eax
jge 0x410617
push 9
call fcn.00410492
pop ecx
call fcn.004108de
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x41062a
push eax
call fcn.00410492
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041489a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x41064b
movzx eax, word [ebp - 0x34]
jmp 0x41064e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041b354
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41066c
push edi
call fcn.00410a16
call fcn.00410a38
jmp 0x41069e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410fa7
ret
Function at 0x418069
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 0x41822f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x445980]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41822f
test cl, 0x48
je 0x4180cf
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4180cf
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 0x418121
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x418109
call fcn.00411d85
mov dword [eax], 9
call fcn.00411d8e
mov dword [eax], esi
jmp 0x418119
cmp eax, 0x6d
je 0x41822f
push eax
call fcn.00411d97
pop ecx
or eax, 0xffffffff
jmp 0x418231
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41822a
test edx, edx
je 0x418144
cmp byte [ebx], 0xa
jne 0x418144
or al, 4
jmp 0x418146
and al, 0xfb
mov byte [ecx], al
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 0x418224
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x418214
cmp al, 0xd
je 0x41817a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x418206
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x418194
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41818f
add dword [ebp + 0x10], 2
jmp 0x4181e8
mov dword [ebp + 0x10], eax
jmp 0x418202
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 0x4181bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418202
cmp dword [ebp - 0xc], 0
je 0x418202
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4181dd
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4181e8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x418205
cmp ebx, dword [ebp + 0xc]
jne 0x4181ed
cmp byte [ebp - 1], 0xa
jne 0x4181ed
mov byte [ebx], 0xa
jmp 0x418205
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004185e3
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x418206
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41815e
jmp 0x418224
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x418224
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x418231
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4182e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x440404]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x41830a
xor eax, eax
jmp 0x418478
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x445980]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41833d
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00419b88
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41840f
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x41844a
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x418398
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x418389
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x41836c
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4183d8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4183e1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41835d
jmp 0x4183e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x418473
cmp dword [ebp - 8], edi
je 0x41844a
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41843c
call fcn.00411d85
mov dword [eax], 9
call fcn.00411d8e
mov dword [eax], esi
jmp 0x418445
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418431
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4183e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4183e3
push dword [ebp - 8]
call fcn.00411d97
pop ecx
or eax, 0xffffffff
jmp 0x418476
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41845f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41845f
xor eax, eax
jmp 0x418476
call fcn.00411d85
mov dword [eax], 0x1c
call fcn.00411d8e
mov dword [eax], edi
jmp 0x418445
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004106de
leave
ret
Function at 0x418c54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4448d0], ebx
push esi
push edi
jne 0x418cd4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418d0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4374d0
push edi
call esi
test eax, eax
mov dword [0x4448d0], eax
je 0x418d0f
push 0x4374c0
push edi
call esi
push 0x4374ac
push edi
mov dword [0x4448d4], eax
call esi
cmp dword [0x444490], 2
mov dword [0x4448d8], eax
jne 0x418cd4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4448e0], eax
je 0x418cd4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4448dc], eax
mov eax, dword [0x4448dc]
test eax, eax
je 0x418d19
call eax
test eax, eax
je 0x418d00
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4448e0]
test eax, eax
je 0x418d00
test byte [ebp - 8], 1
jne 0x418d19
cmp dword [0x44449c], 4
jb 0x418d13
or byte [ebp + 0x12], 0x20
jmp 0x418d38
xor eax, eax
jmp 0x418d48
or byte [ebp + 0x12], 4
jmp 0x418d38
mov eax, dword [0x4448d4]
test eax, eax
je 0x418d38
call eax
mov ebx, eax
test ebx, ebx
je 0x418d38
mov eax, dword [0x4448d8]
test eax, eax
je 0x418d38
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4448d0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418fdb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f0a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419070
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x444490]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x419070
cmp eax, 1
je 0x419088
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419070
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x419045
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41906c
xor eax, eax
inc eax
jmp 0x4190a4
cmp esi, ebx
jae 0x419074
xor eax, eax
jmp 0x4190a4
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x444490]
jmp 0x41908a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret