joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403b64
pop dword [ebp - 0x38]
mov eax, 0x5d5302f0
sub eax, 0x5d12c78c
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xadf7aa17
sub dword [ebp - 0x48], 0x5fa564cc
mov dword [ebp - 0x44], 0x6e6f9c81
add dword [ebp - 0x44], 0xc3c3afc4
mov dword [ebp - 0x40], 0x178c9ba9
sub dword [ebp - 0x40], 0xcb40577b
mov dword [ebp - 0x3c], 0xb8cdce94
sub dword [ebp - 0x3c], 0xb8cdce94
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf413f2d4
sub dword [ebp - 0x48], 0x7fa1897e
mov dword [ebp - 0x44], 0x36cc48ba
add dword [ebp - 0x44], 0xaa018bb
mov dword [ebp - 0x40], 0x7af6ff83
add dword [ebp - 0x40], 0xe8786ce9
mov dword [ebp - 0x3c], 0x77acf971
sub dword [ebp - 0x3c], 0x77acf971
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3788e
push 0
call eax
mov ecx, 0xe33fe390
add ecx, 0x1cc06480
xor ebx, ebx
add ebx, eax
mov edx, 0xbc595ae3
add edx, 0x43e76d1d
add edx, dword [ebp - 0x38]
mov edi, 0x97a82176
sub edi, 0x8b430327
sub dword [ebp - 0x2c], edi
mov esi, dword [edx]
sub esi, edi
add dword [ebp - 0x18], esi
mov dword [ebx], esi
xor dword [ebp - 0x14], 0xc8e921d0
add ebx, 4
add edx, 0xa0265285
sub edx, 0xa0265281
loop 0x403c7e
add eax, 0x11313
xor ebx, ebx
add ebx, eax
add eax, 0x185a4771
add eax, 0xe7a5b894
mov ecx, 0xb65bab
add ecx, 0xff89a455
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x404837
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x40649c
call fcn.00405674
cmp dword [0x40a01c], 0
mov esi, dword [ebp + 8]
jne 0x404856
mov al, 1
jmp 0x404926
test esi, esi
je 0x404924
xor ebx, ebx
cmp word [esi], bx
je 0x404924
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404924
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404924
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00403b55
pop ecx
pop ecx
and dword [ebp - 4], ebx
xor edi, edi
mov esi, dword [0x40a01c]
inc edi
cmp dword [ebp - 0x18], ebx
je 0x404911
lea eax, [ebp - 0x28]
push eax
call fcn.00403b55
pop ecx
test al, al
jne 0x404911
cmp dword [ebp - 0x18], esi
jbe 0x404911
cmp dword [0x40a020], 8
lea eax, [ebp - 0x28]
mov ecx, 0x40a00c
cmovae ecx, dword [0x40a00c]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404911
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404911
push 0x4075e0
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.00403b55
mov al, bl
jmp 0x404926
xor al, al
call fcn.00405632
ret
Function at 0x10008e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10008e54
pop dword [ebp - 0x38]
mov eax, 0x9022586f
add eax, 0x7fde35e5
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xcede6816
add dword [ebp - 0x48], 0x7f73dd35
mov dword [ebp - 0x44], 0xc022be7f
sub dword [ebp - 0x44], 0x8def723a
mov dword [ebp - 0x40], 0x36ec6f0c
sub dword [ebp - 0x40], 0xeaa02ade
mov dword [ebp - 0x3c], 0x32b0e4e0
add dword [ebp - 0x3c], 0xcd4f1b20
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xeee1f6e7
add dword [ebp - 0x48], 0x8590726f
mov dword [ebp - 0x44], 0x15c198c8
sub dword [ebp - 0x44], 0xd4553753
mov dword [ebp - 0x40], 0x1c65253a
sub dword [ebp - 0x40], 0xb8f5b8ce
mov dword [ebp - 0x3c], 0x543f0fb6
add dword [ebp - 0x3c], 0xabc0f04a
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x412a8ee2
sub eax, 0x3129ceb6
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x39e1b
push 0
call eax
mov ecx, 0x769f13b
sub ecx, 0x769a17a
xor ebx, ebx
add ebx, eax
mov edi, 0x10047400
add edi, dword [ebp - 0x38]
mov edx, 0x424b4d8f
sub edx, 0x3fe637e1
sub dword [ebp - 0x24], 0x831f879b
mov esi, dword [edi]
xor dword [ebp - 0x1c], esi
sub esi, edx
mov dword [ebx], esi
xor dword [ebp - 0x24], ecx
add ebx, 0x19e13cbb
add ebx, 0xe61ec349
add edi, 4
loop 0x10008f6d
add eax, 0x62f4b95d
sub eax, 0x62f38786
xor ebx, ebx
add ebx, eax
add eax, 0xb403a7d7
sub eax, 0xb403a7d2
mov ecx, 0x5fc0162f
sub ecx, 0x4fc0162f
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1002c710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1002c71f
pop dword [ebp - 0x14]
mov eax, 0xa1167040
add eax, 0x6eec56df
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x1f995a67
sub dword [ebp - 0x24], 0xd147151c
mov dword [ebp - 0x20], 0x87156959
sub dword [ebp - 0x20], 0x54e21d14
mov dword [ebp - 0x1c], 0x6b280b4f
sub dword [ebp - 0x1c], 0x1edbc721
mov dword [ebp - 0x18], 0x22d01df7
add dword [ebp - 0x18], 0xdd2fe209
lea eax, [ebp - 0x24]
push eax
mov eax, 0xe96ebf24
add eax, 0x2695b1a4
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xcd9783c0
add dword [ebp - 0x24], 0xa6dae596
mov dword [ebp - 0x20], 0xb5f22597
sub dword [ebp - 0x20], 0x7485c422
mov dword [ebp - 0x1c], 0xf5f85873
add dword [ebp - 0x1c], 0x6d7713f9
mov dword [ebp - 0x18], 0x484d2753
add dword [ebp - 0x18], 0xb7b2d8ad
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xf9233913
add eax, 0x16e137d1
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x47085
push 0
call eax
mov ecx, 0x5a9f
xor ebx, ebx
add ebx, eax
mov edi, 0x902b50fb
sub edi, 0x802520fb
add edi, dword [ebp - 0x14]
mov edx, 0xa1eba7a3
xor dword [ebp - 4], ebx
mov esi, dword [edi]
add dword [ebp - 0xc], 0xc4e57d89
add esi, edx
add dword [ebp - 0xc], 0xb824ca3e
mov dword [ebx], esi
add dword [ebp - 0x10], esi
add ebx, 4
add edi, 0x644dd6eb
add edi, 0x9bb22919
loop 0x1002c837
add eax, 0x51006662
add eax, 0xaf00f6ed
xor ebx, ebx
add ebx, eax
add eax, 0xa3b2a5a9
add eax, 0x5c4d5a5c
mov ecx, 0x501d2736
sub ecx, 0x401d2736
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x433c9f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00433d1e
jae 0x433cab
xor ecx, ecx
call fcn.00433d1e
jae 0x433cd5
xor eax, eax
call fcn.00433d1e
jae 0x433ce6
mov al, 0x10
call fcn.00433d1e
adc al, al
jae 0x433cc7
jne 0x433d13
stosb byte es:[edi], al
jmp 0x433cac
call fcn.00433d2a
dec ecx
loop 0x433cf2
mov eax, ebp
call fcn.00433d28
jmp 0x433d14
lodsb al, byte [esi]
shr eax, 1
je 0x433d3a
adc ecx, 2
mov ebp, eax
jmp 0x433d14
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00433d28
cmp eax, 0x7d00
jae 0x433d12
cmp eax, 0x500
jae 0x433d13
cmp eax, 0x7f
ja 0x433d14
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x433cac
pop ebp
ret 8
Function at 0x40b468
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416408]
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.00406147
mov dword [ebp - 0x14], eax
cmp dword [0x4322b4], esi
jne 0x40b55b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b4e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b63b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40b63b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b63b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4322b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4322b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4322bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4322c4], eax
test eax, eax
je 0x40b558
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4322c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b580
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b573
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40b595
push 4
pop eax
jmp 0x40b63d
cmp dword [ebp - 0x14], esi
je 0x40b595
push dword [0x4322b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b57a
mov eax, dword [0x4322c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40b5f3
cmp dword [0x4322c4], edi
je 0x40b5f3
push eax
call ebx
push dword [0x4322c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b5f3
test eax, eax
je 0x40b5f3
call ecx
test eax, eax
je 0x40b5e8
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 0x40b5e8
test byte [ebp - 8], 1
jne 0x40b5f3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40b623
mov eax, dword [0x4322b8]
cmp eax, edi
je 0x40b620
push eax
call ebx
test eax, eax
je 0x40b620
call eax
mov esi, eax
test esi, esi
je 0x40b620
mov eax, dword [0x4322bc]
cmp eax, edi
je 0x40b620
push eax
call ebx
test eax, eax
je 0x40b620
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4322b4]
call ebx
test eax, eax
je 0x40b63b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40b63d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ac6
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4021d8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4021c7
jg 0x402130
test edx, edx
je 0x4021c7
nop dword [eax]
call fcn.00403c20
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402184
jg 0x402147
test esi, esi
je 0x402184
cmp ebx, eax
jg 0x402157
jl 0x402151
cmp edi, esi
jae 0x402157
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00406f70
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4021ab
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4021c1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402130
jl 0x4021c1
test edi, edi
jne 0x402130
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x402200
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x402206
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x40226e
jg 0x40221b
test esi, esi
je 0x40226e
test edx, edx
jl 0x402269
jg 0x402225
test eax, eax
je 0x402269
cmp edi, edx
jg 0x402239
jl 0x40222f
cmp esi, eax
jae 0x402239
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.00406f70
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x402271
mov ebx, dword [ebp + 8]
jmp 0x40227b
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x402294
jg 0x40227b
test esi, esi
je 0x402294
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402294
push eax
push esi
push 1
push ebx
call fcn.0040afff
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4027f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x428064]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402820
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00405b19
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40285d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40285d
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00405b19
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x402967
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402885
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4028b9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040a28c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00405b19
add esp, 0x30
ret 4
mov byte [esp + 0xc], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x402922
sub eax, 1
je 0x402922
sub eax, 2
jne 0x402967
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.00401d30
add esp, 8
or ecx, 0xffffffff
test al, al
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00405b19
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x402941
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040afff
add esp, 0x10
cmp edi, eax
jne 0x402967
lea ecx, [esp + 0xc]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x14], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00405b19
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405b19
add esp, 0x30
ret 4
Function at 0x403880
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x428064]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403942
cmp byte [esi + 0x3d], 0
je 0x403942
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40392f
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4038f4
sub eax, 1
je 0x4038f8
sub eax, 2
jne 0x40392f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00405b19
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x403917
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040afff
add esp, 0x10
cmp edi, eax
jne 0x40392f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00405b19
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00405b19
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.00405b19
add esp, 0x28
ret

Function at 0x403b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41da60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x428064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00405d29
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00405186
add esp, 8
mov dword [esi + 4], eax
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.00403ef0
mov eax, ebx
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x429d04]
mov ecx, dword [0x429d08]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406759
Capabilities:
Parse pe header

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

Function at 0x411eb9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411d2f

Function at 0x41cc90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ccbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ccbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405126
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x405135
pop dword [ebp - 0x34]
mov eax, 0xb61ccba5
add eax, 0x4a238590
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x356a3
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x41fc
mov ebx, eax
mov edx, 0x5850b2a5
add edx, 0xa7f0155b
add edx, dword [ebp - 0x34]
mov edi, 0xd974f96e
sub edi, 0x1a122065
xor dword [ebp - 0xc], edi
mov esi, dword [edx]
sub esi, edi
sub dword [ebp - 0x28], edi
mov dword [ebx], esi
add dword [ebp - 0x18], 0x38de242
add ebx, 0x445a5ff5
sub ebx, 0x445a5ff1
add edx, 0x12855440
add edx, 0xed7aabc4
loop 0x405189
add eax, 0xf34d3e83
add eax, 0xcb3bc40
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb47616dd
add ecx, 0x4bc9e923
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4064a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409a50]
jne 0x407826
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x40a2b8], eax
mov dword [0x40a2b4], ecx
mov dword [0x40a2b0], edx
mov dword [0x40a2ac], ebx
mov dword [0x40a2a8], esi
mov dword [0x40a2a4], edi
mov word [0x40a2d0], ss
mov word [0x40a2c4], cs
mov word [0x40a2a0], ds
mov word [0x40a29c], es
mov word [0x40a298], fs
mov word [0x40a294], gs
pushfd
pop dword [0x40a2c8]
mov eax, dword [ebp]
mov dword [0x40a2bc], eax
mov eax, dword [ebp + 4]
mov dword [0x40a2c0], eax
lea eax, [ebp + 8]
mov dword [0x40a2cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40a208], 0x10001
mov eax, dword [0x40a2c0]
mov dword [0x40a1bc], eax
mov dword [0x40a1b0], 0xc0000409
mov dword [0x40a1b4], 1
mov eax, dword [0x409a50]
mov dword [ebp - 0x328], eax
mov eax, dword [0x409a54]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x40a200], eax
push 1
call fcn.004068ed
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x4021d8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x40a200], 0
jne 0x407916
push 1
call fcn.004068ed
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret