joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e6dd0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x58], 0
push edi
lea edi, [esi + 0x58]
jne 0x100e6e05
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100e6e15
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x100e6e05
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100e6e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jge 0x100e6e2e
mov dword [esi + 8], ecx
mov eax, ecx
mov ecx, dword [esi + 0x64]
cmp ecx, eax
jge 0x100e6e9f
test ecx, ecx
jne 0x100e6e55
push str.Enabling_TURN_relaying
push 0x119
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_server.c
push 2
call fcn.100df840
mov eax, dword [esi + 8]
add esp, 0x10
imul eax, eax, 0xc8
push eax
push dword [esi + 0x60]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x100e6e96
push str.Memory_allocation_for_TURN_allocation_table_failed
push 0x11e
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_server.c
push 4
call fcn.100df840
add esp, 0x10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esi + 8]
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push esi
call fcn.100e7e90
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x100e6e87
cmp dword [ecx + 0xc], 0
jne 0x100e6ec3
mov eax, dword [esi + 8]
mov dword [ecx + 0xc], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x100e83b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x58], 0
push edi
lea edi, [esi + 0x58]
jne 0x100e83e4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100e83f4
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x100e83e4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100e83fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
movzx esi, word [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov ax, si
pop esi
ret
Function at 0x100e9520
Capabilities:
Check mutex on windows
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push 2
push edi
push ebx
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x100e95f1
cmp dword [0x1014adc4], 0
push esi
jne 0x100e9571
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100e9584
mov ecx, edx
mov esi, 0x1014adc4
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x100e9571
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1014adc4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100e958a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [0x1014adc8], 0
jne 0x100e95c9
push str.Falling_back_on_rand___for_random_bytes
push 0x64
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_random.c
push 3
call fcn.100df840
add esp, 0x10
cmp byte [0x1014adc8], 0
jne 0x100e95c9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
mov byte [0x1014adc8], 1
xor esi, esi
test edi, edi
je 0x100e95e4
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call ebp
sar eax, 7
mov byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x100e95d6
pop ebp
push dword [0x1014adc4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop edi
pop ebx
ret
Function at 0x100e9600
Capabilities:
Check mutex on windows
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
cmp ebx, 1
jbe 0x100e970b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea esi, [edi + 1]
nop dword [eax]
push 2
push 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x100e96e1
cmp dword [0x1014adc4], 0
jne 0x100e9674
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100e9687
mov ecx, edx
xor eax, eax
mov ebx, 0x1014adc4
lock cmpxchg dword [ebx], ecx
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x100e9674
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1014adc4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100e9689
call ebp
cmp byte [0x1014adc8], 0
jne 0x100e96c8
push str.Falling_back_on_rand___for_random_bytes
push 0x64
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_random.c
push 3
call fcn.100df840
add esp, 0x10
cmp byte [0x1014adc8], 0
jne 0x100e96c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
mov byte [0x1014adc8], 1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push dword [0x1014adc4]
sar eax, 7
mov byte [esp + 0x17], al
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
movzx eax, byte [esp + 0x13]
inc edi
mov ecx, dword [esp + 0x18]
and eax, 0x3f
mov al, byte [eax + 0x10115ac8]
mov byte [ecx + esi - 1], al
inc esi
cmp esi, ebx
jb 0x100e9620
pop esi
pop ebp
mov byte [edi + ecx], 0
pop edi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
mov byte [edi + eax], 0
pop edi
pop ebx
pop ecx
ret
Function at 0x100ebb70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
cmp ecx, 4
jb 0x100ebbb3
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov byte [edi], 0
movzx edx, word [esi]
mov eax, edx
sub eax, 2
je 0x100ebc43
sub eax, 0x15
je 0x100ebbb9
push edx
push str.Unknown_address_family__u
push 0x1d6
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_stun.c
push 1
call fcn.100df840
add esp, 0x14
pop edi
or eax, 0xffffffff
pop esi
ret
mov byte [edi + 1], 2
cmp ecx, 0x14
jb 0x100ebbb3
cmp dword [esp + 0x18], 0x1c
jb 0x100ebbb3
push ebx
push str.Writing_IPv6_address
push 0x1cd
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_stun.c
push 0
call fcn.100df840
mov ecx, dword [esp + 0x30]
lea ebx, [esi + 8]
mov ax, word [esi + 2]
lea edx, [edi + 5]
add esp, 0x10
lea esi, [ebx + 3]
xor ax, word [ecx]
sub ebx, ecx
mov word [edi + 2], ax
lea eax, [ecx + 1]
mov edi, 4
movzx ecx, byte [eax - 1]
lea esi, [esi + 4]
xor cl, byte [esi - 7]
lea eax, [eax + 4]
mov byte [edx - 1], cl
lea edx, [edx + 4]
movzx ecx, byte [ebx + eax - 4]
xor cl, byte [eax - 4]
mov byte [edx - 4], cl
movzx ecx, byte [eax - 3]
xor cl, byte [esi - 5]
mov byte [edx - 3], cl
movzx ecx, byte [eax - 2]
xor cl, byte [esi - 4]
mov byte [edx - 2], cl
sub edi, 1
jne 0x100ebc05
pop ebx
lea eax, [edi + 0x14]
pop edi
pop esi
ret
mov byte [edi + 1], 1
cmp ecx, 8
jb 0x100ebbb3
cmp dword [esp + 0x18], 0x10
jb 0x100ebbb3
push str.Writing_IPv4_address
push 0x1bf
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_stun.c
push 0
call fcn.100df840
mov ax, word [esi + 2]
add esp, 0x10
mov ecx, dword [esp + 0x1c]
xor ax, word [ecx]
mov word [edi + 2], ax
movzx eax, byte [esi + 4]
xor al, byte [ecx]
mov byte [edi + 4], al
movzx eax, byte [esi + 5]
xor al, byte [ecx + 1]
mov byte [edi + 5], al
movzx eax, byte [esi + 6]
xor al, byte [ecx + 2]
mov byte [edi + 6], al
movzx eax, byte [esi + 7]
xor al, byte [ecx + 3]
mov byte [edi + 7], al
mov eax, 8
pop edi
pop esi
ret
Function at 0x100ed130
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
lea edi, [esi + 0x80]
mov dword [edi], 0x80
push edi
push esi
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100ed178
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getsockname_failed__errno_d
push 0x114
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 3
call fcn.100df840
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
ret
push esi
call fcn.100dfba0
add esp, 4
test al, al
je 0x100ed200
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x17
jne 0x100ed1cf
cmp dword [esp + 0x10], 2
jne 0x100ed1cf
push esi
call fcn.100dfa70
movzx eax, ax
add esp, 4
test ax, ax
jne 0x100ed1ad
pop edi
or eax, 0xffffffff
pop esi
ret
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [esi], xmm0
push eax
mov word [esi], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
movzx ecx, word [esi]
mov dword [edi], 0x10
movzx eax, cx
sub eax, 2
je 0x100ed1f1
sub eax, 0x15
jne 0x100ed200
xorps xmm0, xmm0
movq qword [esi + 8], xmm0
mov dword [esi + 0x10], eax
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
ret
mov dword [esp + 0x14], 0x100007f
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x100ed210
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0x88], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x80], 0x80
push eax
lea eax, [esp + 4]
push eax
push dword [esp + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100ed284
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getsockname_failed__errno_d
push 0x114
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 3
call fcn.100df840
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100f06e3
add esp, 0x8c
ret
lea eax, [esp]
push eax
call fcn.100dfa70
mov ecx, dword [esp + 0x8c]
add esp, 4
xor ecx, esp
call fcn.100f06e3
add esp, 0x8c
ret
Function at 0x100ed2b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
lea ebx, [ebp + 0x80]
mov dword [ebx], 0x80
push ebx
push ebp
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jns 0x100ed36b
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop word [eax + eax]
call esi
cmp eax, 0x2746
je 0x100ed30b
call esi
cmp eax, 0x2744
je 0x100ed30b
call esi
cmp eax, 0x274d
jne 0x100ed375
call esi
cmp eax, 0x2746
jne 0x100ed31b
mov ecx, str.ECONNRESET
jmp 0x100ed32f
call esi
cmp eax, 0x2744
mov ecx, str.ENETRESET
mov eax, str.ECONNREFUSED
cmovne ecx, eax
push ecx
push str.Ignoring__s_returned_by_recvfrom
push 0xc4
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 1
call fcn.100df840
add esp, 0x14
mov dword [ebx], 0x80
push ebx
push ebp
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
js 0x100ed2f0
push ebx
push ebp
call fcn.100e0080
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100ed380
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
sub esp, 0x114
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, dword [esp + 0x120]
lea eax, [esp + 0x10c]
push esi
mov esi, dword [esp + 0x12c]
mov ecx, 0x22
push edi
push eax
lea edi, [esp + 0x10]
mov dword [esp + 0x118], 0x80
lea eax, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x128]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100ed3ff
cmp word [esp + 0x94], 0x17
jne 0x100ed41f
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100dfd70
add esp, 8
jmp 0x100ed41f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getsockname_failed__errno_d
push 0xd4
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 3
call fcn.100df840
add esp, 0x14
push dword [esp + 0x8c]
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x138]
push ebx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100f06e3
add esp, 0x114
ret

Function at 0x100ed480
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x98]
test edx, edx
je 0x100ed4b4
mov esi, 0xffffff54
lea ecx, [edi + 0xac]
sub esi, edi
xor byte [ecx], bl
lea ecx, [ecx + 1]
mov edx, dword [edi + 0x98]
lea eax, [esi + ecx]
cmp eax, edx
jne 0x100ed4a2
mov eax, dword [edi + 0xa4]
lea esi, [edi + 0xac]
push edx
push esi
push edi
call eax
add esp, 0xc
cmp dword [edi + 0x98], 0
je 0x100ed4e8
mov ecx, 0xffffff54
sub ecx, edi
xor byte [esi], bl
lea esi, [esi + 1]
lea eax, [esi + ecx]
cmp eax, dword [edi + 0x98]
jne 0x100ed4d8
pop edi
pop esi
pop ebx
ret
Function at 0x100ef920
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov al, byte [edi]
test al, al
je 0x100efa28
cmp al, 0x3d
je 0x100efa28
xor esi, esi
mov dword [esp + 0x14], 0
test al, al
je 0x100efa1e
cmp esi, 4
jae 0x100ef9c5
mov bl, byte [edi]
inc edi
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x100ef9c0
cmp bl, 0x3d
je 0x100ef9c5
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x100ef97b
mov byte [esp + esi + 0x14], al
jmp 0x100ef9bf
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x100ef98b
sub bl, 0x47
mov byte [esp + esi + 0x14], bl
jmp 0x100ef9bf
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x100ef99b
add bl, 4
mov byte [esp + esi + 0x14], bl
jmp 0x100ef9bf
cmp bl, 0x2b
je 0x100ef9ba
cmp bl, 0x2d
je 0x100ef9ba
cmp bl, 0x2f
je 0x100ef9b3
cmp bl, 0x5f
jne 0x100efa33
mov byte [esp + esi + 0x14], 0x3f
jmp 0x100ef9bf
mov byte [esp + esi + 0x14], 0x3e
inc esi
cmp byte [edi], 0
jne 0x100ef950
test esi, esi
je 0x100efa1e
mov ecx, dword [esp + 0x1c]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x100efa33
mov dl, byte [esp + 0x15]
mov eax, 1
sub eax, esi
add ecx, eax
mov al, byte [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov cl, dl
shr cl, 4
shl al, 2
or cl, al
mov byte [ebp], cl
inc ebp
cmp esi, 1
jbe 0x100efa1e
mov cl, byte [esp + 0x16]
mov al, cl
shl dl, 4
shr al, 2
or al, dl
mov byte [ebp], al
inc ebp
cmp esi, 2
jbe 0x100efa1e
shl cl, 6
or cl, byte [esp + 0x17]
mov byte [ebp], cl
inc ebp
mov al, byte [edi]
test al, al
jne 0x100ef936
sub ebp, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x100efa40
Capabilities:
Encode data using base64

Disassembly:
push edi
mov edi, dword [esp + 0xc]
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
cmp dword [esp + 0x14], eax
jae 0x100efa63
or eax, 0xffffffff
pop edi
ret
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, ebp
push esi
mov esi, dword [esp + 0x10]
cmp edi, 3
jb 0x100efae8
mov eax, 0xaaaaaaab
mul edi
push ebx
mov ebx, edx
shr ebx, 1
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x100efa80
pop ebx
test edi, edi
je 0x100efb3f
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
and edx, 3
shl edx, 4
cmp edi, 1
jne 0x100efb15
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, 0x3d
mov byte [ecx + 1], al
jmp 0x100efb35
movzx eax, byte [esi + 1]
shr eax, 4
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
mov dl, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
add ecx, 4
pop esi
mov byte [ecx], 0
sub ecx, ebp
pop ebp
mov eax, ecx
pop edi
ret
Function at 0x100efb50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x1014add8], 0
push esi
push edi
jne 0x100efc05
xor esi, esi
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
and dl, 1
cmove eax, ecx
mov dword [esi*4 + 0x1014add8], eax
inc esi
cmp esi, 0x100
jb 0x100efb61
mov esi, dword [esp + 0x10]
or eax, 0xffffffff
mov edi, dword [esp + 0xc]
test esi, esi
je 0x100efc2e
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1014add8]
sub esi, 1
jne 0x100efc14
pop edi
not eax
pop esi
ret
Function at 0x406627
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40664b
xor eax, eax
test eax, eax
je 0x40665d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665d
xor ecx, ecx
jmp 0x406660
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40674c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x406783
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40675d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406758
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x406796
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x230b3144
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3bd500ad
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4032cc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b58
test esi, esi
jne 0x403302
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c48
jmp 0x403320
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403170
mov edi, eax
test esi, esi
je 0x403320
cmp dword [ebx], 0
je 0x403320
dec esi
jmp 0x403309
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x483020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ac8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403aa8
xor eax, eax
push ebp
push 0x403aa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ae4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403aa8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x483020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x483020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404924
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48504c], 0
je 0x404985
cmp word [0x485220], 0xd7b2
jne 0x40494d
cmp dword [0x485228], 0
jbe 0x40494d
mov eax, 0x48521c
call dword [0x485238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4049ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48302c], 0
jne 0x4049a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404adc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x483030], 0
je 0x404b02
mov edx, esi
mov eax, ebx
call dword [0x483030]
jmp 0x404b11
mov eax, 8
call fcn.00402e80
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404aa4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc