joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101318e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0x10], eax
call fcn.1010dcb6
mov ecx, dword [esi]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test ecx, ecx
je 0x10030bda
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x1c], edx
call fcn.10025c90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10004f90
test al, al
jne 0x10030bcb
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x38]
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10030bcb
test esi, esi
je 0x10030bcb
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10004ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret 4
Function at 0x10035230
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013226b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10026090
mov dword [edi], eax
mov dword [ebp - 4], 2
lea esi, [edi + 8]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10038970
mov dword [esi], eax
mov byte [ebp - 4], 5
lea esi, [edi + 0x10]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100388d0
mov dword [esi], eax
mov byte [ebp - 4], 8
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10038970
mov dword [esi], eax
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10038830
mov dword [esi], eax
mov byte [ebp - 4], 0xe
lea esi, [edi + 0x28]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10038790
mov dword [esi], eax
mov byte [ebp - 4], 0x11
lea esi, [edi + 0x30]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10038790
mov dword [esi], eax
mov byte [ebp - 4], 0x14
lea esi, [edi + 0x38]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0
push 0
call fcn.10038790
mov dword [esi], eax
mov byte [ebp - 4], 0x17
lea ecx, [edi + 0x40]
call fcn.100077f0
mov byte [ebp - 4], 0x18
lea ecx, [edi + 0x78]
call fcn.10005020
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10035490
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101323db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 8
lea ecx, [ebx + 0x78]
call fcn.10004ab0
mov byte [ebp - 4], 7
lea ecx, [ebx + 0x40]
call fcn.10004ab0
mov byte [ebp - 4], 6
lea esi, [ebx + 0x38]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.10038020
mov byte [ebp - 4], 6
push 0x38
push dword [esi]
call fcn.10103c3e
add esp, 8
mov byte [ebp - 4], 5
lea esi, [ebx + 0x30]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.10038020
mov byte [ebp - 4], 5
push 0x38
push dword [esi]
call fcn.10103c3e
add esp, 8
mov byte [ebp - 4], 4
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xe
mov ecx, esi
call fcn.10038120
mov byte [ebp - 4], 4
push 0x38
push dword [esi]
call fcn.10103c3e
add esp, 8
mov byte [ebp - 4], 3
lea edi, [ebx + 0x20]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x11
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.10038580
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 3
push 0x40
push dword [edi]
call fcn.10103c3e
add esp, 8
mov byte [ebp - 4], 2
lea edi, [ebx + 0x18]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x15
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.10038620
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 2
push 0x30
push dword [edi]
call fcn.10103c3e
add esp, 8
mov byte [ebp - 4], 1
lea esi, [ebx + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x17
mov ecx, esi
call fcn.10038290
mov byte [ebp - 4], 1
push 0x28
push dword [esi]
call fcn.10103c3e
add esp, 8
mov byte [ebp - 4], 0
lea edi, [ebx + 8]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x1a
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.10038620
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 0
push 0x30
push dword [edi]
call fcn.10103c3e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0x1c
mov ecx, ebx
call fcn.10025e30
mov dword [ebp - 4], 0xffffffff
push 0x54
push dword [ebx]
call fcn.10103c3e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035840
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132488
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 8]
lea ecx, [ebx + 8]
push dword [esi + 4]
call fcn.10038620
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0x18]
mov dword [eax + 4], esi
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov eax, dword [ebx + 8]
mov dword [eax + 8], esi
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0x18]
push dword [esi + 4]
call fcn.10038620
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x10]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x18]
mov dword [eax], esi
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], esi
mov dword [ebx + 0x1c], 0
call fcn.10038290
mov esi, dword [ebx + 0x20]
lea ecx, [ebx + 0x20]
push dword [esi + 4]
call fcn.10038580
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x28]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax + 8], esi
mov dword [ebx + 0x24], 0
call fcn.10038120
lea ecx, [ebx + 0x30]
call fcn.10038020
push 0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10026090
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
cmp ebx, eax
je 0x1003594d
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
lea ecx, [ebx + 4]
mov dword [ebx], eax
call fcn.10004ba0
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10004ba0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebx + 4], eax
call fcn.10004ba0
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.10025e30
mov dword [ebp - 4], 0xffffffff
push 0x54
push dword [ebp - 0x18]
call fcn.10103c3e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003c700
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x1019d008]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push 0x118
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x64], 0x11c
call fcn.10105570
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.10059f80
test al, al
je 0x1003c7b2
push dword [esp + 0x60]
push dword [esp + 0x60]
push 0x1016022c
push ebx
call fcn.1005aea0
call fcn.10059ef0
test al, al
mov edx, 0x40
mov ecx, 0x20
cmovne ecx, edx
push ecx
push 0x10160be0
push dword [esp + 0x28]
call fcn.1005aea0
lea eax, [esp + 0x88]
push eax
call fcn.10005260
mov ecx, dword [esp + 0x34]
add esp, 0x20
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10004c10
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10105570
add esp, 0xc
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push 0x10160be0
push edi
call fcn.1005aea0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x10160be0
push esi
call fcn.1005aea0
mov ecx, dword [esp + 0x188]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10103789
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10050700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x101a3700], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x101a3400], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x101a3600], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x101a3500], al
inc esi
cmp esi, 0x100
jl 0x10050810
pop esi
add esp, 0x80
ret
Function at 0x100537a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x1019d008]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.10105570
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100537fc
cmp dword [esp + 4], 6
jb 0x100537fc
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.10103789
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.10103789
add esp, 0x118
ret
Function at 0x10055690
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10138588
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [ebp - 0x14], 0
call fcn.101037ad
mov dword [ebp - 0x14], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push eax
call fcn.10105570
add esp, 0x10
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10055714
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x14]
call fcn.1005eec0
test al, al
je 0x1005573e
lea ecx, [ebp - 0x14]
call fcn.1005e4d0
test al, al
jne 0x1005573e
xor bl, bl
jmp 0x100557a4
lea edx, [esi + 4]
xor ecx, ecx
call fcn.10069230
test al, al
jne 0x10055754
lea ecx, [esi + 4]
call fcn.100121e0
lea edx, [esi + 0x1c]
mov ecx, 0x1a
call fcn.10069230
test al, al
jne 0x1005576d
lea ecx, [esi + 0x1c]
call fcn.100121e0
lea edx, [esi + 0x34]
mov ecx, 2
call fcn.10069230
test al, al
jne 0x10055786
lea ecx, [esi + 0x34]
call fcn.100121e0
lea edx, [esi + 0x4c]
mov ecx, 0xb
call fcn.10069230
test al, al
jne 0x1005579f
lea ecx, [esi + 0x4c]
call fcn.100121e0
mov byte [esi], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1005de10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret
Function at 0x100557e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101385d1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
call fcn.10004ba0
mov ebx, eax
cmp dword [eax + 0x14], 8
jb 0x1005582c
mov ebx, dword [eax]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], 0x25
test edx, edx
je 0x10055917
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.1000eda0
add esp, 4
test eax, eax
je 0x10055917
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x10055917
push edi
lea ecx, [ebp - 0x2c]
call fcn.10004ac0
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100558aa
push edi
mov ecx, esi
call fcn.10004ac0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10004ab0
jmp 0x1005592d
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10103ee3
mov edx, dword [ebp - 0x14]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100558fe
cmp eax, dword [ebp - 0x14]
ja 0x100558fe
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.10005260
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.10004c10
push ebx
call fcn.10103ce3
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10004fe0
jmp 0x10055892
push edi
mov ecx, esi
call fcn.10004ac0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
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 - 0x10]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret 8
Function at 0x10056190
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x101386ef
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x230]
lea eax, [ebp + 0x1c]
push 0x208
push 0
push eax
call fcn.10105570
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.MacromedFlashFlashHelperService.exe
lea ecx, [ebp - 0x40]
call fcn.10007b90
mov dword [ebp - 4], 0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007b90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp]
call fcn.10062e00
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10004ab0
lea ecx, [ebp]
call fcn.100621b0
test al, al
je 0x100562e0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp + 0x18], 0
call fcn.101037ad
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 6
lea eax, [ebp]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp + 0x18]
call fcn.100636f0
test al, al
jne 0x100562e4
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x100562e0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100562ce
test eax, eax
je 0x100562ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.10103c3e
add esp, 8
mov dword [ebp + 0x18], 0
xor bl, bl
jmp 0x10056324
push esi
lea ecx, [ebp + 0x18]
call fcn.100638d0
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x10056324
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10056312
test eax, eax
je 0x10056312
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.10103c3e
add esp, 8
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10004ab0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.10103789
lea esp, [ebp + 0x228]
pop ebp
ret 4
Function at 0x10059840
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10138e6c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.10004ab0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.10004ab0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.10004ab0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10004ab0
push 0x88
push ebx
call fcn.10103c3e
add esp, 8
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 0x10059f80
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x1019d008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10105570
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005a0c2
cmp dword [esi + 4], 6
push edi
ja 0x10059fd6
jne 0x1005a05e
cmp dword [esi + 8], 2
jb 0x1005a05e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1005a05e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1005a05e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005a05e
movups xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10164184]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1005a05e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1005a05e
cmp word [edi + 2], ax
jbe 0x1005a05e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1005a0a9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10105570
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1005a0a9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.10103789
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.10103789
add esp, 0x140
ret
Function at 0x1005dd90
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x1019d008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.101037ad
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10105570
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1005ddec
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.10103789
add esp, 0x120
ret
Function at 0x100609a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x1019d008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.10105570
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10060a1e
cmp dword [esp + 0x14], 6
jb 0x10060a1e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10060810
add esp, 0xc
test al, al
je 0x10060a1e
cmp word [esi], 0
jne 0x10060a76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.10060810
add esp, 0xc
test al, al
je 0x10060a4a
cmp word [esi], 0
jne 0x10060a76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10060810
add esp, 0xc
test al, al
je 0x10060a8b
cmp word [esi], 0
je 0x10060a8b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.10103789
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.10103789
mov esp, ebp
pop ebp
ret