joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45638f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c5580]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4563cf
cmp byte [ebx], 0xa
jne 0x4563cf
or byte [eax + edi + 0x28], 4
jmp 0x4563d4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4564d2
mov al, byte [edx]
cmp al, 0x1a
je 0x4564b4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x456403
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x456428
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x456432
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4563e5
jmp 0x4564d2
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4564af
cmp dword [ebp - 0xc], 0
je 0x4564af
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c5580]
test byte [eax + edi + 0x28], 0x48
je 0x456489
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x456474
mov byte [esi], dl
jmp 0x456485
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c5580]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4564d2
cmp byte [ebp - 1], 0xa
jne 0x456498
cmp esi, ebx
jne 0x456498
mov byte [esi], 0xa
jmp 0x4564d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00456ef5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4564d2
mov byte [esi], 0xd
jmp 0x4564d1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c5580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4564ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4564d2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4564db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4c5580]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45651e
cmp word [esi], dx
jne 0x45651e
or byte [edi + eax + 0x28], 4
jmp 0x456523
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x45665c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x45663c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x456565
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45659b
cmp eax, edx
jae 0x4565a7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45653d
jmp 0x45665c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456638
cmp dword [ebp - 0x14], 0
je 0x456638
mov eax, dword [ebx*4 + 0x4c5580]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x456610
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x456656
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c5580]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4c5580]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c5580]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x456659
pop ebx
cmp word [ebp - 4], bx
jne 0x456621
cmp esi, dword [ebp + 0xc]
jne 0x456621
mov word [esi], bx
jmp 0x456659
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00456ef5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45665c
push 0xd
jmp 0x456655
mov ecx, dword [ebx*4 + 0x4c5580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x456653
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45665c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4599b1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4bf3ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4599fc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00459b50
test al, al
jne 0x4599f6
sub edx, 2
cmp edx, edi
jne 0x4599dc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x459a1e
lea eax, [edi + 2]
cmp edx, eax
je 0x459a1e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004598fd
add esp, 0x10
jmp 0x459b18
push esi
lea ecx, [ebp - 0x255]
call fcn.00459b50
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x459a61
push dword [ebp - 0x25c]
jmp 0x459a0e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x459a9e
cmp word [ebp - 0x226], 0
je 0x459abf
cmp word [ebp - 0x226], ax
jne 0x459a9e
cmp word [ebp - 0x224], 0
je 0x459abf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004598fd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x459b0b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x459a78
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x459af3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x459b18
push 0x45972d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00460130
add esp, 0x10
jmp 0x459ae8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ef85
leave
ret
Function at 0x460d55
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00460cd1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x460ecd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x460ecd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x460e7c
jg 0x460dae
test eax, eax
je 0x460e72
push 1
push 0x1000
call fcn.00453b76
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x460dd4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x460e69
push 0x8000
push ebx
call fcn.004500c1
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x460e00
jg 0x460dfb
cmp ecx, 0x1000
jb 0x460e00
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00455771
add esp, 0x10
cmp eax, 0xffffffff
je 0x460e45
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x460dfb
jl 0x460e2c
test ecx, ecx
jne 0x460ded
push dword [ebp - 0xc]
push ebx
call fcn.004500c1
push esi
call fcn.00452163
add esp, 0xc
xor edi, edi
jmp 0x460ede
cmp byte [edi + 0x24], 0
je 0x460e5c
cmp dword [edi + 0x20], 5
jne 0x460e5c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x460e67
mov edi, dword [edi + 0x18]
jmp 0x460e69
xor edi, edi
push esi
call fcn.00452163
pop ecx
jmp 0x460ede
test ecx, ecx
jg 0x460e3e
jl 0x460e7c
test eax, eax
jae 0x460e3e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00456ef5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x460e9f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x460e3e
jmp 0x460ed6
push ebx
call fcn.0045aad1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x460e3e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x460ede
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x460edb
mov edi, dword [edi + 0x18]
jmp 0x460ede
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00456ef5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4614b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4614dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4614dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4087b1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x421cb0]
je 0x4087cc
inc edi
cmp edi, 0x17
jb 0x4087bd
cmp edi, 0x17
jae 0x40894c
push ebp
push 3
call fcn.0040d477
cmp eax, 1
pop ecx
je 0x408918
push 3
call fcn.0040d477
test eax, eax
pop ecx
jne 0x408800
cmp dword [0x4210e4], 1
je 0x408918
cmp ebx, 0xfc
je 0x40894b
push 0x41a258
mov ebx, 0x314
push ebx
mov ebp, 0x422e38
push ebp
call fcn.00405d74
add esp, 0xc
test eax, eax
je 0x408836
push esi
push esi
push esi
push esi
push esi
call fcn.0040305e
add esp, 0x14
push 0x104
mov esi, 0x422e51
push esi
push 0
mov byte [0x422f55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40887a
push 0x41a240
push 0x2fb
push esi
call fcn.00405d74
add esp, 0xc
test eax, eax
je 0x40887a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040305e
add esp, 0x14
push esi
call fcn.00403d70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4088bf
push esi
call fcn.00403d70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42314c
push 0x41a23c
sub ecx, eax
push ecx
push eax
call fcn.0040b0c8
add esp, 0x14
test eax, eax
je 0x4088bf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040305e
add esp, 0x14
jmp 0x4088c1
xor esi, esi
push 0x41a238
push ebx
push ebp
call fcn.0040b057
add esp, 0xc
test eax, eax
je 0x4088e1
push esi
push esi
push esi
push esi
push esi
call fcn.0040305e
add esp, 0x14
push dword [edi*8 + 0x421cb4]
push ebx
push ebp
call fcn.0040b057
add esp, 0xc
test eax, eax
je 0x408903
push esi
push esi
push esi
push esi
push esi
call fcn.0040305e
add esp, 0x14
push 0x12010
push 0x41a210
push ebp
call fcn.0040d2ba
add esp, 0xc
jmp 0x40894b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40894b
cmp ebp, 0xffffffff
je 0x40894b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x421cb4]
push dword [esi]
call fcn.00403d70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40d2ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406a0d
xor ebx, ebx
cmp dword [0x4233d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40d390
push 0x41abb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d470
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41aba4
push edi
call esi
cmp eax, ebx
je 0x40d470
push eax
call fcn.0040699f
mov dword [esp], 0x41ab94
push edi
mov dword [0x4233d4], eax
call esi
push eax
call fcn.0040699f
mov dword [esp], 0x41ab80
push edi
mov dword [0x4233d8], eax
call esi
push eax
call fcn.0040699f
mov dword [0x4233dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004081a6
test eax, eax
pop ecx
pop ecx
je 0x40d35e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040305e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40d390
push 0x41ab64
push edi
call esi
push eax
call fcn.0040699f
cmp eax, ebx
pop ecx
mov dword [0x4233e4], eax
je 0x40d390
push 0x41ab4c
push edi
call esi
push eax
call fcn.0040699f
pop ecx
mov dword [0x4233e0], eax
mov eax, dword [0x4233e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40d415
cmp dword [0x4233e4], ecx
je 0x40d415
push eax
call fcn.00406a16
push dword [0x4233e4]
mov esi, eax
call fcn.00406a16
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40d415
cmp edi, ebx
je 0x40d415
call esi
cmp eax, ebx
je 0x40d3e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d3e2
test byte [ebp - 0x18], 1
jne 0x40d415
lea eax, [ebp - 0x10]
push eax
call fcn.004081dd
test eax, eax
pop ecx
je 0x40d3fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040305e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40d40c
or dword [ebp + 0x10], 0x200000
jmp 0x40d450
or dword [ebp + 0x10], 0x40000
jmp 0x40d450
mov eax, dword [0x4233d8]
cmp eax, dword [ebp - 8]
je 0x40d450
push eax
call fcn.00406a16
cmp eax, ebx
pop ecx
je 0x40d450
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d450
mov eax, dword [0x4233dc]
cmp eax, dword [ebp - 8]
je 0x40d450
push eax
call fcn.00406a16
cmp eax, ebx
pop ecx
je 0x40d450
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4233d4]
call fcn.00406a16
cmp eax, ebx
pop ecx
je 0x40d470
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d472
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414480
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x418ce6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x648
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x400
lea eax, [esp + 0x252]
push ebx
push eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov word [esp + 0x258], bx
call fcn.00407e80
add esp, 0xc
push 0x208
lea ecx, [esp + 0x42]
push ebx
push ecx
mov dword [esp + 0x28], 0x400
mov word [esp + 0x48], bx
call fcn.00407e80
add esp, 0xc
mov edi, esi
call fcn.004012a0
push 0x41e3b8
push 0x41e3c8
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x414521
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x414525
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [esp + 0x14]
push ecx
add eax, 1
push eax
push ebx
push str.SOFTWARE_baiduBaiduProtect
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41461e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x250]
push eax
push ebx
push ebx
push 0x41e414
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414613
push 0x104
lea edx, [esp + 0x250]
push edx
lea ebp, [eax + 1]
lea eax, [esp + 0x44]
push 0x105
push eax
call fcn.00403879
lea eax, [esp + 0x4c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4145a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00401930
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x664], ebx
call fcn.00414b50
add esp, 4
test eax, eax
je 0x4145ff
push 1
push 0x41e42c
mov ecx, esi
call fcn.00401860
push ebx
lea eax, [esp + 0x24]
push eax
or eax, 0xffffffff
call fcn.00401480
cmp dword [esp + 0x38], 8
jb 0x414613
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040304f
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x658]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x654
ret
Function at 0x401ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cbb
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 0x401cf2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401cee
jmp 0x401ce0
cmp esi, eax
jae 0x401cf2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ce0
cmp esi, eax
jb 0x401cf9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408de0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b277
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c1c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x59b938
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.00406ad0
lea edi, [ebx + 0x10]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00409cd0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x408e76
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00406990
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push edi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040a7d0
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea eax, [edi + 8]
mov dword [edi + 0x10], eax
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x5cc39c]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b227
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c1c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x59b948
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.00406ad0
lea edi, [ebx + 4]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00409cd0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x409800
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00406990
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0040a7d0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x5cc39c]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ade8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40a3a9
cmp byte [edi + 0x49], bl
je 0x40a3a9
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40a396
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40a2e4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40a2fc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40a32c
dec eax
je 0x40a330
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x40a391
jmp 0x40a3a4
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40a340
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40a369
cmp ebx, 0x10
jae 0x40a34f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00524f2a
add esp, 0x10
cmp esi, eax
jne 0x40a387
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40a39a
test esi, esi
jne 0x40a2f0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409b40
jmp 0x40a2ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408760
xor al, al
jmp 0x40a3ab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408760
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret