joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c9b
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a1ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5b53fc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x416cf4
push 0x553010
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416d11
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b53fc], eax
jmp 0x416cfd
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x416d11
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x416e4e
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0053f98e
lea eax, [ebp - 0x14]
push eax
call fcn.00527d10
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00528359
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0053f98e
lea eax, [ebp - 0x14]
push eax
call fcn.00527d10
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00528359
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0053f98e
lea eax, [ebp - 0x14]
push eax
call fcn.00527d10
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00528359
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0053f98e
lea eax, [ebp - 0x14]
push eax
call fcn.00527d10
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00528359
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0053f98e
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00527d10
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00528359
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052505f
leave
ret
Function at 0x425647
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00413bb4
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x425683
call fcn.00425862
mov dword [esi + 0xc], 1
jmp 0x425688
call fcn.00425862
cmp dword [esi], 0
je 0x4256d1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4256ab
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040a2c4
jmp 0x4256bc
push 0xff
mov ecx, esi
call fcn.00403ce0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407d58
jmp 0x4256f5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4256f5
push dword [esi]
push dword [ebp - 4]
call fcn.00414b86
pop esi
leave
ret 0xc

Function at 0x4257b9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00425862
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x425801
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040a2c4
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407d58
jmp 0x42580c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00414b86
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x449d11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x449d29
call fcn.0040b2ff
mov esi, dword [eax + 0xc]
push 0x55ac5c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x449d7f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x449d7e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x449d5f
xor esi, esi
jmp 0x449d75
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00449d85
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50a2ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x50a2c7
mov edi, dword [esi + 0xc]
jmp 0x50a307
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50a2e0
call fcn.0040be3d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50a2f5
call fcn.0040be3d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50a307
call fcn.0040be3d
call fcn.0040b2ff
cmp dword [eax + 0x3c], 0
je 0x50a31c
push edi
mov ecx, ebx
call fcn.00509b49
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050a4df
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x50a33f
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x50a348
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x53a473
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a1ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0053223c
mov dword [ebp - 0x14], eax
cmp dword [0x5b98a8], edi
jne 0x53a564
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x53a4f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53a644
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x53a644
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53a644
push eax
call ebx
push 0x57ba5c
push esi
mov dword [0x5b98a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57ba6c
push esi
mov dword [0x5b98ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5b98b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b98b8], eax
test eax, eax
je 0x53a561
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b98b4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53a589
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53a57c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x53a59e
push 4
pop eax
jmp 0x53a646
cmp dword [ebp - 0x14], edi
je 0x53a59e
push dword [0x5b98a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53a583
mov eax, dword [0x5b98b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x53a5fc
cmp dword [0x5b98b8], esi
je 0x53a5fc
push eax
call ebx
push dword [0x5b98b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53a5fc
test eax, eax
je 0x53a5fc
call ecx
test eax, eax
je 0x53a5f1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x53a5f1
test byte [ebp - 8], 1
jne 0x53a5fc
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x53a62c
mov eax, dword [0x5b98ac]
cmp eax, esi
je 0x53a629
push eax
call ebx
test eax, eax
je 0x53a629
call eax
mov edi, eax
test edi, edi
je 0x53a629
mov eax, dword [0x5b98b0]
cmp eax, esi
je 0x53a629
push eax
call ebx
test eax, eax
je 0x53a629
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5b98a8]
call ebx
test eax, eax
je 0x53a644
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x53a646
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052505f
leave
ret
Function at 0x4033f0
Capabilities:
Copy file
Enumerate gui resources
Get file attributes

Disassembly:
mov eax, dword [0x4cb344]
mov ecx, dword [0x4c8250]
sub esp, 0xc24
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40350e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4cb344], 0x959
jne 0x4034f4
push 0x402c80
call esi
push 0
lea eax, [esp + 0x434]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
push 0x402c90
push 0x402cf0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x38]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0x402d20
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403250
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc24
ret
Function at 0x408fb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e580]
jne 0x408fba
repz ret
jmp fcn.0040c473

Function at 0x40b9b3
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.00406ef4
and dword [ebp - 4], 0
cmp dword [0x460db4], 0
mov ebx, eax
jne 0x40ba64
push 0x401b5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bb15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b50
push edi
call esi
test eax, eax
je 0x40bb15
push eax
call fcn.00406e82
mov dword [esp], 0x401b40
push edi
mov dword [0x460db4], eax
call esi
push eax
call fcn.00406e82
mov dword [esp], 0x401b2c
push edi
mov dword [0x460db8], eax
call esi
push eax
call fcn.00406e82
mov dword [esp], 0x401b10
push edi
mov dword [0x460dbc], eax
call esi
push eax
call fcn.00406e82
pop ecx
mov dword [0x460dc4], eax
test eax, eax
je 0x40ba64
push 0x401af8
push edi
call esi
push eax
call fcn.00406e82
pop ecx
mov dword [0x460dc0], eax
mov eax, dword [0x460dc0]
cmp eax, ebx
je 0x40babc
cmp dword [0x460dc4], ebx
je 0x40babc
push eax
call fcn.00406efd
push dword [0x460dc4]
mov esi, eax
call fcn.00406efd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40babc
test edi, edi
je 0x40babc
call esi
test eax, eax
je 0x40bab3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bab3
test byte [ebp - 0xc], 1
jne 0x40babc
or dword [ebp + 0x10], 0x200000
jmp 0x40baf5
mov eax, dword [0x460db8]
cmp eax, ebx
je 0x40baf5
push eax
call fcn.00406efd
pop ecx
test eax, eax
je 0x40baf5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40baf5
mov eax, dword [0x460dbc]
cmp eax, ebx
je 0x40baf5
push eax
call fcn.00406efd
pop ecx
test eax, eax
je 0x40baf5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460db4]
call fcn.00406efd
pop ecx
test eax, eax
je 0x40bb15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bb17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x285a22
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x2a610602
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x178a008c
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6c4e1aa3
nop
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x409fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], pe_nt_image_headers32
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x40a061
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x40a061
mov ecx, dword [ebp + 8]
call fcn.00406e10
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.004b9692
add esp, 8
test eax, eax
jne 0x40a05f
mov al, 1
jmp 0x40a063
jmp 0x40a026
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret

Function at 0x40a080
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536ee0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x98
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x94
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.004aeae0
add esp, 0xc
mov dword [ebp - 0xa8], 0x94
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa4], 6
jae 0x40a11b
push 5
mov ecx, dword [ebp + 0xc]
call fcn.00406e10
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00406e10
push eax
mov ecx, dword [ebp + 8]
call fcn.00406e10
push eax
push 0x5a33f1
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40a145
push 5
mov ecx, dword [ebp + 0xc]
call fcn.00406e10
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00406e10
push eax
mov ecx, dword [ebp + 8]
call fcn.00406e10
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40a14d
mov dword [ebp - 4], 0xffffffff
jmp 0x40a15d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x411090
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537702
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5be1ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413420
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00412af0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040c660
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x411157
push 0x14
call fcn.00495208
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push 0x14
mov ecx, dword [ebp - 0x14]
call fcn.0040a660
push 0
push 0x10000
mov ecx, dword [ebp - 0x14]
call fcn.00413450
mov dword [ebp - 0x18], eax
jmp 0x41113b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4136c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537808
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x413700
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41370c
mov al, 1
jmp 0x4138af
mov dword [ebp - 0x48], 8
call fcn.00404d70
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.00404d70
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404d50
add esp, 8
movzx eax, al
test eax, eax
je 0x41374f
xor al, al
jmp 0x4138af
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004113b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov ecx, eax
call fcn.00407320
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00407480
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov ecx, eax
call fcn.00407320
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x38]
call fcn.004141d0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4137ca
cmp dword [ebp - 0x3c], 1
je 0x4137d1
cmp dword [ebp - 0x3c], 3
je 0x41386b
jmp 0x413883
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov ecx, eax
call fcn.00407320
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x413834
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov ecx, eax
call fcn.00407320
push eax
call fcn.004bafeb
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x413834
mov byte [ebp - 0x31], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406e80
mov al, byte [ebp - 0x31]
jmp 0x4138af
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x413857
mov byte [ebp - 0x32], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406e80
mov al, byte [ebp - 0x32]
jmp 0x4138af
cmp dword [ebp - 0x38], 0
jne 0x413869
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00413550
jmp 0x41389b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406e80
mov al, byte [ebp - 0x33]
jmp 0x4138af
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406e80
mov al, byte [ebp - 0x34]
jmp 0x4138af
jmp 0x413762
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret