joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4341c0]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x4369b8], 0
push esi
je 0x407a80
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004118e4
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00410f63
add esp, 4
test eax, eax
je 0x407a9d
push ecx
mov ecx, eax
call fcn.004079b0
mov dword [0x4369b8], eax
jmp 0x407aa7
mov dword [0x4369b8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x407acf
xor ecx, ecx
jmp 0x407ae3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ad4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00405260
lea eax, [esp + 4]
push eax
call fcn.00408490
cmp dword [esp + 0x18], 8
jb 0x407b0b
push dword [esp + 4]
call fcn.00410fb4
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.004118e4
mov esp, ebp
pop ebp
ret

Function at 0x408490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4341c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov edx, str._t_n_v_f_r
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [0x4369b8]
lea ecx, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4084e0
sub edx, ecx
lea ecx, [ebp - 0x38]
sar edx, 1
push edx
push str._t_n_v_f_r
call fcn.00405260
lea eax, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.0040d1c0
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x408520
push dword [ebp - 0x38]
call fcn.00410fb4
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x408557
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x3c]
call fcn.00407b40
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x408568
push dword [ebp - 0x20]
call fcn.00410fb4
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004118e4
mov esp, ebp
pop ebp
ret 4
Function at 0x40b910
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x40b92e
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40b939
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
jne 0x40b98c
lea ecx, [esp + 8]
call fcn.0040eb70
mov edx, ecx
mov ecx, esi
call fcn.0040bd90
test al, al
je 0x40b975
cmp byte [esp + 0x10], 0
je 0x40b975
cmp dword [esi + 0x14], 8
jb 0x40b964
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40b97f
mov eax, dword [esi]
jmp 0x40b981
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b932
mov ecx, esi
call fcn.0040bf40
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bd50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40bd5e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40bd78
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bd8b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x40bec0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0040a890
test al, al
jne 0x40bf2c
mov ecx, esi
call fcn.0040a890
test al, al
jne 0x40bf2c
cmp dword [edi + 0x10], 0x104
jae 0x40bf2c
cmp dword [esi + 0x10], 0x104
jae 0x40bf2c
cmp dword [esi + 0x14], 8
jb 0x40bef5
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40befd
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40bf2c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bf2c
test al, 1
je 0x40bf26
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x40bf40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x4341c0]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov word [ebp - 0x40], 0
push ebx
push esi
lea edx, [ebp - 0x48]
movlpd qword [ebp - 0x48], xmm0
mov esi, ecx
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
call fcn.0040bd90
test al, al
je 0x40c07b
cmp byte [ebp - 0x40], 0
jne 0x40bfae
cmp dword [esi + 0x14], 8
jb 0x40bf92
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118e4
mov esp, ebp
pop ebp
ret
push 3
push 0
push esi
lea ecx, [ebp - 0x2f0]
mov bl, 1
call fcn.0040ac60
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040af30
cmp dword [ebp - 0xc], 0
je 0x40c016
lea ecx, [ebp - 0x1c]
call fcn.0040bf40
and bl, al
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x38]
push eax
call fcn.0040af30
lea ecx, [ebp - 0x1c]
cmp ecx, eax
je 0x40bfff
push 0xffffffffffffffff
push 0
push eax
call fcn.00404030
cmp dword [ebp - 0x24], 8
jb 0x40c010
push dword [ebp - 0x38]
call fcn.00410fb4
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x40bfd5
cmp dword [ebp - 8], 8
jb 0x40c027
push dword [ebp - 0x1c]
call fcn.00410fb4
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
test bl, bl
je 0x40c070
cmp dword [esi + 0x14], 8
jb 0x40c047
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x2f0]
setne bl
call fcn.0040ae20
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118e4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2f0]
call fcn.0040ae20
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004118e4
mov esp, ebp
pop ebp
ret

Function at 0x40c1f0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0040a890
test al, al
jne 0x40c217
mov ecx, dword [ebp + 0xc]
call fcn.0040a890
test al, al
jne 0x40c217
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040c090
xor al, al
pop ebp
ret
Function at 0x40f8d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4341c0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4355f4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004127fc
add esp, 4
mov edi, 0x100
jmp 0x40f930
mov esi, dword [0x43798c]
xor dl, dl
test esi, esi
jle 0x40f968
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x40f963
mov eax, dword [esi*4 + 0x4372e0]
test eax, eax
je 0x40f963
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x40f940
dec edi
test edi, edi
jle 0x40f971
test dl, dl
jne 0x40f930
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004118e4
mov esp, ebp
pop ebp
ret
Function at 0x4202ef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4341c0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00415cb8
mov dword [ebp - 0x14], eax
cmp dword [0x43691c], esi
jne 0x4203e2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42036f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4204c2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4204c2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4204c2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43691c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x436920], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436924], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43692c], eax
test eax, eax
je 0x4203df
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436928], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x420407
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4203fa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42041c
push 4
pop eax
jmp 0x4204c4
cmp dword [ebp - 0x14], esi
je 0x42041c
push dword [0x43691c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x420401
mov eax, dword [0x436928]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42047a
cmp dword [0x43692c], edi
je 0x42047a
push eax
call ebx
push dword [0x43692c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42047a
test eax, eax
je 0x42047a
call ecx
test eax, eax
je 0x42046f
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 0x42046f
test byte [ebp - 8], 1
jne 0x42047a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4204aa
mov eax, dword [0x436920]
cmp eax, edi
je 0x4204a7
push eax
call ebx
test eax, eax
je 0x4204a7
call eax
mov esi, eax
test esi, esi
je 0x4204a7
mov eax, dword [0x436924]
cmp eax, edi
je 0x4204a7
push eax
call ebx
test eax, eax
je 0x4204a7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43691c]
call ebx
test eax, eax
je 0x4204c2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4204c4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118e4
mov esp, ebp
pop ebp
ret
Function at 0x40a91b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b46
and dword [ebp - 0x14], 0
cmp dword [0x44c300], 0
mov dword [ebp - 0x18], eax
jne 0x40a9ce
push 0x40247c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aa76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402470
push ebx
call edi
test eax, eax
je 0x40aa76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402460
push ebx
mov dword [0x44c300], eax
call edi
push eax
call esi
push 0x40244c
push ebx
mov dword [0x44c304], eax
call edi
push eax
call esi
push 0x402430
push ebx
mov dword [0x44c308], eax
call edi
push eax
call esi
mov dword [0x44c310], eax
test eax, eax
je 0x40a9ce
push 0x402418
push ebx
call edi
push eax
call esi
mov dword [0x44c30c], eax
mov eax, dword [0x44c30c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aa27
cmp dword [0x44c310], ecx
je 0x40aa27
push eax
call esi
push dword [0x44c310]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aa27
test ebx, ebx
je 0x40aa27
call edi
test eax, eax
je 0x40aa1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aa1e
test byte [ebp - 8], 1
jne 0x40aa27
or dword [ebp + 0x10], 0x200000
jmp 0x40aa5a
mov eax, dword [0x44c304]
cmp eax, dword [ebp - 0x18]
je 0x40aa5a
push eax
call esi
test eax, eax
je 0x40aa5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40aa5a
mov eax, dword [0x44c308]
cmp eax, dword [ebp - 0x18]
je 0x40aa5a
push eax
call esi
test eax, eax
je 0x40aa5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c300]
call esi
test eax, eax
je 0x40aa76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aa78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ac95
leave
ret

Function at 0x40ac95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41db90]
jne 0x40ac9f
repz ret
jmp fcn.00413cb4
Function at 0x41b060
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x2b75e64], 0x37
jne 0x41b0c8
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x4035d8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x2b76278]
mov eax, dword [0x2b75948]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x335e5ef5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section._RDATA
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x318747c8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x3e8f03e9
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x37b236a7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x408cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408d29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d29
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408d1a
cmp esi, edx
jae 0x408d29
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x408d08
cmp esi, edx
jae 0x408d29
cmp word [esi], 0
je 0x408d29
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40b580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1468
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5211e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041d466
mov edi, eax
add esp, 4
test edi, edi
je 0x40b623
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00414e9c
add esp, 4
mov dword [edi + 4], eax
jmp 0x40b625
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00403a60
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x40b685
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40b685
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x40b6a9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40b6cb
cmp byte [ebp + 0xc], 0
je 0x40b6b8
push esi
call fcn.00415448
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40b6d7
mov esi, str.ios_base::badbit_set
jmp 0x40b6e7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040b710
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404800
push 0x5154e4
lea eax, [ebp - 0x30]
push eax
call fcn.004b2f0d
int3
Function at 0x40f090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5211e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40f117
test ebx, ebx
je 0x40f117
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40f117
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40f117
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f111
push esi
push ebx
push edi
call fcn.004b2f80
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f111
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d327
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d327
mov esp, ebp
pop ebp
ret

Function at 0x413560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0041d5f0
mov eax, dword [0x5211e4]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1048], 0x44
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1048]
push edi
mov edi, dword [ebp + 0xc]
push eax
movlpd qword [ebp - 0x1044], xmm0
movlpd qword [ebp - 0x103c], xmm0
movlpd qword [ebp - 0x1034], xmm0
movlpd qword [ebp - 0x102c], xmm0
movlpd qword [ebp - 0x1024], xmm0
movlpd qword [ebp - 0x101c], xmm0
movlpd qword [ebp - 0x1014], xmm0
movlpd qword [ebp - 0x100c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 5
mov dword [ebp - 0x101c], 1
push 0x1000
mov word [ebp - 0x1018], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x1004]
push 0
push eax
movups xmmword [ebp - 0x1058], xmm0
call fcn.004b2d00
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x41363f
cmp dword [edi + 0x14], 8
jb 0x41361d
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x413627
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x1004]
push str.__s___s
push eax
call fcn.00412860
add esp, 0x10
jmp 0x41365e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x413649
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x1004]
push str.__s_
push eax
call fcn.00412860
add esp, 0xc
cmp byte [ebp + 0x10], 0
je 0x413679
cmp dword [esi + 0x14], 8
jb 0x41366c
mov esi, dword [esi]
push esi
call fcn.00419ad0
add esp, 4
test eax, eax
je 0x4136cf
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1048]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x4136cf
push dword [ebp - 0x1054]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1058]
call esi
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d327
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041d327
mov esp, ebp
pop ebp
ret