joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push esi
push edi
push 0x200
push 0
push eax
mov dword [ebp - 0x210], ebx
call sub.VCRUNTIME140.dll_memset
mov esi, ebx
add esp, 0xc
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40ab50
mov edi, dword [sym.imp.mfc140u.dll_operator_1]
sub esi, ecx
lea eax, [esi + 1]
push eax
call edi
mov dword [ebp - 0x208], eax
lea eax, [esi + esi]
lea ebx, [eax + 1]
mov dword [ebp - 0x214], eax
push ebx
call edi
mov edi, dword [ebp - 0x208]
lea ecx, [esi + 1]
push ecx
push 0
push edi
mov dword [ebp - 0x20c], eax
call sub.VCRUNTIME140.dll_memset
push ebx
mov ebx, dword [ebp - 0x20c]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push esi
push dword [ebp - 0x210]
mov edx, esi
mov ecx, edi
call fcn.004106e0
add esp, 0x28
mov dl, 0x28
xor eax, eax
nop dword [eax + eax]
xor dl, byte [eax + str.KEY20170228]
inc eax
cmp eax, 0xb
jb 0x40abc0
shr esi, 1
mov edi, 0
movsx eax, dl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
je 0x40ac7c
nop dword [eax]
mov eax, dword [ebp - 0x208]
movzx eax, byte [eax + edi*2]
imul ecx, eax, 0x1a
mov eax, dword [ebp - 0x208]
add cl, 0x66
mov byte [edi + ebx], cl
mov al, byte [eax + edi*2 + 1]
sub al, 0x41
add al, cl
mov byte [edi + ebx], al
inc edi
cmp edi, esi
jb 0x40abf0
xor ecx, ecx
cmp esi, 0x40
jb 0x40ac71
mov edi, esi
lea eax, [ebx + 0x20]
and edi, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edi
jb 0x40ac30
cmp ecx, esi
jae 0x40ac7c
xor byte [ecx + ebx], dl
lea eax, [ecx + ebx]
inc ecx
cmp ecx, esi
jb 0x40ac71
push dword [ebp - 0x214]
mov edx, 0x200
lea ecx, [ebp - 0x204]
push ebx
call fcn.004106e0
push dword [ebp - 0x208]
mov esi, dword [sym.imp.mfc140u.dll_operator_2]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x204]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 8
Function at 0x40acf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x414], ax
mov byte [ebp - 0x412], al
push 0x100
push eax
lea eax, [ebp - 0x108]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x40acc0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea eax, [ebp - 0x310]
push eax
push 0x100
lea eax, [ebp - 0x410]
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push 3
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_sUnisoc_Solution_MES.ini
push 0x200
push esi
call fcn.00407790
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [ebp - 4]
test eax, eax
pop esi
setne al
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 8

Function at 0x40bb60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
call fcn.0040acf0
test al, al
jne 0x40bbcb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x404]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0x427ce0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x204]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40bbf4
sub edx, ecx
lea eax, [ebp - 0x204]
push edx
push eax
mov ecx, ebx
call fcn.004093b0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x415bec
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x415c0e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x415c10
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x415c95
jg 0x415c25
test esi, esi
je 0x415c95
test ecx, ecx
jl 0x415c78
jg 0x415c2f
test eax, eax
je 0x415c78
cmp edi, ecx
jg 0x415c43
jl 0x415c39
cmp esi, eax
jae 0x415c43
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x415c95
jg 0x415c7b
test esi, esi
je 0x415c95
jmp 0x415c7b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x415c95
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x415cd4
jl 0x415cc8
test esi, esi
jne 0x415cd4
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x415ced
push eax
push esi
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__::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, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x415d2b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x415d2b
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x415d31
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x415db0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x415d5a
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x415d9c
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x415dc3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x415d70
test edx, edx
je 0x415db0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x416160
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x416190
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x416190
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x416265
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4161b9
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 0x4161c5
movsx eax, bl
jmp 0x4161fc
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]
test eax, eax
js 0x416265
cmp eax, 1
jle 0x416226
cmp eax, 3
jne 0x416265
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
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x416244
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 0x416265
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x416265
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
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.00422eb6
mov esp, ebp
pop ebp
ret 4
Function at 0x4165d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41668c
cmp byte [esi + 0x3d], 0
je 0x41668c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41667a
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 0x416641
sub eax, 1
je 0x416645
sub eax, 2
jne 0x41667a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x416663
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 0x41667a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00422eb6
mov esp, ebp
pop ebp
ret
Function at 0x417200
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425aac
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x435014]
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 edi, ecx
push 0x200
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + 0xd8]
push eax
push str._sUnisoc_MES_Manage.ini
lea eax, [ebp - 0x220]
push 0x200
push eax
call fcn.00407790
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41727e
xor al, al
jmp 0x417418
push 0x200
lea eax, [ebp - 0x420]
mov word [ebp - 0x14], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x1c], xmm0
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
add esp, 0xc
mov esi, 7
add edi, 0x8c0
push esi
push str.Name_d
lea eax, [ebp - 0x1c]
push 0xa
push eax
call fcn.00407790
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
push 0x200
lea eax, [ebp - 0x420]
push eax
push 0x427ce0
lea eax, [ebp - 0x1c]
push eax
push str.Shortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x427d94
lea ecx, [ebp - 0x43c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 0
lea edx, [eax + 1]
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417330
sub eax, edx
lea ecx, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004093b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 0x10
lea ecx, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov eax, dword [ebp - 0x43c]
cmp dword [eax - 0xc], 0
jne 0x417395
push esi
lea eax, [ebp - 0x43c]
push 0x42c1f8
push eax
call ebx
mov eax, dword [ebp - 0x43c]
add esp, 0xc
push eax
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CWnd::SetWindowTextW]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x424]
cmp edx, 0x10
jb 0x4173d8
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4173ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417434
push edx
push ecx
call fcn.0042313b
add esp, 8
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc esi
add edi, 0xd8
cmp esi, 0xa
jl 0x4172b3
mov al, 1
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.00422eb6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x419340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa24
mov eax, dword [0x435014]
xor eax, esp
mov dword [esp + 0xa20], eax
push esi
push 0x200
lea eax, [esp + 0x824]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x420]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x10]
push eax
movzx eax, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x14]
push eax
push str._04d__02d__02d__02d
lea eax, [esp + 0x834]
push 0x200
push eax
call fcn.00407790
add esp, 0x1c
lea eax, [esp + 0x318]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 4], ax
mov byte [esp + 6], al
push 0x100
push eax
lea eax, [esp + 0x220]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x720]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x620]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x318]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea eax, [esp + 0x624]
push eax
push 0x100
lea eax, [esp + 0x72c]
push eax
push 0x100
lea eax, [esp + 0x22c]
push eax
push 3
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x338]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
add esp, 0x24
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 8]
push eax
push str._s_s
lea eax, [esp + 0x42c]
push 0x200
push eax
call fcn.00407790
add esp, 0x14
lea eax, [esp + 0x420]
push eax
push str._sLog
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00407790
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4194f7
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x420]
push eax
push 0x42bfc0
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00407790
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x419531
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x820]
push eax
lea eax, [esp + 0x424]
push eax
push str._sLogMESMES_Upload__s.txt
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00407790
add esp, 0x14
lea eax, [esp + 0x18]
push 0
push 0
push 0
push eax
push dword [esi + 0x468]
push dword [esi + 0x3f4]
call dword [sym.imp.Unisoc_Solution_PrintLog.dll_PLOG_Set_Log_Param]
push 0x7e9
lea eax, [esi + 0x20]
push eax
push dword [esi + 0x3f4]
call dword [sym.imp.Unisoc_Solution_PrintLog.dll_PLOG_Set_Message_Param]
mov ecx, dword [esp + 0xa24]
pop esi
xor ecx, esp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x4de06ae
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x40f32181
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401bd2
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
shr edi, 2
xor ebp, ebp
mov eax, edi
xor ebx, ebx
shr eax, 1
inc ebp
add eax, 3
mov ecx, ebx
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x401c03
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401bf6
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x401c6c
movzx eax, dl
mov ebx, edi
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebp
add ebp, ebp
or edx, ecx
test ebp, 0x100
pop eax
cmovne ebp, eax
jmp 0x401cb9
cmp ebx, 4
jne 0x401cbd
cmp edi, 6
jbe 0x401cbd
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [esp + 0x14]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401c13
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x402adb
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x44c008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402b24
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b24
push 0xc00
call eax
test eax, eax
jne 0x402bc0
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402bc0
cmp eax, 0x104
ja 0x402bc0
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402b5b
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x402bbf
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402b7c
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402b79
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043097a
leave
ret
Function at 0x4061e8
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004061cb
mov edx, eax
test edx, edx
jne 0x40622a
xor ecx, ecx
cmp dword [esi + 0x18], ecx
jne 0x406226
lea eax, [esp + 4]
push eax
push ecx
push esi
push fcn.00406eda
push ecx
push ecx
call fcn.00434744
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x406226
call fcn.004076f0
mov edx, eax
test edx, edx
jne 0x40622a
xor eax, eax
jmp 0x406237
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
pop esi
pop ecx
ret