joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007bd60
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x1011b600]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [ebx + 0x11c]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.1007b770
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x1007bf38
cmp cl, 0x23
je 0x1007bf15
cmp cl, 0x27
jne 0x1007bfc0
push edi
push 0
push 0x27
push 0xfa
push 0xff
push 0x100f66e8
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.1005b0d0
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x1007be95
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007be20
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edi
cmp eax, 0x7fa
jae 0x1007be86
push 0x2c
push edx
call fcn.100b1b80
mov ebx, 0x800
lea ebp, [esp + 0x20]
mov edx, eax
add esp, 8
sub ebx, edi
add ebp, edi
test edx, edx
jne 0x1007be67
push dword [esi]
push eax
push 0x100f66f4
push ebx
push ebp
call fcn.1005b0d0
add esp, 0x14
jmp 0x1007be84
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
push edx
push 0
push 0x100f66fc
push ebx
push ebp
call fcn.1005b0d0
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x1007be14
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x100f6708
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
call fcn.1005b0d0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1007beeb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100f6598
push ebx
call fcn.100569f0
add esp, 0xc
push edi
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebx
call fcn.1007b770
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.100af09a
add esp, 0x80c
ret
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bf20
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x1007bf59
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bf43
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push 0x100f66d8
sub ecx, esi
lea eax, [esp + 0x34]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.1005b0d0
add esp, 0x28
lea eax, [esp + 0x14]
push 0
push esi
push eax
push dword [ebp + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1007bfac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100f6598
push ebx
call fcn.100569f0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1a]
push eax
push 0x3e
push ebx
call fcn.1007b770
add esp, 0x10
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100af09a
add esp, 0x80c
ret
Function at 0x1007d110
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1011b600]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x398]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x1007d196
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.100b0e00
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x1007d1d1
push 0x100f6bd4
push ebp
call fcn.100569f0
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100af09a
add esp, 0x8c
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1007d1f0.1
jmp dword [ecx*4 + 0x1007d2dc]
cmp esi, 4
jle case.0x1007d1f0.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1007d1f0.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.10056f70
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x1007d1f0.4
push 5
push edi
call fcn.1007dbf0
add esp, 8
jmp 0x1007d1b6
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.1007dc60
add esp, 8
cmp eax, esi
jae case.0x1007d1f0.4
push dword [esp + 0x14]
push 0x100f6bf0
push ebp
call fcn.10056ac0
jmp 0x1007d2b1
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.1007cec0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x1007d1f0.4
jmp 0x1007d1b6
push 0x100f6c00
push 0x100eecac
push ebp
call fcn.100569f0
add esp, 0xc
push ebp
call fcn.100676a0
add esp, 4
test eax, eax
je 0x1007d1b6
push 5
push edi
call fcn.1007dbf0
add esp, 8
mov eax, 0x2a
jmp 0x1007d1b8
Function at 0x10084150
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x101203d4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x100841a1
push 3
push 2
push eax
push eax
push 6
call fcn.100897c0
add esp, 0x14
test al, al
je 0x10084195
mov dword [0x101203d4], 2
add esp, 0xc
ret
mov dword [0x101203d4], 1
jmp 0x100841a6
cmp eax, 2
je 0x100841ec
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100841d1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x100841ec
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x10084cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x1011b600]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10084d8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10084d5c
mov dword [edi], 0x51
jmp 0x10084d8c
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10042810
push eax
push 0x100f73c8
push dword [ebx + 4]
call fcn.100569f0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x934], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push 0x100f73dc
push dword [ebx]
push dword [ebx + 4]
call fcn.10056b50
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100af09a
add esp, 0x104
ret

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

Disassembly:
sub esp, 0x188
mov eax, dword [0x1011b600]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x200]
test dword [eax + 0x44], 0x800
jne 0x10084efd
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.100b1380
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10084e8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.10042810
push eax
push esi
push 0x100f7320
push ebx
call fcn.100569f0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100af09a
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.10057dd0
add esp, 0x10
test al, al
jne 0x10084efd
push edi
call fcn.100bb77d
mov esi, dword [eax]
call fcn.100bb77d
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.10042810
push eax
push dword [edi]
push 0x100f7414
push ebx
call fcn.100569f0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100af09a
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.100af09a
add esp, 0x188
ret
Function at 0x10085f40
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push 0x100f2060
push esi
call fcn.1005c5f0
add esp, 0xc
test eax, eax
je 0x10085f6e
mov ebp, dword [edi + 0xd8]
cmp ebp, 0x191
je 0x10085f90
push 0x13
push 0x100f2074
push esi
call fcn.1005c5f0
add esp, 0xc
test eax, eax
je 0x10085fe6
mov ebp, dword [edi + 0xd8]
cmp ebp, 0x197
jne 0x10085fe6
push esi
call fcn.100620d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10085fa7
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
ret
push esi
push 0x100f79a4
push dword [esp + 0x1c]
push edi
call fcn.10056b50
cmp ebp, 0x197
push ebx
sete al
movzx eax, al
push eax
push edi
call fcn.10063eb0
push ebx
mov esi, eax
call dword [0x1011b0b0]
add esp, 0x20
test esi, esi
je 0x10086183
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push 0xf
push 0x100f19c4
push esi
call fcn.1005c5f0
add esp, 0xc
test eax, eax
je 0x10086040
mov ecx, dword [edi + 0xd8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x10086021
push ecx
push 0x100f79c4
push edi
call fcn.10056ac0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
sub eax, 0xffffff80
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.10068c80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push 0x100f06c0
push 0xb
push 0x100f19d4
push esi
call fcn.10062020
add esp, 0x14
test al, al
jne 0x10086178
push 0x12
push 0x100f19e0
push esi
call fcn.1005c5f0
add esp, 0xc
test eax, eax
je 0x100860df
mov ecx, dword [edi + 0xd8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1008609a
push ecx
push 0x100f79f8
push edi
call fcn.10056ac0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 7
push 0x100f0db8
push 0x12
push 0x100f19e0
push esi
call fcn.10062020
add esp, 0x14
test al, al
je 0x10086183
push 0x100f7a2c
push edi
call fcn.10056ac0
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x8c], 1
call fcn.10089c70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push 0x100f06c0
push 0x11
push 0x100f1f90
push esi
call fcn.10062020
add esp, 0x14
test al, al
jne 0x10086178
push 7
push 0x100f7a48
push esi
call fcn.100c5d50
add esp, 0xc
test eax, eax
jne 0x10086183
mov al, byte [esi + 7]
cmp al, 0x30
je 0x10086119
cmp al, 0x31
jne 0x10086183
cmp byte [esi + 8], 0x20
jne 0x10086183
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x10086183
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x10086183
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0x10086183
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x1008614b
cmp al, 0x39
jle 0x10086183
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xd8], eax
mov dword [edi + 0xd7c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x8d], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1008ecb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x1011b600]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.100cf8ab
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1008ed2f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10042900
push eax
push edi
push 0x100f9030
push ebp
call fcn.100569f0
push esi
call dword [0x1011b0b0]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x1008ee8f
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1008ed89
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10042900
push eax
push edi
push 0x100f9064
push ebp
call fcn.100569f0
push 0
mov esi, 0x4d
call dword [0x1011b0b0]
add esp, 0x20
jmp 0x1008ee81
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1008edc9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10042900
push eax
push edi
push 0x100f9090
push ebp
call fcn.100569f0
add esp, 0x1c
mov esi, 0x4d
jmp 0x1008ee6d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x1008edf7
jg 0x1008eddd
cmp edi, 0x100000
jbe 0x1008edf7
push 0x100000
push 0x100f90c8
push ebp
call fcn.100569f0
add esp, 0xc
mov esi, 0x4d
jmp 0x1008ee6d
lea eax, [edi + 1]
push eax
call dword [0x1011b0ac]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1008ee0f
lea esi, [eax + 0x1b]
jmp 0x1008ee6d
test edi, edi
je 0x1008ee54
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008eeac
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1008eea8
add esi, eax
cmp esi, edi
jb 0x1008ee20
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.1008eab0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x1011b0b0]
add esp, 4
push dword [esp + 0x20]
call fcn.100c46b7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100af09a
add esp, 0x120
ret
mov edi, esi
jmp 0x1008ee54
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10042900
push eax
push dword [esp + 0x24]
push 0x100f90f8
push ebp
call fcn.100569f0
add esp, 0x1c
mov esi, 0x4d
jmp 0x1008ee6d
Function at 0x100959e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x1011b0ac]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10095a0b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x10095a5a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x10095a62
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10095ad6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10095a90
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x10095b05
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x100fa6c1
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x100fa6c2
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10095ae0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10095b10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.10046300
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x1011b0ac]
mov esi, eax
add esp, 8
test esi, esi
je 0x10095c92
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x10095b92
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10095c06
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10095bc0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x10095c35
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x100fa6c1
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x100fa6c2
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10095c10
push dword [esp + 0x30]
call fcn.10046300
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x10095c60
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x1011b0b0]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x10095d60
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10095d86
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10095dbe
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.10046300
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x10095e15
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x10095e24
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x10095e35
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x10096a70
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x10096abc
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x10096a81
pop ebx
pop edi
pop esi
ret

Function at 0x100aeb90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100cbed1
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100aebcf
sub eax, 1
je 0x100aebca
sub eax, 1
je 0x100aebc6
xor eax, eax
leave
ret
push 3
jmp 0x100aebd1
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100bb9a8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100bb9e7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100bb9e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100bb9e7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100bb9e7
cmp dword [ecx + 0x74], 0xe
jbe 0x100bb9e7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret