joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e249
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
push edi
mov byte [esp + 0x14], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x414e98
mov edi, dword [esp + 0x18]
mov ecx, ebp
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 eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
mov dword [esp + 0x30], ebx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x24]
call fcn.00414f00
mov ecx, dword [esp + 0x18]
mov bl, al
test ecx, ecx
je 0x414ee4
mov al, byte [ecx - 1]
test al, al
je 0x414eda
cmp al, 0xff
je 0x414eda
dec al
mov byte [ecx - 1], al
jmp 0x414ee4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov al, bl
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8

Function at 0x414f00
Capabilities:
Set registry value

Disassembly:
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x414f10
mov eax, esi
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x414f54
test esi, esi
je 0x414f4e
mov al, byte [esi - 1]
test al, al
je 0x414f44
cmp al, 0xff
je 0x414f44
dec al
mov byte [esi - 1], al
xor al, al
pop esi
ret 0x14
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop esi
ret 0x14
test esi, esi
je 0x414f78
mov al, byte [esi - 1]
test al, al
je 0x414f6e
cmp al, 0xff
je 0x414f6e
dec al
mov byte [esi - 1], al
mov al, 1
pop esi
ret 0x14
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop esi
ret 0x14
Function at 0x414f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e269
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
push edi
mov byte [esp + 0x14], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x414ff8
mov edi, dword [esp + 0x18]
mov ecx, ebp
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 eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
mov dword [esp + 0x30], ebx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x24]
call fcn.00415060
mov ecx, dword [esp + 0x18]
mov bl, al
test ecx, ecx
je 0x415044
mov al, byte [ecx - 1]
test al, al
je 0x41503a
cmp al, 0xff
je 0x41503a
dec al
mov byte [ecx - 1], al
jmp 0x415044
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov al, bl
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8

Function at 0x415060
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
mov dword [esp + 8], 4
je 0x41507a
mov eax, esi
mov edi, dword [esp + 0x20]
lea edx, [esp + 8]
push edx
push edi
push 0
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4150cb
test esi, esi
mov dword [edi], 0
je 0x4150c3
mov al, byte [esi - 1]
test al, al
je 0x4150b9
cmp al, 0xff
je 0x4150b9
dec al
pop edi
mov byte [esi - 1], al
xor al, al
pop esi
pop ecx
ret 0x14
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
xor al, al
pop esi
pop ecx
ret 0x14
test esi, esi
je 0x4150f1
mov al, byte [esi - 1]
test al, al
je 0x4150e7
cmp al, 0xff
je 0x4150e7
dec al
pop edi
mov byte [esi - 1], al
mov al, 1
pop esi
pop ecx
ret 0x14
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov al, 1
pop esi
pop ecx
ret 0x14
Function at 0x415280
Capabilities:
Set registry value

Disassembly:
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
mov edx, eax
je 0x415293
mov edx, edi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41529d
mov eax, esi
push ebx
mov ebx, dword [esp + 0x28]
push ebx
push edx
push 1
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop ebx
je 0x415304
test esi, esi
je 0x4152d8
mov al, byte [esi - 1]
test al, al
je 0x4152ce
cmp al, 0xff
je 0x4152ce
dec al
mov byte [esi - 1], al
jmp 0x4152d8
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
je 0x4152fd
mov al, byte [edi - 1]
test al, al
je 0x4152f3
cmp al, 0xff
je 0x4152f3
dec al
mov byte [edi - 1], al
pop edi
xor al, al
pop esi
ret 0x20
dec edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
xor al, al
pop esi
ret 0x20
test esi, esi
je 0x415324
mov al, byte [esi - 1]
test al, al
je 0x41531a
cmp al, 0xff
je 0x41531a
dec al
mov byte [esi - 1], al
jmp 0x415324
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
je 0x415349
mov al, byte [edi - 1]
test al, al
je 0x41533f
cmp al, 0xff
je 0x41533f
dec al
mov byte [edi - 1], al
pop edi
mov al, 1
pop esi
ret 0x20
dec edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov al, 1
pop esi
ret 0x20

Function at 0x415350
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x415360
mov eax, esi
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x415399
test esi, esi
je 0x415393
mov al, byte [esi - 1]
test al, al
je 0x415389
cmp al, 0xff
je 0x415389
dec al
mov byte [esi - 1], al
xor al, al
pop esi
ret 0x10
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop esi
ret 0x10
test esi, esi
je 0x4153bd
mov al, byte [esi - 1]
test al, al
je 0x4153b3
cmp al, 0xff
je 0x4153b3
dec al
mov byte [esi - 1], al
mov al, 1
pop esi
ret 0x10
dec esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop esi
ret 0x10
Function at 0x415f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor bl, bl
xor esi, esi
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x218]
mov byte [esp + 0x14], bl
test eax, eax
mov byte [esp + 0x10], bl
je 0x416091
mov eax, dword [eax + 0x204]
test eax, eax
je 0x416091
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x30]
push edx
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x416081
mov eax, dword [edi + 0x218]
mov edx, dword [eax + 0x254]
test edx, edx
jle 0x415faa
lea ecx, [eax + 0x3c8]
add eax, 0x3d8
mov edi, edx
cmp ebp, dword [eax - 0x180]
jne 0x415f9f
cmp byte [ecx], 0
mov ebx, dword [eax]
setne dl
shr ebx, 0x10
mov byte [esp + 0x10], dl
and bl, 1
add eax, 4
inc ecx
dec edi
jne 0x415f85
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
and eax, 0xff
and edi, 0xff
push eax
push edi
push ecx
push esi
push edx
push ebp
push str.SetDeviceType:_port0x_04x_curdev_d_newdev_d_flag_d_isslave_d_slavable_d
push 1
call fcn.004068e0
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, esi
jne 0x41601b
test bl, bl
je 0x415ffa
mov edx, dword [esp + 0x2c]
xor eax, eax
cmp edx, 1
sete al
xor eax, edi
jne 0x41601b
push esi
mov edi, 1
push ebp
push str.Port_0x_04x_already_type_0x_04x_n
push edi
call fcn.004068e0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x218]
mov eax, dword [edx + 0x204]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push esi
push ebp
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x416064
push esi
mov edi, 1
push ebp
push str.Reconfigured_Port_0x_04x_to_type_0x_04x_n
push edi
call fcn.004068e0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push esi
push ebp
push str.Failed_to_reconfigure_Port_0x_04x_to_type_0x_04x_n
push 1
call fcn.004068e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push ebp
push str.GetPortDeviceType_Port_0x_04x_failed__n
push 1
call fcn.004068e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4186c0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x20c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov esi, dword [esp + 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
push 0
push 0
push esi
push 0
call ebp
test eax, eax
jl 0x41879e
mov edi, 0x423a40
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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 edx, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x228]
push 0
push 0
push esi
push 0
call ebp
test eax, eax
jge 0x4187bd
push eax
push esi
push str.CopyFile__SHGetFolderPath_CSIDL:_0x_X__failed__hr_0x_08X___n
push 1
call fcn.004068e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret 0x10
mov edi, 0x423a40
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
push str.CopyFile__source:___s___dest:___s___n
push 1
call fcn.004068e0
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41886e
push str.CopyFile_succeeded.__n
push 1
call fcn.004068e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x20c
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyFile_failed__code:_0x_08X_.__n
push 1
call fcn.004068e0
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x20c
ret 0x10
Function at 0x41ca6e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f578
push 0x41cb84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x42ac60], 0xffffffff
or dword [0x42ac64], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x42ac3c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x42ac38]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42ac68], eax
call fcn.0041cbcf
cmp dword [0x42aba0], 0
jne 0x41caf1
push 0x41cbcc
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041cbb4
push 0x422010
push 0x42200c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x42ac34]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x42ac30]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x422008
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00406d00
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x613a01bb
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3e4f1475
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x461e58
push esi
call fcn.0040624d
push esi
call fcn.00405f28
mov edi, eax
test edi, edi
jne 0x406951
xor eax, eax
jmp 0x4069af
push edi
call fcn.0040627c
test byte [0x47eb48], 0x80
je 0x40696e
movzx eax, word [edi]
test ax, ax
je 0x40694d
cmp ax, 0x5c
je 0x40694d
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406990
push esi
call fcn.00406410
test eax, eax
je 0x40698a
test byte [eax], 0x10
je 0x4069b4
push esi
call fcn.00406903
push esi
call ebx
cmp eax, edi
jg 0x40697b
push esi
call fcn.004068d4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4069ae

Function at 0x4069b8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 0x40a97c
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00405fd8
test eax, eax
jne 0x406a39
cmp esi, 0x104
jle 0x406a39
lea eax, [esi + esi + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push edi
push esi
call fcn.0040624d
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, ebx
inc eax
push 0
neg eax
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406a5a
mov eax, ebx
inc eax
push 0
neg eax
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4075f9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bcbc], 0
jne 0x407637
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40760d
mov dword [ecx*4 + 0x46bcb8], eax
inc ecx
cmp ecx, 0x100
jl 0x407608
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407664
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bcb8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407645
not eax
pop ebp
ret 0xc

Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x773a0e02
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x6dd46f74
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x1001185
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x1002380
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x10011d1
push eax
push 0x2713
call fcn.01001a09
cmp dword [ebp + 8], esi
jle 0x100120b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x10011e8
cmp cl, 0x2d
jne 0x1001202
cmp byte [eax + 1], 0x3f
jne 0x1001202
push 0x2710
push esi
call fcn.01001979
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
push 0x2714
push 2
jmp 0x10011f4
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jge 0x1001234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2712
call fcn.01001a09
jmp 0x10011fb
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100123d
sub eax, edx
push eax
lea eax, [ebp - 0x404]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_puts]
pop ecx
push ebx
jmp 0x10011fc
Function at 0x401600
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x41a67a
call fcn.004171f4
mov eax, 0x10d8
call fcn.00414690
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x38], ax
xor ebx, ebx
push 0x1f
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.00403778
push ebx
push ebx
push ebx
push ebx
push str.Download
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x401769
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x40165e
lea eax, [ebp - 0x38]
push ebx
push 0x84000100
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x401683
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401769
lea eax, [ebp - 0xe4]
push eax
call fcn.004020bf
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd8], 6
je 0x4016b5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
jmp 0x401742
lea eax, [ebp - 0x14]
push eax
mov edi, 0x1000
push edi
lea eax, [ebp - 0x10e4]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4016fa
cmp dword [ebp - 0x14], ebx
jbe 0x401700
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10e4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00401d0f
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10e4]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4016cf
lea ecx, [ebp - 0xe0]
call fcn.00402b46
test eax, eax
jne 0x401734
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xe4]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40172d
or eax, 4
push ebx
push eax
call fcn.0040141d
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.0040219a
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.00405064
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x38]
call fcn.00402ae8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret