joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e8510
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x608]
mov ebx, dword [eax]
lea esi, [edi + 0x15c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x5e85a3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.00734c50
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x5e85d6
push str.Received_too_short_packet
push ebx
call fcn.005cb890
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push esi
call fcn.005e8100
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x5e85f1
jmp dword [eax*4 + 0x5e8738]
cmp edx, 4
jle case.0x5e85f1.4
push esi
call fcn.005e80e0
movzx ecx, word [edi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x5e85f1.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push dword [ebp - 0x90]
call fcn.005cb7d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e8656
push 5
push edi
call fcn.005e8fd0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.005d7650
jmp 0x5e86fe
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x15c]
push eax
call fcn.005e80e0
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.005e80b0
add esp, 0xc
cmp eax, esi
jae case.0x5e85f1.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.005cb950
jmp 0x5e86fe
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.005e82c0
add esp, 0xc
test eax, eax
je case.0x5e85f1.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x7c8fd4
push ebx
call fcn.005cb890
add esp, 0xc
push dword [ebp - 0x90]
call fcn.005d7940
add esp, 4
test eax, eax
je 0x5e85c3
push 5
push edi
call fcn.005e8fd0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret
Function at 0x5e8fd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x5e8fe2
jmp dword [edx*4 + 0x5e9038]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005e8a10
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005e8750
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005e91e0
push str.TFTP_finished
push 0x7f6748
push eax
call fcn.005cb950
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x7c8fd4
push eax
call fcn.005cb890
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x5ef960
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
push ecx
mov eax, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5ef9d3
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push edi
call fcn.005cc1d0
add esp, 8
cmp esi, 0xffffffff
jne 0x5efa0b
push str.Error_accept__ing_server_connect
push ebx
call fcn.005cb890
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.005cb950
push 1
mov byte [edi + 0x526], 0
push esi
mov dword [edi + 0x424], esi
call fcn.005d74d0
add esp, 0x10
mov byte [edi + 0x539], 1
cmp dword [ebx + 0x608], 0
je 0x5efa87
push 1
push ebx
call fcn.005be510
mov eax, dword [ebx + 0x608]
push 1
push esi
push dword [ebx + 0x60c]
call eax
push 0
push ebx
mov esi, eax
call fcn.005be510
add esp, 0x1c
test esi, esi
je 0x5efa87
push edi
call fcn.005efee0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret

Function at 0x5f1ee0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x5f1f0f
push str.Couldnt_set_desired_mode
push edx
call fcn.005cb890
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x5f1f26
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.005cb950
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x5f1f3d
push edi
call fcn.005f1b80
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x5f1f51
push edi
call fcn.005f0ba0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x5f1f65
push edi
call fcn.005f1b60
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x5f1f75
push edi
call fcn.005f1dc0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x5fcd50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x5fcd83
push 0x2e
push edi
call fcn.00735650
add esp, 8
test eax, eax
je 0x5fcd81
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x5fe0b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x8aa528]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5fe0dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x5fe124
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x5fe12a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x5fe18b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x5fe150
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5fe1b7
mov eax, dword [esi + 4]
push 1
push 0x80091e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x80091f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5fe190
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x601c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005b9d80
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x601cc4
cmp dword [ebp + 0xc], 0
je 0x601cc4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
and edx, 0
je 0x601c9c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00743ded
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x601cb8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00743ded
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x601cc4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x6023c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.005b9d80
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00602540
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x602475
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00614610
add esp, 0x14
push 0x802bb4
mov edx, dword [ebp + 0xc]
push edx
push 0x802bb8
mov eax, dword [ebp + 8]
push eax
push str.fopen_
push 5
call fcn.00613bb0
add esp, 0x18
call fcn.007436af
cmp dword [eax], 2
je 0x60243c
call fcn.007436af
cmp dword [eax], 6
jne 0x602459
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00614610
add esp, 0x14
jmp 0x602471
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00614610
add esp, 0x14
xor eax, eax
jmp 0x6024c1
call fcn.00602530
push eax
call fcn.00602c00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x60249c
mov ecx, dword [ebp - 8]
push ecx
call fcn.0073d54f
add esp, 4
xor eax, eax
jmp 0x6024c1
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00602790
add esp, 8
mov eax, dword [ebp - 8]
push eax
push 1
push 0x6a
mov ecx, dword [ebp - 4]
push ecx
call fcn.006027f0
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x610e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44c
call fcn.005b9d80
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x440], 0
cmp dword [ebp + 8], 0
jne 0x610eae
xor eax, eax
jmp 0x611064
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.007542dd
add esp, 8
test eax, eax
jge 0x610ecc
xor eax, eax
jmp 0x611064
mov eax, 8
call fcn.005b9d80
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0x30
lea edx, [ebp - 0x434]
push edx
call fcn.00610b40
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x610f00
mov eax, dword [ebp - 0x440]
jmp 0x611064
push 0x7f6e94
mov eax, dword [ebp + 8]
push eax
call fcn.0073d4c2
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x610f25
jmp 0x61105e
xor ecx, ecx
jne 0x610f38
movzx edx, word [ebp - 0x42e]
and edx, 0x2000
je 0x610f71
cmp dword [ebp + 0xc], 0xffffffff
jne 0x610f4a
mov dword [ebp - 0x448], 0x800
jmp 0x610f53
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp + 0xc], ecx
push 0
push 4
push 0
mov edx, dword [ebp - 0x43c]
push edx
call fcn.00743f8b
add esp, 0x10
cmp dword [ebp + 0xc], 0
jle 0x610fa3
cmp dword [ebp + 0xc], 0x400
jge 0x610f8b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
jmp 0x610f95
mov dword [ebp - 0x44c], 0x400
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x438], ecx
jmp 0x610fad
mov dword [ebp - 0x438], 0x400
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x438]
push eax
push 1
lea ecx, [ebp - 0x404]
push ecx
call fcn.0073d79b
add esp, 0x10
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jg 0x610fdd
jmp 0x61103b
cvtsi2sd xmm0, dword [ebp - 0x444]
mov eax, 8
call fcn.005b9d80
movsd qword [esp], xmm0
mov edx, dword [ebp - 0x438]
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.00610b40
add esp, 0x10
mov ecx, dword [ebp - 0x440]
add ecx, dword [ebp - 0x444]
mov dword [ebp - 0x440], ecx
cmp dword [ebp + 0xc], 0
jle 0x611036
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x438]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
jg 0x611036
jmp 0x61103b
jmp 0x610f71
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0073d54f
add esp, 4
push 0x400
lea ecx, [ebp - 0x404]
push ecx
call fcn.006220e0
add esp, 8
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
Function at 0x6233e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.005b9d80
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
jmp 0x62340f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x623436
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor edx, ecx
movzx eax, byte [ebp - 1]
or eax, edx
mov byte [ebp - 1], al
jmp 0x623406
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x677d90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.005b9d80
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x14]
jne 0x677dc8
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
cmp eax, 0x6a
je 0x677deb
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0x6b
je 0x677deb
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.00614610
add esp, 0x14
or eax, 0xffffffff
jmp 0x677f01
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], 0x6b
jne 0x677ead
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x677e22
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jge 0x677e79
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 1]
cmp eax, 0xba
jne 0x677e48
jmp 0x677e79
movzx ecx, byte [ebp - 1]
cmp ecx, 0xbb
je 0x677e77
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00614610
add esp, 0x14
or eax, 0xffffffff
jmp 0x677f01
jmp 0x677e19
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x677eab
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00614610
add esp, 0x14
or eax, 0xffffffff
jmp 0x677f01
jmp 0x677eb6
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x677eea
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.00614610
add esp, 0x14
or eax, 0xffffffff
jmp 0x677f01
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00734c50
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x682430
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.005b9d80
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x682455
mov ecx, dword [ebp - 8]
sub ecx, 3
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jle 0x6825de
cmp dword [ebp - 8], 3
jl 0x682518
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
shl edx, 0x10
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
shl eax, 8
or edx, eax
mov ecx, 1
shl ecx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + ecx]
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shr edx, 0x12
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 4]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
shr ecx, 6
and ecx, 0x3f
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x6825c7
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + ecx]
shl eax, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 2
jne 0x68254b
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + ecx]
shl eax, 8
or eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
and ecx, 0x3f
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
shr edx, 0xc
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
cmp dword [ebp - 8], 1
jne 0x682594
mov dword [ebp - 0x10], 0x3d
jmp 0x6825a7
mov eax, dword [ebp - 4]
shr eax, 6
and eax, 0x3f
movzx ecx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0x10]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
mov byte [edx], 0x3d
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
add edx, 3
mov dword [ebp + 0xc], edx
jmp 0x68244c
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x690f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.005b9d80
mov dword [ebp - 4], 0
jmp 0x690f9f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x690fed
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
shl eax, 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp + 0x10]
sub edx, 1
cmp dword [ebp - 4], edx
jge 0x690feb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
and ecx, 0x80
je 0x690feb
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
or eax, 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x690f96
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
and edx, 0x80
je 0x691030
cmp dword [ebp + 0x10], 0x10
jne 0x691013
mov dword [ebp - 8], 0x87
jmp 0x69101a
mov dword [ebp - 8], 0x1b
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
movzx ecx, byte [eax - 1]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
mov byte [edx - 1], cl
mov esp, ebp
pop ebp
ret
Function at 0x718990
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x7189b6
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
cmp dword [esp + 4], 0
jg 0x7189c5
jl 0x7189a1
cmp dword [esp], 0
jbe 0x7189a1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
xor esi, esi
call edi
test eax, eax
jne 0x7189f1
nop word [eax + eax]
inc esi
cmp esi, 3
ja 0x718a3c
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
je 0x7189e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.005b9a90
mulsd xmm0, qword [0x83a268]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
movsd qword [esp + 0x10], xmm0
call fcn.005b9a90
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.005b993f
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
Function at 0x718b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7bd4be
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x8aa514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x8aedb0]
cmp eax, 0xffffffff
jne 0x718b56
xor ebx, ebx
jmp 0x718b5f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x718ba1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x718be0
test esi, esi
jne 0x718be4
push 0x717d50
push 0x8c6300
call fcn.00717a40
mov eax, dword [0x8aedb0]
add esp, 8
cmp eax, 0xffffffff
je 0x718ba1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x718bce
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x718bce
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x718c26
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x718c0f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x718be4
cmp dword [ebx + 0x18], 0
je 0x718b70
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x718c49
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x718c49
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.0045e3aa
cmp dword [ebx + 0x18], 0
jne 0x718c30
jmp 0x718b70

Function at 0x718c70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x718cd0
push 0
push 0
call fcn.00741eee
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x718c99
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x718cb7
cmp eax, 0xffffffff
je 0x718cb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret