joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f020
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 [0x4a4014]
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 0x40f05d
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b8bd
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 0x40f048
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 0x40f048
cmp byte [ebp - 0x404], 0
jne 0x40f048
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.0042b8bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f130
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 [0x4a4014]
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 0x40f196
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b8bd
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 0x40f2a9
cmp byte [ebp - 0x404], 5
jne 0x40f2a9
mov al, byte [ebp - 0x403]
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 2
jne 0x40f2bf
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 0x40f2a9
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 0x40f2a9
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x408]
test eax, eax
jle 0x40f2a9
cmp byte [ebp - 0x403], 0
je 0x40f2c5
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret 0x10
test al, al
jne 0x40f2a9
jmp 0x40f2cb
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 0x40f2a9
push 0xc8
call ebx
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call esi
test eax, eax
jle 0x40f2a9
cmp byte [ebp - 0x404], 5
jne 0x40f2a9
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.0042b8bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f5f0
Capabilities:
Set socket configuration

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

Function at 0x40f8a0
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 [0x4a4014]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [0x4a4720], 0x200
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40f8f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0042b8bd
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 [0x4a5a08], 0x4151c0
mov dword [0x4a5a00], 0x416130
call esi
mov dword [0x4a5a10], eax
push 0
test eax, eax
je 0x40f939
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x4a5a04], eax
test eax, eax
jne 0x40f95c
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.0042b8bd
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 [0x4a5a0c], eax
test eax, eax
jle 0x40f9c7
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 0x40f660
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x40f7a0
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x4a5a0c]
jl 0x40f990
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret 4

Function at 0x40fa80
Capabilities:
Set socket configuration

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488243
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4a4014]
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 0x410510
xor ecx, ecx
jmp 0x41051c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410513
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.0041f910
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 0x410582
mov esi, 2
jmp 0x41069b
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0xac], esi
test esi, esi
je 0x410692
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 0x4105d4
add edi, 4
push str.IPv4
jmp 0x4105dc
add edi, 8
push str.IPv6
call fcn.0041f910
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 0x4105f6
mov edi, dword [ebp - 0xb0]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410606
mov ecx, eax
mov edx, 0x49b66c
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 0x4205d0
call fcn.00420180
lea edx, [ebp - 0x84]
mov ecx, eax
call fcn.004203d0
mov edx, 0x49b5c0
mov ecx, eax
call fcn.00420180
lea edx, [ebp - 0x54]
mov ecx, eax
call fcn.00420180
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 0x410675
inc eax
push eax
push dword [ebp - 0x84]
call fcn.0041fe40
mov esi, dword [ebp - 0xac]
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0xac], esi
test esi, esi
jne 0x4105a0
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 0x4106ad
inc ecx
push ecx
push dword [ebp - 0x6c]
call fcn.0041fe40
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.0042b8bd
mov esp, ebp
pop ebp
ret
Function at 0x4107a0
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 0x4107be
xor eax, 0xedb88320
test al, 1
je 0x4107cb
shr eax, 1
xor eax, 0xedb88320
jmp 0x4107cd
shr eax, 1
test al, 1
je 0x4107da
shr eax, 1
xor eax, 0xedb88320
jmp 0x4107dc
shr eax, 1
test al, 1
je 0x4107e9
shr eax, 1
xor eax, 0xedb88320
jmp 0x4107eb
shr eax, 1
test al, 1
je 0x4107f8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4107fa
shr eax, 1
test al, 1
je 0x410807
shr eax, 1
xor eax, 0xedb88320
jmp 0x410809
shr eax, 1
test al, 1
je 0x410816
shr eax, 1
xor eax, 0xedb88320
jmp 0x410818
shr eax, 1
test al, 1
je 0x410825
shr eax, 1
xor eax, 0xedb88320
jmp 0x410827
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x4107b0
or ecx, 0xffffffff
test edx, edx
je 0x41085c
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 0x410842
not ecx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410870
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a4014]
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 0x4108b4
pop edi
mov eax, str.Null
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b8bd
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 0x4108dc
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 0x410930
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
jne 0x410922
mov esi, edi
test edi, edi
je 0x410930
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 0x410946
push str.Realtek
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x410946
mov esi, dword [esi]
test esi, esi
jne 0x4108f0
test edi, edi
je 0x410930
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.0042b8bd
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x190]
lea ecx, [esi + 0x194]
call fcn.00410740
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret
Function at 0x410bd0
Capabilities:
Get disk information
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x4a4014]
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 0x7a8ab8
push 0x49b6b0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
call fcn.00410870
push eax
push dword [esp + 8]
call fcn.00410970
push eax
lea eax, [esp + 0x7c]
push str._d_d_s
push eax
call fcn.0040d9b0
add esp, 0x14
test esi, esi
jne 0x410d0f
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 0x410c71
sub ecx, edx
lea edx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xc]
call fcn.00401ce0
add esp, 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x60]
push 8
call fcn.00401580
mov ecx, dword [esp + 0x1c]
add esp, 4
shr ecx, 3
mov eax, 0x38
and ecx, 0x3f
cmp ecx, 0x38
jb 0x410cb6
mov eax, 0x78
sub eax, ecx
mov edx, 0x4a4458
push eax
lea ecx, [esp + 0xc]
call fcn.00401ce0
add esp, 4
lea edx, [esp + 0x60]
lea ecx, [esp + 8]
push 8
call fcn.00401ce0
add esp, 4
lea edx, [esp + 8]
lea ecx, [esp + 0x60]
push 0x10
call fcn.00401580
add esp, 4
lea ecx, [esp + 0x60]
mov edx, 0x10
call fcn.00410740
pop esi
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret
push 0x80
push 0
push 0x7a8ab8
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 0x410d30
sub edx, ecx
lea ecx, [esp + 0x70]
call fcn.004107a0
push eax
push 0x49b134
push 0x7a8ab8
call fcn.00420600
mov ecx, dword [esp + 0x200]
add esp, 0xc
mov eax, 0x7a8ab8
pop esi
xor ecx, esp
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret
Function at 0x411750
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 [0x4a4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1c
lea eax, [ebp - 0x828]
push eax
push 0x411710
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 0x49b144
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x49b154
push eax
call fcn.0040d9d0
add esp, 0x10
push str.ItemName
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x411860
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 0x49b6d0
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 0x41185f
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 0x41185f
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.0042b8bd
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a4014]
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 0x411977
inc bl
cmp bl, 0x5a
jle 0x411940
push str.C:LogInfo
push 0x49b728
jmp 0x411983
lea eax, [ebp - 0x108]
push eax
push str._sLogInfo
push 0x4a66d0
call fcn.0040d9b0
add esp, 0xc
push 0x4a66d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x4119ad
push 0
push 0x4a66d0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret
Function at 0x413050
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 0x413080
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 0x4130a4
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 0x414700
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4a4014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a5b08], 0
push esi
mov esi, ecx
jne 0x414730
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b8bd
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 0x49abc8
push eax
call fcn.0040d9d0
push esi
lea eax, [ebp - 0x24]
push 0x49aa8c
push eax
call fcn.0040d9f0
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0x49ac88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
je 0x4147e1
cmp eax, 3
je 0x4147e1
cmp eax, 4
je 0x4147e1
cmp eax, 5
jne 0x41471f
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret
Function at 0x4161f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8fc
mov eax, dword [0x4a4014]
xor eax, esp
mov dword [esp + 0x8f8], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x104]
mov dword [esp + 0x1c], edx
push 0
push eax
mov dword [esp + 0x28], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x500]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x100]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x504]
push 0x49abc8
push eax
call fcn.0040d9d0
add esp, 0xc
lea eax, [esp + 0x100]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x20]
push eax
call fcn.0040dc90
test eax, eax
je 0x4162bc
mov ebx, dword [eax]
mov dword [esp + 0x10], ebx
jmp 0x4162c4
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040dc90
test eax, eax
je 0x4162df
mov ebx, dword [eax + 4]
mov dword [esp + 0x14], ebx
jmp 0x4162e7
mov dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x24]
call fcn.0040dc90
test eax, eax
je 0x4162fe
mov ebx, dword [eax + 8]
jmp 0x416301
or ebx, 0xffffffff
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x24]
call fcn.0040dc90
test eax, eax
je 0x41631b
mov edi, dword [eax + 0xc]
jmp 0x41631d
xor edi, edi
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x24]
call fcn.0040dc90
test eax, eax
je 0x416338
mov esi, dword [eax + 0x10]
inc esi
jmp 0x41633a
xor esi, esi
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x24]
call fcn.0040dc90
test eax, eax
je 0x416359
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x41635b
xor eax, eax
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push ebx
push edi
push esi
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x120]
push str._u_____d__d__d__d__d__d_____s_n
push eax
call fcn.0040d9d0
lea eax, [esp + 0x528]
push 0x49bd0c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x30
test esi, esi
je 0x4163bd
lea eax, [esp + 0x100]
push eax
push 0x49b728
push esi
call fcn.00420c70
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x904]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b8bd
mov esp, ebp
pop ebp
ret