joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb3b0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, edx
lea ebp, [esp + 4]
push 6
push ebp
push ecx
call sym.adb.exe_CBS_get_asn1
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4bb4f2
mov dword [esp], esi
push ebp
call sym.adb.exe_CBS_len
add esp, 4
movzx ebx, byte [0x57a7e1]
cmp eax, ebx
jne 0x4bb41e
mov esi, eax
push ebp
call sym.adb.exe_CBS_data
add esp, 4
mov ecx, 0x57a7d4
test bl, bl
je 0x4bb4e6
push esi
push 0x57a7d8
push eax
call sub.msvcrt.dll_memcmp
mov ecx, 0x57a7d4
add esp, 0xc
test eax, eax
je 0x4bb4e6
push ebp
call sym.adb.exe_CBS_len
add esp, 4
movzx ebx, byte [0x57a5c1]
cmp eax, ebx
jne 0x4bb466
mov esi, eax
push ebp
call sym.adb.exe_CBS_data
add esp, 4
mov ecx, 0x57a5b4
test bl, bl
je 0x4bb4e6
push esi
push 0x57a5b8
push eax
call sub.msvcrt.dll_memcmp
mov ecx, 0x57a5b4
add esp, 0xc
test eax, eax
je 0x4bb4e6
push ebp
call sym.adb.exe_CBS_len
add esp, 4
movzx ebx, byte [0x57a4ed]
cmp eax, ebx
jne 0x4bb4a6
mov esi, eax
push ebp
call sym.adb.exe_CBS_data
add esp, 4
mov ecx, 0x57a4e0
test bl, bl
je 0x4bb4e6
push esi
push 0x57a4e4
push eax
call sub.msvcrt.dll_memcmp
mov ecx, 0x57a4e0
add esp, 0xc
test eax, eax
je 0x4bb4e6
push ebp
call sym.adb.exe_CBS_len
add esp, 4
movzx ebx, byte [0x57a699]
cmp eax, ebx
jne 0x4bb4f2
mov esi, eax
push ebp
call sym.adb.exe_CBS_data
add esp, 4
mov ecx, 0x57a68c
test bl, bl
je 0x4bb4e6
push esi
push 0x57a690
push eax
call sub.msvcrt.dll_memcmp
mov ecx, 0x57a68c
add esp, 0xc
test eax, eax
jne 0x4bb4f2
mov eax, dword [ecx]
mov edx, dword [esp]
mov edi, 1
mov dword [edx], eax
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4be780
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
test edi, edi
je 0x4be7d6
xor ebp, ebp
nop word [eax + eax]
inc ecx
movzx ecx, cl
mov esi, dword [eax + ecx*4 + 8]
add edx, esi
movzx edx, dl
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, esi
mov dword [eax + edx*4 + 8], esi
movzx esi, bl
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [ebx + ebp]
xor bl, byte [eax + esi*4 + 8]
mov esi, dword [esp + 0x20]
mov byte [esi + ebp], bl
inc ebp
cmp edi, ebp
jne 0x4be7a0
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4cce40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
push ebx
call sym.adb.exe_EVP_MD_size
add esp, 4
lea ebp, [esp + 0x58]
mov dword [esp + 8], eax
push ebp
call sym.adb.exe_HMAC_CTX_init
add esp, 4
push 0
push ebx
push edi
push esi
push ebp
call sym.adb.exe_HMAC_Init_ex
add esp, 0x14
xor ebx, ebx
test eax, eax
je 0x4cd07a
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x4cd067
mov ebx, dword [esp + 0xbc]
mov edx, 1
mov esi, dword [esp + 8]
mov eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
cmp esi, ecx
cmova esi, ecx
shr eax, 0x18
mov byte [esp + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 5], al
mov byte [esp + 6], dh
mov byte [esp + 7], dl
push 0
push 0
push 0
push 0
push ebp
call sym.adb.exe_HMAC_Init_ex
add esp, 0x14
test eax, eax
mov edi, ebp
je 0x4cd076
push dword [esp + 0xac]
push dword [esp + 0xac]
push edi
call sym.adb.exe_HMAC_Update
add esp, 0xc
test eax, eax
je 0x4cd076
push 4
lea eax, [esp + 8]
push eax
push edi
call sym.adb.exe_HMAC_Update
add esp, 0xc
test eax, eax
je 0x4cd076
push 0
lea eax, [esp + 0x1c]
push eax
push edi
call sym.adb.exe_HMAC_Final
add esp, 0xc
test eax, eax
je 0x4cd076
test esi, esi
je 0x4ccf54
push esi
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp + 0xb0], 2
jb 0x4cd050
lea ecx, [esp + esi + 0x18]
lea eax, [ebx + esi]
lea edx, [esp + 0x18]
mov ebp, esi
cmp ebx, ecx
setb cl
cmp edx, eax
setb al
and ebp, 0xffffffe0
and al, cl
mov byte [esp + 3], al
mov eax, 1
nop word [eax + eax]
mov dword [esp + 0x14], eax
push 0
push 0
push 0
push 0
lea edi, [esp + 0x68]
push edi
call sym.adb.exe_HMAC_Init_ex
add esp, 0x14
test eax, eax
je 0x4cd076
push dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push edi
call sym.adb.exe_HMAC_Update
add esp, 0xc
test eax, eax
je 0x4cd076
push 0
lea eax, [esp + 0x1c]
push eax
push edi
call sym.adb.exe_HMAC_Final
add esp, 0xc
test eax, eax
je 0x4cd076
test esi, esi
je 0x4cd03d
cmp esi, 0x20
setb cl
xor eax, eax
or cl, byte [esp + 3]
jne 0x4cd030
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x18]
movups xmm2, xmmword [ebx + eax]
movups xmm1, xmmword [esp + eax + 0x28]
movups xmm3, xmmword [ebx + eax + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ebx + eax], xmm2
movups xmmword [ebx + eax + 0x10], xmm3
add eax, 0x20
cmp ebp, eax
jne 0x4cd000
cmp esi, ebp
mov eax, ebp
je 0x4cd03d
nop
movzx ecx, byte [esp + eax + 0x18]
xor byte [ebx + eax], cl
inc eax
cmp eax, esi
jb 0x4cd030
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0xb0]
jb 0x4ccf90
nop
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add ebx, esi
lea ebp, [esp + 0x58]
inc edx
sub ecx, esi
jne 0x4cceac
xor ebx, ebx
cmp dword [esp + 0xb0], 0
setne bl
jmp 0x4cd07a
mov ebp, edi
xor ebx, ebx
push ebp
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 4
mov eax, ebx
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4cd330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [eax - 0xc]
push 0
call fcn.00534eb0
mov eax, esp
push eax
push edi
call dword [sym.imp.msvcrt.dll__fstati64]
add esp, 8
cmp eax, 0xffffffff
je 0x4cd37f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, 1
sbb ecx, 0
jl 0x4cd37f
mov ecx, esi
push eax
call fcn.00534dd0
lea ebx, [esp + 0x34]
jmp 0x4cd399
mov ecx, esi
push eax
push ebx
call fcn.00533e50
push 0x200
push ebx
push edi
call sub.msvcrt.dll__read
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cd3c0
test eax, eax
jg 0x4cd390
jmp 0x4cd3cf
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4cd399
xor eax, eax
jmp 0x4cd3d2
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d0a30
Capabilities:
Print debug messages

Disassembly:
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
push eax
push ebx
call dword [sym.imp.msvcrt.dll__vscprintf]
add esp, 8
inc eax
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov edi, eax
test eax, eax
je 0x4d0a7f
push dword [esp]
push ebx
push edi
call fcn.004fb9b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.00506b00
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x4d0dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov ebp, edx
mov esi, ecx
test ebx, ebx
jne 0x4d0df8
jmp 0x4d0e4c
add ebp, edi
mov ebx, eax
test ebx, ebx
je 0x4d0e4c
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov edi, eax
test eax, eax
js 0x4d0e30
xor ecx, ecx
test edi, edi
je 0x4d0e58
mov eax, ebx
sub eax, edi
jge 0x4d0df0
jmp 0x4d0e58
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x4d0e56
mov dword [esp + 4], str.dnssd_clientstub_read_all:_EINTR_continue
call fcn.004d0a30
test ebx, ebx
jne 0x4d0df8
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, 1
mov ebp, ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4d0eb3
mov eax, ebp
test al, al
je 0x4d0e8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], eax
call fcn.004d3b00
mov ecx, dword [esp + 0x1c]
jmp 0x4d0e92
mov eax, 0x59c7ad
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], str.dnssd_clientstub_read_all__d__failed__ld__ld__d__s
call fcn.004d0a30
mov ecx, ebp
mov eax, 0xffffffff
test cl, cl
je 0x4d0e4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
sete cl
not ecx
mov eax, ecx
jmp 0x4d0e4e
Function at 0x4d3d80
Capabilities:
Enumerate services

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp + 8], 0
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test eax, eax
je 0x4d3e18
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
xor ebx, ebx
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push ebx
push edi
push 3
push 0x30
push esi
call ebp
test eax, eax
jne 0x4d3e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4d3e3b
test edi, edi
je 0x4d3df6
push edi
call fcn.00506b00
add esp, 4
mov ebx, dword [esp + 4]
push ebx
call sub.msvcrt.dll_malloc
add esp, 4
mov edi, eax
test eax, eax
jne 0x4d3dc0
xor ebx, ebx
test esi, esi
jne 0x4d3eaf
jmp 0x4d3eb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
test eax, eax
je 0x4d3eb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d3eb6
jmp 0x4d3da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4d3e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d3e83
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4d3e83
mov dword [esp], esi
xor esi, esi
mov ebp, edi
nop
push str.Bonjour_Service
push dword [ebp]
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x4d3e8b
inc esi
add ebp, 0x24
cmp esi, ebx
jb 0x4d3e60
mov esi, dword [esp]
xor ebx, ebx
jmp 0x4d3ea2
xor ebx, ebx
test edi, edi
jne 0x4d3ea2
jmp 0x4d3eab
mov eax, dword [ebp + 0xc]
mov esi, dword [esp]
cmp eax, 7
je 0x4d3e9d
xor ebx, ebx
cmp eax, 1
jne 0x4d3ea2
mov ebx, 1
push edi
call fcn.00506b00
add esp, 4
test esi, esi
je 0x4d3eb6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d5900
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [esp + 0x41c]
test eax, eax
jne 0x4d591a
mov eax, dword [0x5c4f0c]
test eax, eax
je 0x4d5929
mov esi, dword [eax]
test esi, esi
jne 0x4d5951
jmp case.0x4d5a0f.0
push str.LIBUSB_DEBUG
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je case.0x4d5a0f.0
push eax
call sub.msvcrt.dll_atoi
add esp, 4
mov esi, eax
test esi, esi
je case.0x4d5a0f.0
mov edi, dword [esp + 0x420]
cmp edi, 2
jne 0x4d5966
cmp esi, 2
jl case.0x4d5a0f.0
cmp edi, 3
jne 0x4d5974
cmp esi, 3
jl case.0x4d5a0f.0
cmp edi, 4
jne 0x4d5982
cmp esi, 4
jl case.0x4d5a0f.0
mov eax, esp
push 0
push eax
call fcn.004f3a30
add esp, 8
cmp byte [0x5c4f28], 0
jne 0x4d59d8
cmp esi, 4
jne 0x4d59d8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov byte [0x5c4f28], 1
add eax, 0x40
push eax
push 1
push 0x40
push str._timestamp___threadID__facility_level__function_call___message__n
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 1
push 0x51
push str._________________________________________________________________________________n
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ebp, dword [esp + 4]
mov eax, dword [0x5c4f20]
mov ebx, dword [esp]
cmp ebp, eax
jge 0x4d59f6
dec ebx
add ebp, 0xf4240
mov dword [esp], ebx
mov dword [esp + 4], ebp
sub ebx, dword [0x5c4f1c]
sub ebp, eax
cmp edi, 4
mov dword [esp], ebx
mov dword [esp + 4], ebp
ja case.default.0x4d5a0f
mov eax, str.info
jmp dword [edi*4 + 0x59d25c]
mov eax, str.error
jmp case.0x4d5a0f.3
mov eax, str.unknown
jmp case.0x4d5a0f.3
mov eax, str.warning
jmp case.0x4d5a0f.3
mov eax, str.debug
mov edi, dword [esp + 0x424]
cmp esi, 4
jne 0x4d5a73
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
sub esp, 0x20
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.__2d._06d____08x__libusb:__s___s_
mov dword [esp], eax
call fcn.004d5b20
add esp, 0x20
jmp 0x4d5a95
sub esp, 0x14
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.libusb:__s___s_
mov dword [esp], eax
call fcn.004d5b20
add esp, 0x14
xor edi, edi
mov esi, eax
cmp eax, 0x3ff
mov ebp, 0x400
cmova esi, edi
lea ebx, [esp + esi + 8]
mov byte [esp + esi + 8], 0
sub ebp, esi
push dword [esp + 0x42c]
push dword [esp + 0x42c]
push ebp
push ebx
call fcn.004fb8c0
add esp, 0x10
lea ecx, [eax + esi]
cmp ecx, 0x3ff
mov ecx, eax
cmovg ecx, ebp
test eax, eax
cmovs ecx, ebp
lea eax, [ecx + esi + 2]
cmp eax, 0x3ff
lea eax, [ecx + esi - 0x3fe]
cmovbe eax, edi
sub ecx, eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov word [ebx + ecx], 0xa
lea ecx, [esp + 8]
add eax, 0x40
push eax
push ecx
call sub.msvcrt.dll_fputs
add esp, 8
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4de9a0
Capabilities:
Check if file exists

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [edi + 0x10]
cmp eax, 0xffffffff
mov ecx, dword [ebx + 8]
jne 0x4de9bb
mov eax, dword [ebx + 0x50]
imul eax, eax, 0x58
cmp dword [eax + 0x5c4fc0], 0
je 0x4dea19
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add ebx, 0x54
xor ebp, ebp
mov dword [esp], ecx
nop word cs:[eax + eax]
nop
mov eax, dword [ebx]
test eax, eax
je 0x4dea0c
mov ecx, dword [ebx + 4]
cmp byte [ecx], 3
jne 0x4dea0c
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push eax
call esi
cmp eax, 0xffffffff
je 0x4dea20
mov dword [edi + ebp*8 + 0x1c], eax
inc ebp
add ebx, 0x18
cmp ebp, 0x20
jb 0x4de9e0
xor eax, eax
jmp 0x4dea66
mov eax, 0xfffffffd
jmp 0x4dea66
mov esi, dword [ebx]
push 0
call fcn.004e2040
add esp, 4
push eax
push ebp
push esi
push str.could_not_open_device__s__interface__d_:__s
push str.winusbx_open
push 1
push dword [esp + 0x18]
call fcn.004d3fa0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
setne cl
add cl, cl
movzx ecx, cl
or ecx, 0xfffffffd
cmp eax, 2
mov eax, 0xfffffffc
cmovne eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e2160
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4e2196
mov dl, byte [ebx]
test dl, dl
je 0x4e219d
mov esi, 0x1505
lea ecx, [ebx + 1]
mov eax, esi
nop
shl eax, 5
movsx edx, dl
add eax, esi
add eax, edx
movzx edx, byte [ecx]
inc ecx
mov esi, eax
test dl, dl
jne 0x4e2180
jmp 0x4e21a2
xor edi, edi
jmp 0x4e2342
mov eax, 0x1505
mov esi, dword [0x5c5210]
cmp eax, 1
adc eax, 0
xor edx, edx
div esi
mov eax, dword [0x5c5214]
mov edi, edx
cmp edx, 1
adc edi, 0
mov dword [esp], edi
mov ecx, dword [eax + edi*8]
test ecx, ecx
je 0x4e2293
mov ebp, dword [esp]
mov edi, dword [eax + ebp*8 + 4]
cmp ecx, ebp
jne 0x4e21f4
test edi, edi
mov eax, str._NULL_
cmovne eax, edi
push eax
push ebx
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x4e2340
push edi
push ebx
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.004d3fa0
add esp, 0x18
mov esi, dword [0x5c5210]
xor edx, edx
mov eax, ebp
lea ecx, [esi - 2]
div ecx
mov ecx, ebp
mov ebp, dword [0x5c5214]
lea eax, [edx + 1]
not edx
mov edi, ecx
mov ecx, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
nop word cs:[eax + eax]
nop
cmp edi, dword [esp + 4]
mov eax, esi
mov edx, 0
cmova eax, edx
add edi, dword [esp + 8]
add edi, eax
cmp edi, ecx
je 0x4e228d
mov ebx, dword [ebp + edi*8]
cmp ebx, ecx
jne 0x4e2287
mov eax, dword [ebp + edi*8 + 4]
mov ecx, str._NULL_
test eax, eax
cmove eax, ecx
push eax
push dword [esp + 0x24]
call sub.msvcrt.dll_strcmp
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
je 0x4e2342
test ebx, ebx
jne 0x4e2240
jmp 0x4e228f
mov edi, ecx
mov ebx, dword [esp + 0x20]
cmp dword [0x5c5218], esi
jae 0x4e22fe
push 0x5c521c
call fcn.004da750
add esp, 4
mov eax, dword [0x5c5214]
mov ecx, dword [eax + edi*8 + 4]
test ecx, ecx
je 0x4e22cb
push ecx
call fcn.00506b00
add esp, 4
mov eax, dword [0x5c5214]
mov dword [eax + edi*8 + 4], 0
mov ecx, dword [esp]
mov dword [eax + edi*8], ecx
push ebx
call dword [sym.imp.msvcrt.dll__strdup]
add esp, 4
mov ecx, dword [0x5c5214]
test eax, eax
mov dword [ecx + edi*8 + 4], eax
je 0x4e2319
inc dword [0x5c5218]
push 0x5c521c
call fcn.004da780
add esp, 4
jmp 0x4e2342
push esi
push str.hash_table_is_full___d_entries_
push str.htab_hash
push 1
push 0
call fcn.004d3fa0
add esp, 0x14
xor edi, edi
jmp 0x4e2342
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push 0
call fcn.004d3fa0
add esp, 0x10
push 0x5c521c
call fcn.004da780
add esp, 4
xor edi, edi
jmp 0x4e2342
mov edi, ebp
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e2350
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x5c5220], 0
je 0x4e23c8
push 0
push 0
push 0x402
push dword [0x5c5228]
call dword [0x5c5224]
test eax, eax
je 0x4e2384
push 0xffffffffffffffff
push dword [0x5c5220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4e23a8
push str.could_not_wait_for_timer_thread_to_quit
push str.windows_destroy_clock
push 4
push 0
call fcn.004d3fa0
add esp, 0x10
push 1
push dword [0x5c5220]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x5c5220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5c5220], 0
mov dword [0x5c5228], 0
ret
Function at 0x4e655b
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x4e656e
jmp 0x4e66a2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004e5d8c
cmp eax, 1
jne 0x4e669a
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x4e65e6
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x4e65f8
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x4e6612
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x4e6620
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x4e6650
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4e6667
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x4e664c
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x4e6685
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x4e7614
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x4e7489
mov dword [esp], 0x5c5264
call fcn.004e6bef
mov eax, dword [0x568324]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4e765b
mov eax, dword [ebp - 0x20]
jmp 0x4e77a6
call fcn.004e6464
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x4e7672
cmp dword [ebp - 0x20], 0
jne 0x4e767c
mov eax, 0
jmp 0x4e77a6
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004e655b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x4e774e
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x568324]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x4e77a3
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret