joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027a80
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x10
push edi
or edi, 0xffffffff
mov eax, dword [esi]
mov ebx, dword [esi + 0x158]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10027ad5
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10027af4
cmp ebx, dword [esi + 0x158]
jne 0x10027b2f
cmp byte [esi + 0x165], 0
je 0x10027b2f
mov byte [esi + 0x165], 0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, ebx
mov ecx, esi
call fcn.10007340
cmp edi, 0xffffffff
jne 0x10027b3a
push str.Error_accept__ing_server_connect
push dword [ebp - 0x18]
call fcn.10010d80
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push ebx
push dword [esi + 0x3c]
call eax
add esp, 8
jmp 0x10027b04
mov ebx, dword [ebp - 0x18]
push str.Connection_accepted_from_server_n
push ebx
call fcn.10010cc0
add esp, 8
mov dword [esi + 0x158], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [esi + 0x165], 1
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x10027bb4
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x10027bb4
mov edx, edi
mov ecx, esi
call fcn.1000f420
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
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.100370be
mov esp, ebp
pop ebp
ret
Function at 0x10029cc0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, 0x51eb851f
imul ebx
push esi
sar edx, 5
xor esi, esi
mov eax, edx
push edi
shr eax, 0x1f
mov edi, ecx
add eax, edx
mov ecx, dword [edi]
cmp eax, 2
je 0x10029cfa
push str.Couldnt_set_desired_mode
push ecx
call fcn.10010d80
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0xc8
je 0x10029d11
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.10010cc0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x10029d27
mov ecx, edi
call fcn.10028df0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x10029d3a
mov ecx, edi
call fcn.10028e70
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x10029d43
push 0xd
jmp 0x10029d4a
cmp eax, 0x16
jne 0x10029d58
push 0xe
mov dl, 1
mov ecx, edi
call fcn.100292e0
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002cb00
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1002cb0b
jmp dword [eax*4 + 0x1002cb64]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret
Function at 0x1002cbd0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov bl, byte [esi]
test bl, bl
je 0x1002cc79
mov cl, byte [edi]
test cl, cl
je 0x1002cc79
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1002cbf6
jmp dword [eax*4 + 0x1002cc98]
mov bl, 0x41
jmp case.default.0x1002cbf6
mov bl, 0x42
jmp case.default.0x1002cbf6
mov bl, 0x43
jmp case.default.0x1002cbf6
mov bl, 0x44
jmp case.default.0x1002cbf6
mov bl, 0x45
jmp case.default.0x1002cbf6
mov bl, 0x46
jmp case.default.0x1002cbf6
mov bl, 0x47
jmp case.default.0x1002cbf6
mov bl, 0x48
jmp case.default.0x1002cbf6
mov bl, 0x49
jmp case.default.0x1002cbf6
mov bl, 0x4a
jmp case.default.0x1002cbf6
mov bl, 0x4b
jmp case.default.0x1002cbf6
mov bl, 0x4c
jmp case.default.0x1002cbf6
mov bl, 0x4d
jmp case.default.0x1002cbf6
mov bl, 0x4e
jmp case.default.0x1002cbf6
mov bl, 0x4f
jmp case.default.0x1002cbf6
mov bl, 0x50
jmp case.default.0x1002cbf6
mov bl, 0x51
jmp case.default.0x1002cbf6
mov bl, 0x52
jmp case.default.0x1002cbf6
mov bl, 0x53
jmp case.default.0x1002cbf6
mov bl, 0x54
jmp case.default.0x1002cbf6
mov bl, 0x55
jmp case.default.0x1002cbf6
mov bl, 0x56
jmp case.default.0x1002cbf6
mov bl, 0x57
jmp case.default.0x1002cbf6
mov bl, 0x58
jmp case.default.0x1002cbf6
mov bl, 0x59
jmp case.default.0x1002cbf6
mov bl, 0x5a
call fcn.1002cb00
cmp bl, al
jne 0x1002cc79
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x1002cbe1
mov cl, byte [esi]
call fcn.1002cb00
mov cl, byte [edi]
mov dl, al
call fcn.1002cb00
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x1002cd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov bl, byte [edi]
test bl, bl
je 0x1002cdc4
lea esp, [esp]
mov cl, byte [edx]
test cl, cl
je 0x1002cdc4
test esi, esi
je 0x1002cdc8
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1002cd3d
jmp dword [eax*4 + 0x1002cdf8]
mov bl, 0x41
jmp case.default.0x1002cd3d
mov bl, 0x42
jmp case.default.0x1002cd3d
mov bl, 0x43
jmp case.default.0x1002cd3d
mov bl, 0x44
jmp case.default.0x1002cd3d
mov bl, 0x45
jmp case.default.0x1002cd3d
mov bl, 0x46
jmp case.default.0x1002cd3d
mov bl, 0x47
jmp case.default.0x1002cd3d
mov bl, 0x48
jmp case.default.0x1002cd3d
mov bl, 0x49
jmp case.default.0x1002cd3d
mov bl, 0x4a
jmp case.default.0x1002cd3d
mov bl, 0x4b
jmp case.default.0x1002cd3d
mov bl, 0x4c
jmp case.default.0x1002cd3d
mov bl, 0x4d
jmp case.default.0x1002cd3d
mov bl, 0x4e
jmp case.default.0x1002cd3d
mov bl, 0x4f
jmp case.default.0x1002cd3d
mov bl, 0x50
jmp case.default.0x1002cd3d
mov bl, 0x51
jmp case.default.0x1002cd3d
mov bl, 0x52
jmp case.default.0x1002cd3d
mov bl, 0x53
jmp case.default.0x1002cd3d
mov bl, 0x54
jmp case.default.0x1002cd3d
mov bl, 0x55
jmp case.default.0x1002cd3d
mov bl, 0x56
jmp case.default.0x1002cd3d
mov bl, 0x57
jmp case.default.0x1002cd3d
mov bl, 0x58
jmp case.default.0x1002cd3d
mov bl, 0x59
jmp case.default.0x1002cd3d
mov bl, 0x5a
call fcn.1002cb00
cmp bl, al
jne 0x1002cdc4
mov bl, byte [edi + 1]
inc edi
inc edx
dec esi
mov dword [ebp - 4], edx
test bl, bl
jne 0x1002cd20
test esi, esi
jne 0x1002cdd4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [edi]
call fcn.1002cb00
mov dl, al
mov eax, dword [ebp - 4]
mov cl, byte [eax]
call fcn.1002cb00
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002ce60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
sub ecx, edx
lea ebx, [ebx]
mov bl, byte [edx]
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1002ce7d
jmp dword [eax*4 + 0x1002cf00]
mov bl, 0x41
jmp case.default.0x1002ce7d
mov bl, 0x42
jmp case.default.0x1002ce7d
mov bl, 0x43
jmp case.default.0x1002ce7d
mov bl, 0x44
jmp case.default.0x1002ce7d
mov bl, 0x45
jmp case.default.0x1002ce7d
mov bl, 0x46
jmp case.default.0x1002ce7d
mov bl, 0x47
jmp case.default.0x1002ce7d
mov bl, 0x48
jmp case.default.0x1002ce7d
mov bl, 0x49
jmp case.default.0x1002ce7d
mov bl, 0x4a
jmp case.default.0x1002ce7d
mov bl, 0x4b
jmp case.default.0x1002ce7d
mov bl, 0x4c
jmp case.default.0x1002ce7d
mov bl, 0x4d
jmp case.default.0x1002ce7d
mov bl, 0x4e
jmp case.default.0x1002ce7d
mov bl, 0x4f
jmp case.default.0x1002ce7d
mov bl, 0x50
jmp case.default.0x1002ce7d
mov bl, 0x51
jmp case.default.0x1002ce7d
mov bl, 0x52
jmp case.default.0x1002ce7d
mov bl, 0x53
jmp case.default.0x1002ce7d
mov bl, 0x54
jmp case.default.0x1002ce7d
mov bl, 0x55
jmp case.default.0x1002ce7d
mov bl, 0x56
jmp case.default.0x1002ce7d
mov bl, 0x57
jmp case.default.0x1002ce7d
mov bl, 0x58
jmp case.default.0x1002ce7d
mov bl, 0x59
jmp case.default.0x1002ce7d
mov bl, 0x5a
mov byte [ecx + edx], bl
mov al, byte [edx]
inc edx
test al, al
je 0x1002cefb
dec esi
jne 0x1002ce70
pop esi
pop ebx
pop ebp
ret

Function at 0x1002cf70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1002cfbc
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10010d80
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x1002cfe4
shr eax, 8
test al, al
jne 0x1002cfe4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10010d80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.100370be
mov esp, ebp
pop ebp
ret

Function at 0x1002d2a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 2], al
push 3
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xff
push eax
push dword [esi + 0x154]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1002d2e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10010d80
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.1002d1a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d460
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov eax, dword [ebx]
mov edi, dword [eax + 0x114]
mov eax, dword [edi + esi*4 + 8]
sub eax, 0
je 0x1002d4fc
sub eax, 2
je 0x1002d4b2
dec eax
jne 0x1002d4de
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x1002d4a6
dec eax
jne 0x1002d4de
mov dword [edi + esi*4 + 8], 1
mov dword [edi + esi*4 + 0x408], eax
pop edi
pop esi
pop ebx
ret
mov dword [edi + esi*4 + 8], 0
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x1002d4e2
dec eax
jne 0x1002d4de
mov dword [edi + esi*4 + 8], 3
mov dword [edi + esi*4 + 0x1008], eax
push esi
mov edx, 0xfc
call fcn.1002d2a0
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [edi + esi*4 + 0x1808], 1
mov dword [edi + esi*4 + 8], 1
jne 0x1002d4de
pop edi
pop esi
pop ebx
jmp fcn.1002ded0
cmp dword [edi + esi*4 + 0x808], 1
jne 0x1002d532
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.1002d2a0
add esp, 4
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x1002d4de
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.1002ded0
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x1002d4d0
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.1002d2a0
add esp, 4
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.1002ded0
Function at 0x1002ec10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
call fcn.1004767d
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x1002ec71
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x1002ec71
lea eax, [ebp - 0x108]
push eax
call dword [0x1005f670]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret

Function at 0x10030700
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8624]
cmp byte [edx], 0
jne 0x10030769
push 0x401
lea eax, [ebp - 0x408]
mov byte [ebp - 0x408], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 8], 0
test eax, eax
jne 0x10030764
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.10039a10
add esp, 8
test eax, eax
je 0x1003075c
mov byte [eax], 0
lea edx, [ebp - 0x408]
jmp 0x10030769
mov edx, str.localhost
push 1
push 0
lea eax, [esi + 0x3b8]
push eax
push 0
call fcn.100278d0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.100370be
mov esp, ebp
pop ebp
ret
Function at 0x100322a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1003241b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x10032407
push esi
jmp 0x100322e0
cmp dword [edi + 4], 2
jne 0x1003239a
cmp dword [edi + 0x18], 0
je 0x1003239a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1003239a
cmp eax, 0x10
jb 0x1003239a
push 0x20
call dword [0x1005f648]
mov esi, eax
add esp, 4
test esi, esi
je 0x100323fc
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x1005f648]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100323eb
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10032388
push eax
call dword [0x1005f670]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100323d1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10032397
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100322e0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x100323b7
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x10032403
mov ecx, ebx
call fcn.10032260
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x1005f678]
push esi
call dword [0x1005f678]
add esp, 8
jmp 0x100323a8
push esi
mov edi, 8
call dword [0x1005f678]
add esp, 4
jmp 0x100323a8
mov edi, 8
jmp 0x100323a8
test ebx, ebx
jne 0x10032413
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10033ebb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10033eae
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x10033eed
cmp dword [esi + 8], 0
jne 0x10033edf
push 0x1005c290
push dword [eax + 8]
call fcn.10046f14
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10033edf
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call fcn.10046519
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10033f0f
mov eax, dword [esi + 8]
test eax, eax
je 0x10033f09
push eax
call fcn.10045443
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100343e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push esi
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov esi, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1003441b
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034420
push 0
sub ecx, edx
push ecx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 2
push dword [ebp - 8]
mov dword [ebp - 4], 0
call esi
cmp dword [ebp - 4], 0x10
jne 0x10034466
push 0
lea eax, [ebp - 4]
push eax
push edi
push 2
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x10034474
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10034484
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10034fb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x1d4]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10034fd9
mov eax, dword [ebx + 0x28]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [ebx + 0x20]
sub esi, edi
sub ecx, dword [ebx + 0x24]
mov ebx, dword [ebp - 8]
imul ecx
imul ecx, esi, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, dword [ebp - 4]
cmp dword [ebx + 0x1c8], 0
mov dword [ebp - 4], ecx
je 0x1003508e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov edi, edx
mov edx, dword [ebp - 0xc]
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [edx + 0x144]
sub esi, edi
sub ecx, dword [edx + 0x148]
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add eax, dword [ebx + 0x1c8]
cmp dword [ebp - 4], eax
cmovl eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x2c
mov edi, edx
call dword [0x1005f648]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100365e1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], 0x10055c60
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ecx + 8]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, 0x40
jbe 0x10036629
push ecx
call dword [0x10055c60]
push ebx
push edi
push dword [esi + 4]
call dword [0x10055c64]
mov edi, dword [esi + 8]
push dword [esi + 4]
add edi, 8
push edi
call dword [0x10055c68]
mov ebx, 0x10
add esp, 0x18
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x10055c60]
push dword [esi + 8]
call dword [0x10055c60]
add esp, 8
xor eax, eax
test ebx, ebx
je 0x10036690
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
lea ebx, [ebx]
movzx eax, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call dword [0x10055c64]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call dword [0x10055c64]
add esp, 0x18
dec ebx
jne 0x10036650
cmp dword [ebp + 8], 0x40
jae 0x100366c6
mov eax, dword [ebp - 0xc]
mov edi, 0x40
sub edi, eax
jmp 0x100366a0
push 1
push 0x10054c0b
push dword [esi + 4]
call dword [0x10055c64]
push 1
push 0x100551a9
push dword [esi + 8]
call dword [0x10055c64]
add esp, 0x18
dec edi
jne 0x100366a0
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10065dcd
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
pushal
mov dword [esp + 0x20], str.SQConn_error_
mov word [esp + 8], 0x3126
pushal
mov dword [esp + 0x3c], 0x100809b5
call fcn.100735f7

Function at 0x100674e9
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx ecx, byte [eax + str.cw]
dec eax
sub al, 0x34
sets al
mov eax, dword [ebp + 0xc]
sbb si, sp
pushal
shr eax, 0x10
xor si, 0x8ee6
movzx eax, al
mov si, cx
bswap si
shl ecx, 8
not si
pushfd
movzx eax, byte [eax + str.cw]
bsf si, bx
clc
rcr si, 2
pushfd
or ecx, eax
rcr esi, cl
aaa
mov eax, ebx
add esp, 0x4c

Function at 0x100676ae
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
xor ecx, dword [edi + 0x10]
cmc
cmc
shr eax, 0x18
cmp ah, 2
stc
stc
mov dword [edx], ecx
bsf cx, si
and cl, 0xef
movzx ecx, byte [eax + str.cw]
aam 0xaf
das
mov eax, dword [ebp + 0xc]
jmp 0x1006f19b
cmc
sub esp, 0xffffffb8
jge 0x1007ce70
shr eax, 0x10
cmp bl, bl
call fcn.1006ff2e
pushal
cmc
shr eax, 0x10
clc
mov byte [esp], bh
mov byte [esp + 4], 0x7a
movzx eax, al
cmc
pushal
test dh, 0x16
shl ecx, 8
pushfd
movzx eax, byte [eax + str.cw]
pushfd
or ecx, eax
stc
cmp ax, 0xfb01
sbb ax, 0x3439
mov eax, ebx
clc
mov byte [esp], al
call fcn.1006999a
pushal
pushfd
pop dword [esp + 0x1c]
test al, dh
xor edx, 0xf4f4fcaf
call fcn.10080701
or ebp, dword [ebx]
sbb dword [0x7e08d082], ecx
popfd
push ebp
rcl dword [ebx - 9], cl
lodsd eax, dword [esi]
xchg edi, eax
sub al, 0x3c
lcall 0x7d06, 0x1398841e
out dx, eax
xchg esp, eax
test al, 0xf
inc ebp
invalid

Function at 0x10069468
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx eax, byte [eax + str.cw]
mov byte [esp + 4], ch
or ecx, eax
cwde
test esp, edi
rcr al, cl
stc
mov eax, ebx
call fcn.1007ab0a
add al, ch
jmp 0x1007bef8
clc
clc
shr eax, 0x18
jmp 0x10081aff
bt cx, bp
bt dx, 7
or ecx, eax
rcr al, cl
dec al
lahf
mov eax, dword [ebp - 4]
clc
cmc
jmp 0x100777fc
stc
xor ecx, dword [edi + 0x10]
jmp 0x1006b345
sets al
cmp dword [0x10060704], 0
call fcn.1006fb5f
bt cx, 4
movzx eax, al
mov word [esp + 8], 0x7530
cmp dx, si
shl ecx, 8
cmc
jmp 0x1006944e
cmp cx, 0x8760
stc
mov dword [edx], ecx
dec ecx
bt sp, ax
adc cl, 0xcc
shl cl, cl
movzx ecx, byte [eax + str.cw]
neg al
cwde
bt dx, 0xc
test cl, bh
mov eax, dword [ebp + 0xc]
bt cx, 1
shr eax, 0x10
jmp 0x1007f0d4

Function at 0x10069509
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
shr eax, 0x18
jmp 0x1006a5ff
mov dword [edx + 4], ecx
btr cx, di
inc cx
movzx ecx, byte [eax + str.cw]
xor ah, cl
mov eax, dword [ebp - 4]
clc
clc
mov byte [esp + 4], 0xfd
pushfd
shr eax, 0x10
test al, 0xd2
clc
movzx eax, al
mov word [esp], cx
test sp, 0xb734
bt bp, dx
shl ecx, 8
cmp dl, 8
movzx eax, byte [eax + str.cw]
push 0xa4b3f17e
test ch, ah
push dword [esp]
push dword [esp]
or ecx, eax
push esi
bts eax, 0x1e
shl ah, 1
mov eax, dword [ebp + 0xc]
cmp eax, edi
clc
shr eax, 8
pushfd
stc
clc
movzx eax, al
mov byte [esp + 4], ah
push dword [esp]
jmp 0x1006b4d5
shl ecx, 8
cmp sp, cx
jmp 0x100805c9
movzx eax, byte [eax + str.cw]
bt bx, 7
bt sp, di
jmp 0x1006d36b