joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417317
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x417378
push 0x438c04
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x4173bd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4348d8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4173a5
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4389d8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00428868
add ebp, 0x190
leave
ret

Function at 0x4173d5
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x417436
push 0x438c04
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x41747b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4348d8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417463
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4389d8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00428868
add ebp, 0x190
leave
ret
Function at 0x417493
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4174f3
push 0x438c04
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x417538
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4348e8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417520
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4389d8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00428868
add ebp, 0x190
leave
ret
Function at 0x417c07
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x42f6a1
call fcn.00428d8c
mov esi, ecx
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0xc8
jne 0x417d20
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x417d20
mov eax, dword [esi + 0x5b8]
or eax, dword [esi + 0x5bc]
jne 0x417c98
push dword [0x4452e8]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.0041bdcd
cmp dword [eax + 0x18], 0x10
jb 0x417c6b
mov eax, dword [eax + 4]
jmp 0x417c6e
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__atoi64]
pop ecx
lea ecx, [ebp - 0x44]
mov dword [esi + 0x5b8], eax
mov dword [esi + 0x5bc], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov byte [eax], bl
lea eax, [esi + 0x5b0]
add dword [eax], ecx
adc dword [eax + 4], ebx
cmp dword [esi + 0x5a8], 0xffffffff
jne 0x417ce4
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x417cc5
mov eax, dword [eax + 4]
jmp 0x417cc8
add eax, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x5a8], eax
mov eax, dword [esi + 0x5a8]
cmp eax, 0xffffffff
je 0x417d10
push ebx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417d10
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0xc], eax
je 0x417d20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041768d
jmp 0x417d22
xor eax, eax
call fcn.00428e64
ret 0x1c
Function at 0x4184a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4184d5
xor eax, eax
cmp ax, word [esi]
je 0x4184d5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4184e0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4184d1
test al, 0x10
je 0x4184d1
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.00419a5e
pop ecx
xor al, al
pop esi
ret

Function at 0x4185d3
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x42f7f2
call fcn.00428d8c
mov ebx, dword [ebp + 0x230]
and dword [ebp - 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
mov edi, 0x104
push edi
call esi
test eax, eax
je 0x418693
cmp eax, edi
jae 0x418639
lea eax, [ebp + 0x1c]
push eax
jmp 0x418698
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x10], edi
neg ecx
or ecx, eax
push ecx
call fcn.00428308
mov edi, eax
pop ecx
test edi, edi
je 0x418693
push edi
push dword [ebp - 0x10]
call esi
push eax
push edi
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const___unsigned_int_]
and dword [ebp - 4], 0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [ebp]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x4186a0
push 0x438c04
mov ecx, ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00428868
add ebp, 0x228
leave
ret
Function at 0x4197b2
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x1fc], eax
push esi
mov esi, dword [ebp + 0x208]
push edi
xor edi, edi
cmp esi, edi
je 0x419892
xor eax, eax
cmp ax, word [esi]
je 0x419892
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x419821
test dword [ebp - 0x80], 0x10
jne 0x41989d
push 1
push edi
push edi
push dword [ebp - 0x64]
call fcn.00428ee0
mov ecx, dword [ebp - 0x60]
xor esi, esi
add eax, ecx
adc edx, esi
jmp 0x4198a2
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x419852
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test dword [ebp - 0x54], 0x10
jne 0x41989d
push 1
push edi
push edi
push dword [ebp - 0x38]
call fcn.00428ee0
mov ecx, dword [ebp - 0x34]
jmp 0x419816
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41989d
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
pop ebx
je 0x41989d
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x4198a2
push 0x132b3a1
call fcn.00419a5e
pop ecx
or edx, 0xffffffff
mov eax, edx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor ecx, ebp
pop esi
call fcn.00428868
add ebp, 0x200
leave
ret

Function at 0x4198b9
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4064]
mov eax, 0x40e4
call fcn.00428eb0
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x4060], eax
mov eax, dword [ebp + 0x406c]
mov ecx, dword [ebp + 0x4070]
push ebx
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x4199b0
xor edx, edx
cmp dx, word [eax]
je 0x4199b0
test ecx, ecx
je 0x4199b0
cmp dword [ebp + 0x4074], 0x10
jb 0x4199b0
push 0x438fa0
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4199b0
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.004160b8
lea eax, [ebp - 0x78]
push eax
call fcn.004160b8
pop ecx
pop ecx
mov byte [ebp - 0x79], 0
mov esi, 0x4000
push ebx
push esi
lea eax, [ebp + 0x60]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x41996a
push ebx
call dword [sym.imp.MSVCR90.dll_ferror]
pop ecx
test eax, eax
jne 0x41998d
test edi, edi
jbe 0x41997f
push edi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00416ac7
add esp, 0xc
cmp edi, esi
jae 0x419987
mov byte [ebp - 0x79], 1
cmp byte [ebp - 0x79], 0
je 0x419947
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
cmp byte [ebp - 0x79], 0
pop ecx
pop edi
pop esi
je 0x4199b0
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00416b65
pop ecx
pop ecx
push 0x10
pop eax
jmp 0x4199b3
or eax, 0xffffffff
mov ecx, dword [ebp + 0x4060]
xor ecx, ebp
pop ebx
call fcn.00428868
add ebp, 0x4064
leave
ret
Function at 0x41df0a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop edi
xor ebx, ebx
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call sub.MSVCR90.dll_memset
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getpeername
test eax, eax
jne 0x41df6e
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x41df95
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov edi, dword [ebp - 0x20]
movzx ebx, ax
jmp 0x41df97
mov edi, ebx
push dword [esi + 0x478]
mov ecx, esi
mov dword [esi + 4], 3
call fcn.0041ddc1
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428868
leave
ret

Function at 0x41e0db
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x14], ax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
movzx eax, word [esi + 0x6c]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x41e144
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e144
push 1
push eax
mov ecx, esi
call fcn.0041dfca
jmp 0x41e14b
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428868
leave
ret
Function at 0x41e158
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41e1f2
push ebx
lea ebx, [esi + 0x14]
push edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
cmp eax, 0x2000
jb 0x41e17c
mov eax, 0x2000
cmp dword [ebx + 0x18], 0x10
jb 0x41e187
mov edx, dword [ebx + 4]
jmp 0x41e18a
lea edx, [ebx + 4]
push 0
push eax
add ecx, edx
push ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x41e1ca
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x41e16b
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
mov ecx, ebx
push 0
call dword [sym.imp.MSVCP90.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__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [esi + 8]
and dword [esi + 0x30], 0
mov eax, dword [ecx]
push edi
call dword [eax + 8]
jmp 0x41e1f0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41e1e6
push dword [esi + 0x28]
mov ecx, dword [esi + 8]
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41e1f0
push 0
push eax
mov ecx, esi
call fcn.0041dfca
pop edi
pop ebx
pop esi
ret
Function at 0x41e1f4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x9f8c]
mov eax, 0xa00c
call fcn.00428eb0
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x9f88], eax
push ebx
push esi
push 0
push 0xa000
lea eax, [ebp - 0x78]
mov esi, ecx
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41e250
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e2d7
push 0
push eax
mov ecx, esi
call fcn.0041dfca
jmp 0x41e2d7
mov ecx, esi
test ebx, ebx
jne 0x41e265
call fcn.0041de86
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x41e2d7
push edi
push dword [esi + 0x478]
call fcn.0041ddc1
push ebx
lea eax, [ebp - 0x78]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.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__::append_char_const___unsigned_int_]
cmp dword [edi + 0x18], 0x10
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x7c], eax
jb 0x41e292
mov ecx, dword [edi + 4]
jmp 0x41e295
lea ecx, [edi + 4]
lea ebx, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x80], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x80]
call dword [edx + 0x10]
test eax, eax
jne 0x41e2d6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41e2d6
cmp dword [esi + 0x10], 0xffffffff
je 0x41e2d6
cmp dword [esi + 4], 3
jne 0x41e2d6
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x41e2d6
push eax
push 0
mov ecx, edi
call dword [sym.imp.MSVCP90.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__::erase_unsigned_int__unsigned_int_]
pop edi
mov ecx, dword [ebp + 0x9f88]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428868
add ebp, 0x9f8c
leave
ret
Function at 0x41e3e6
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0x10
jb 0x41e09a
mov eax, dword [esi + 0x54]
jmp 0x41e09d
lea eax, [esi + 0x54]
push 0x400
lea ecx, [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0xc]
push 0x402
push dword [eax + 4]
call sub.WS2_32.dll_WSAAsyncGetHostByName
mov dword [esi + 0x474], eax
test eax, eax
jne 0x41e0d2
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.0041dfca
pop esi
ret
mov dword [esi + 4], 1
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x41e454
push eax
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x41e413
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.0041dfca
pop esi
ret
mov ecx, dword [esi + 0xc]
push 0x3f
push 0x401
push dword [ecx + 4]
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x41e402
cmp dword [esi + 0x68], 0x10
jb 0x41e436
mov eax, dword [esi + 0x54]
jmp 0x41e439
lea eax, [esi + 0x54]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x70], eax
mov ecx, esi
pop esi
cmp eax, 0xffffffff
jne 0x41e44f
jmp 0x41e08c
jmp fcn.0041e0db
cmp eax, 3
jne 0x41e411
pop esi
jmp fcn.0041e158

Function at 0x423673
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x435d98
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4236c8
xor al, al
jmp 0x42370c
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.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_char_const__]
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428868
leave
ret 4
Function at 0x424830
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x424894
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x4248ba
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4248ba
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x4248e7
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4248e7
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push 0x435e50
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x42490e
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x42490e
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428868
add ebp, 0x90
leave
ret
Function at 0x428623
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x446aa8], 0
push esi
jne 0x428596
call fcn.004284bc
test eax, eax
je 0x4285d9
mov eax, dword [0x446aa8]
cmp eax, 1
jne 0x4285b7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4285d9
pop esi
ret
push eax
call dword [0x446ab0]
test eax, eax
jne 0x428621
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4285dd
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x446aa8]
call dword [0x446ab0]
mov edi, eax
test edi, edi
je 0x428602
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42861e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x446aa8]
call dword [0x446aac]
add edi, 0x10
cmp edi, esi
jb 0x42860a
mov eax, edi
pop edi
pop esi
ret
jmp 0x428583

Function at 0x428868
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445bbc]
jne 0x428872
repz ret
jmp fcn.0042916a