joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee5c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4ee5cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4ee6ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5fa050]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5fa050]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5fa050]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5fa050]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5fa050]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5fa050]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5fa050]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5fa050]
xor eax, edx
inc ecx
dec edi
jne 0x4ee5e6
pop edi
test esi, esi
je 0x4ee6f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5fa050]
xor eax, edx
inc ecx
dec esi
jne 0x4ee6d2
pop esi
pop ebx
not eax
ret

Function at 0x4ee700
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x5fa050]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x5fa050]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x4ef150
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4ef191
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ef186
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4ef1a4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x4efe80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x4efe9c
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x4efead
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x4efebb
push edi
call fcn.004f0390
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.004efc80
add esp, 0x10
test eax, eax
je 0x4efee3
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4eff02
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call sub.MFC42.DLL_operatornew
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x4eff3b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x4eff89
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004ee9e0
add esp, 4
test eax, eax
jne 0x4eff89
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x4effb6
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x4effc2
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x4f0003
mov al, byte [ebp]
test al, al
je 0x4f0003
push eax
push ebx
call fcn.004ee700
add esp, 8
inc ebp
jne 0x4effef
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4f0560
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4f0642
cmp dword [ebp + 4], 0xffffffff
jne 0x4f0642
push ebx
lea ebx, [ebp + 0x13c]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13b]
cmp cl, 0x5c
je 0x4f05d2
cmp cl, 0x2f
je 0x4f05d2
mov edi, 0x62f838
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x4f05fe
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4f05fe
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.004eef00
add esp, 0x10
test eax, eax
jne 0x4f0621
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004ef4d0
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4f0c40
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x214]
mov al, byte [esi]
test al, al
je 0x4f0d12
push ebx
push ebp
push edi
mov ebx, esi
mov ecx, esi
cmp al, 0x2f
je 0x4f0c67
cmp al, 0x5c
jne 0x4f0c69
mov ebx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4f0c5f
mov ebp, dword [esp + 0x21c]
cmp ebx, esi
mov edx, ebx
je 0x4f0cac
mov eax, ebx
lea edi, [esp + 0x10]
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.004f0c40
add esp, 8
lea edx, [ebx + 1]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x208
ret
Function at 0x50f970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x408]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x50fa50
mov edi, dword [esp + 0x414]
test edi, edi
je 0x50fa50
cmp byte [esi], 0
je 0x50f9ad
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov byte [esi], 0
push edi
mov dword [esi + 8], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x50fa50
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x50f9dc
dec ecx
mov edx, ebx
sub edx, eax
lea edi, [ecx + 1]
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
dec edi
jne 0x50f9d3
push ebp
xor ecx, ecx
lea edi, [esi + 0x14]
lea ebp, [esp + 0x10]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
sub ebp, edi
mov eax, ecx
xor edx, edx
mov dword [edi], ecx
add edi, 4
div dword [esi + 8]
xor eax, eax
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov dword [edi + ebp - 4], eax
jb 0x50f9ee
xor eax, eax
lea edi, [esp + 0x10]
lea ecx, [esi + 0x14]
mov ebx, 0x100
mov edx, dword [ecx]
mov ebp, dword [edi]
add ebp, edx
add edi, 4
add ebp, eax
add ecx, 4
and ebp, 0xff
dec ebx
mov eax, ebp
mov ebp, dword [esi + eax*4 + 0x14]
mov dword [ecx - 4], ebp
mov dword [esi + eax*4 + 0x14], edx
jne 0x50fa1a
pop ebp
mov byte [esi], 1
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x400
ret 8
Function at 0x53f2f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a6911
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push ebx
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00540190
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], edx
je 0x53f39b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53f392
cmp al, 0xff
je 0x53f392
dec al
mov byte [ecx], al
jmp 0x53f39b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x53f3cc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53f3c3
cmp al, 0xff
je 0x53f3c3
dec al
mov byte [ecx], al
jmp 0x53f3cc
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4284ce
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x451194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0x403a54
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x48], ebx
xor edi, edi
mov ecx, ebx
inc edi
call fcn.00430567
test eax, eax
jne 0x42858e
mov ecx, dword [esi + 0x34]
mov edx, ebx
call fcn.00430567
test eax, eax
jne 0x42860b
xor ebx, ebx
cmp dword [esi + 0x34], ebx
je 0x428528
push dword [esi + 0x34]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov dword [esi + 0x34], ebx
mov ecx, dword [ebp - 0x48]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42852e
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043f15c
mov dword [ebp - 0x4c], eax
mov dword [esi + 0x34], eax
pop ecx
test eax, eax
je 0x428609
mov ecx, dword [ebp - 0x48]
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x48], eax
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x42856e
sub edx, dword [ebp - 0x48]
sar edx, 1
push ecx
mov ecx, dword [ebp - 0x4c]
inc edx
call fcn.00412c1b
or dword [esi + 0x5c], 0x10
jmp 0x4285fe
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
push 0x405ed8
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.004278d7
mov ecx, dword [esi + 0x34]
lea edx, [ebp - 0x44]
add esp, 0x10
call fcn.00430567
test eax, eax
jne 0x42860b
cmp dword [esi + 0x34], ebx
je 0x4285dd
push dword [esi + 0x34]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov dword [esi + 0x34], ebx
push 0x40
call fcn.0043f15c
mov dword [esi + 0x34], eax
pop ecx
test eax, eax
je 0x428609
and dword [esi + 0x5c], 0xffffffef
lea ecx, [ebp - 0x44]
push ecx
push 0x20
pop edx
mov ecx, eax
call fcn.00412c1b
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
jmp 0x42860b
mov edi, ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f440
leave
ret 4
Function at 0x42f514
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x198]
test edi, edi
je 0x42f59d
call fcn.00438c65
cmp eax, 1
jne 0x42f59d
push 0x40640c
push edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov dword [ebp - 8], eax
pop ecx
pop ecx
test eax, eax
je 0x42f56e
push eax
push 1
lea eax, [ebp - 4]
mov word [ebp - 4], 0xfeff
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
push 0x406414
push edi
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
test eax, eax
jne 0x42f58e
mov dword [esi + 0x90], 0xac6e
xor ebx, ebx
jmp 0x42f594
mov dword [esi + 0x19c], eax
cmp ebx, dword [ebp + 0xc]
jne 0x42f65d
cmp dword [ebp + 0x10], 0
jne 0x42f65d
mov edi, dword [esi + 0x1a0]
test edi, edi
je 0x42f65d
call fcn.00438c9b
cmp eax, 1
jne 0x42f65d
push 0x40641c
push edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov dword [ebp - 8], eax
pop ecx
pop ecx
test eax, eax
je 0x42f5f7
mov ecx, eax
call fcn.00431e35
push dword [ebp - 8]
mov dword [esi + 0x1a8], eax
call dword [sym.imp.msvcrt.dll_fclose]
mov dword [esp], 0x406414
jmp 0x42f63c
push 0x40640c
push edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov dword [ebp - 8], eax
pop ecx
pop ecx
test eax, eax
je 0x42f637
push eax
push 1
lea eax, [ebp - 4]
mov word [ebp - 4], 0xfeff
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [ebp - 8]
mov dword [esi + 0x1a8], 1
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
push 0x406414
push edi
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
test eax, eax
jne 0x42f657
mov dword [esi + 0x90], 0xac6d
xor ebx, ebx
jmp 0x42f65d
mov dword [esi + 0x1a4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x431e35
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor eax, eax
push edi
push 1
mov word [ebp - 4], ax
xor esi, esi
lea eax, [ebp - 4]
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x431e9c
lea ecx, [ebp - 4]
mov eax, 0xfeff
cmp word [ecx], ax
jne 0x431e6d
inc esi
jmp 0x431e8e
lea ecx, [ebp - 4]
mov eax, 0xfffe
cmp word [ecx], ax
jne 0x431e7e
push 2
jmp 0x431e8d
lea ecx, [ebp - 4]
mov eax, 0xbbef
cmp word [ecx], ax
jne 0x431e8e
push 3
pop esi
push 0
push 0
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x432462
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451194]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
mov edi, ecx
call fcn.0043f15c
mov esi, eax
pop ecx
test esi, esi
je 0x432532
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [edi + 6]
movsx edx, word [ebp - 0x16]
movsx eax, word [edi + 4]
sub edx, ecx
movsx ecx, word [ebp - 0xa]
imul edx, ecx
mov ecx, 0x400
sub edx, eax
movsx eax, word [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x20], eax
cmp eax, ecx
jbe 0x4324d1
mov dword [ebp - 0x20], ecx
mov eax, ecx
add eax, eax
push eax
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4324f0
movsx ecx, word [edi + 0x10]
movsx eax, word [edi + 0xc]
sub ecx, eax
jmp 0x4324f2
xor ecx, ecx
test ecx, ecx
jle 0x432529
xor eax, eax
mov word [ebp - 0x24], ax
mov ax, word [edi + 6]
mov word [ebp - 0x22], ax
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleCursorPosition]
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push ebx
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleCursorPosition]
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043f440
leave
ret
Function at 0x4330ed
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 8
mov dword [ebp - 8], edx
lea edi, [ebp - 0x28]
mov edx, ecx
mov dword [ebx], 1
pop ecx
rep stosd dword es:[edi], eax
xor esi, esi
inc eax
push 0x17
mov dword [ebp - 4], esi
pop edi
cmp dword [ebp + 0xc], eax
jne 0x433127
mov dword [ebp - 0x24], 2
jmp 0x433130
cmp dword [ebp + 0xc], 2
jne 0x433130
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push edx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x433195
mov eax, dword [ebp - 4]
jmp 0x43315a
cmp dword [eax + 4], edi
je 0x43316c
cmp dword [eax + 4], 2
je 0x433160
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x43314c
jmp 0x43317c
mov esi, dword [eax + 0x18]
mov edi, dword [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x433179
mov edi, dword [ebp - 8]
mov dword [ebx], esi
mov esi, dword [eax + 0x18]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
neg esi
sbb esi, esi
and esi, 0xfffffb18
lea eax, [esi + 0x4e8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x433b00
Capabilities:
Get token privileges

Disassembly:
push 0x18
mov eax, 0x44496f
call fcn.0043f7ce
mov edi, ecx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
push 0x28
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x433c06
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 2
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
test edi, edi
jne 0x433b7d
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x433bee
mov ebx, 0x80041003
jmp 0x433bee
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 3
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
push dword [ebp - 0x18]
call fcn.0043f15c
mov edi, eax
pop ecx
test edi, edi
je 0x433be9
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 3
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x433bda
mov ecx, ebx
cmp dword [edi], ebx
jbe 0x433bc8
lea eax, [edi + 0xc]
or dword [eax], 2
inc ecx
lea eax, [eax + 0xc]
cmp ecx, dword [edi]
jb 0x433bbd
push ebx
push ebx
push ebx
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x433bdf
mov ebx, 0x80041003
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x433bee
mov ebx, 0x80041006
mov dword [ebp - 0x14], esi
and esi, 0xfffffffe
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x433c0b
mov ebx, 0x80041003
mov eax, ebx
call fcn.0043f79c
ret
Function at 0x433cfc
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x444992
call fcn.0043f7ce
push 0x20a
call fcn.0043f15c
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x433dcc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004171a3
and dword [ebp - 4], 0
push 0x105
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
je 0x433d89
cmp esi, 0x104
jbe 0x433d99
cmp dword [ebp - 0x10], 0
je 0x433d5e
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [ebp - 0x10], 0
pop ecx
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043f15c
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x433dcc
push esi
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
jne 0x433d99
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 0x44fddc
jmp 0x433dd8
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x433dcc
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x20], 0
jne 0x433dc4
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
push dword [eax]
call dword [0x4523e0]
call esi
mov eax, edi
call fcn.0043f79c
ret
mov dword [ebp - 0x14], 0xbbef
push 0x44fd84
lea eax, [ebp - 0x14]
push eax
call sub.msvcrt.dll__CxxThrowException
int3