joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4211f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x421239
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi], 0xffffffff
xor ecx, ebp
pop esi
call fcn.0044632d
mov esp, ebp
pop ebp
ret

Function at 0x421260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
push edi
mov edi, ecx
cmp esi, 0x3e80000
jbe 0x42129c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0x30
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.mfc140u.dll_operator_2]
push 0x30
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], 4
cmp dword [edi + 4], 0
je 0x421305
add esi, 4
push esi
call dword [sym.imp.mfc140u.dll_operator]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
push ecx
push dword [ebp - 0x10]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
jmp 0x421317
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0xc], eax
push 0
push ebx
push 0
lea eax, [ebx + 0x24]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x421362
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x421362
push 0x30
push ebx
call fcn.004467a8
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
cmp dword [edi + 8], 1
jne 0x421393
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jg 0x421385
push 1
call ebx
cmp dword [edi + 8], 1
je 0x421370
jmp 0x421393
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4213b0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4213ed
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x402], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x3ff], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x3fe], al
lea eax, [ebp - 0x3fc]
mov byte [ebp - 0x400], dl
shr edx, 0x18
push eax
mov word [ebp - 0x404], 0x104
mov byte [ebp - 0x401], cl
mov byte [ebp - 0x3fd], dl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
add eax, 9
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4213d8
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4213d8
cmp byte [ebp - 0x404], 0
jne 0x4213d8
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ebp - 0x403], 0x5a
pop edi
sete al
xor ecx, ebp
dec eax
pop esi
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4214c0
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 4
push eax
push dword [edi]
mov dword [ebp - 0x404], 0x2000205
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x421526
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebx
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x404]
push 0
push 0x400
push eax
push dword [edi]
call esi
test eax, eax
jle 0x421639
cmp byte [ebp - 0x404], 5
jne 0x421639
mov al, byte [ebp - 0x403]
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 2
jne 0x42164f
mov esi, dword [ebp - 0x408]
push esi
call ecx
push dword [ebp - 0x40c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x402]
push esi
mov byte [ebp - 0x403], bl
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
mov byte [ebp - 0x404], 1
call ebx
mov esi, eax
lea ecx, [ebp - 0x404]
mov eax, dword [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov byte [ebp + esi - 0x402], al
add esi, 3
add ecx, esi
push ecx
call ebx
add esp, 0x18
add esi, eax
lea eax, [ebp - 0x404]
push 0
push esi
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x421639
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call ebx
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x404]
push 0
push 0x400
push eax
push dword [edi]
call esi
mov dword [ebp - 0x408], eax
test eax, eax
je 0x421639
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x408]
test eax, eax
jle 0x421639
cmp byte [ebp - 0x403], 0
je 0x421655
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x10
test al, al
jne 0x421639
jmp 0x42165b
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x410]
call ecx
push eax
push dword [ebp - 0x410]
mov byte [ebp - 0x400], al
lea eax, [ebp - 0x3ff]
push eax
mov dword [ebp - 0x404], 0x3000105
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edx
shr ecx, 8
mov byte [ebp + eax - 0x3ff], cl
mov byte [ebp + eax - 0x3fe], dl
add eax, 7
push 0
push eax
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x421639
push 0xc8
call ebx
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call esi
test eax, eax
jle 0x421639
cmp byte [ebp - 0x404], 5
jne 0x421639
movzx eax, byte [ebp - 0x403]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
pop ebx
pop edi
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421980
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x4219a9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044632d
mov esp, ebp
pop ebp
ret

Function at 0x421c30
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [0x4c3720], 0x200
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x421c88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [0x4c52a0], 0x42a6a0
mov dword [0x4c5298], 0x42b740
call esi
mov dword [0x4c52a8], eax
push 0
test eax, eax
je 0x421cc9
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x4c529c], eax
test eax, eax
jne 0x421cec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x20]
mov ecx, 5
add eax, 2
cmp eax, ecx
cmovl eax, ecx
xor esi, esi
mov dword [0x4c52a4], eax
test eax, eax
jle 0x421d57
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
nop
push 0
push 0
push 0
push 0x4219f0
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x421b30
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x4c52a4]
jl 0x421d20
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 4

Function at 0x421e10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x421e64
push esi
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x421e5d
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x422b00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a36d3
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], edx
mov esi, ecx
cmp byte [esi], 0
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
jne 0x422b50
xor ecx, ecx
jmp 0x422b5c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422b53
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.0041f3c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push ecx
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0xa4]
push ecx
xorps xmm0, xmm0
push 0
movups xmmword [ebp - 0xa4], xmm0
push eax
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x422bc2
mov esi, 2
jmp 0x422cdb
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0xac], esi
test esi, esi
je 0x422cd2
nop word [eax + eax]
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
cmp dword [esi + 4], 2
mov edi, dword [esi + 0x18]
push 4
jne 0x422c14
add edi, 4
push str.IPv4
jmp 0x422c1c
add edi, 8
push str.IPv6
call fcn.0041f3c0
push 0x41
lea eax, [ebp - 0x54]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntop]
lea eax, [ebp - 0x54]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422c36
mov edi, dword [ebp - 0xb0]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x422c46
mov ecx, eax
mov edx, 0x4b9a8c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x43ae70
call fcn.0043aa20
lea edx, [ebp - 0x84]
mov ecx, eax
call fcn.0043ac70
mov edx, 0x4b99e8
mov ecx, eax
call fcn.0043aa20
lea edx, [ebp - 0x54]
mov ecx, eax
call fcn.0043aa20
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x422cb5
inc eax
push eax
push dword [ebp - 0x84]
call fcn.0041f640
mov esi, dword [ebp - 0xac]
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0xac], esi
test esi, esi
jne 0x422be0
mov esi, dword [ebp - 0xa8]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor esi, esi
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x10
jb 0x422ced
inc ecx
push ecx
push dword [ebp - 0x6c]
call fcn.0041f640
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x422d10
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3730
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4c3014]
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 esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x224], edx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x4c62f4]
imul edi, esi, 0x1681
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
push dword [edi + eax + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push str._sGzxItem
push eax
call esi
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x422e0a
push 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x4c62f4]
push dword [edi + eax + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push str._sGzxItem_u.ini
push eax
call esi
mov eax, dword [0x4c62f4]
push dword [edi + eax + 8]
lea eax, [ebp - 0x218]
push 0x4b6b7c
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x228]
push eax
call fcn.0041fff0
test eax, eax
je 0x422e5d
mov eax, dword [eax + 0xc]
jmp 0x422e5f
xor eax, eax
push eax
lea eax, [ebp - 0x21c]
push 0x4b7db0
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
push 0x4b6cd8
push dword [ebp - 0x218]
call esi
push dword [ebp - 0x214]
push ebx
push 0x4b6fec
push dword [ebp - 0x218]
call esi
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x4231e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
mov esi, ecx
xor ecx, ecx
nop
mov eax, ecx
shr eax, 1
test cl, 1
je 0x4231fe
xor eax, 0xedb88320
test al, 1
je 0x42320b
shr eax, 1
xor eax, 0xedb88320
jmp 0x42320d
shr eax, 1
test al, 1
je 0x42321a
shr eax, 1
xor eax, 0xedb88320
jmp 0x42321c
shr eax, 1
test al, 1
je 0x423229
shr eax, 1
xor eax, 0xedb88320
jmp 0x42322b
shr eax, 1
test al, 1
je 0x423238
shr eax, 1
xor eax, 0xedb88320
jmp 0x42323a
shr eax, 1
test al, 1
je 0x423247
shr eax, 1
xor eax, 0xedb88320
jmp 0x423249
shr eax, 1
test al, 1
je 0x423256
shr eax, 1
xor eax, 0xedb88320
jmp 0x423258
shr eax, 1
test al, 1
je 0x423265
shr eax, 1
xor eax, 0xedb88320
jmp 0x423267
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x4231f0
or ecx, 0xffffffff
test edx, edx
je 0x42329c
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [ebp + eax*4 - 0x400]
sub edx, 1
jne 0x423282
not ecx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4232b0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push edi
push 0x288
mov dword [ebp - 8], 0x288
call esi
mov edi, eax
add esp, 4
test edi, edi
jne 0x4232f4
pop edi
mov eax, str.Null
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 8]
push eax
push edi
call ebx
cmp eax, 0x6f
jne 0x42331c
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp - 8]
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x423370
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
jne 0x423362
mov esi, edi
test edi, edi
je 0x423370
nop dword [eax]
lea ebx, [esi + 0x10c]
push str.Intel
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x423386
push str.Realtek
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x423386
mov esi, dword [esi]
test esi, esi
jne 0x423330
test edi, edi
je 0x423370
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop ebx
pop edi
mov eax, str.Null
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x190]
lea ecx, [esi + 0x194]
call fcn.00423180
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x423610
Capabilities:
Get disk information
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x1f0], eax
push esi
push 0x80
lea eax, [esp + 0x174]
mov esi, ecx
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0x80
push 0x7c8558
push 0x4b9ad0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
call fcn.004232b0
push eax
push dword [esp + 8]
call fcn.004233b0
push eax
lea eax, [esp + 0x7c]
push str._d_d_s
push eax
call fcn.0041fb80
add esp, 0x14
test esi, esi
jne 0x42374f
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
lea edx, [ecx + 1]
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4236b1
sub ecx, edx
lea edx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xc]
call fcn.00401d00
add esp, 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x60]
push 8
call fcn.004015a0
mov ecx, dword [esp + 0x1c]
add esp, 4
shr ecx, 3
mov eax, 0x38
and ecx, 0x3f
cmp ecx, 0x38
jb 0x4236f6
mov eax, 0x78
sub eax, ecx
mov edx, 0x4c3458
push eax
lea ecx, [esp + 0xc]
call fcn.00401d00
add esp, 4
lea edx, [esp + 0x60]
lea ecx, [esp + 8]
push 8
call fcn.00401d00
add esp, 4
lea edx, [esp + 8]
lea ecx, [esp + 0x60]
push 0x10
call fcn.004015a0
add esp, 4
lea ecx, [esp + 0x60]
mov edx, 0x10
call fcn.00423180
pop esi
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
push 0x80
push 0
push 0x7c8558
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x7c]
add esp, 0xc
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x423770
sub edx, ecx
lea ecx, [esp + 0x70]
call fcn.004231e0
push eax
push 0x4b7a20
push 0x7c8558
call fcn.0043aea0
mov ecx, dword [esp + 0x200]
add esp, 0xc
mov eax, 0x7c8558
pop esi
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x424b40
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1c
lea eax, [ebp - 0x828]
push eax
push 0x424b00
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [ebp - 0x824]
lea eax, [ebp - 0x804]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x808]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4b7a30
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x4b7a40
push eax
call fcn.0041fb60
add esp, 0x10
push str.ItemName
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x424c50
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
lea eax, [ebp - 0x804]
push 0x4b9af0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x424c4f
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x424c4f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
lea ecx, [ebp - 0x808]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x80c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x425630
Capabilities:
Create directory
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, 0x44
nop dword [eax]
lea eax, [ebp - 0x108]
mov byte [ebp - 0x108], bl
push eax
mov word [ebp - 0x107], 0x5c3a
mov byte [ebp - 0x105], 0
call esi
cmp eax, 3
je 0x425687
inc bl
cmp bl, 0x5a
jle 0x425650
push str.C:LogInfo
push 0x4b6e08
jmp 0x425693
lea eax, [ebp - 0x108]
push eax
push str._sLogInfo
push 0x4c5a88
call fcn.0041fb80
add esp, 0xc
push 0x4c5a88
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x4256bd
push 0
push 0x4c5a88
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044632d
mov esp, ebp
pop ebp
ret