joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439dc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492b98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c72d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0xc]
call fcn.0045f9a0
lea ecx, [edi + 0x38]
mov dword [ebp - 4], 0
call fcn.0045f9a0
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 1
call fcn.0045f9a0
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 2
call fcn.0045f9a0
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 3
call fcn.0045f9a0
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 4
call fcn.0045f9a0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x50]
mov dword [edi], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
call fcn.0045fbb0
sub esp, 0x18
mov dword [edi + 4], 0
mov ecx, esp
mov dword [edi + 8], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0
push str.data.fpk
mov dword [edi + 0x34], 0
call fcn.0045fa20
lea ecx, [edi + 0x50]
call fcn.0045fd70
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 0x441f30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x441f43
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x441f61
mov edi, edi
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x441f50
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00468607
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x441f8d
mov eax, edx
pop edi
pop esi
pop ebp
ret 4
Function at 0x45a040
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x45a089
cmp byte [esi + 0x58c], 0
jne 0x45a089
push esi
mov byte [esi + 0x58e], 0
push 0
mov byte [esi + 0x58d], 0
push 0x459f10
mov byte [esi + 0x58c], 1
call fcn.004676b6
add esp, 0xc
mov dword [esi + 0x588], eax
cmp eax, 0xffffffff
jne 0x45a08d
mov byte [esi + 0x58c], 0
xor al, al
pop esi
ret
push 1
push eax
call dword [0x4960a4]
mov al, 1
pop esi
ret

Function at 0x45a0a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x45a0e9
cmp byte [esi + 0x58c], 0
jne 0x45a0e9
push esi
mov byte [esi + 0x58e], 1
push 0
mov byte [esi + 0x58d], 0
push 0x459f10
mov byte [esi + 0x58c], 1
call fcn.004676b6
add esp, 0xc
mov dword [esi + 0x588], eax
cmp eax, 0xffffffff
jne 0x45a0ed
mov byte [esi + 0x58c], 0
xor al, al
pop esi
ret
push 1
push eax
call dword [0x4960a4]
mov al, 1
pop esi
ret
Function at 0x45fc90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4947d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4c72d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0045f9a0
sub esp, 0x18
mov dword [esp + 0x48], 0
mov ecx, esp
push esi
call fcn.0045fac0
lea ecx, [esp + 0x24]
call fcn.0045fd70
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045fb10
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0045fb00
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462440
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [edx*8 + 1]
mov dword [ebp - 4], ecx
add eax, edx
mov dword [ebp - 0xc], 0
shr eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x10], eax
movq mm0, qword [ebp - 0x10]
mov esi, dword [ebp - 4]
movq mm1, mm0
psllq mm1, 0x20
por mm0, mm1
mov ecx, dword [ebp - 8]
movq mm1, qword [esi]
pxor mm1, mm0
movq qword [esi], mm1
add esi, 8
sub ecx, 1
ja 0x462479
emms
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x465c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
test ebx, ebx
je 0x465c98
push esi
push edi
mov edi, dword [ebx]
xor eax, eax
xor esi, esi
mov dword [ebp - 8], edi
mov dword [edi + 0x16], eax
cmp dword [ebx + 4], eax
jle 0x465c4b
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x49f5f0]
cmp esi, dword [ebx + 4]
jl 0x465c30
mov ecx, dword [ebx + 0xc]
xor esi, esi
test ecx, ecx
jle 0x465c7d
mov edi, dword [ebx + 8]
mov ebx, ecx
lea esp, [esp]
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x49f5f0]
cmp esi, ebx
jl 0x465c60
mov edi, dword [ebp - 8]
mov byte [edi + 0x16], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x18], cl
shr eax, 0x18
mov byte [edi + 0x19], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a9633
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x4a9651
cmp ax, 0x42
je 0x4a9651
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x4a97e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
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_CreateProcessW]
pop ebp
ret

Function at 0x4ad4b0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4ca448
call fcn.004aad70
push 8
call fcn.004afa99
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4d8f70], esi
jne 0x4ad4e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4d8f6c], esi
mov al, byte [ebp + 0x10]
mov byte [0x4d8f68], al
cmp dword [ebp + 0xc], edi
jne 0x4ad52e
cmp dword [0x4da8ec], edi
je 0x4ad51e
mov eax, dword [0x4da8e8]
sub eax, 4
mov dword [0x4da8e8], eax
cmp eax, dword [0x4da8ec]
jb 0x4ad51e
mov eax, dword [eax]
cmp eax, edi
je 0x4ad4ff
call eax
jmp 0x4ad4ff
push 0x4d60dc
mov eax, 0x4d60d4
call fcn.004ad42e
pop ecx
push 0x4d60e8
mov eax, 0x4d60e0
call fcn.004ad42e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4ad55f
cmp dword [ebp + 0x10], edi
jne 0x4ad56d
mov dword [0x4d8f70], esi
push dword [ebp + 8]
call fcn.004ad3ec
call fcn.004aadab
ret
Function at 0x403210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40323c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x403264
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40326a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4032d2
jg 0x403281
test esi, esi
je 0x4032d2
test ecx, ecx
jl 0x4032cd
jg 0x40328b
test eax, eax
je 0x4032cd
cmp edi, ecx
jg 0x40329f
jl 0x403295
cmp esi, eax
jae 0x40329f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4032d5
mov ecx, dword [ebp + 8]
jmp 0x4032df
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4032f9
jg 0x4032df
test esi, esi
je 0x4032f9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4032f9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40333c
jl 0x403330
test ecx, ecx
jne 0x40333c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403355
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40339d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4033a3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4033a3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403416
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4033cc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403404
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403416
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4033e0
test edi, edi
je 0x403416
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4037c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4037fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4037fc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4038d3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403824
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 0x403830
movsx eax, bl
jmp 0x403868
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x403892
sub eax, 1
je 0x403892
sub eax, 2
jne 0x4038d3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4038b0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4038d3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ea4
mov esp, ebp
pop ebp
ret 4
Function at 0x403bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403cac
cmp byte [esi + 0x3d], 0
je 0x403cac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403c9a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403c61
sub eax, 1
je 0x403c65
sub eax, 2
jne 0x403c9a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403c83
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403c9a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ea4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00404ea4
mov esp, ebp
pop ebp
ret

Function at 0x404a79
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0x407360
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x404aa0
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x404aa3
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00404a55
pop esi
leave
ret 8

Function at 0x40576f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4057ae
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4057ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4057ae
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4057ae
cmp dword [ecx + 0x74], 0xe
jbe 0x4057ae
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10002a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f4eb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100430b4]
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]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
mov dword [ebp - 0x21c], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10002ae7
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10001ba0
add esp, 8
push 2
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
call fcn.10004b00
jmp 0x10002afd
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x18], eax
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.1001195d
mov esp, ebp
pop ebp
ret

Function at 0x10002b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f541
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x100430b4]
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]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
push eax
push 0x104
mov dword [ebp - 0x424], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10002b86
push 0x100313b4
push esi
call fcn.10001ba0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x10002bd7
cmp dword [edi + 0x14], 8
jb 0x10002b8e
mov edi, dword [edi]
lea eax, [ebp - 0x420]
push eax
push 0
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10002bc0
push 0x100313b4
push esi
call fcn.10001ba0
add esp, 8
mov dword [ebp - 4], 1
jmp 0x10002bd7
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.10001ba0
add esp, 8
mov dword [ebp - 4], 2
push 2
mov ecx, esi
mov dword [esi + 0x18], 0
call fcn.10004b00
mov eax, esi
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.1001195d
mov esp, ebp
pop ebp
ret
Function at 0x100080f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002fa16
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100430b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10013600
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x42c], esi
test esi, esi
jne 0x100081ac
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x42c], eax
test esi, esi
jne 0x100081ac
call fcn.10006e10
mov edi, eax
jmp 0x100082c8
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100081cf
call fcn.10006e10
jmp 0x100082bb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x100081ed
call fcn.10006e10
jmp 0x100082bb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1000820e
mov edi, 0x8007000e
jmp 0x100082bd
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10008301
jb 0x1000822c
cmp eax, 0xffffffff
ja 0x10008301
cmp eax, 0x400
jbe 0x10008241
push eax
lea ecx, [ebp - 0x420]
call fcn.10006a30
jmp 0x10008267
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x10008267
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x1000827e
mov edi, 0x8007000e
jmp 0x100082bd
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000829e
call fcn.10006e10
jmp 0x100082bb
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.10007f50
mov edi, eax
test esi, esi
je 0x100082c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x100082e1
lea ecx, [ebp - 0x420]
call fcn.100077a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001195d
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.100073b0
int3
Function at 0x1000e2a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100430b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0x200
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x204]
push 0
push eax
mov dword [ebp - 0x208], ecx
call fcn.10013600
mov eax, dword [ebp - 0x208]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1000e2f8
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x1000e300
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x1000e308
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x1000e310
mov ebx, dword [ebx]
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x20c]
lea ecx, [ebp - 0x204]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e350
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10003810
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001195d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000f9e0
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 0x1000fa04
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000fad0
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 0x1000fa25
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000fa27
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x1000faaf
jg 0x1000fa3a
test esi, esi
je 0x1000faaf
test ecx, ecx
jl 0x1000fa7c
jg 0x1000fa44
test eax, eax
je 0x1000fa7c
cmp ebx, ecx
jg 0x1000fa56
jl 0x1000fa4e
cmp esi, eax
jae 0x1000fa56
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.10012b00
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 0x1000fa82
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x1000faaf
jg 0x1000fa8c
test esi, esi
je 0x1000faaf
cmp dword [edi + 0x4c], 0
je 0x1000faaf
mov ecx, edi
call fcn.1000e790
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.10019ec1
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