joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2ebe7230
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3d083006
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40181c
Capabilities:
Hash data using murmur3

Disassembly:
ror ecx, 0x10
mov dword [ebp - 0x74], ecx
pop ebx
pop esi
pop edi
ret
push edi
push esi
push ebx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
rol ebx, 0xf
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x20]
test ebx, eax
ror eax, 0x11
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x200000
rol ecx, 0xd
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x24]
test edi, eax
rol eax, 0xc
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x800000
ror ecx, 0x15
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x2c]
test edi, eax
rol eax, 0x12
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x8000000
ror ecx, 0x19
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x38]
test esi, eax
ror eax, 0xc
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x1000
ror ecx, 0xa
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
test esi, eax
rol eax, 0xf
cmp ecx, eax
jne 0x4018d4
jmp 0x401990
xor ecx, eax
xor esi, esi
mov edx, 0xff
ror edx, 8
jmp 0x401a00
cmp ecx, esi
je 0x401990
mov ecx, esi
jmp 0x401808
inc ecx
jmp 0x401808
mov edi, eax
and edi, edx
cmp edi, edx
jne 0x40197c
shl ecx, 8
shl eax, 8
jmp 0x401a00
Function at 0x401040
Capabilities:
Get common file path

Disassembly:
sub esp, 0x19c
push esi
push edi
mov esi, 1
call fcn.004011a0
test eax, eax
jne 0x401063
mov eax, esi
pop edi
pop esi
add esp, 0x19c
ret 4
lea eax, [esp + 0xa0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0x104
jge 0x40112e
test eax, eax
je 0x40112e
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x9f], 0x5c
je 0x4010b8
lea eax, [esp + 0xa0]
push section..data
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
jmp 0x4010be
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xa0]
push str.vredir.vxd
push eax
call edi
lea eax, [esp + 0xa0]
push 0x2244f
push eax
push str.VXDRESOURCE
push 0x40501c
call fcn.00401200
add esp, 0x10
test eax, eax
jne 0x401121
lea eax, [esp + 0xa0]
lea ecx, [esp + 8]
push eax
push 0x403200
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
add esp, 0xc
xor esi, esi
push 0
push 0x403160
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop edi
pop esi
add esp, 0x19c
ret 4
xor eax, eax
pop edi
pop esi
add esp, 0x19c
ret 4

Function at 0x401150
Capabilities:
Delete file
Move file

Disassembly:
push ebx
push esi
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401187
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x401187
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
mov eax, 1
pop edi
pop esi
pop ebx
ret 8
Function at 0x401200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x190
lea ecx, [esp + 0x8c]
push ebx
push esi
push edi
push ebp
xor esi, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x9c]
push ecx
call fcn.00401350
test eax, eax
jne 0x40123d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x190
ret
mov eax, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1a4]
push eax
mov edx, dword [0x403150]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40131a
push eax
mov ecx, dword [0x403150]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40131a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40130f
lea eax, [esp + 0x14]
push 0x1001
lea ecx, [esp + 0xa0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
mov ebx, eax
je 0x40130f
mov esi, 1
mov ebp, dword [esp + 0x1b0]
test ebp, ebp
je 0x4012ec
test esi, esi
je 0x4012ec
cmp ebp, 0x2000
mov eax, ebp
jb 0x4012cf
mov eax, 0x2000
movzx esi, ax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
add edi, eax
sub ebp, eax
sub eax, esi
cmp eax, 1
sbb esi, esi
neg esi
test ebp, ebp
jne 0x4012bc
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
test esi, esi
jne 0x40130f
lea eax, [esp + 0x14]
push 0x200
lea ecx, [esp + 0xa0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x401335
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0x1ac]
push eax
push ecx
call fcn.00401150
mov esi, eax
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x190
ret
Function at 0x401467
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4021b8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x405050], eax
mov al, ah
and eax, 0xff
mov dword [0x40505c], eax
mov eax, dword [0x405050]
shr dword [0x405050], 0x10
and eax, 0xff
mov dword [0x405058], eax
shl eax, 8
add eax, dword [0x40505c]
mov dword [0x405054], eax
call fcn.0040210d
call fcn.00402049
test eax, eax
jne 0x4014e0
push 0x10
call fcn.004015e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00401f57
call fcn.00401f4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4035ac], eax
call fcn.00401a69
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x405030], eax
call fcn.0040199e
call fcn.00401612
mov esi, dword [0x4035ac]
mov al, byte [esi]
cmp al, 0x22
je 0x40152e
cmp al, 0x20
jbe 0x40155a
inc esi
cmp byte [esi], 0x20
ja 0x401526
jmp 0x40155a
inc esi
cmp byte [esi], 0x22
je 0x401559
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x401554
movzx eax, bl
push eax
call fcn.0040195b
add esp, 4
test eax, eax
je 0x40154e
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401537
cmp byte [esi], 0x22
jne 0x40155a
inc esi
cmp byte [esi], 0
je 0x40156a
cmp byte [esi], 0x20
ja 0x40156a
inc esi
cmp byte [esi], 0
jne 0x40155f
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40158a
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401642
jmp 0x4015c6
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401664
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.004016ef
mov dword [0x405088], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x405084], bl
jne 0x4016c5
cmp dword [0x4035a8], 0
je 0x4016b3
mov esi, dword [0x4035a0]
sub esi, 4
cmp esi, dword [0x4035a8]
jb 0x4016b3
mov eax, dword [esi]
test eax, eax
je 0x4016a8
call eax
sub esi, 4
cmp esi, dword [0x4035a8]
jae 0x4016a0
push 0x406308
push 0x406304
call fcn.00401705
add esp, 8
push 0x406310
push 0x40630c
call fcn.00401705
add esp, 8
test ebx, ebx
je 0x4016e2
call fcn.004016fa
jmp 0x4016ec
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x402049
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004022b2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x405938], eax
cmp eax, 0xffffffff
je 0x4020a6
push 0x70
push 1
call fcn.0040248c
add esp, 8
mov esi, eax
test esi, esi
je 0x4020a6
push esi
mov eax, dword [0x405938]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4020a6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], 0x405090
mov dword [esi + 0x14], 1
jmp 0x4020a8
xor eax, eax
pop esi
ret

Function at 0x4020aa
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x405938]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x402109
push 0x70
push 1
call fcn.0040248c
add esp, 8
mov esi, eax
test esi, esi
je 0x4020ff
push esi
mov eax, dword [0x405938]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4020ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x405090
jmp 0x402109
push 0x10
call fcn.004015e0
add esp, 4
mov eax, esi
pop esi
ret
Function at 0x4031e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4032c6
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 0x4032b5
jg 0x403220
test edx, edx
je 0x4032b5
nop dword [eax]
call fcn.00405560
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x403274
jg 0x403237
test esi, esi
je 0x403274
cmp ebx, eax
jg 0x403247
jl 0x403241
cmp edi, esi
jae 0x403247
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.0040a220
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 0x403299
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4032af
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x403220
jl 0x4032af
test edi, edi
jne 0x403220
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4032e8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4032ea
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x403368
jg 0x4032fd
test esi, esi
je 0x403368
test eax, eax
jl 0x40334c
jg 0x403307
test ebx, ebx
je 0x40334c
cmp edi, eax
jg 0x403317
jl 0x403311
cmp esi, ebx
jae 0x403317
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040a220
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x403368
jg 0x40334f
test esi, esi
je 0x403368
jmp 0x40334f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x403368
push eax
push esi
push 1
push edx
call fcn.0040f15d
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4038c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x435050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4038f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40392c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40392c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403a14
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403954
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 0x403987
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040d1bd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x4039e7
sub eax, 1
je 0x4039e7
sub eax, 2
jne 0x403a14
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040d1bd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403a04
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040f15d
add esp, 0x10
cmp edi, eax
jne 0x403a14
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x403917
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408d8e
mov esp, ebp
pop ebp
ret 4
Function at 0x4052d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x435050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40538a
cmp byte [esi + 0x3d], 0
je 0x40538a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405378
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405340
sub eax, 1
je 0x405344
sub eax, 2
jne 0x405378
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405361
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040f15d
add esp, 0x10
cmp edi, eax
jne 0x405378
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00408d8e
mov esp, ebp
pop ebp
ret

Function at 0x4065e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4257f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x435050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00408da1
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040813f
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
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 eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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 0x41711c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416f92
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x628da5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632390
cmp edx, dword [eax]
je 0x628dc7
add eax, 8
inc ecx
cmp eax, 0x632420
jl 0x628db8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632390]
jne 0x628ef5
mov eax, dword [0x63bd20]
cmp eax, 1
je 0x628ecf
test eax, eax
jne 0x628df8
cmp dword [0x6322bc], 1
je 0x628ecf
cmp edx, 0xfc
je 0x628ef5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628e2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628e72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ea34
push edi
call fcn.0062baf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006297a0
lea eax, [ebp - 0xa0]
push 0x62ea14
push eax
call fcn.006297a0
push dword [esi + 0x632394]
lea eax, [ebp - 0xa0]
push eax
call fcn.006297a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062ba64
add esp, 0x2c
pop edi
jmp 0x628ef5
lea eax, [ebp + 8]
lea esi, [esi + 0x632394]
push 0
push eax
push dword [esi]
call fcn.00629c20
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]
pop esi
leave
ret

Function at 0x43b64c
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
mov ecx, 0x119f8ac0
sub edx, ecx
call fcn.0043b69e
push edx
mov ecx, dword [esp]
add esp, 4
sub ecx, 0x16406486
and ecx, edx
xor dword [eax], edi
sub edx, 0x9741d35a
add eax, 1
add ecx, 0x784f2342
mov edx, 0x48ee2be5
sub ecx, ecx
cmp eax, ebx
jne fcn.0043b64c
add ecx, 0x3f4b75d6
ret