joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009a10
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x10009a4d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10009a33
cmp byte [esi], bl
jne 0x10009a33
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x100327e8]
test bl, bl
jne 0x10009a24
pop edi
pop esi
not ecx
pop ebx
jmp fcn.100099a0
Function at 0x100147d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x524c], 0
lea esi, [edi + 0x5250]
je 0x10014852
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001480c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10016c10
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10004200
mov edx, dword [esi]
mov ecx, 0x1003a560
push dword [edi + 0x524c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5258]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10004200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10014d20
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1003a568]
test bl, bl
je 0x10014d66
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10014d47
cmp byte [esi], bl
jne 0x10014d47
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100327e8]
test bl, bl
jne 0x10014d38
mov edi, dword [0x1003a568]
mov esi, dword [edi + 0x5210]
xor ecx, ecx
not eax
test esi, esi
jle 0x10014d8c
mov edi, dword [edi + 0x5218]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10014d92
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10014d80
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x1001e440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001e47c
mov eax, dword [0x1003a568]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1001e466
dec dword [eax + 0xa8]
push dword [0x1003a564]
push ecx
call fcn.10003630
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1001e4b6
mov eax, dword [0x1003a568]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1001e4a0
dec dword [eax + 0xa8]
push dword [0x1003a564]
push ecx
call fcn.10003630
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1001e4f0
mov eax, dword [0x1003a568]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1001e4da
dec dword [eax + 0xa8]
push dword [0x1003a564]
push ecx
call fcn.10003630
add esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001e546
mov eax, dword [0x1003a568]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1001e530
dec dword [eax + 0xa8]
push dword [0x1003a564]
push ecx
call fcn.10003630
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1001e580
mov eax, dword [0x1003a568]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1001e56a
dec dword [eax + 0xa8]
push dword [0x1003a564]
push ecx
call fcn.10003630
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1001e5ba
mov eax, dword [0x1003a568]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1001e5a4
dec dword [eax + 0xa8]
push dword [0x1003a564]
push ecx
call fcn.10003630
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10020d40
Function at 0x1002ea40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1002fd80
mov eax, dword [0x1003a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.10016c90
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x1004]
push eax
push 0x1003731c
call fcn.1002eb90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
Function at 0x100a66e0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100a68a4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x63000]
push edi
jmp 0x100a670a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100a6711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a6700
mov eax, 1
add ebx, ebx
jne 0x100a6723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100a6718
jne 0x100a6734
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100a6718
xor ecx, ecx
sub eax, 3
jb 0x100a6748
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100a67ba
mov ebp, eax
add ebx, ebx
jne 0x100a6753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100a6760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100a6784
inc ecx
add ebx, ebx
jne 0x100a6770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100a6765
jne 0x100a6781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100a6765
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100a67a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100a6795
jmp 0x100a6706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100a67a4
add edi, ecx
jmp 0x100a6706
pop esi
mov edi, esi
mov ecx, 0xe21
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100a67c2
cmp byte [edi], 0x12
jne 0x100a67c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100a67c7
lea edi, [esi + 0xa3000]
mov eax, dword [edi]
or eax, eax
je 0x100a6836
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa63d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa6430]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100a67f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa6434]
or eax, eax
je 0x100a6830
mov dword [ebx], eax
add ebx, 4
jmp 0x100a6811
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100a6867
cmp al, 0xef
ja 0x100a685a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100a683c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100a6849
mov ebp, dword [esi + 0xa6438]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100a689b
sub esp, 0xffffff80
jmp 0x10006d8b
Function at 0x4010de
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x40601c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x404284
mov esi, str.P3w8SQdeGmgWXjl9MG5xEThfmhybm0sOFB0OXk3D3Nhb1ZvZhReak9LWA
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401147
push ebx
push esi
lea ecx, [ebp - 0x20]
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__]
lea eax, [ebp - 0x20]
push eax
call fcn.004019e2
mov dword [esp], str.QK_INATALL_MUTEX
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401157
lea ecx, [ebp - 0x20]
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_]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402599
leave
ret 0x10
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4064e8
push 0x67
push edi
call esi
push 0x64
push 0x406420
push 0x6d
push edi
call esi
mov eax, edi
call fcn.004011df
mov eax, edi
call fcn.0040124d
test eax, eax
jne 0x401194
lea ecx, [ebp - 0x20]
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_]
mov eax, ebx
jmp 0x401146
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
jmp 0x4011cd
lea eax, [ebp - 0x3c]
push eax
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4011cd
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call esi
test eax, eax
jne 0x4011a7
mov ebx, dword [ebp - 0x34]
jmp 0x401187

Function at 0x40124d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push eax
push esi
push esi
push 0x3c
push 0x8c
push esi
push esi
push 0x80800000
push str.7K7K
push 0x406420
push 0x80
mov dword [0x40641c], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x406418], eax
cmp eax, esi
jne 0x40128d
xor eax, eax
jmp 0x4012ad
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x4014e9
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40138b
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19004]
mov eax, 0x19004
call fcn.00403050
push 0xffffffffffffffff
push 0x4030f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x40601c]
xor eax, ebp
mov dword [ebp + 0x19000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
push esi
xor edi, edi
push str.7k7k
mov dword [ebp - 4], esi
inc edi
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp + 0x19024], 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x19010]
jae 0x4013f7
lea eax, [ebp + 0x19010]
push esi
push 0x80000000
push esi
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x401412
xor edi, edi
cmp dword [ebp + 0x19040], 8
mov eax, dword [ebp + 0x1902c]
jae 0x401427
lea eax, [ebp + 0x1902c]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x40144c
xor edi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], esi
jmp 0x40148d
cmp dword [ebp - 0x10], esi
jbe 0x401491
lea eax, [ebp - 0x10]
push eax
push 0x19000
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
cmp dword [ebp - 0x10], esi
jbe 0x40148d
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, esi
jne 0x401458
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x1900c]
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_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x19028]
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_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x19000]
xor ecx, ebp
call fcn.00402599
add ebp, 0x19004
leave
ret
Function at 0x4017eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x40601c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x808], 0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 5
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4042d4
lea eax, [ebp - 0x804]
push 0x400
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
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 ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00402599
leave
ret

Function at 0x4022c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x4022ea
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
xor edx, edx
mov eax, esi
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov al, byte [edx + eax]
xor byte [ecx], al
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4022cf
pop esi
pop ebp
ret 0x10

Function at 0x40240e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 2
xor edx, edx
lea ecx, [edx + edi]
mov al, byte [ecx]
cmp al, 0x41
jb 0x402431
cmp al, 0x5a
ja 0x402431
sub al, 0x41
jmp 0x402447
cmp al, 0x61
jb 0x40243d
cmp al, 0x7a
ja 0x40243d
sub al, 0x47
jmp 0x402447
cmp al, 0x30
jb 0x40244b
cmp al, 0x39
ja 0x40244b
add al, 4
mov byte [ecx], al
jmp 0x402464
cmp al, 0x2b
jne 0x402454
mov byte [ecx], 0x3e
jmp 0x402464
cmp al, 0x2f
jne 0x40245d
mov byte [ecx], 0x3f
jmp 0x402464
cmp al, 0x3d
jne 0x402464
mov byte [ecx], 0
inc edx
cmp edx, 4
jl 0x402420
mov eax, dword [ebp + 8]
lea ecx, [edi + 1]
mov edx, ecx
sub edi, ecx
sub edx, eax
mov dword [ebp + 8], 3
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 2
lea esi, [edx + eax]
mov bl, byte [esi + edi]
shl bl, cl
mov cl, 8
sub cl, byte [ebp - 4]
mov byte [eax], bl
mov bl, byte [esi]
shr bl, cl
or byte [eax], bl
inc eax
dec dword [ebp + 8]
jne 0x40247d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402599
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40601c]
jne 0x4025a3
repz ret
jmp fcn.004029e2
Function at 0x6c951d31
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [esi + 0x7138]
xor ebx, ebx
mov word [ebp - 0x24], ax
lea eax, [esi + 0x71a0]
push ebx
push eax
lea eax, [ebp - 4]
push 0x2253
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], ebx
mov dword [esi + 8], ebx
call fcn.6c951a16
test eax, eax
jne 0x6c951d97
push dword [esi + 0x10]
mov dword [ebp - 0xc], 0x80004005
mov dword [esi + 0x7184], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x10]
lea edi, [esi + 0x713c]
push eax
lea eax, [esi + 0x7140]
push eax
mov dword [edi], 0x10
mov dword [ebp - 0x10], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [edi]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [esi + 8], 1
xor eax, eax
movzx ecx, byte [esi + eax + 0x7044]
add edi, ecx
inc eax
cmp eax, 0x7c
jb 0x6c951dda
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x4b
xor edx, edx
pop ecx
mov dword [ebp - 0x14], eax
div ecx
push 0x4b
mov eax, edi
pop ebx
push 1
mov ecx, edx
xor edx, edx
div ebx
mov eax, dword [ebp - 0x14]
inc ecx
mov ebx, 0xeb
inc edx
imul ecx, edx
xor edx, edx
add ecx, 0x7d0
div ebx
mov eax, edi
mov edi, 0xeb
mov word [esi + 0x718c], cx
mov ebx, edx
xor edx, edx
div edi
inc ebx
lea eax, [esi + 0x71cc]
inc edx
imul ebx, edx
mov word [esi + 0x718e], bx
xor ebx, ebx
push ebx
push ecx
push ebx
push eax
mov ecx, esi
call fcn.6c951a16
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x7180], ebx
jne 0x6c951d8f
lea eax, [ebp - 8]
lea edi, [esi + 0x71a0]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 8], 0x800
push dword [edi]
call fcn.6c954c01
cmp eax, ebx
jne 0x6c951f15
mov eax, dword [ebp - 0x824]
cmp eax, 0x6172794b
jne 0x6c951ed5
cmp dword [ebp - 0x820], 0x6c6c6148
jne 0x6c951ed5
push dword [ebp - 0x81c]
mov ecx, esi
call fcn.6c9515f0
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x824]
push dword [ebp - 8]
push eax
call fcn.6c95468b
jmp 0x6c951e5a
cmp ax, 0x4841
je 0x6c951eeb
cmp ax, 0x484b
je 0x6c951eeb
cmp ax, 0x484a
jne 0x6c951e5a
push dword [ebp - 0x81c]
mov ecx, esi
call fcn.6c9515f0
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x824]
push dword [ebp - 8]
push eax
call fcn.6c9538eb
jmp 0x6c951e5a
mov ecx, esi
mov dword [esi + 0x7180], 1
call fcn.6c9519ee
cmp dword [edi], 0xffffffff
jne 0x6c951f34
push 2
push dword [edi]
call fcn.6c954b00
mov ecx, esi
mov dword [edi], 0xffffffff
call fcn.6c9519fc
jmp 0x6c951e5a
Function at 0x6c954264
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
je 0x6c9542ce
cmp dword [esi + 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x6c954290
call edi
mov ecx, dword [esi + 0xc]
add ecx, 0x7d0
cmp eax, ecx
jb 0x6c9542ce
mov ax, word [esi + 0x718e]
mov dword [esi + 0xc], ebx
mov word [ebp - 0x14], 0x484b
mov word [ebp - 0x10], bx
mov word [ebp - 0xe], bx
mov word [ebp - 0xa], 8
mov word [ebp - 0x12], ax
mov dword [ebp - 8], 0xc
call edi
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push 0x14
push eax
mov ecx, esi
call fcn.6c952418
pop edi
pop esi
pop ebx
leave
ret

Function at 0x6c9549c5
Capabilities:
Initialize winsock library

Disassembly:
and dword [0x6c95a240], 0
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x6c9549ef
mov dword [0x6c95a240], 1
add esp, 0x190
ret

Function at 0x6c9549f6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x6c95a240], 0
push esi
mov dword [ebp - 4], 1
jne 0x6c954a12
push 0x276d
jmp 0x6c954a1f
mov esi, dword [ebp + 0x10]
cmp dword [esi], 0xffffffff
je 0x6c954a27
push 0x2740
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6c954a62
push dword [ebp + 0xc]
push 2
push dword [ebp + 8]
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x6c954a62
lea ecx, [ebp - 4]
push 4
push ecx
push 0x20
push pe_overlay
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x6c954a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [esi]
call fcn.6c954b00
xor eax, eax
jmp 0x6c954a69
push 1
pop eax
pop esi
leave
ret 0xc

Function at 0x6c9552f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x6c95539c
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x6c95a2a8], eax
call fcn.6c955a00
test eax, eax
jne 0x6c955314
ret 0xc
mov ecx, dword [0x6c95a2a8]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x6c95a2b4], edx
mov dword [0x6c95a2b0], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x6c95a2ac], eax
mov dword [0x6c95a2a8], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6c95a790], eax
call fcn.6c956310
mov ecx, dword [0x6c95a790]
mov dword [0x6c95a28c], eax
test ecx, ecx
je 0x6c955392
test eax, eax
je 0x6c955392
call fcn.6c9557d0
call fcn.6c956300
call fcn.6c955b70
call fcn.6c955a80
call fcn.6c9556a0
mov eax, dword [0x6c95a288]
inc eax
mov dword [0x6c95a288], eax
mov eax, 1
ret 0xc
call fcn.6c955a40
xor eax, eax
ret 0xc
test eax, eax
jne 0x6c9553d7
mov eax, dword [0x6c95a288]
test eax, eax
jle 0x6c9553d2
mov ecx, eax
mov eax, dword [0x6c95a2e0]
dec ecx
test eax, eax
mov dword [0x6c95a288], ecx
jne 0x6c9553c0
call fcn.6c9556f0
call fcn.6c9559d0
call fcn.6c955a40
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
mov eax, 1
ret 0xc
Function at 0x6c955700
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x6c95a2e4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x6c95571f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x6c95a2e0], 1
mov byte [0x6c95a2dc], bl
jne 0x6c955779
mov ecx, dword [0x6c95a788]
test ecx, ecx
je 0x6c955767
mov esi, dword [0x6c95a784]
sub esi, 4
cmp esi, ecx
jb 0x6c955767
mov eax, dword [esi]
test eax, eax
je 0x6c955760
call eax
mov ecx, dword [0x6c95a788]
sub esi, 4
cmp esi, ecx
jae 0x6c955752
push 0x6c958014
push 0x6c958010
call fcn.6c9557b0
add esp, 8
push 0x6c95801c
push 0x6c958018
call fcn.6c9557b0
add esp, 8
test ebx, ebx
jne 0x6c9557a0
push ebp
mov dword [0x6c95a2e4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret