joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100214a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fdc3
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x1006e3e8]
push esi
cmp eax, 0xffffffff
jne 0x10021503
lea eax, [esp + 4]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x100214f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100214f9
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10021503
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x30]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x54], 0
cmp dword [edx + 0x14], 8
jb 0x10021525
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [edx], ax
jne 0x10021545
xor ecx, ecx
jmp 0x1002155f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021550
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.100026d0
cmp dword [esp + 0x44], 8
jb 0x1002157e
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100215a3
test al, 0x10
jbe 0x100215a3
mov esi, 1
jmp 0x100215a5
xor esi, esi
cmp dword [esp + 0x2c], 8
jb 0x100215b9
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [esi], 0
cmp dword [eax + 0x14], 0x10
jb 0x10021969
mov eax, dword [eax]
lea ecx, [ebp + 0x14]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100219c1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x1002198d
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100219bc
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x100219bc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
call esi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10021aa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 0x10
jb 0x10021ab4
mov eax, dword [esi]
jmp 0x10021ab6
mov eax, esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021b15
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x10021ad8
mov eax, dword [eax]
push 4
push dword [ebp + 0x14]
push 4
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10021b07
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x10021b07
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10021ba8
cmp dword [esi + 0x14], 0x10
jb 0x10021b28
mov eax, dword [esi]
jmp 0x10021b2a
mov eax, esi
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10021ba8
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
test eax, eax
jne 0x10021ba8
cmp dword [esi + 0x14], 0x10
jb 0x10021b60
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push 2
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021ba8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x10021b7f
mov eax, dword [eax]
push 4
push dword [ebp + 0x14]
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10021ba3
push dword [ebp - 4]
call edi
test eax, eax
je 0x10021afe
push dword [ebp - 4]
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
push 0
push 0x10053860
call fcn.10001a10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 1
mov byte [ebp - 1], 0
cmp dword [eax + 0x14], 0x10
jb 0x10021d52
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021e1b
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 0x10
jb 0x10021d7d
mov eax, dword [esi]
jmp 0x10021d7f
mov eax, esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x10021e12
mov eax, dword [ebp - 8]
inc eax
push edi
push eax
call fcn.10013326
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x10021db6
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
mov byte [edi + eax], 0
cmp byte [edi], 0
jne 0x10021ddb
xor ecx, ecx
jmp 0x10021de9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021de0
sub ecx, edx
push ecx
mov ecx, dword [ebp + 0x14]
push edi
call fcn.10001a10
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test eax, eax
jne 0x10021e12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x10]
cmp dword [edi + 0x14], 0x10
jb 0x10021f5a
mov eax, dword [edi]
jmp 0x10021f5c
mov eax, edi
lea ecx, [ebp + 0x14]
push ecx
push 2
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021fbf
cmp dword [esi + 0x14], 0x10
jb 0x10021f7a
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x10021f85
mov eax, dword [eax]
push ebx
push esi
push 1
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10021fb1
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x10021fb1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10022063
cmp dword [edi + 0x14], 0x10
jb 0x10021fd2
mov eax, dword [edi]
jmp 0x10021fd4
mov eax, edi
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10022063
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
test eax, eax
jne 0x10022063
cmp dword [edi + 0x14], 0x10
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
jb 0x10022012
mov edi, dword [edi]
lea eax, [ebp + 0xc]
push eax
push 2
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10022063
cmp dword [esi + 0x14], 0x10
jb 0x10022030
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x1002203b
mov eax, dword [eax]
push dword [ebp - 4]
push esi
push 1
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002205e
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x10021fa8
push dword [ebp + 0xc]
call ebx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10022070
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x1002207e
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 0xf003f
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100220bb
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x100220a2
mov eax, dword [eax]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100220c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x100220ce
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 0xf003f
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002210b
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x100220f2
mov eax, dword [eax]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10022670
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x10053860
push edi
mov dword [esp + 0xc], ecx
mov eax, esi
lea ecx, [ecx]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x100226b0
test bl, bl
je 0x100226ac
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x100226b0
add eax, 2
add edx, 2
test cl, cl
jne 0x10022690
xor eax, eax
jmp 0x100226b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100226d3
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
push 2
lea eax, [esp + 0x98]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x10], 0x30
lea eax, [esp + 0x94]
mov dword [esp + 0x14], 0
add esi, 2
mov byte [esp + 0x18], 0x31
mov dword [ebp + 8], esi
push eax
mov dword [esp + 0x20], 1
mov byte [esp + 0x24], 0x32
mov dword [esp + 0x28], 2
mov byte [esp + 0x2c], 0x33
mov dword [esp + 0x30], 3
mov byte [esp + 0x34], 0x34
mov dword [esp + 0x38], 4
mov byte [esp + 0x3c], 0x35
mov dword [esp + 0x40], 5
mov byte [esp + 0x44], 0x36
mov dword [esp + 0x48], 6
mov byte [esp + 0x4c], 0x37
mov dword [esp + 0x50], 7
mov byte [esp + 0x54], 0x38
mov dword [esp + 0x58], 8
mov byte [esp + 0x5c], 0x39
mov dword [esp + 0x60], 9
mov byte [esp + 0x64], 0x61
mov dword [esp + 0x68], 0xa
mov byte [esp + 0x6c], 0x62
mov dword [esp + 0x70], 0xb
mov byte [esp + 0x74], 0x63
mov dword [esp + 0x78], 0xc
mov byte [esp + 0x7c], 0x64
mov dword [esp + 0x80], 0xd
mov byte [esp + 0x84], 0x65
mov dword [esp + 0x88], 0xe
mov byte [esp + 0x8c], 0x66
mov dword [esp + 0x90], 0xf
call dword [sym.imp.MSVCR120.dll__strdup]
mov esi, eax
add esp, 4
xor ebx, ebx
mov edx, esi
cmp byte [esi], 0x30
jne 0x100227f3
cmp byte [esi + 1], 0x58
jne 0x100227f3
lea edx, [esi + 2]
mov cl, byte [edx]
mov ch, 1
test cl, cl
je 0x10022825
jmp 0x10022800
xor eax, eax
cmp cl, byte [esp + eax*8 + 0x10]
je 0x10022810
inc eax
cmp eax, 0x10
jl 0x10022802
jmp 0x10022825
test ch, ch
jne 0x10022817
shl ebx, 4
mov cl, byte [edx + 1]
inc edx
or ebx, dword [esp + eax*8 + 0x14]
xor ch, ch
test cl, cl
jne 0x10022800
push esi
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [esp + 0x10]
add esp, 4
mov esi, dword [ebp + 8]
mov byte [edi + eax], bl
inc edi
cmp edi, 0x10
jl 0x100226d5
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10023430
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4
Function at 0x10023490
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call sym.KwLib.dll_private:_void___thiscall_CMD5::md5_update_struct_CMD5::md5_context___unsigned_char___unsigned_long_int_
push esi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sym.KwLib.dll_private:_void___thiscall_CMD5::md5_finish_struct_CMD5::md5_context___unsigned_char__const_
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10025500
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push edi
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x17c], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002554f
xor bl, bl
jmp 0x1002565c
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::StringUtility::Str2Lower_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10025632
lea ebx, [ebx]
cmp byte [ebp - 0x158], 0
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
jne 0x1002559f
xor eax, eax
jmp 0x100255b1
lea eax, [ebp - 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100255a8
sub eax, edx
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x54]
call fcn.10001a10
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::StringUtility::Str2Lower_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 0x10
jb 0x100255e7
push dword [ebp - 0x54]
call edi
add esp, 4
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x28], 0x10
push ecx
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
jne 0x1002567c
lea eax, [ebp - 0x17c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x28], 0x10
mov esi, eax
jb 0x1002562a
push dword [ebp - 0x3c]
call edi
add esp, 4
test esi, esi
jne 0x10025580
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp dword [ebp - 0x10], 0x10
pop esi
jb 0x1002564a
push dword [ebp - 0x24]
call edi
add esp, 4
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x1002566a
push dword [ebp + 8]
call edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0x10
jb 0x10025691
push dword [ebp - 0x3c]
call edi
add esp, 4
mov bl, 1
jmp 0x1002563b
Function at 0x10025cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
pop ebp
jmp fcn.10009fe0

Function at 0x10025ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
pop ebp
jmp fcn.10009ea0
Function at 0x10029560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
push edi
call sym.KwLib.dll_int___cdecl_KwLib::Dir::IsExistFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
test eax, eax
jne 0x1002957d
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0x38
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x100295b4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
mov byte [esi + 0x18], 0
jmp 0x100295b6
xor esi, esi
cmp esi, edi
je 0x100295c6
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.100018e0
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x100295da
push 0xffffffffffffffff
push 0
push eax
call fcn.100018e0
mov eax, dword [ebp + 0x10]
push 0
push 0
push esi
push 0x10028d80
mov dword [esi + 0x30], eax
mov al, byte [ebp + 0x18]
push 0
push 0
mov byte [esi + 0x34], al
call dword [sym.imp.MSVCR120.dll__beginthreadex]
mov esi, eax
add esp, 0x18
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x1002962c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10029622
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10029660
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x10029670
Capabilities:
Suspend thread

Disassembly:
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x10029680
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x100296f0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret
Function at 0x1002a560
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x105
jb 0x1002a595
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0x105
jb 0x1002a588
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x20a], cx
jmp 0x1002a5a6
mov eax, esi
xor ecx, ecx
mov word [eax + 0x20a], cx
jmp 0x1002a5a6
mov eax, 0x105
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10002220
cmp dword [esi + 0x14], 8
jb 0x1002a5b0
mov eax, dword [esi]
jmp 0x1002a5b2
mov eax, esi
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1002a633
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x1002a5cf
mov ecx, dword [esi]
jmp 0x1002a5d1
mov ecx, esi
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a5d5
sub ecx, edi
sar ecx, 1
pop edi
cmp dword [esi + 0x10], ecx
jae 0x1002a5f5
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x1002a601
mov eax, dword [esi]
jmp 0x1002a603
mov eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1002a652
cmp dword [esi + 0x14], 8
jb 0x1002a61a
mov eax, dword [esi]
jmp 0x1002a61c
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1002a652
push 0x5c
push 1
mov ecx, esi
call fcn.10002220
mov eax, esi
pop esi
ret
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1002a64b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
pop esi
ret
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov eax, esi
pop esi
ret
Function at 0x1002a660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push ebx
push dword [0x1006f080]
mov dword [ebp - 0x14], 0x1006f080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], 0
push 0x206
push eax
mov word [ebp - 0x2a0], ax
lea eax, [ebp - 0x29e]
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x2a0]
push 0x104
push eax
call sym.KwLib.dll_bool___cdecl_KwLib::UserId::GetVirtualIdFilePath_wchar_t__const__int_
add esp, 0x14
test al, al
je 0x1002a7c0
push 0x1005a43c
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1002a7c0
push edi
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x40
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
mov edi, dword [sym.imp.MSVCR120.dll_strncpy]
test eax, eax
je 0x1002a743
push 0x3f
push eax
lea eax, [ebp - 0x98]
push eax
call edi
add esp, 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1002a756
push 0x3f
push eax
lea eax, [ebp - 0x58]
push eax
call edi
add esp, 0xc
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x98]
push 1
push 0x84
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
cmp esi, 1
pop esi
je 0x1002a786
xor bl, bl
jmp 0x1002a7a8
push 0x3f
lea eax, [ebp - 0x98]
push eax
push 0x1006f000
call edi
push 0x3f
lea eax, [ebp - 0x58]
push eax
push 0x1006f040
call edi
add esp, 0x18
mov bl, 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
jmp 0x1002a7c2
xor bl, bl
push dword [0x1006f080]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret