joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d42d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x402cc3
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 2
push eax
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
test ecx, ecx
je 0x402cf9
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
mov byte [eax + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
shr eax, 1
xorps xmm0, xmm0
push eax
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00407420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x402d38
mov esi, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 2
push esi
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x402da7
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [esi], eax
mov byte [esi + 0x18], 0
cmp ecx, 8
jb 0x402d93
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e63
push ecx
push edx
call fcn.00420d85
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
shr ecx, 1
dec ecx
cmp ecx, esi
ja 0x402dca
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402e19
mov edi, dword [ebp - 0x18]
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x402e0b
cmp edi, 8
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp + 0xc], eax
lea edi, [eax + esi*2]
test edx, edx
je 0x402dfd
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x402e19
push ecx
push edx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00407740
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402010
mov ecx, dword [ebp - 0x18]
mov byte [esi + 0x18], 1
cmp ecx, 8
jb 0x402d93
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402d89
call fcn.0042d25f
int3
Function at 0x402f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d455
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.____Enable_linked_connections..._n
call fcn.00401d10
add esp, 4
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x34], xmm0
push 0x39
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.00401e30
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.00402b70
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x402fec
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fe2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403183
push ecx
push edx
call fcn.00420d85
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp dword [ebp - 0x14], eax
je 0x403135
push 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
push str.EnableLinkedConnections
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], eax
movups xmmword [ebp - 0x4c], xmm0
call fcn.00401e30
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 1
cmovae eax, dword [ebp - 0x4c]
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x38]
mov esi, eax
cmp ecx, 8
jb 0x403087
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40307d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403188
push ecx
push edx
call fcn.00420d85
add esp, 8
mov eax, dword [ebp - 0x14]
test esi, esi
jne 0x4030eb
test eax, eax
je 0x4030d8
cmp eax, 0x80000001
je 0x4030d8
cmp eax, 0x80000002
je 0x4030d8
cmp eax, 0x80000000
je 0x4030d8
cmp eax, 0x80000005
je 0x4030d8
cmp eax, 0x80000007
je 0x4030d8
cmp eax, 0x80000004
je 0x4030d8
cmp eax, 0x80000060
je 0x4030d8
cmp eax, 0x80000050
je 0x4030d8
cmp eax, 0x80000003
je 0x4030d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x403135
cmp eax, 0x80000001
je 0x403135
cmp eax, 0x80000002
je 0x403135
cmp eax, 0x80000000
je 0x403135
cmp eax, 0x80000005
je 0x403135
cmp eax, 0x80000007
je 0x403135
cmp eax, 0x80000004
je 0x403135
cmp eax, 0x80000060
je 0x403135
cmp eax, 0x80000050
je 0x403135
cmp eax, 0x80000003
je 0x403135
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042d25f
call fcn.0042d25f
int3
Function at 0x412b80
Capabilities:
Encode data using base64 via winapi

Disassembly:
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
push ecx
push 0
mov esi, dword [eax]
mov ebx, edx
mov eax, dword [eax + 4]
push 0x40000001
sub eax, esi
push eax
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x412ced
mov esi, dword [ebx + 0x10]
mov ecx, dword [esp + 8]
push ebp
lea ebp, [ebx + 0x10]
push edi
mov edi, dword [ebx + 0x14]
cmp ecx, esi
ja 0x412bdf
mov eax, ebx
cmp edi, 8
jb 0x412bd4
mov eax, dword [ebx]
xor edx, edx
mov dword [ebp], ecx
mov word [eax + ecx*2], dx
jmp 0x412c30
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x412c22
mov dword [ebp], ecx
mov eax, ebx
mov dword [esp + 0x14], ebx
cmp edi, 8
jb 0x412bff
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
lea edi, [eax + esi*2]
test edx, edx
je 0x412c13
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [esp + 0x14]
lea eax, [esi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x412c30
push ecx
push edx
push dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.00407740
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x412c3a
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x10]
push esi
push edx
push 0x40000001
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x412ce9
mov esi, dword [ebp]
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0x14]
cmp ecx, esi
ja 0x412c90
cmp edi, 8
jb 0x412c7b
mov ebx, dword [ebx]
pop edi
mov dword [ebp], ecx
xor eax, eax
pop ebp
mov word [ebx + ecx*2], ax
mov eax, dword [esp + 0x10]
pop esi
pop ebx
add esp, 0xc
ret
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x412ccf
mov dword [ebp], ecx
cmp edi, 8
jb 0x412ca6
mov ebx, dword [ebx]
lea edi, [ebx + esi*2]
test edx, edx
je 0x412cba
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
lea eax, [esi + edx]
xor ecx, ecx
pop ebp
mov word [ebx + eax*2], cx
mov eax, dword [esp + 0x10]
pop esi
pop ebx
add esp, 0xc
ret
push ecx
push edx
push dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.00407740
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
pop edi
mov eax, ecx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x412d00
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
lea eax, [esp + 4]
push esi
push 0
push 0
push eax
push 0
push 1
push 0
push dword [esp + 0x28]
mov esi, ecx
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x412de0
mov edx, dword [esi]
push ebp
mov ebp, dword [esi + 4]
mov ecx, ebp
push edi
mov edi, dword [esp + 0x10]
sub ecx, edx
cmp edi, ecx
jae 0x412d48
lea eax, [edx + edi]
jmp 0x412d6f
jbe 0x412d72
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x412d5e
push ecx
push edi
mov ecx, esi
call fcn.00413560
jmp 0x412d72
sub edi, ecx
push edi
push 0
push ebp
call fcn.004228c0
add esp, 0xc
lea eax, [edi + ebp]
mov dword [esi + 4], eax
push 0
push 0
lea eax, [esp + 0x18]
push eax
push dword [esi]
push 1
push 0
push dword [esp + 0x30]
call ebx
mov ebx, eax
test ebx, ebx
je 0x412ddc
mov ebp, dword [esi + 4]
mov ecx, ebp
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [esp + 0x10]
cmp edi, ecx
jae 0x412dac
lea eax, [edx + edi]
pop edi
pop ebp
mov dword [esi + 4], eax
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
jbe 0x412ddc
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x412dc8
push ecx
push edi
mov ecx, esi
call fcn.00413560
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
sub edi, ecx
push edi
push 0
push ebp
call fcn.004228c0
lea eax, [edi + ebp]
add esp, 0xc
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x4139f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e01d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], 0x105
push 0x20a
mov dword [ebp - 0x10], edi
call fcn.0042dfdc
mov esi, eax
add esp, 4
test esi, esi
je 0x413a76
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNamesForVolumeNameW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x413a88
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x413bbd
push esi
call fcn.0042dfc1
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.0042dfdc
mov edi, dword [ebp - 0x10]
mov esi, eax
add esp, 8
test esi, esi
jne 0x413a30
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
xor edi, edi
lea eax, [edi + 0x41]
mov dword [ebp - 0x20], 0x3a0041
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 0x5c
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jne 0x413ae3
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x413aee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push str.____Not_mounted:__s_____s__error:_0x_X_n
call fcn.00401d10
add esp, 0x10
inc edi
cmp edi, 0x1a
jb 0x413a90
jmp 0x413bba
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push str.___Mounted:__s_____s_n
call fcn.00401d10
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0
add esp, 0xc
lea edx, [ecx + 2]
movups xmmword [ebp - 0x38], xmm0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b20
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401e30
mov dword [ebp - 4], 0
mov eax, dword [0x450a00]
cmp eax, dword [0x450a04]
je 0x413b75
movups xmm0, xmmword [ebp - 0x38]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [0x450a00], 0x18
mov word [ebp - 0x38], ax
jmp 0x413b87
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, 0x4509fc
call fcn.0040bc60
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x413bba
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413bb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bdc
push ecx
push edx
call fcn.00420d85
add esp, 8
mov edi, dword [ebp - 0x14]
test esi, esi
je 0x413bca
push esi
call fcn.0042dfc1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042d25f
int3
Function at 0x413bf0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, edi
mov dword [edi + 0x3c], ecx
pop edi
pop esi
ret 8
Function at 0x4146f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e05d
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, dword [0x457498]
lea esi, [edi + 0x20]
push esi
call fcn.00420b13
add esp, 4
test eax, eax
jne 0x414820
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x414827
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x78]
xchg dword [ecx], eax
push esi
call fcn.00420b38
mov ecx, dword [edi + 4]
add esp, 4
mov eax, dword [ebp + 8]
mov esi, ecx
sub esi, dword [edi]
sub ecx, dword [edi]
sar esi, 3
sar ecx, 3
cmp eax, esi
jbe 0x4147ef
sub eax, ecx
push ebx
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jle 0x4147dc
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0x414850
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x4147c6
push 8
call fcn.00420d50
mov dword [ebp - 0x1c], eax
mov dword [eax], edi
mov dword [eax + 4], 0x414850
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x41d630
push 0
push 0
mov dword [ebp - 0x18], ecx
call fcn.0042e1e3
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x414832
mov dword [ebp - 4], 0xffffffff
add dword [edi + 4], 8
jmp 0x4147d6
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0041bc00
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x414776
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp eax, ecx
jae 0x4147dd
sub esi, eax
test esi, esi
jle 0x4147dd
add edi, 0x50
nop dword [eax]
push edi
call fcn.0041f4a3
add esp, 4
sub esi, 1
jne 0x414800
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 5
call fcn.0042085a
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.0042085a
mov eax, dword [ebp - 0x18]
push 6
mov dword [eax], 0
call fcn.0042085a
int3
Function at 0x4163b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4163be
mov eax, dword [esi]
push eax
push str.____Requirements_create:__s_n
call fcn.00401d10
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4163d6
mov eax, dword [esi]
push edi
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41648e
cmp dword [0x450a94], 0x10
lea eax, [esp + 8]
push ebx
push ebp
push 0
push eax
push dword [0x450a90]
mov ecx, 0x450a80
mov dword [esp + 0x1c], 0
cmovae ecx, dword [0x450a80]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x450a90]
test eax, eax
je 0x416462
cmp ebx, ebp
jne 0x416462
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416449
mov eax, dword [esi]
push eax
push str.___Requirements_created:__s_n
call fcn.00401d10
add esp, 8
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
jmp 0x4164ad
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x416472
mov ecx, dword [esi]
push ebp
push ebx
push eax
push ecx
push str.____Requirements_fail:__s__error:_0x_X___zu__zu_n
call fcn.00401d10
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
jmp 0x4164ad
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41649e
mov ecx, dword [esi]
push eax
push ecx
push str.____CreateFile:__s__error:_0x_X_n
call fcn.00401d10
add esp, 0xc
mov ecx, dword [esi + 0x14]
pop edi
cmp ecx, 8
jb 0x4164e3
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4164d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416504
mov eax, edx
push ecx
push eax
call fcn.00420d85
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
push 0x18
push esi
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00420d85
add esp, 8
pop esi
pop ecx
ret
call fcn.0042d25f
int3
Function at 0x41b200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
push edi
movq qword [esi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.00420d50
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi + 8], eax
push 4
mov byte [ebp - 4], 1
call fcn.00420d50
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], ecx
lea edi, [esi + 4]
mov byte [ebp - 4], 2
push edi
push 0
push eax
push 0x41ce90
push 0
push 0
call fcn.0042e1e3
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x41b2a5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.0042085a
int3

Function at 0x41b2c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e73f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.00420d50
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [edi + 8], eax
push 0x1c
mov byte [ebp - 4], 1
call fcn.00420d50
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00402010
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41cf40
push 0
push 0
call fcn.0042e1e3
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41b37e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.0042085a
int3

Function at 0x41b390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e73f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.00420d50
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [edi + 8], eax
push 0x1c
mov byte [ebp - 4], 1
call fcn.00420d50
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00402010
mov dword [esi + 0x18], 0x417980
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41cf40
push 0
push 0
call fcn.0042e1e3
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41b44f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.0042085a
int3
Function at 0x41d070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e845
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.std::_Associated_state_unsigned_long_int_.0
push eax
mov dword [ebx + 4], 1
call fcn.0041fe1c
lea eax, [ebx + 0x14]
push 2
push eax
call fcn.00420af3
lea eax, [ebx + 0x44]
push eax
call fcn.0041f497
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov word [ebx + 0x74], 0
mov byte [ebx + 0x76], 0
mov dword [ebx + 0x78], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x80]
mov dword [ebx], vtable.std::_Packaged_state_unsigned_long_int____cdecl___void__.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
push 0x50
mov byte [ebp - 4], 1
call fcn.00420d50
mov esi, dword [ebp + 8]
add esp, 0x14
mov dword [eax], 0x449380
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x38], ecx
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x40], ecx
mov cl, byte [esi + 0x40]
mov byte [eax + 0x48], cl
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x24], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4