joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a170
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4815be
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ad014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bbb0
push dword [edi + 0x48]
call fcn.0045b480
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bbb0
push dword [edi + 0x34]
call fcn.0045b480
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bbb0
push dword [edi + 0x20]
call fcn.0045b480
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CCoderInfo_.0
push 0
call fcn.00409c30
mov byte [ebp - 4], 4
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bbb0
push dword [edi + 0xc]
call fcn.0045b480
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4112d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp dword [ebp + 0x10], ecx
push edi
cmovbe ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0
push eax
push ecx
push edx
push dword [esi + 0xc]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
test edi, edi
je 0x41131d
mov eax, dword [ebp - 8]
mov dword [edi], eax
pop edi
pop esi
test cl, cl
je 0x411335
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411354
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
jle 0x41135e
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 0x14]
mov edx, 0x100000
push 0
push eax
mov eax, dword [ebp + 0x10]
cmp eax, edx
cmovae eax, edx
push eax
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x4113b4
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
test eax, eax
jne 0x4113fc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
je 0x4113fc
call esi
test eax, eax
jne 0x4113e1
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
jle 0x4113fe
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4114f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push ecx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411563
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411563
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411547
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 8
jle 0x411574
movzx eax, ax
pop edi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
xor eax, eax
add eax, ebx
mov dword [edi], eax
adc ecx, 0
xor eax, eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 8
Function at 0x4115d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp dword [ebp + 0x10], ecx
push edi
cmovbe ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0
push eax
push ecx
push edx
push dword [esi + 8]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp - 8]
setne cl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
test edi, edi
je 0x411624
mov dword [edi], eax
pop edi
pop esi
test cl, cl
je 0x41163c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41165b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
jle 0x411665
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x411841
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4118b1
push 0
lea edx, [ebp - 8]
push edx
mov edx, 0x8000
cmp eax, edx
cmovae eax, edx
push eax
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x411872
mov ecx, dword [ebp - 8]
add dword [esi], ecx
test eax, eax
jne 0x4118b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411896
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
jle 0x4118b3
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
push edi
mov edi, 1
cmp dword [esi + 4], 0
jne 0x412ea1
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 4], eax
test eax, eax
jne 0x412e9c
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
je 0x412e9c
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 8], 0
jne 0x412ec5
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 8], eax
test eax, eax
jne 0x412ec5
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x412e89
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412ed4
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412ee3
call ebx
cmp dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
je 0x412f00
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x412df0
push 0
push 0
call fcn.004628c2
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x412f34
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, dword [ebp - 4]
test eax, eax
cmovne edi, eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0045b46f
mov esp, ebp
pop ebp
ret
Function at 0x413c40
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x4ad014]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov eax, dword [esi]
cmp eax, 0x3f
jne 0x413cd9
cmp dword [esi + 4], edx
jbe 0x413c7e
nop dword [eax]
mov al, byte [esi + edx + 8]
mov byte [esi + edx + 0x24], al
inc edx
cmp edx, dword [esi + 4]
jb 0x413c70
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x413c9f
cmp edx, 0x20
jae 0x413de6
mov eax, dword [esi + 0x20]
mov al, byte [ecx + eax]
inc ecx
mov byte [esi + edx + 0x24], al
inc edx
cmp ecx, dword [esi + 0x1c]
jb 0x413c85
cmp edx, 0x20
jae 0x413de6
mov ecx, 0x20
lea edi, [esi + 0x24]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x20], 0x6a09e667
bts ecx, eax
mov dword [esp + 0x24], 0xbb67ae85
cmp eax, 0x20
mov dword [esp + 0x28], 0x3c6ef372
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0xa54ff53a
cmovae edx, ecx
mov dword [esp + 0x30], 0x510e527f
xor ecx, edx
mov dword [esp + 0x34], 0x9b05688c
cmp eax, 0x40
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
cmovae edx, ecx
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
movlpd qword [esp + 0x18], xmm0
test edx, edx
jb 0x413dda
ja 0x413d63
test ecx, ecx
je 0x413dda
mov ebx, dword [esp + 0x1c]
lea eax, [esi + 8]
mov edi, dword [esp + 0x18]
nop
push dword [esi + 4]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0041f990
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x24]
add esp, 4
push dword [esi + 0x1c]
call fcn.0041f990
add esp, 4
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x20]
push 8
call fcn.0041f990
add esp, 4
xor eax, eax
nop word [eax + eax]
add byte [esp + eax + 0x8c], 1
jne 0x413dc0
inc eax
cmp eax, 8
jl 0x413db0
add edi, 1
lea eax, [esi + 8]
adc ebx, 0
cmp ebx, dword [esp + 0x10]
jb 0x413d70
ja 0x413dda
lea eax, [esi + 8]
cmp edi, dword [esp + 0x14]
jb 0x413d70
lea edx, [esi + 0x24]
lea ecx, [esp + 0x20]
call fcn.0041fa30
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret
Function at 0x4145f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480bbc
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4ad014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x38]
mov dword [esi + 0x30], vtable.CBuffer_unsigned_char_.0
call fcn.0045b480
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
push dword [esi + 0xc]
mov dword [esi + 4], vtable.CObjectVector_class_NCrypto::NSevenZ::CKeyInfo_.0
push 0
call fcn.00414280
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
push dword [esi + 0xc]
mov dword [esi + 4], vtable.CBaseRecordVector.0
push 0
call fcn.0041bbb0
push dword [esi + 0x10]
call fcn.0045b480
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414eb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ecx + 0x24]
cmp edi, esi
je 0x414ef8
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
mov ecx, esi
push dword [edi + 4]
call fcn.004039a0
mov ecx, dword [edi]
mov edx, dword [esi]
nop dword [eax]
movzx eax, word [ecx]
lea edx, [edx + 2]
mov word [edx - 2], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x414ee0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp + 0xc], edx
cmp dword [ebx + 8], edx
jle 0x414fa5
lea ecx, [edx + 0x10]
nop dword [eax]
test edx, edx
jle 0x414f79
mov ebx, dword [esi + 8]
mov edi, ebx
sub edi, dword [esi + 4]
dec edi
cmp edi, 1
jge 0x414f5a
cmp ebx, 0x40
jle 0x414f32
mov eax, ebx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
jmp 0x414f3d
cmp ebx, 8
mov edx, 4
cmovg edx, ecx
lea eax, [edx + edi]
mov ecx, 1
sub ecx, edi
cmp eax, 1
cmovge ecx, edx
add ecx, ebx
push ecx
mov ecx, esi
call fcn.004039a0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov ebx, 0x5c
mov eax, dword [esi]
mov word [eax + ecx*2], bx
inc dword [esi + 4]
xor edi, edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
mov word [eax + ecx*2], di
mov eax, dword [ebx + 0xc]
mov ecx, esi
push dword [eax + edx*4]
call fcn.00409dd0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
mov ecx, 0x10
inc edx
mov dword [ebp + 0xc], edx
cmp edx, dword [ebx + 8]
jl 0x414f10
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x415b50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4821d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ad014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0xc], 3
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
ja 0x415d1b
cmp dword [esi + 0xa0], 0
je 0x415bda
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x18]
not eax
add dword [esi + 0xf0], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], 1
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x415bda
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
cmp dword [esi + 0x98], 0
je 0x415c86
cmp byte [esi + 0x5c], 0
je 0x415bf8
cmp byte [esi + 0x7e], 0
je 0x415bf8
lea ecx, [esi + 0x70]
jmp 0x415c08
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x2c], 0
je 0x415c06
lea ecx, [eax + 0x24]
jmp 0x415c08
xor ecx, ecx
cmp byte [esi + 0x5b], 0
je 0x415c19
cmp byte [esi + 0x7d], 0
je 0x415c19
lea edi, [esi + 0x68]
jmp 0x415c1b
xor edi, edi
cmp byte [esi + 0x5a], 0
je 0x415c2c
cmp byte [esi + 0x7c], 0
je 0x415c2c
lea edx, [esi + 0x60]
jmp 0x415c2e
xor edx, edx
mov eax, dword [esi + 0x94]
push ecx
push edi
push edx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x8c], eax
mov byte [esi + 0x90], 1
call fcn.00411590
test eax, eax
jne 0x415d3a
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x415c86
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
cmp byte [esi + 0x90], 0
jne 0x415c9f
mov ecx, esi
call fcn.00415070
cmp byte [esi + 0x90], 0
je 0x415cb7
mov eax, dword [esi + 0x88]
add dword [esi + 0xe8], eax
mov eax, dword [esi + 0x8c]
adc dword [esi + 0xec], eax
cmp byte [esi + 0x80], 0
je 0x415cd0
add dword [esi + 0xd8], 1
adc dword [esi + 0xdc], 0
jmp 0x415cde
add dword [esi + 0xe0], 1
adc dword [esi + 0xe4], 0
cmp byte [esi + 0x59], 0
je 0x415cf6
cmp byte [esi + 0x7f], 0
je 0x415cf6
push dword [esi + 0x78]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0x18]
movzx eax, byte [esi + 0x5d]
push eax
push dword [ebp + 0xc]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x415d35
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48251a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ad014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.ICryptoGetTextPassword.0
mov dword [esi + 8], vtable.ICompressProgressInfo.0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.CArchiveExtractCallback.2.0
mov dword [esi + 4], vtable.CArchiveExtractCallback.1.0
mov dword [esi + 8], vtable.CArchiveExtractCallback.0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
push 3
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.004039a0
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
push 3
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.004039a0
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 4
push 3
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.004039a0
mov word [esi + 0x5a], 0x101
mov byte [esi + 0x5c], 1
mov dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 4
mov dword [esi + 0xa4], vtable.CObjectVector_class_CStringBase_wchar_t__.0
mov byte [esi + 0xbb], 0
mov dword [esi + 0xbc], 0
push 0x38
mov byte [ebp - 4], 9
call fcn.0045b485
push 0x38
mov edi, eax
push 0
push edi
mov dword [ebp - 0x14], edi
call fcn.0045fd40
mov dword [edi + 4], 0
add esp, 0x10
mov dword [edi], vtable.CLocalProgress.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x30], 0x101
mov dword [esi + 0xd0], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x416e3c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
mov dword [esi + 0xbc], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x420099
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4200d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4200d2
nop word [eax + eax]
cmp esi, edx
jae 0x4200d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4200c0
cmp esi, edx
jb 0x4200dd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4208c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4208d5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4208e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x420e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483173
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0045fd40
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x420f31
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x420f31
call fcn.00420170
mov esi, eax
jmp 0x42101e
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x420f54
call fcn.00420170
jmp 0x421011
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x420f72
call fcn.00420170
jmp 0x421011
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x420f93
mov esi, 0x8007000e
jmp 0x421013
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.0042acc0
jmp 0x420fbd
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x420fd4
mov esi, 0x8007000e
jmp 0x421013
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x420ff4
call fcn.00420170
jmp 0x421011
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00421ca0
mov esi, eax
test edi, edi
je 0x42101e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x421040
lea ecx, [ebp - 0x424]
call fcn.0042bb10
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045b46f
mov esp, ebp
pop ebp
ret 0x10