joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41800c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x418028
call fcn.0041ae83
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x41809a
push esi
push 0x88
push 1
call fcn.0041bf1f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x418080
push esi
call fcn.0041b8f2
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x417f6c
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x418078
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x418097
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00416698
test ebx, ebx
pop ecx
je 0x418092
push ebx
call fcn.0041ae95
pop ecx
or eax, 0xffffffff
jmp 0x418099
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x41847b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00419c8b
xor esi, esi
inc esi
cmp dword [0x42c5a0], esi
pop ecx
jne 0x4184a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42c59c], esi
mov byte [0x42c598], al
jne 0x418509
mov ecx, dword [0x42f7b0]
test ecx, ecx
je 0x4184ea
mov eax, dword [0x42f7ac]
sub eax, 4
cmp eax, ecx
jmp 0x4184e3
mov eax, dword [eax]
test eax, eax
je 0x4184d5
call eax
mov eax, dword [0x42f7ac]
sub eax, 4
cmp eax, dword [0x42f7b0]
mov dword [0x42f7ac], eax
jae 0x4184cd
mov eax, 0x42a06c
mov esi, 0x42a078
cmp eax, esi
mov edi, eax
jae 0x418509
mov eax, dword [edi]
test eax, eax
je 0x418502
call eax
add edi, 4
cmp edi, esi
jb 0x4184fa
mov eax, 0x42a07c
mov esi, 0x42a084
cmp eax, esi
mov edi, eax
jae 0x418528
mov eax, dword [edi]
test eax, eax
je 0x418521
call eax
add edi, 4
cmp edi, esi
jb 0x418519
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x418539
push 8
call fcn.00419bf7
jmp 0x41854b
push dword [ebp + 8]
mov dword [0x42c5a0], 1
call fcn.004183d4
pop ecx
pop ebp
ret
Function at 0x4185d7
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x424728
call fcn.0041a7e0
mov edi, 0x94
mov eax, edi
call fcn.00418de0
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 [0x42c560], ecx
mov eax, dword [esi + 4]
mov dword [0x42c56c], eax
mov edx, dword [esi + 8]
mov dword [0x42c570], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42c564], esi
cmp ecx, 2
je 0x418637
or esi, 0x8000
mov dword [0x42c564], esi
shl eax, 8
add eax, edx
mov dword [0x42c568], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x418672
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418672
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41868a
cmp eax, 0x20b
je 0x418677
mov dword [ebp - 0x1c], esi
jmp 0x41869e
cmp dword [ecx + 0x84], 0xe
jbe 0x418672
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x418698
cmp dword [ecx + 0x74], 0xe
jbe 0x418672
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00419b08
pop ecx
test eax, eax
jne 0x4186b2
push 0x1c
call fcn.004185b3
pop ecx
call fcn.0041bae1
test eax, eax
jne 0x4186c3
push 0x10
call fcn.004185b3
pop ecx
call fcn.0041c448
mov dword [ebp - 4], esi
call fcn.0041a967
test eax, eax
jge 0x4186dc
push 0x1b
call fcn.0041858e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42f7a4], eax
call fcn.0041c9be
mov dword [0x42c5a4], eax
call fcn.0041c91c
test eax, eax
jge 0x418702
push 8
call fcn.0041858e
pop ecx
call fcn.0041c6e9
test eax, eax
jge 0x418713
push 9
call fcn.0041858e
pop ecx
call fcn.00418416
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x418726
push eax
call fcn.0041858e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041c680
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x418747
movzx eax, word [ebp - 0x34]
jmp 0x41874a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00409300
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x418768
push edi
call fcn.0041854e
call fcn.00418570
jmp 0x41879a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041a81b
ret
Function at 0x41a82c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00418de0
mov eax, dword [0x42a364]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041739d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41a956
push 2
push esi
push dword [ebp + 8]
call fcn.0041739d
add esp, 0xc
cmp eax, ebx
je 0x41a956
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41a8f9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00417230
push 0x8000
push dword [ebp + 8]
call fcn.0041dda0
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x41a8b2
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004174bc
add esp, 0xc
cmp eax, 0xffffffff
je 0x41a8d2
sub edi, eax
test edi, edi
jg 0x41a8aa
jmp 0x41a8ea
call fcn.0041ae8c
cmp dword [eax], 5
jne 0x41a8e7
call fcn.0041ae83
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041dda0
pop ecx
pop ecx
jmp 0x41a941
jge 0x41a941
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041739d
push dword [ebp + 8]
call fcn.0041ac60
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 0x41a941
call fcn.0041ae83
mov dword [eax], 0xd
call fcn.0041ae8c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0041739d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41a958
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00418c67
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41bcd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041ae95
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41bcf8
test byte [esp + 8], 2
je 0x41bcf8
call fcn.0041ae83
mov dword [eax], 0xd
call fcn.0041ae8c
mov dword [eax], 5
jmp 0x41bcd1
xor eax, eax
ret
Function at 0x41c4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42a364]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42aaf8]
je 0x41c4fd
inc eax
cmp eax, 0x12
jb 0x41c4ee
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42aaf8]
jne 0x41c631
mov eax, dword [0x42c5ac]
cmp eax, 1
je 0x41c60c
cmp eax, edx
jne 0x41c52d
cmp dword [0x42a34c], 1
je 0x41c60c
cmp ecx, 0xfc
je 0x41c631
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c566
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00416bf0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00416b60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41c5a8
lea eax, [ebp - 0x10c]
push eax
call fcn.00416b60
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x424da8
push edi
call fcn.00416e90
add esp, 0x10
push edi
call fcn.00416b60
push dword [esi + 0x42aafc]
mov ebx, eax
call fcn.00416b60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00418de0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00416bf0
push edi
push ebx
call fcn.00416c00
push 0x424d88
push ebx
call fcn.00416c00
push dword [esi + 0x42aafc]
push ebx
call fcn.00416c00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041ed72
add esp, 0x2c
jmp 0x41c631
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x42aafc]
push dword [esi]
call fcn.00416b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00418c67
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e0b5
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.00418de0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41e14a
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 [0x42c560]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41e14a
cmp eax, 1
je 0x41e162
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 0x41e14a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41e11f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41e146
xor eax, eax
inc eax
jmp 0x41e17e
cmp esi, ebx
jae 0x41e14e
xor eax, eax
jmp 0x41e17e
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42c560]
jmp 0x41e164
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

Function at 0x41ed72
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42c9b0], ebx
push esi
push edi
jne 0x41edf2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ee2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42569c
push edi
call esi
test eax, eax
mov dword [0x42c9b0], eax
je 0x41ee2d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42c9b4], eax
call esi
cmp dword [0x42c560], 2
mov dword [0x42c9b8], eax
jne 0x41edf2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42c9c0], eax
je 0x41edf2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42c9bc], eax
mov eax, dword [0x42c9bc]
test eax, eax
je 0x41ee37
call eax
test eax, eax
je 0x41ee1e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42c9c0]
test eax, eax
je 0x41ee1e
test byte [ebp - 8], 1
jne 0x41ee37
cmp dword [0x42c56c], 4
jb 0x41ee31
or byte [ebp + 0x12], 0x20
jmp 0x41ee56
xor eax, eax
jmp 0x41ee66
or byte [ebp + 0x12], 4
jmp 0x41ee56
mov eax, dword [0x42c9b4]
test eax, eax
je 0x41ee56
call eax
mov ebx, eax
test ebx, ebx
je 0x41ee56
mov eax, dword [0x42c9b8]
test eax, eax
je 0x41ee56
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42c9b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fa82
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41faed
push 0x3d
push dword [ebp + 8]
call fcn.004206fc
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41faed
cmp dword [ebp + 8], esi
je 0x41faed
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x42c580]
cmp eax, dword [0x42c584]
jne 0x41fad3
mov edi, eax
call fcn.0041fa21
mov dword [0x42c580], eax
cmp eax, ebx
jne 0x41fb2c
cmp dword [ebp + 0xc], ebx
je 0x41faf5
cmp dword [0x42c588], ebx
je 0x41faf5
call fcn.0041ec4b
test eax, eax
je 0x41fb2c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41fc30
push 4
call fcn.00416b41
cmp eax, ebx
pop ecx
mov dword [0x42c580], eax
je 0x41faed
mov dword [eax], ebx
cmp dword [0x42c588], ebx
jne 0x41fb2c
push 4
call fcn.00416b41
cmp eax, ebx
pop ecx
mov dword [0x42c588], eax
je 0x41faed
mov dword [eax], ebx
mov ebx, dword [0x42c580]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041f9d4
mov edi, eax
test edi, edi
pop ecx
jl 0x41fb85
cmp dword [ebx], 0
je 0x41fb85
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00416698
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41fb6d
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41fbbb
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41fb64
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00418f57
test eax, eax
pop ecx
pop ecx
je 0x41fbbb
jmp 0x41fbb6
cmp dword [ebp - 4], 0
jne 0x41fc29
test edi, edi
jge 0x41fb95
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00418f57
test eax, eax
pop ecx
pop ecx
je 0x41faed
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x42c580], eax
cmp dword [ebp + 0xc], 0
je 0x41fc12
push dword [ebp + 8]
call fcn.00416b60
inc eax
inc eax
push eax
call fcn.00416b41
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41fc12
push dword [ebp + 8]
push esi
call fcn.00416bf0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41fc0b
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00416698
pop ecx
cmp dword [ebp - 4], 0
je 0x41fc21
push dword [ebp + 8]
call fcn.00416698
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41faf0
push esi
call fcn.00416698
pop ecx
xor eax, eax
jmp 0x41faf0
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x40b860
push 0x67
push esi
call edi
push 0x64
push 0x40b798
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401100
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x40b860
push 0x40b798
push 0
mov dword [0x40b794], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4010f2
mov eax, dword [esp + 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x4010e6
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x4010d3
lea ecx, [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x4010b0
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10

Function at 0x4012ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x4012f6
repz ret
jmp fcn.004014ab
Function at 0x403433
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.00402310
and dword [ebp - 4], 0
cmp dword [0x40b668], 0
mov ebx, eax
jne 0x4034e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403595
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403595
push eax
call fcn.0040229e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.0040229e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.0040229e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b670], eax
call esi
push eax
call fcn.0040229e
pop ecx
mov dword [0x40b678], eax
test eax, eax
je 0x4034e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040229e
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
cmp eax, ebx
je 0x40353c
cmp dword [0x40b678], ebx
je 0x40353c
push eax
call fcn.00402319
push dword [0x40b678]
mov esi, eax
call fcn.00402319
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40353c
test edi, edi
je 0x40353c
call esi
test eax, eax
je 0x403533
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403533
test byte [ebp - 0xc], 1
jne 0x40353c
or dword [ebp + 0x10], 0x200000
jmp 0x403575
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x403575
push eax
call fcn.00402319
pop ecx
test eax, eax
je 0x403575
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403575
mov eax, dword [0x40b670]
cmp eax, ebx
je 0x403575
push eax
call fcn.00402319
pop ecx
test eax, eax
je 0x403575
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.00402319
pop ecx
test eax, eax
je 0x403595
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403597
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ea0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0x24
mov dword [0x40af60], 0x44
mov dword [ebp - 0x14], 3
mov dword [0x40ac40], 0x1003f
mov eax, dword [0x40b1dc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [0x40af3c], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401d20
add esp, 4
mov dword [ebp - 4], 3
mov dword [ebp - 0xc], 0
jmp 0x401f00
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [0x40ac1c]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jge 0x401f77
mov dword [ebp - 0x1c], 1
mov ecx, dword [0x40b1ec]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
add eax, dword [ebp + 8]
lea ecx, [eax + edx + 0xf8]
mov dword [0x40ac18], ecx
mov dword [ebp - 0x18], 0x1a
push 0
mov edx, dword [0x40ac18]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [0x40ac18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [0x40ac1c]
mov ecx, dword [eax + 0x34]
mov edx, dword [0x40ac18]
add ecx, dword [edx + 0xc]
push ecx
mov eax, dword [0x40ac08]
push eax
call dword [0x40afbc]
jmp 0x401ef7
mov dword [ebp - 8], 0x2f
call fcn.00401e20
mov eax, dword [0x40b1dc]
cdq
mov ecx, 0x60
idiv ecx
mov dword [0x40af3c], eax
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edi, esi
mov dword [0x409048], eax
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jbe 0x401037
xor eax, eax
pop edi
pop esi
ret 0x10
mov edi, 0x409000
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x401055
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x40103d
pop edi
call fcn.00401080
push 1
push 0
push 0x408004
push 0x408006
push 0x408013
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
mov eax, 1
pop edi
pop esi
ret 0x10

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x30
mov edi, 1
mov ebp, 0x1f5
push edi
push 0x408019
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push 0x40801e
lea eax, [esp + 4]
push eax
mov eax, dword [0x409048]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test eax, eax
je 0x4011a2
push 0x32
push 0x409008
push ebp
mov ecx, dword [0x409048]
push ecx
mov ebx, 1
call dword [sym.imp.USER32.DLL_LoadStringA]
lea ecx, [esp + 0x14]
mov edx, 0x408024
mov eax, 0x409008
call fcn.00401210
push esi
mov ebx, dword [0x409048]
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
mov esi, dword [0x409048]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x401132
mov edx, 0x408006
mov eax, 0x408026
call fcn.004012c0
inc ebp
inc edi
jmp 0x401093
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test eax, eax
je 0x40117e
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push 0x408026
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp eax, 0xffffffff
je 0x401196
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
jmp 0x40111c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x24], eax
jmp 0x40117e
push 0xe
lea eax, [esp + 4]
push eax
push 0x1f4
mov edx, dword [0x409048]
push edx
call dword [sym.imp.USER32.DLL_LoadStringA]
mov eax, esp
call fcn.00401520
mov dword [esp + 0x24], eax
cmp edi, eax
jbe 0x4011d9
mov eax, 1
add esp, 0x30
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
lea eax, [esp + 0x14]
push eax
push 0x40802e
push 0x409008
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push 0x10
push 0x408061
push 0x409008
push esi
call dword [sym.imp.USER32.DLL_MessageBoxA]
xor eax, eax
add esp, 0x30
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret