joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4875c0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a8490]
test eax, eax
je 0x4875e8
call eax
mov dword [0x5a8490], 0
mov eax, dword [0x5a8488]
test eax, eax
je 0x487602
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5a8488], 0
push 0x208
lea eax, [ebp - 0x20c]
mov byte [0x5a84a8], 0
push 0
push eax
call fcn.00511230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.ACPIWMI.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x487684
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5a8488], eax
jmp 0x487689
mov eax, dword [0x5a8488]
test eax, eax
je 0x487735
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AsWMI_Open
push eax
call esi
push str.AsWMI_Close
push dword [0x5a8488]
mov dword [0x5a848c], eax
call esi
push str.AsWMI_DeviceControl
push dword [0x5a8488]
mov dword [0x5a8490], eax
call esi
push str.AsWMI_GetDeviceStatus
push dword [0x5a8488]
mov dword [0x5a8498], eax
call esi
push str.AsWMI_SetBootDevice
push dword [0x5a8488]
mov dword [0x5a8494], eax
call esi
push str.AsWMI_RegisterEvent
push dword [0x5a8488]
mov dword [0x5a849c], eax
call esi
push str.AsWMI_GetSystemInfo
push dword [0x5a8488]
mov dword [0x5a84a0], eax
call esi
mov dword [0x5a84a4], eax
call dword [0x5a848c]
mov byte [0x5a84a8], al
pop esi
test al, al
je 0x48774c
call dword [0x5a84a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
push 0x40040
push str._Error
push str.ACPIWMI.dll_does_not_be_found._Please_check_tool_package.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret

Function at 0x489d80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489d90
sub eax, edx
mov esi, 0x811c9dc5
mov edx, 0
je 0x489db6
movzx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jb 0x489da5
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00523235
imul eax, eax, 0xb14
add esp, 8
imul ecx, edx, 0x41a7
pop edi
pop esi
sub ecx, eax
lea eax, [ecx + 0x7fffffff]
js 0x489de4
mov eax, ecx
pop ebp
ret 4
Function at 0x497a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541ba7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ec74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [ebp - 4], 0
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b0370
mov dword [esi], eax
lea esi, [edi + 0x44]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b0370
mov dword [esi], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 4
mov dword [ecx + 0x10], 0
push 0
mov dword [ecx + 0x14], 0xf
push 0x5497b0
mov byte [ecx], 0
call fcn.00404d70
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 0xc
Function at 0x4bebf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544740
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004c3470
dec eax
cmp eax, 9
ja case.default.0x4bec2a
jmp dword [eax*4 + 0x4bed9c]
push 0x6bd
push str.C:Users_testerDesktopprotobuf_cpp_3.2.0protobuf_3.2.0_srcgoogle_protobuf_map.h
push 3
lea ecx, [ebp - 0x34]
call fcn.00487a70
push str.Unsupported
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00487de0
push eax
lea ecx, [ebp - 0x59]
call fcn.00487bd0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00487b50
push 0x6cc
push str.C:Users_testerDesktopprotobuf_cpp_3.2.0protobuf_3.2.0_srcgoogle_protobuf_map.h
push 3
lea ecx, [ebp - 0x58]
call fcn.00487a70
push str.Cant_get_here.
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00487de0
push eax
lea ecx, [ebp - 0x5a]
call fcn.00487bd0
lea ecx, [ebp - 0x58]
call fcn.00487b50
xor eax, eax
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.004f8f3c
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.004bfb90
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x4becd8
mov edi, dword [edi]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bece0
sub ecx, edx
mov esi, 0x811c9dc5
mov edx, 0
je 0x4bed06
movzx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x4becf5
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00523235
imul edx, edx, 0x41a7
add esp, 8
imul ecx, eax, 0xb14
sub edx, ecx
jns 0x4bed30
add edx, 0x7fffffff
mov eax, edx
jmp 0x4becaa
mov ecx, esi
call fcn.004bf920
xor eax, 0xdeadbeef
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.00523235
imul edx, edx, 0x41a7
add esp, 8
imul ecx, eax, 0xb14
sub edx, ecx
jns 0x4bed30
add edx, 0x7fffffff
mov eax, edx
jmp 0x4becaa
mov ecx, esi
call fcn.004bf830
jmp 0x4bed3e
mov ecx, esi
call fcn.004bfd70
jmp 0x4bed3e
mov ecx, esi
call fcn.004bfc80
jmp 0x4bed3e
mov ecx, esi
call fcn.004bf740
movzx eax, al
jmp 0x4bed3e
Function at 0x4d4090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
mov edi, dword [esi + 0x14]
test edi, edi
jle 0x4d40d2
mov edx, dword [esi + 0x1c]
xor ecx, ecx
nop dword [eax]
mov eax, dword [edx + ecx*4 + 4]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4d40c3
mov eax, dword [eax]
inc ecx
mov byte [eax], 0
cmp ecx, edi
jl 0x4d40b0
mov dword [esi + 0x14], 0
push ebx
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], 0
mov ebx, dword [esi + 0x3c]
test ebx, ebx
jle 0x4d4108
mov eax, dword [esi + 0x44]
xor edi, edi
mov esi, eax
nop
mov ecx, dword [esi + edi*4 + 4]
call fcn.004d3a20
inc edi
cmp edi, ebx
jl 0x4d40f0
mov esi, dword [ebp - 8]
mov dword [esi + 0x3c], 0
mov ebx, dword [esi + 0x4c]
test ebx, ebx
jle 0x4d4138
mov eax, dword [esi + 0x54]
xor edi, edi
mov dword [ebp - 4], eax
mov esi, eax
nop dword [eax]
mov ecx, dword [esi + edi*4 + 4]
call fcn.004d3cd0
inc edi
cmp edi, ebx
jl 0x4d4120
mov esi, dword [ebp - 8]
mov dword [esi + 0x4c], 0
mov ebx, dword [esi + 0x5c]
test ebx, ebx
jle 0x4d4168
mov eax, dword [esi + 0x64]
xor edi, edi
mov dword [ebp - 4], eax
mov esi, eax
nop dword [eax]
mov ecx, dword [esi + edi*4 + 4]
call fcn.004d4780
inc edi
cmp edi, ebx
jl 0x4d4150
mov esi, dword [ebp - 8]
mov dword [esi + 0x5c], 0
mov ebx, dword [esi + 0x6c]
test ebx, ebx
jle 0x4d4198
mov eax, dword [esi + 0x74]
xor edi, edi
mov dword [ebp - 4], eax
mov esi, eax
nop dword [eax]
mov ecx, dword [esi + edi*4 + 4]
call fcn.004d3f00
inc edi
cmp edi, ebx
jl 0x4d4180
mov esi, dword [ebp - 8]
mov dword [esi + 0x6c], 0
mov ecx, dword [esi + 8]
pop ebx
test cl, 0x1f
je 0x4d4230
test cl, 1
je 0x4d41c2
mov eax, dword [esi + 0x78]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4d41bc
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 1
test al, 1
je 0x4d41e2
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4d41dc
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 2
test al, 1
je 0x4d4206
mov eax, dword [esi + 0x80]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4d4200
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
test al, 1
je 0x4d421d
mov ecx, dword [esi + 0x84]
call fcn.004d42c0
mov ecx, dword [esi + 8]
shr ecx, 4
test cl, 1
je 0x4d4230
mov ecx, dword [esi + 0x88]
call fcn.004d4810
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x4d424d
mov ecx, dword [esi + 4]
and ecx, 0xfffffffe
cmp dword [ecx], 0
je 0x4d424d
call fcn.00490250
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fc445
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x52e6d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052e546
Function at 0x100061d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098f3b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100cb8d4]
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 eax, dword [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push esi
mov dword [ebp - 0xc4], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10006227
xor al, al
jmp 0x10006339
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006220
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10006220
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x10006220
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.1006f1a0
add esp, 0xc
lea ecx, [ebp - 0xc0]
push 1
push 0x40
push 0x20
push dword [ebp - 0xc4]
call fcn.10003f10
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xb4], 6
je 0x1000629c
xor bl, bl
jmp 0x1000632c
push 0
push esi
push ebx
lea ecx, [ebp - 0xc0]
call fcn.1000a280
cmp dword [ebp - 0x70], 0
lea esi, [ebp - 0xbc]
jne 0x100062bb
xor esi, esi
jmp 0x100062df
lea ecx, [ebp - 0xbc]
call fcn.10006410
push dword [ebp - 0x70]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.10072fa5
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0xbc]
call fcn.10006bc0
test esi, esi
jne 0x1000632a
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x88], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb4]
and eax, 0x17
mov dword [ebp + ecx - 0xb4], eax
mov ecx, dword [ebp + ecx - 0xb0]
and ecx, eax
jne 0x10006355
mov bl, 1
lea ecx, [ebp - 0xc0]
call fcn.10005ae0
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.1002f2ae
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x10006361
mov esi, str.ios_base::badbit_set
jmp 0x10006371
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xc8]
push 1
push eax
call fcn.10009090
add esp, 8
lea ecx, [ebp - 0xdc]
push eax
push esi
call fcn.10004cf0
push 0x100bfa50
lea eax, [ebp - 0xdc]
push eax
call fcn.1006e285
int3
Function at 0x10006410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100cb8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x100064b1
cmp byte [esi + 0x3d], 0
je 0x100064b1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10006467
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10006479
sub eax, 1
je 0x1000647d
sub eax, 2
je 0x100064b1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000649a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10073d32
add esp, 0x10
cmp edi, eax
jne 0x10006467
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret

Function at 0x10006ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098c60
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100cb8d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1002ef08
mov edi, eax
add esp, 4
test edi, edi
je 0x10006fa2
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10021ba4
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100091c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100cb8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100091f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000922c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000922c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10009311
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10009254
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10009287
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100733ce
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10009311
cmp eax, 1
jle 0x100092e4
cmp eax, 3
jne 0x10009311
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10003230
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009301
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10073d32
add esp, 0x10
cmp edi, eax
jne 0x10009311
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10009217
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000a404
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a4d0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a425
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000a427
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x1000a4af
jg 0x1000a43a
test esi, esi
je 0x1000a4af
test ecx, ecx
jl 0x1000a47c
jg 0x1000a444
test eax, eax
je 0x1000a47c
cmp ebx, ecx
jg 0x1000a456
jl 0x1000a44e
cmp esi, eax
jae 0x1000a456
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1006e6a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1000a482
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x1000a4af
jg 0x1000a48c
test esi, esi
je 0x1000a4af
cmp dword [edi + 0x4c], 0
je 0x1000a4af
mov ecx, edi
call fcn.10007710
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.1007369e
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000a6a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a760
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a6c5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000a6c7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1000a744
jg 0x1000a6da
test esi, esi
je 0x1000a744
test ecx, ecx
jl 0x1000a71e
jg 0x1000a6e4
test eax, eax
je 0x1000a71e
cmp edi, ecx
jg 0x1000a6f6
jl 0x1000a6ee
cmp esi, eax
jae 0x1000a6f6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.1006e6a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1000a721
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1000a744
jg 0x1000a72b
test esi, esi
je 0x1000a744
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000a744
push eax
push esi
push 1
push edx
call fcn.10073d32
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ee20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099902
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100cb8d4]
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]
xor eax, eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x424], 0x104
call fcn.1006f1a0
add esp, 0xc
mov dword [ebp - 0x428], 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push str.local_m2
push 0x100a25b4
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1000eefe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000eee0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007fb0
cmp dword [esi + 0x10], 0
jne 0x1000ef7a
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1006f1a0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.100503a0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ef34
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007fb0
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x1000ef5f
mov eax, dword [esi]
add ecx, ecx
push ecx
push eax
push 1
push str.local_m2
push 0x100a25b4
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
Function at 0x10015890
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 0x100158e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100158e9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100158da
cmp esi, edx
jae 0x100158e9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100158c8
cmp esi, edx
jae 0x100158e9
cmp word [esi], 0
je 0x100158e9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret