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

Disassembly:
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0x14]
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x466232
mov ecx, dword [esp + 4]
push ebx
push edi
push ecx
call fcn.00447b4e
mov edi, eax
add esp, 4
test edi, edi
jne 0x466151
lea ebx, [eax + 0x10]
jmp 0x466214
mov eax, dword [esi + 0x30]
cmp eax, dword [esp + 0xc]
jbe 0x4661c6
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 8]
push ebp
push eax
mov eax, dword [esi + 0x2c]
push eax
push ecx
call edx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x466214
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0xc]
push ebp
push 0x40
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x466214
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
push ecx
push edi
push edx
call fcn.00447b4e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
sub ecx, eax
push ecx
add edx, eax
push ebx
push edx
call fcn.00447b4e
mov eax, dword [esp + 0x28]
add esp, 0x18
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0xc]
push ecx
push 0x36
push edi
call fcn.00447b4e
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x30], eax
jbe 0x4661f1
lea ecx, [ecx]
mov edx, dword [esi + 0x2c]
mov cl, byte [eax + edx]
xor byte [eax + edi], cl
add eax, 1
cmp eax, dword [esi + 0x30]
jb 0x4661e0
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 8]
push ebp
push eax
push edi
push ecx
call edx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x466214
mov dword [esi + 0x34], 1
test edi, edi
je 0x46622e
mov eax, dword [esp + 0xc]
push eax
push 0
push edi
call fcn.00447b4e
push edi
call fcn.00447b4e
add esp, 0x10
pop edi
mov eax, ebx
pop ebx
pop ebp
add esp, 8
ret
Function at 0x417390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x413015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x4173b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4173b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4173a8
mov eax, 1
add ebx, ebx
jne 0x4173cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4173c0
jne 0x4173dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4173c0
xor ecx, ecx
sub eax, 3
jb 0x4173f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417462
mov ebp, eax
add ebx, ebx
jne 0x4173fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41742c
inc ecx
add ebx, ebx
jne 0x417418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41740d
jne 0x417429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41740d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41744c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41743d
jmp 0x4173ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41744c
add edi, ecx
jmp 0x4173ae
pop esi
mov edi, esi
mov ecx, 0x40b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41746a
cmp byte [edi], 2
jne 0x41746a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41746f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x4174de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17d6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17e1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41749c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17e24]
or eax, eax
je 0x4174d8
mov dword [ebx], eax
add ebx, 4
jmp 0x4174b9
call dword [esi + 0x17e20]
mov ebp, dword [esi + 0x17e28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417512
sub esp, 0xffffff80
jmp 0x4011cb
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e090]
jne 0x401abf
repz ret
jmp fcn.00402d08

Function at 0x40b28e
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.00403feb
and dword [ebp - 4], 0
cmp dword [0x481fcc], 0
mov ebx, eax
jne 0x40b33f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b3f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b3f0
push eax
call fcn.00403f79
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x481fcc], eax
call esi
push eax
call fcn.00403f79
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x481fd0], eax
call esi
push eax
call fcn.00403f79
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x481fd4], eax
call esi
push eax
call fcn.00403f79
pop ecx
mov dword [0x481fdc], eax
test eax, eax
je 0x40b33f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403f79
pop ecx
mov dword [0x481fd8], eax
mov eax, dword [0x481fd8]
cmp eax, ebx
je 0x40b397
cmp dword [0x481fdc], ebx
je 0x40b397
push eax
call fcn.00403ff4
push dword [0x481fdc]
mov esi, eax
call fcn.00403ff4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b397
test edi, edi
je 0x40b397
call esi
test eax, eax
je 0x40b38e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b38e
test byte [ebp - 0xc], 1
jne 0x40b397
or dword [ebp + 0x10], 0x200000
jmp 0x40b3d0
mov eax, dword [0x481fd0]
cmp eax, ebx
je 0x40b3d0
push eax
call fcn.00403ff4
pop ecx
test eax, eax
je 0x40b3d0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3d0
mov eax, dword [0x481fd4]
cmp eax, ebx
je 0x40b3d0
push eax
call fcn.00403ff4
pop ecx
test eax, eax
je 0x40b3d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x481fcc]
call fcn.00403ff4
pop ecx
test eax, eax
je 0x40b3f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b3f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402c00
pop dword [ebp - 0x24]
mov eax, 0x402c00
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x84a4cbfe
add dword [ebp - 0x34], 0xc9ad794d
mov dword [ebp - 0x30], 0xcd81d940
add dword [ebp - 0x30], 0x64b17305
mov dword [ebp - 0x2c], 0xd81a48fa
add dword [ebp - 0x2c], 0x7431fb34
mov dword [ebp - 0x28], 0x43ad865b
sub dword [ebp - 0x28], 0x43ad865b
lea eax, [ebp - 0x34]
push eax
mov eax, 0x261bce49
add eax, 0xda24a21b
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xaedd20f4
add dword [ebp - 0x34], 0xc5954862
mov dword [ebp - 0x30], 0x4b36e665
sub dword [ebp - 0x30], 0x9ca84f0
mov dword [ebp - 0x2c], 0x34840312
add dword [ebp - 0x2c], 0x2eeb695a
mov dword [ebp - 0x28], 0x6a64a868
sub dword [ebp - 0x28], 0x6a64a868
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x3b46eefa
sub eax, 0x3b067e52
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3992e
push 0
call eax
mov ecx, 0x538a
mov edx, eax
mov edi, 0xe8440be5
add edi, 0x17fcf41b
add edi, dword [ebp - 0x24]
mov esi, 0x570c9795
add dword [ebp - 8], 0x128dca0f
mov ebx, dword [edi]
sub ebx, esi
sub dword [ebp - 0x20], 0x54e69510
mov dword [edx], ebx
xor dword [ebp - 0x18], 0x98efd79d
add edx, 4
add edi, 4
loop 0x402d11
add eax, 0x140fb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xab954969
sub ecx, 0xab554969
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x41093d
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x41094e
lcall 0x5de5, 0x8b10c483
jmp int.0344ae9c

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x41094e
lcall 0x5de5, 0x8b10c483
jmp int.0344ae9c
Function at 0x4024d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40266d
mov esi, dword [ebp + 8]
test esi, esi
je 0x40266d
mov dword [esi + 0xf0], 0xa
mov ecx, dword [edi]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov dword [esi], eax
lea eax, [esi + 4]
mov edx, dword [edi + 4]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [eax], ecx
mov edx, dword [edi + 8]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
mov edi, 0x5f97c4
push ebx
mov ebx, ecx
rol ecx, 8
and ecx, 0xff00ff
ror ebx, 8
and ebx, 0xff00ff00
or ebx, ecx
mov ecx, ebx
mov dword [esi + 0xc], ebx
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5facf0]
mov ecx, ebx
shr ecx, 8
xor edx, 0x1000000
and ecx, 0xff
and edx, 0xff000000
mov ecx, dword [ecx*4 + 0x5fa8f0]
and ecx, 0xff0000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x5fb0f0]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + 0x5fb4f0]
and ecx, 0xff00
xor edx, ecx
mov ecx, dword [eax]
xor edx, dword [esi]
xor ecx, edx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
xor edx, ecx
mov dword [esi + 0x14], ecx
mov ecx, ebx
mov dword [esi + 0x18], edx
xor ecx, edx
mov dword [esi + 0x1c], ecx
pop ebx
mov edi, edi
mov edx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, edx
shr ecx, 8
and ecx, 0xff
mov esi, dword [ecx*4 + 0x5fa8f0]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5facf0]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x5fb0f0]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x5fb4f0]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 4]
xor esi, dword [edi]
add edi, 4
mov dword [eax + 0xc], esi
mov ecx, dword [eax]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
cmp edi, 0x5f97e8
jne 0x4025e0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x402680
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004024d0
add esp, 4
test eax, eax
js 0x40286c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x4026f4
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4026b4
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x402867
lea esi, [ebx + 2]
jmp 0x402710
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x5fb0f0]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5fa4f0]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f9cf0]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f98f0]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5fa0f0]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x5fb0f0]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5fa4f0]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f9cf0]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5fa0f0]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f98f0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x5fb0f0]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5fa4f0]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f9cf0]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5fa0f0]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f98f0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x5fb0f0]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5fa4f0]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f9cf0]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5fa0f0]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5fb0f0]
xor ecx, dword [eax*4 + 0x5f98f0]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x402710
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x403930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac2aa
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x627490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00591d38
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4039d6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.005706a5
push 0x621fac
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.005759e5
push edi
push esi
call fcn.00591fce
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005705f2
mov esp, ebp
pop ebp
ret 4

Function at 0x403f70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ac338
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x627490]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00404770
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00403ea0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x403fe1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.005706a5
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40400a
push dword [esp + 0xc]
call fcn.00448708
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ac518
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x627490]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x627490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea edx, [edi + 0x10]
lea ecx, [esp + 0x18]
call fcn.00420c10
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x28]
add eax, 0xa
mov dword [edi], eax
add eax, 4
push eax
call fcn.0044870d
mov esi, eax
mov dword [esp + 0x14], 0xe
mov eax, dword [edi]
sub esp, 0x14
mov ecx, esp
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
mov eax, dword [edi + 8]
mov dword [esi + 6], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xa], eax
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404770
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00405f20
mov ecx, dword [edi]
add esp, 0x1c
add ecx, 4
mov dword [ebx], esi
cmp dword [esp + 0x2c], 0x10
mov dword [ebx + 4], ecx
jb 0x40609a
push dword [esp + 0x18]
call fcn.00448708
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005705f2
mov esp, ebp
pop ebp
ret 4

Function at 0x407170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac6e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x627490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.005926e2
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 0
mov dword [edi], vtable.std::_LaunchPad_class_std::_Bind_1__void__void____cdecl__const__struct_AgentPack::CreateAgentAppLinkPack___struct_AgentPack::CreateAgentAppLinkPack__.0
push 0xffffffffffffffff
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
movzx eax, byte [esi + 8]
mov byte [edi + 0x18], al
movzx eax, byte [esi + 9]
mov byte [edi + 0x19], al
mov eax, dword [esi + 0xc]
mov dword [edi + 0x1c], eax
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x20], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x24], eax
lea eax, [esi + 0x18]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404770
mov ax, word [esi + 0x30]
mov word [edi + 0x40], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b8f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5acdeb
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x627490]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov eax, dword [0x627490]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0045e5a5
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00462ee6
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x40b9f3
call fcn.0045f502
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40b972
push 0x80004005
call fcn.0040cc40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x65
mov dword [esp + 0x1c4], 0
call fcn.00462801
test eax, eax
je 0x40b9a6
push 0x65
push eax
lea ecx, [esp + 0x20]
call fcn.0040c5d0
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x40b9ce
push 0
push 0
push 0x800
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
call edi
mov eax, dword [esp + 0x14]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
add esi, 0xfffffff0
mov dword [esp + 0x1c0], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b9f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0xbc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0xbc]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
lea eax, [esp + 0x1c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, ebx
call fcn.0040b7b0
mov eax, 1
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.005705f2
mov esp, ebp
pop ebp
ret

Function at 0x40c260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045dead

Function at 0x40c4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c4b5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c4f4
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 0x40c4f0
lea ebx, [ebx]
cmp esi, edx
jae 0x40c4f4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40c4e0
cmp esi, edx
jb 0x40c4f9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret