joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x42a038]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, ecx
push edi
push 0
mov dword [ebx], eax
call esi
sub eax, 0x3a5
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
push 0
push dword [ebx]
sub eax, 0x209
mov ecx, 0x42a8d0
push 0
push 0
cdq
push 0x209
sub eax, edx
push 0x3a5
sar eax, 1
sub eax, 0x16
cmp dword [0x42a8e4], 8
push eax
cmovae ecx, dword [0x42a8d0]
push edi
push 0x90000000
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x403547
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00406f4d
mov esp, ebp
pop ebp
ret 4
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0xc]
call fcn.00403a30
push 0x420f45
push 0x10
xor esi, esi
call fcn.00407175
mov edi, eax
add esp, 8
test edi, edi
je 0x4035ad
mov dword [edi + 8], 1
mov dword [edi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x42ca9c]
test ecx, ecx
je 0x4035a2
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dword [edi + 0xc], ebx
mov esi, edi
mov dword [edi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push esi
cmovae eax, dword [esp + 0x10]
push 0
push eax
push 0
call fcn.004013bf
mov edi, eax
test esi, esi
je 0x4035d2
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov edx, dword [esp + 0x20]
xor ebx, ebx
test edi, edi
setns bl
cmp edx, 8
jb 0x403611
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403607
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403627
push edx
push ecx
call fcn.0040741b
add esp, 8
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406f4d
mov esp, ebp
pop ebp
ret 4
call fcn.0040da8a
int3
Function at 0x404b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
push edi
mov edi, eax
test eax, eax
je 0x404b49
cmp byte [eax], 0
je 0x404b47
inc edi
cmp byte [edi], 0
jne 0x404b41
sub edi, eax
lea eax, [edi + 1]
push 1
push eax
call fcn.0040dadb
add esp, 8
mov dword [ebp - 0x218], eax
test eax, eax
je 0x404d2c
push ebx
push esi
xor edx, edx
xor esi, esi
xor ebx, ebx
xor ecx, ecx
test edi, edi
je 0x404c38
mov dword [ebp - 0x214], 3
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x21c]
movzx eax, byte [eax + ecx]
mov al, byte [eax + 0x427010]
cmp al, 0xfe
je 0x404beb
cmp al, 0xff
je 0x404beb
shl edx, 6
inc ebx
movzx eax, al
or edx, eax
cmp ebx, 4
jne 0x404beb
cmp dword [ebp - 0x214], edi
ja 0x404d07
mov ebx, dword [ebp - 0x218]
mov eax, edx
add dword [ebp - 0x214], 3
shr eax, 0x10
mov byte [esi + ebx], al
mov eax, edx
shr eax, 8
mov byte [esi + ebx + 1], al
mov byte [esi + ebx + 2], dl
add esi, 3
xor edx, edx
xor ebx, ebx
inc ecx
cmp ecx, edi
jb 0x404b90
test ebx, ebx
je 0x404c38
cmp ebx, 1
je 0x404d07
lea eax, [ebx + ebx*2]
mov ecx, 0x18
add eax, eax
sub ecx, eax
lea eax, [ebx - 1]
add eax, esi
shl edx, cl
cmp eax, edi
ja 0x404d07
mov ecx, dword [ebp - 0x218]
cmp ebx, 2
jb 0x404c2c
mov eax, edx
shr eax, 0x10
mov byte [esi + ecx], al
inc esi
cmp ebx, 3
jne 0x404c38
shr edx, 8
mov byte [esi + ecx], dl
inc esi
mov ecx, 0x20a
lea eax, [ebp - 0x210]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x404c43
mov ecx, dword [ebp - 0x220]
mov eax, ecx
test ecx, ecx
je 0x404c68
cmp byte [ecx], 0
je 0x404c66
nop
inc eax
cmp byte [eax], 0
jne 0x404c60
sub eax, ecx
push eax
lea edx, [ebp - 0x210]
call fcn.00406950
add esp, 4
mov eax, edx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404d07
mov edi, dword [ebp - 0x218]
mov dword [ebp - 0x214], 0
test esi, esi
je 0x404cd4
nop dword [eax]
push 0
lea eax, [ebp - 0x214]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d03
add edi, dword [ebp - 0x214]
sub esi, dword [ebp - 0x214]
jne 0x404cb0
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call fcn.0040d753
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406f4d
mov esp, ebp
pop ebp
ret 8
xor esi, esi
jmp 0x404cd9
push dword [ebp - 0x218]
xor esi, esi
call fcn.0040d753
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406f4d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00406f4d
mov esp, ebp
pop ebp
ret 8
Function at 0x405160
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fbfa
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x178], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x178], 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40539c
nop dword [eax + eax]
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x164], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405240
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x174]
call fcn.00405d40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x4052a1
movups xmm0, xmmword [ebp - 0x174]
mov dword [eax], 0
mov edx, 0xf
mov byte [ebp - 0x174], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x164]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0x18], 0x18
mov dword [ebp - 0x164], 0
jmp 0x4052b7
lea ecx, [ebp - 0x174]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405e80
mov edx, dword [ebp - 0x160]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4052ef
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053c3
push edx
push ecx
call fcn.0040741b
add esp, 8
mov dword [ebp - 0x164], 0
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], 0xf
mov ecx, 0x140
mov byte [ebp - 0x174], 0
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x405315
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405210
sub esp, 0xc
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.00405760
mov edx, 0x427210
lea ecx, [ebp - 0x198]
call fcn.00406a10
add esp, 0xc
mov ecx, edi
push eax
call fcn.00405ad0
mov edx, dword [ebp - 0x184]
cmp edx, 0x10
jb 0x405395
mov ecx, dword [ebp - 0x198]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40538b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053c3
push edx
push ecx
call fcn.0040741b
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1c]
call fcn.00405b60
mov eax, edi
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.00406f4d
mov esp, ebp
pop ebp
ret 8
call fcn.0040da8a
int3
Function at 0x40a3a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
add edi, 0xdeadbeef
add edi, ecx
push 0xc
pop eax
mov edx, edi
mov esi, edi
mov dword [ebp + 0x10], edx
cmp ecx, eax
jbe switch.0x0040a4a3
lea eax, [ecx - 0xd]
xor edx, edx
push 0xc
pop ecx
div ecx
inc eax
mov dword [ebp + 8], eax
movzx edx, byte [ebx + 7]
movzx ecx, byte [ebx + 6]
movzx eax, byte [ebx + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [ebx + 0xb]
shl ecx, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 4]
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 0xa]
add esi, edx
add ecx, eax
movzx edx, byte [ebx + 8]
movzx eax, byte [ebx + 9]
add edx, edi
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [ebx + 3]
shl ecx, 8
mov edi, edx
add ecx, eax
rol edi, 4
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, esi
add ecx, dword [ebp + 0x10]
xor edi, ecx
sub esi, edi
mov eax, edi
add edi, edx
rol eax, 6
xor eax, esi
sub edx, eax
mov ecx, eax
rol ecx, 8
add eax, edi
xor ecx, edx
sub edi, ecx
mov edx, ecx
rol edx, 0x10
add ecx, eax
xor edx, edi
mov esi, edx
sub eax, edx
ror esi, 0xd
add edx, ecx
xor esi, eax
mov dword [ebp + 0x10], edx
sub ecx, esi
mov edi, esi
rol edi, 4
add esi, edx
xor edi, ecx
mov ecx, dword [ebp + 0xc]
push 0xc
pop eax
sub ecx, eax
add ebx, eax
sub dword [ebp + 8], 1
mov dword [ebp + 0xc], ecx
jne 0x40a3e0
cmp ecx, eax
ja 0x40a50f
jmp dword [ecx*4 + 0x40a55d]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 8]
add edi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add esi, eax
movzx eax, byte [ebx + 4]
add esi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add edx, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add edx, eax
movzx eax, byte [ebx]
add edx, eax
mov dword [ebp + 0x10], edx
xor edi, esi
mov eax, esi
rol eax, 0xe
sub edi, eax
mov eax, edi
mov edx, edi
xor edx, dword [ebp + 0x10]
rol eax, 0xb
sub edx, eax
xor esi, edx
mov eax, edx
ror eax, 7
sub esi, eax
mov eax, esi
xor edi, esi
rol eax, 0x10
sub edi, eax
mov eax, edi
mov ecx, edi
rol eax, 4
xor ecx, edx
sub ecx, eax
mov eax, ecx
xor esi, ecx
rol eax, 0xe
sub esi, eax
mov eax, esi
xor edi, esi
ror eax, 8
sub edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40f247
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f286
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f286
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f286
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f286
cmp dword [ecx + 0x74], 0xe
jbe 0x40f286
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x416828
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42a038]
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 0x416873
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004169c3
test al, al
jne 0x41686d
sub edx, 2
cmp edx, edi
jne 0x416853
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x416895
lea eax, [edi + 2]
cmp edx, eax
je 0x416895
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416774
add esp, 0x10
jmp 0x41698f
push esi
lea ecx, [ebp - 0x255]
call fcn.004169c3
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 0x4168d8
push dword [ebp - 0x25c]
jmp 0x416885
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 0x416915
cmp word [ebp - 0x226], 0
je 0x416936
cmp word [ebp - 0x226], ax
jne 0x416915
cmp word [ebp - 0x224], 0
je 0x416936
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416774
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x416982
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4168ef
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41696a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41698f
push 0x4165a4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00411f80
add esp, 0x10
jmp 0x41695f
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.00406f4d
leave
ret

Function at 0x4176d9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42422c
push 0x424224
push str.FlsAlloc
push 0x1f
call fcn.00417614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41770d
push dword [ebp + 8]
mov ecx, esi
call dword [0x420244]
call esi
jmp 0x417713
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417757
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42423c
push 0x424234
push str.FlsGetValue
push 0x21
call fcn.00417614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41778e
push dword [ebp + 8]
mov ecx, esi
call dword [0x420244]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x417796
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424244
push 0x42423c
push str.FlsSetValue
push 0x22
call fcn.00417614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4177d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420244]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x416f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f38
mov eax, 1
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f50
jne 0x416f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f50
xor ecx, ecx
sub eax, 3
jb 0x416f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416ff2
mov ebp, eax
add ebx, ebx
jne 0x416f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416fbc
inc ecx
add ebx, ebx
jne 0x416fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f9d
jne 0x416fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416fcd
jmp 0x416f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fdc
add edi, ecx
jmp 0x416f3e
pop esi
mov edi, esi
mov ecx, 0x712
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416ffa
cmp byte [edi], 0xa
jne 0x416ffa
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 eax, ebx
loop 0x416fff
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41706e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41702c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417068
mov dword [ebx], eax
add ebx, 4
jmp 0x417049
call dword [esi + 0x17080]
popal
jmp 0x407cd2
Function at 0x710370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x71038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x739074
push ecx
mov edi, eax
call fcn.00724198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7103cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0072402e
push esi
call fcn.00723fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x713850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x7138ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x73e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7138ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007241e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x7138ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x73e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x71392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00725082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x713957
mov word [eax], si
add eax, 2
push eax
call fcn.00725030
add esp, 4
jmp 0x713959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x7138ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7138b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x713ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x714080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7140c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x739458
push ecx
call fcn.007241e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007241e1
add esp, 0x10
jmp 0x7140d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0072420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00723dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00714050
mov eax, dword [0x73e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x71413b
push esi
call fcn.00713fb0
add esp, 4
mov dword [0x73e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x71414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00713ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x717440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7174b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x71748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x717471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x71747e
add edx, ecx
cmp ebx, edx
jb 0x71748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x717467
xor ecx, ecx
jmp 0x7174a2
test eax, eax
jne 0x717492
xor ecx, ecx
jmp 0x7174a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.007173c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7178f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x717921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x717946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x71796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x717993
push ecx
push esi
call fcn.007174c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret