joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008452
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xd4
mov eax, 0x100317e7
call fcn.10010891
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x28]
push eax
call fcn.100090d9
movzx eax, word [ebp + 0x24]
push eax
movzx eax, word [ebp + 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.10008900
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
call fcn.10008900
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov esi, eax
call fcn.10008900
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xe0]
push 0x40
push 0x20
push eax
call fcn.10006d88
push 0
push ebx
push esi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.1000c17a
lea ecx, [ebp - 0xe0]
call fcn.1000a95d
lea ecx, [ebp - 0xe0]
call fcn.10007c7e
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10008558
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x1000854f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10008f20
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.1001082d
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a55e
lea ecx, [ebp + 0x28]
call fcn.1000a55e
call fcn.1001084f
ret
Function at 0x10008814
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x10031826
call fcn.1001085e
xor ebx, ebx
mov edi, 0x100474f8
mov dword [ebp - 4], ebx
push edi
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x10008863
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push str.Temp_
push eax
call fcn.10007a18
add esp, 0xc
push dword [eax]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10008b04
sub esp, 0x18
mov ecx, edi
mov edx, esp
mov dword [ebp - 0x10], esp
lea esi, [ecx + 1]
mov dword [edx], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000887c
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.1000a806
push dword [ebp + 0x14]
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 3
push 0x10035704
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
call fcn.1000a806
mov byte [ebp - 4], bl
call fcn.10008452
mov esi, dword [ebp + 8]
mov ecx, edi
add esp, 0x38
mov dword [esi], ebx
lea edx, [ecx + 1]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100088d6
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.1000a806
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10008b04
mov eax, esi
call fcn.1001083b
ret

Function at 0x10008db2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov eax, edi
movlpd qword [ebp - 8], xmm0
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], str.open
jb 0x10008df3
mov eax, dword [edi]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x10008e03
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x10008e11
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10008e3e
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008e75
push esi
push 0x10033974
push edi
push str.Failed_to_execute_command:
push 0x1005ff30
call fcn.1000597a
pop ecx
pop ecx
push eax
call fcn.1000595a
pop ecx
pop ecx
push eax
call fcn.1000597a
pop ecx
pop ecx
push eax
call fcn.1000595a
push eax
call fcn.10006734
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x10008f44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10008f9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10008f9e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10008f8e
cmp esi, ecx
jae 0x10008f9e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10008f7c
cmp esi, ecx
jae 0x10008f9e
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x10008fa0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000b760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10046350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x1000b783
xor eax, eax
jmp 0x1000b85b
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000b7b2
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x1000b7b2
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x1000b85a
cmp dword [edi + 0x4c], 0
je 0x1000b858
mov ecx, edi
call fcn.1000a351
mov eax, dword [edi + 0x38]
mov cl, byte [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1000b7e3
push dword [edi + 0x4c]
push ecx
call fcn.10005f72
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x1000b858
mov byte [ebp - 0x28], cl
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x1003326c]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x1000b82c
sub eax, 1
je 0x1000b82c
dec eax
sub eax, 1
jne 0x1000b858
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1000b7d4
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x1000b849
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.100174fc
add esp, 0x10
cmp esi, eax
jne 0x1000b858
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jne 0x1000b85a
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100107ea
leave
ret 4
Function at 0x1000c250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
test esi, esi
jg 0x1000c273
jl 0x1000c26a
test ebx, ebx
jne 0x1000c273
xor eax, eax
xor edx, edx
jmp 0x1000c337
cmp dword [ecx + 0x38], 0
je 0x1000c288
push esi
push ebx
push dword [ebp + 8]
call fcn.1000c340
jmp 0x1000c337
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x1000c2cc
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x1000c2cc
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call fcn.10011850
mov ecx, dword [ebp - 8]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x1000c2d2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ecx + 0x4c], 0
je 0x1000c32d
call fcn.1000a351
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x1000c315
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.10016e75
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1000c32d
jmp 0x1000c2e2
test edx, edx
je 0x1000c32d
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.10016e75
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000c430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000c452
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c520
jmp 0x1000c510
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x1000c478
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000c47d
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x1000c4dd
jg 0x1000c492
test esi, esi
je 0x1000c4dd
test ecx, ecx
jl 0x1000c4d8
jg 0x1000c49c
test eax, eax
je 0x1000c4d8
cmp edi, ecx
jg 0x1000c4ae
jl 0x1000c4a6
cmp esi, eax
jae 0x1000c4ae
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.10011850
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000c4e0
mov ecx, dword [ebp + 8]
jmp 0x1000c4ea
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000c504
jg 0x1000c4ea
test esi, esi
je 0x1000c504
cmp dword [ebx + 0x4c], 0
je 0x1000c504
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.100174fc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000d2f9
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x10031ee9
call fcn.1001085e
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov edi, 0x10047668
mov dword [ebp - 4], ecx
push edi
push ecx
push ecx
push 0x1c
push ecx
add ebx, 0xfffffff0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1000d39a
push 0x10035978
push ecx
mov esi, esp
push ebx
mov dword [ebp - 0x18], esi
call fcn.1000d1e5
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
pop ecx
push eax
call fcn.1000d792
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str.Temp_
push eax
call fcn.10007a18
add esp, 0x14
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.1000cc99
add esp, 0xc
push dword [eax]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10008b04
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10008b04
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.10008b04
cmp byte [0x1005fe10], 0
jne 0x1000d40a
sub esp, 0x18
mov byte [0x1005fe10], 1
mov edx, esp
mov dword [ebp - 0x18], esp
mov ecx, edi
and dword [edx], 0
and dword [edx + 0x10], 0
lea esi, [ecx + 1]
mov dword [edx + 0x14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d3c5
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.1000a806
push 0x65
push 0x66
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push 3
and dword [ecx], 0
and dword [ecx + 0x10], 0
push 0x10035704
mov dword [ecx + 0x14], 0xf
call fcn.1000a806
mov byte [ebp - 4], 0
call fcn.10008452
add esp, 0x38
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, edi
mov dword [esi], eax
mov dword [esi + 0x10], eax
lea edi, [edx + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov al, byte [edx]
inc edx
test al, al
jne 0x1000d422
sub edx, edi
mov ecx, esi
push edx
push 0x10047668
call fcn.1000a806
mov ecx, ebx
call fcn.10008b04
mov eax, esi
call fcn.1001083b
ret

Function at 0x1000d447
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10046350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1000d48c
push str.Failed_to_get_AppData_path._n
push 2
call fcn.100164a8
pop ecx
push eax
call fcn.1000f192
pop ecx
pop ecx
xor eax, eax
jmp 0x1000d4d0
push esi
lea eax, [ebp - 0x108]
mov esi, 0x1005fe18
push eax
push str._sIndigoRoseAutoPlay_Media_Studio
push 0x104
push esi
call fcn.1000f1ab
push esi
call fcn.1000e1aa
add esp, 0x14
test eax, eax
je 0x1000d4cd
push str.AutoPlay_Media_Studio
push esi
call fcn.10012460
pop ecx
pop ecx
test eax, eax
je 0x1000d4cd
mov byte [eax], bl
mov eax, esi
jmp 0x1000d4cf
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100107ea
leave
ret
Function at 0x1000d568
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x418
mov eax, 0x10031f45
call fcn.10010891
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x414], esi
lea eax, [ebp + 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x418]
push str.SOFTWAREAmsPlugins_
push eax
call fcn.10007a18
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
push 1
push edi
push dword [eax]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.10008b04
mov eax, dword [0x10035a48]
mov dword [ebp - 0x410], eax
mov ax, word [0x10035a4c]
push 0x3fa
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push edi
push eax
call fcn.100116f0
add esp, 0xc
mov dword [ebp - 0x41c], 0x400
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], edi
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push 0x10035a3c
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.10006b37
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10008b04
mov eax, esi
call fcn.1001084f
ret

Function at 0x1000dae5
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x100320b1
call fcn.1001085e
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push str.SOFTWAREAmsPlugins_
push eax
call fcn.10007a18
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [eax]
lea ecx, [ecx - 0x10]
call fcn.10008b04
xor edi, edi
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push 0xf023f
push edi
push edi
push edi
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push 0x190
cmovae eax, dword [ebp + 0xc]
push eax
push 1
push edi
push 0x10035a3c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10008b04
lea ecx, [ebp + 0xc]
call fcn.1000a55e
call fcn.1001083b
ret
Function at 0x1000e130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jb 0x1000e182
ja 0x1000e14b
cmp dword [ebp + 0xc], 0
jbe 0x1000e182
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 8]
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [ebp + 0x18]
and ecx, 7
shl ecx, 3
call fcn.10010e30
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
cmp edi, dword [ebp + 0x10]
jb 0x1000e157
ja 0x1000e17f
cmp esi, dword [ebp + 0xc]
jb 0x1000e157
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000e890
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 4
mov eax, 0x100321a9
call fcn.1001085e
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10008675
push eax
lea ecx, [ebp - 0x10]
call fcn.10006afe
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push str._sHelp.chm
push eax
call fcn.1000d25a
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000e8ee
push 1
push ebx
push ebx
push esi
push str.open
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.10008b04
mov al, bl
call fcn.1001083b
ret

Function at 0x1000e900
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 4
mov eax, 0x100321a9
call fcn.1001085e
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10008675
push eax
lea ecx, [ebp - 0x10]
call fcn.10006afe
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push str._sHelp.chm
push eax
call fcn.1000d25a
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000e95e
push 1
push ebx
push ebx
push esi
push str.open
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.10008b04
mov al, bl
call fcn.1001083b
ret
Function at 0x1000f1f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x14]
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
call fcn.100116f0
movzx eax, word [ebp + 0xc]
add esp, 0xc
push dword [ebp + 8]
push eax
call fcn.10008900
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000f261
push eax
call fcn.10008900
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000f261
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, dword [ebp + 0x14]
jg 0x1000f259
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov bl, 1
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x10020b2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100209a4

Function at 0x100290df
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10028c32

Function at 0x10030700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003072d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003072d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x48c3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040607a
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403e46
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48d2f0], eax
push 0x27
push 0x48be20
push 0x547
mov esi, 0x48be48
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x48d2f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403ea6
call fcn.00403d5c
xor eax, eax
pop ecx
ret 0x10
Function at 0x417ed0
Capabilities:
Check os version

Disassembly:
sub esp, 8
mov eax, dword [0x5fe030]
mov dword [esp + 4], 0
lea ecx, [eax + eax]
mov eax, dword [0x5fe034]
or ecx, eax
mov dword [esp], ecx
fild qword [esp]
fadd qword [0x5fe058]
fstp qword [0x5fe058]
call fcn.00417e10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
cmp ecx, 5
mov eax, edx
jne 0x417f2f
cmp eax, 1
jae 0x417f3f
mov dword [0x600fc8], 0x409
add esp, 8
ret
ja 0x417f3f
mov dword [0x600fc8], 0x409
add esp, 8
ret
mov dword [0x600fc8], 0x7f
add esp, 8
ret

Function at 0x5f5b09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fe3a0
cmp edx, dword [eax]
je 0x5f5b2b
add eax, 8
inc ecx
cmp eax, 0x5fe430
jl 0x5f5b1c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fe3a0]
jne 0x5f5c59
mov eax, dword [0x605d38]
cmp eax, 1
je 0x5f5c33
test eax, eax
jne 0x5f5b5c
cmp dword [0x5fe2c8], 1
je 0x5f5c33
cmp edx, 0xfc
je 0x5f5c59
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f5b93
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f64f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f6980
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f5bd6
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f6980
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fab84
push edi
call fcn.005f8850
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f64f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f6500
lea eax, [ebp - 0xa0]
push 0x5fab64
push eax
call fcn.005f6500
push dword [esi + 0x5fe3a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f6500
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f87c4
add esp, 0x2c
pop edi
jmp 0x5f5c59
lea eax, [ebp + 8]
lea esi, [esi + 0x5fe3a4]
push 0
push eax
push dword [esi]
call fcn.005f6980
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret