joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012d00
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x338
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x10012ec7
cmp dword [esp + 0x344], ebx
je 0x10012ec7
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [esp + 0x354]
mov dword [esp + 0x2c], eax
mov esi, 0x41
mov dword [esp + 0x10], 0x1a
lea ecx, [esi - 0x41]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
test ecx, eax
je 0x10012eb4
mov edx, dword [esp + 0x34c]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x10012eb4
call fcn.1002f260
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
cmp edx, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x10012e79
cmp edx, 2
je 0x10012e79
cmp edx, 3
je 0x10012e79
xor eax, eax
push esi
mov dword [esp + 0x1d], eax
push str._c:_
mov dword [esp + 0x25], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x29], eax
push 0x10
mov word [esp + 0x31], ax
push ecx
mov byte [esp + 0x28], bl
mov byte [esp + 0x37], al
call fcn.1002a490
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x149]
mov byte [esp + 0x148], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x251]
add esp, 0x10
mov byte [esp + 0x240], bl
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call edi
lea edx, [esp + 0x240]
push 0x105
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x14c]
push 0x105
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebx
call edi
lea edx, [esp + 0x138]
push esi
push edx
push str._s___c:__
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
cmp ebp, ebx
jbe 0x10012eb4
jmp 0x10012e96
push esi
push 0x10050fc4
lea eax, [esp + 0x3c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
cmp ebp, ebx
jbe 0x10012eb4
mov edi, dword [esp + 0x350]
lea ecx, [ebp - 1]
lea edx, [esp + 0x34]
push ecx
push edx
push edi
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
mov byte [edi + ebp - 1], bl
mov eax, dword [esp + 0x10]
inc esi
dec eax
mov dword [esp + 0x10], eax
jne 0x10012d43
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret 0xc
Function at 0x10014710
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x54
xor eax, eax
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x5c]
push esi
push edi
mov esi, 0x1505
mov al, byte [ecx]
inc ecx
test eax, eax
je 0x1001473c
mov edx, esi
shl edx, 5
add eax, edx
add esi, eax
xor eax, eax
mov al, byte [ecx]
inc ecx
test eax, eax
jne 0x1001472a
mov al, byte [esp + 0x64]
mov edx, dword [esp + 0x68]
mov byte [esp + 0x2c], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x30], 0
push ecx
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov cl, byte [esp + 0x64]
push 0
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x50]
push edx
mov dword [esp + 0x50], esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [ebp + 0x10c]
call fcn.10016570
mov edx, dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
mov eax, dword [eax + 4]
push ecx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.10016e10
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x54]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
lea ecx, [esi + 0x10]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
test ecx, ecx
je 0x10014839
mov al, byte [ecx - 1]
test al, al
je 0x1001482f
cmp al, 0xff
je 0x1001482f
dec al
mov byte [ecx - 1], al
add esp, 0x54
ret 8
dec ecx
push ecx
call fcn.10047cb0
add esp, 4
add esp, 0x54
ret 8
Function at 0x10014840
Capabilities:
Hash data using djb2

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0xc
xor eax, eax
mov al, byte [edx]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
inc edx
cmp eax, ebx
mov ecx, 0x1505
je 0x1001486e
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
cmp eax, ebx
jne 0x1001485c
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
lea esi, [edi + 0x10c]
push eax
push ecx
mov ecx, esi
call fcn.10016d30
mov eax, dword [eax]
mov esi, dword [esi + 4]
cmp eax, esi
mov dword [esp + 0xc], eax
je 0x100148a7
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jb 0x100148a7
lea eax, [esp + 0xc]
jmp 0x100148af
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [edi + 0x110]
cmp eax, ecx
je 0x100148ee
mov esi, dword [esp + 0x1c]
mov cl, byte [eax + 0x10]
add eax, 0x10
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
push ecx
push ebx
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov dl, byte [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x20]
mov edi, 0x10056a90
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], dl
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10014945
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x10056a90
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 [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + ecx], 0
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x10020320
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x41c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov edx, dword [esp + 0x428]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x42c]
mov dword [esp + 0x10], ebx
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ebx
push eax
push ecx
push edx
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x430]
lea eax, [esp + 0x118]
push edx
push eax
push str._s_s.lnk
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.1002a490
add esp, 0x14
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 8]
push edx
push 0x10049788
push 1
push ebx
push 0x10049778
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x10020402
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x10049798
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
mov eax, dword [esp + 8]
jge 0x10020431
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x434]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x438]
cmp eax, ebx
je 0x10020455
mov ecx, dword [esp + 8]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
lea eax, [esp + 0x21c]
push 0x104
push eax
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x21c]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
xor eax, eax
pop ebx
add esp, 0x41c
ret
Function at 0x100241d0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi], 0x10049734
call fcn.100242d0
lea edi, [esi + 0x234]
mov ebp, 0x14
xor ebx, ebx
mov eax, dword [edi - 0x14]
sub edi, 0x14
cmp eax, ebx
je 0x10024216
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1002420d
cmp al, 0xff
je 0x1002420d
dec al
mov byte [ecx], al
jmp 0x10024216
push ecx
call fcn.10047cb0
add esp, 4
dec ebp
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jne 0x100241ef
mov eax, dword [esi + 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x1002423a
push eax
call edi
mov dword [esi + 0x98], ebx
mov eax, dword [esi + 8]
mov dword [esi], 0x1004968c
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x100242aa
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100242aa
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x100242aa
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x100242aa
cmp esi, ebx
je 0x100242aa
mov ecx, esi
call fcn.100100f0
push esi
call fcn.10047cb0
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x100242bd
push eax
call edi
mov dword [esi + 0x90], ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100242d0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0xc], bl
je 0x1002437d
mov eax, dword [esi + 8]
mov byte [esi + 0x94], bl
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x1002437d
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1002437d
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x1002437d
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x1002437d
cmp esi, ebx
je 0x1002437d
mov ecx, esi
mov dword [esi], 0x1004968c
mov byte [esi + 0xc], bl
call fcn.10009aa0
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1002436e
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.10047cb0
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10026a10
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x10056a0c]
sub esp, 8
mov eax, dword [ecx + 0x7f0]
mov edx, eax
shr edx, 0xd
test dl, 1
mov edx, eax
jne 0x10026b1a
shr edx, 8
test dl, 1
jne 0x10026a99
mov edx, eax
shr edx, 3
test dl, 1
je 0x10026a99
mov edx, eax
shr edx, 0xa
test dl, 1
je 0x10026a99
shr eax, 1
test al, 1
je 0x10026a99
mov eax, dword [ecx + 0x7f0]
push str.Start_AutoLaunch_for_proxy_mode
or ah, 1
mov dword [ecx + 0x7f0], eax
mov eax, dword [0x10056984]
push eax
call fcn.10028e60
add esp, 8
mov ecx, 0x10056b00
call fcn.10027120
mov ecx, dword [0x10056b04]
push 0
mov dword [0x10056d9c], ecx
call fcn.10026df0
mov ecx, dword [0x10056a0c]
add esp, 4
mov eax, dword [ecx + 0x7f0]
mov edx, eax
shr edx, 9
test dl, 1
jne 0x10026c71
mov edx, eax
shr edx, 3
test dl, 1
je 0x10026c71
mov edx, eax
shr edx, 0xa
test dl, 1
je 0x10026c71
shr eax, 2
test al, 1
je 0x10026c71
mov eax, dword [ecx + 0x7f0]
push str.Start_AutoLaunch_for_nc_mode
or ah, 2
mov dword [ecx + 0x7f0], eax
mov eax, dword [0x10056984]
push eax
call fcn.10028e60
add esp, 8
mov ecx, 0x10056c50
call fcn.10027120
mov ecx, dword [0x10056c54]
push 1
mov dword [0x10056da0], ecx
call fcn.10026df0
add esp, 4
add esp, 8
ret
shr edx, 0xb
test dl, 1
jne 0x10026b84
mov edx, eax
shr edx, 3
test dl, 1
je 0x10026b84
mov edx, eax
shr edx, 0xa
test dl, 1
je 0x10026b84
shr eax, 1
test al, 1
je 0x10026b84
mov eax, dword [ecx + 0x7f0]
push str.Start_AutoLaunch_for_proxy_mode_vsd_
or ah, 8
mov dword [ecx + 0x7f0], eax
mov eax, dword [0x10056984]
push eax
call fcn.10028e60
add esp, 8
mov ecx, 0x10056cf8
call fcn.10027120
mov ecx, dword [0x10056cfc]
push 0
mov dword [0x10056d9c], ecx
call fcn.10026df0
mov ecx, dword [0x10056a0c]
add esp, 4
mov eax, dword [ecx + 0x7f0]
mov edx, eax
shr edx, 0xc
test dl, 1
jne 0x10026c71
mov edx, eax
shr edx, 3
test dl, 1
je 0x10026c71
mov edx, eax
shr edx, 0xa
test dl, 1
je 0x10026c71
shr eax, 2
test al, 1
je 0x10026c71
mov edx, dword [ecx + 0x7f0]
push str.Start_AutoLaunch_for_nc_mode_vsd_
or dh, 0x10
mov dword [ecx + 0x7f0], edx
mov eax, dword [0x10056984]
push eax
call fcn.10028e60
mov al, byte [0x10056bb4]
add esp, 8
test al, al
jne 0x10026c4d
lea ecx, [esp]
mov dword [esp], 0
push ecx
push 0
push 0x10056ba8
push 0x10009b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp]
mov dword [0x10056bb0], eax
test eax, eax
mov dword [0x10056bac], edx
jne 0x10026c5d
push eax
call fcn.1002f6e0
add esp, 4
lea ecx, [esp + 4]
push eax
push 0x10056bb6
push str._comm__create_thread__s__failed:__s
push 0x10050794
call fcn.10030b00
push eax
call fcn.10030b10
add esp, 0x10
jmp 0x10026c5d
mov eax, dword [0x10056c38]
test eax, eax
je 0x10026c5d
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x10056bac]
push 1
mov dword [0x10056da0], eax
call fcn.10026df0
add esp, 4
add esp, 8
ret
Function at 0x10026c80
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x10056b9c]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x10026c98
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp byte [0x10056b0c], bl
je 0x10026cb6
mov eax, dword [0x10056b90]
mov byte [0x10056b0c], bl
cmp eax, ebx
je 0x10026cb6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x10056b08]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x10026d35
push 0x64
push eax
call esi
cmp eax, 0x102
jne 0x10026d35
mov ecx, dword [0x10056b08]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [0x10056b0c], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x10026d35
mov edx, dword [0x10056b08]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [0x10056b08]
push eax
call ebp
mov al, byte [0x10056b0d]
mov dword [0x10056b04], ebx
cmp al, bl
je 0x10026d35
mov ecx, 0x10056b00
test ecx, ecx
je 0x10026d35
push 1
call fcn.10009d80
mov eax, dword [0x10056cec]
cmp eax, ebx
je 0x10026d46
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp byte [0x10056c5c], bl
je 0x10026d64
mov eax, dword [0x10056ce0]
mov byte [0x10056c5c], bl
cmp eax, ebx
je 0x10026d64
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x10056c58]
cmp eax, ebx
je 0x10026dde
push 0x64
push eax
call esi
cmp eax, 0x102
jne 0x10026dde
mov eax, dword [0x10056c58]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [0x10056c5c], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x10026dde
mov ecx, dword [0x10056c58]
push 0xffffffffffffffff
push ecx
call edi
mov edx, dword [0x10056c58]
push edx
call ebp
mov al, byte [0x10056c5d]
mov dword [0x10056c54], ebx
cmp al, bl
je 0x10026dde
mov eax, 0x10056c50
test eax, eax
je 0x10026dde
mov ecx, eax
call fcn.100100f0
push 0x10056c50
call fcn.10047cb0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10027120
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0xc]
test al, al
jne 0x10027189
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x10009b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 4]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 4], ecx
jne 0x1002719a
push eax
call fcn.1002f6e0
add esp, 4
add esi, 0xe
lea ecx, [esp + 8]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x10050794
call fcn.10030b00
push eax
call fcn.10030b10
add esp, 0x10
pop esi
add esp, 8
ret
mov esi, dword [esi + 0x90]
test esi, esi
je 0x1002719a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
add esp, 8
ret
Function at 0x10027230
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
mov byte [0x10056da4], 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10027255
mov byte [0x10056da4], 1
add esp, 0x190
ret

Function at 0x10027290
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
mov dword [0x10056da8], eax
mov eax, dword [esp + 0xc]
cmp eax, 3
ja case.default.0x100272a7
jmp dword [eax*4 + 0x10027354]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10052118
call esi
push str.UIMNG
call fcn.10028ce0
add esp, 4
mov dword [0x10056984], eax
mov dword [0x10068730], eax
push str._cmgtc__DLL_PROCESS_ATTACH_____._n
call esi
mov eax, 1
pop esi
ret 0xc
push str._cmgtc__DLL_THREAD_ATTACH._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret 0xc
push str._cmgtc__DLL_THREAD_DETACH._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x100521a0
call edi
mov ecx, dword [0x10056db4]
test ecx, ecx
je 0x10027341
call fcn.10027790
mov esi, dword [0x10056db4]
test esi, esi
je 0x10027341
mov ecx, esi
call fcn.100275f0
push esi
call fcn.10047cb0
add esp, 4
push str._cmgtc__DLL_PROCESS_DETACH_____._n
call edi
pop edi
mov eax, 1
pop esi
ret 0xc

Function at 0x10027d20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, ecx
test ebp, ebp
push esi
je 0x10027d34
mov eax, dword [ebp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x1505
mov al, byte [edx]
inc edx
test eax, eax
je 0x10027d58
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
test eax, eax
jne 0x10027d46
xor eax, eax
lea esi, [ebp + 4]
mov edx, dword [esi]
test edx, edx
je 0x10027da1
cmp ecx, edx
je 0x10027d85
inc eax
add esi, 0x28
cmp eax, 0x14
jl 0x10027d5d
test ebp, ebp
je 0x10027d7e
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
xor eax, eax
pop ebp
ret 4
lea ecx, [eax + eax*4]
test ebp, ebp
lea esi, [ebp + ecx*8 + 4]
je 0x10027d9a
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, 0x14
jge 0x10027d70
lea eax, [eax + eax*4]
push ebx
push edi
mov ecx, 8
lea ebx, [ebp + eax*8]
xor eax, eax
lea esi, [ebx + 8]
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x10052240
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add ebx, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10027e08
mov al, byte [esi]
inc esi
test eax, eax
mov ecx, 0x1505
je 0x10027e06
mov edx, ecx
shl edx, 5
add eax, edx
add ecx, eax
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
jne 0x10027df4
mov dword [ebx], ecx
test ebp, ebp
je 0x10027e16
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 4