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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x40dfd9
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.0042a51d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a2014]
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 0x40e03c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
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 0x40e0a5
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 0x40e0b7
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 0x40e102
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40e102
push 0x30
push ebx
call fcn.0042a998
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
cmp dword [edi + 8], 1
jne 0x40e133
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jg 0x40e125
push 1
call ebx
cmp dword [edi + 8], 1
je 0x40e110
jmp 0x40e133
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.0042a51d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40e150
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 [0x4a2014]
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 0x40e18d
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
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 0x40e178
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 0x40e178
cmp byte [ebp - 0x404], 0
jne 0x40e178
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.0042a51d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e260
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 [0x4a2014]
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 0x40e2c6
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
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 0x40e3d9
cmp byte [ebp - 0x404], 5
jne 0x40e3d9
mov al, byte [ebp - 0x403]
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 2
jne 0x40e3ef
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 0x40e3d9
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 0x40e3d9
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x408]
test eax, eax
jle 0x40e3d9
cmp byte [ebp - 0x403], 0
je 0x40e3f5
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
mov esp, ebp
pop ebp
ret 0x10
test al, al
jne 0x40e3d9
jmp 0x40e3fb
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 0x40e3d9
push 0xc8
call ebx
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call esi
test eax, eax
jle 0x40e3d9
cmp byte [ebp - 0x404], 5
jne 0x40e3d9
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.0042a51d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e720
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x40e749
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
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.0042a51d
mov esp, ebp
pop ebp
ret

Function at 0x40e9d0
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 [0x4a2014]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [0x4a2720], 0x200
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40ea28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0042a51d
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 [0x4a3a08], 0x414260
mov dword [0x4a3a00], 0x4151d0
call esi
mov dword [0x4a3a10], eax
push 0
test eax, eax
je 0x40ea69
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x4a3a04], eax
test eax, eax
jne 0x40ea8c
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.0042a51d
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 [0x4a3a0c], eax
test eax, eax
jle 0x40eaf7
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 0x40e790
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x40e8d0
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x4a3a0c]
jl 0x40eac0
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a51d
mov esp, ebp
pop ebp
ret 4

Function at 0x40ebb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x40ec04
push esi
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x40ebfd
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.0042a51d
mov esp, ebp
pop ebp
ret
Function at 0x40f5f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486e43
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4a2014]
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 0x40f640
xor ecx, ecx
jmp 0x40f64c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f643
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.0041e570
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 0x40f6b2
mov esi, 2
jmp 0x40f7cb
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0xac], esi
test esi, esi
je 0x40f7c2
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 0x40f704
add edi, 4
push str.IPv4
jmp 0x40f70c
add edi, 8
push str.IPv6
call fcn.0041e570
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 0x40f726
mov edi, dword [ebp - 0xb0]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f736
mov ecx, eax
mov edx, 0x4995fc
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 0x41f230
call fcn.0041ede0
lea edx, [ebp - 0x84]
mov ecx, eax
call fcn.0041f030
mov edx, 0x499550
mov ecx, eax
call fcn.0041ede0
lea edx, [ebp - 0x54]
mov ecx, eax
call fcn.0041ede0
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 0x40f7a5
inc eax
push eax
push dword [ebp - 0x84]
call fcn.0041eaa0
mov esi, dword [ebp - 0xac]
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0xac], esi
test esi, esi
jne 0x40f6d0
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 0x40f7dd
inc ecx
push ecx
push dword [ebp - 0x6c]
call fcn.0041eaa0
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.0042a51d
mov esp, ebp
pop ebp
ret
Function at 0x40f8d0
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 0x40f8ee
xor eax, 0xedb88320
test al, 1
je 0x40f8fb
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f8fd
shr eax, 1
test al, 1
je 0x40f90a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f90c
shr eax, 1
test al, 1
je 0x40f919
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f91b
shr eax, 1
test al, 1
je 0x40f928
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f92a
shr eax, 1
test al, 1
je 0x40f937
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f939
shr eax, 1
test al, 1
je 0x40f946
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f948
shr eax, 1
test al, 1
je 0x40f955
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f957
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x40f8e0
or ecx, 0xffffffff
test edx, edx
je 0x40f98c
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 0x40f972
not ecx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f9a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2014]
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 0x40f9e4
pop edi
mov eax, str.Null
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
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 0x40fa0c
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 0x40fa60
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
jne 0x40fa52
mov esi, edi
test edi, edi
je 0x40fa60
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 0x40fa76
push str.Realtek
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x40fa76
mov esi, dword [esi]
test esi, esi
jne 0x40fa20
test edi, edi
je 0x40fa60
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.0042a51d
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x190]
lea ecx, [esi + 0x194]
call fcn.0040f870
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0042a51d
mov esp, ebp
pop ebp
ret
Function at 0x40fd00
Capabilities:
Get disk information
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x4a2014]
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 0x7a6a80
push 0x499640
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
call fcn.0040f9a0
push eax
push dword [esp + 8]
call fcn.0040faa0
push eax
lea eax, [esp + 0x7c]
push str._d_d_s
push eax
call fcn.0040cae0
add esp, 0x14
test esi, esi
jne 0x40fe3f
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 0x40fda1
sub ecx, edx
lea edx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xc]
call fcn.00401ca0
add esp, 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x60]
push 8
call fcn.00401540
mov ecx, dword [esp + 0x1c]
add esp, 4
shr ecx, 3
mov eax, 0x38
and ecx, 0x3f
cmp ecx, 0x38
jb 0x40fde6
mov eax, 0x78
sub eax, ecx
mov edx, 0x4a2458
push eax
lea ecx, [esp + 0xc]
call fcn.00401ca0
add esp, 4
lea edx, [esp + 0x60]
lea ecx, [esp + 8]
push 8
call fcn.00401ca0
add esp, 4
lea edx, [esp + 8]
lea ecx, [esp + 0x60]
push 0x10
call fcn.00401540
add esp, 4
lea ecx, [esp + 0x60]
mov edx, 0x10
call fcn.0040f870
pop esi
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0042a51d
mov esp, ebp
pop ebp
ret
push 0x80
push 0
push 0x7a6a80
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 0x40fe60
sub edx, ecx
lea ecx, [esp + 0x70]
call fcn.0040f8d0
push eax
push 0x4990c4
push 0x7a6a80
call fcn.0041f260
mov ecx, dword [esp + 0x200]
add esp, 0xc
mov eax, 0x7a6a80
pop esi
xor ecx, esp
call fcn.0042a51d
mov esp, ebp
pop ebp
ret
Function at 0x410880
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 [0x4a2014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1c
lea eax, [ebp - 0x828]
push eax
push 0x410840
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 0x4990d4
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x4990e4
push eax
call fcn.0040cb00
add esp, 0x10
push str.ItemName
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x410990
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 0x499660
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 0x41098f
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 0x41098f
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.0042a51d
mov esp, ebp
pop ebp
ret

Function at 0x4109c0
Capabilities:
Create directory
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a2014]
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 0x410a17
inc bl
cmp bl, 0x5a
jle 0x4109e0
push str.C:LogInfo
push 0x49967c
jmp 0x410a23
lea eax, [ebp - 0x108]
push eax
push str._sLogInfo
push 0x4a46d0
call fcn.0040cae0
add esp, 0xc
push 0x4a46d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x410a4d
push 0
push 0x4a46d0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a51d
mov esp, ebp
pop ebp
ret
Function at 0x4120f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 4]
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
sub ebx, eax
nop dword [eax]
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x18]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x18], eax
inc esi
cmp esi, 4
jl 0x412120
mov ebx, dword [ebp - 8]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x412144
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4137a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4a2014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a3b08], 0
push esi
mov esi, ecx
jne 0x4137d0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a51d
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x824]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov byte [ebp - 7], 0
movups xmmword [ebp - 0x23], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x13], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x824]
push 0x498ba8
push eax
call fcn.0040cb00
push esi
lea eax, [ebp - 0x24]
push 0x498a6c
push eax
call fcn.0040cb20
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
je 0x413881
cmp eax, 3
je 0x413881
cmp eax, 4
je 0x413881
cmp eax, 5
jne 0x4137bf
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0042a51d
mov esp, ebp
pop ebp
ret