joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10145c60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10145e52
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10145e40
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10145e40
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10145e40
cmp dword [esp + 8], 0x10
jl 0x10145e40
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10145e40
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10145e40
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10145e40
push 1
push esi
call fcn.10146010
add esp, 8
test eax, eax
js 0x10145e40
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.101421b0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x10145e40
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10145e40
cmp dword [esp + 8], 0x10
jl 0x10145e40
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x10145e40
cmp dword [esp + 8], 0x10
jl 0x10145e40
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x10145e40
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x10145e40
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x10145e40
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10176fcb
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.10176fcb
add esp, 0x34
ret
Function at 0x10145f10
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.1017c66f
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x10145f36
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x10147dd0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x101fd700]
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.10193aea
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10147e4f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10129100
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10120f40
push esi
call dword [0x101fd2e8]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x10147faf
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x10147ea9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10129100
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10120f40
push 0
mov esi, 0x4d
call dword [0x101fd2e8]
add esp, 0x20
jmp 0x10147fa1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10147ee9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10129100
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10120f40
add esp, 0x1c
mov esi, 0x4d
jmp 0x10147f8d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x10147f17
jg 0x10147efd
cmp edi, 0x100000
jbe 0x10147f17
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10120f40
add esp, 0xc
mov esi, 0x4d
jmp 0x10147f8d
lea eax, [edi + 1]
push eax
call dword [0x101fd2e4]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10147f2f
lea esi, [eax + 0x1b]
jmp 0x10147f8d
test edi, edi
je 0x10147f74
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 0x10147fcc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10147fc8
add esi, eax
cmp esi, edi
jb 0x10147f40
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.10147bd0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x101fd2e8]
add esp, 4
push dword [esp + 0x20]
call fcn.1017c4bc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10176fcb
add esp, 0x120
ret
mov edi, esi
jmp 0x10147f74
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10129100
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10120f40
add esp, 0x1c
mov esi, 0x4d
jmp 0x10147f8d
Function at 0x10153620
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 [0x101fd2e4]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1015364b
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 0x1015369a
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 0x101536a2
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 0x10153716
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 0x101536d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x10153745
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x101bbc8e
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x101bbc8f
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10153720
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10153750
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 sym.user32.dll_git_odb_object_id
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 [0x101fd2e4]
mov esi, eax
add esp, 8
test esi, esi
je 0x101538d2
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 0x101537d2
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 0x10153846
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 0x10153800
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x10153875
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x101bbc8e
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x101bbc8f
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10153850
push dword [esp + 0x30]
call sym.user32.dll_git_odb_object_id
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 0x101538a0
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 [0x101fd2e8]
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 0x10153a40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x10153a8b
mov cl, byte [ebx + esi]
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 [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x10153a51
pop edi
pop esi
pop ebx
ret
Function at 0x101556b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10155835
cmp dword [esi + 0x20], 0
je 0x10155835
cmp dword [esi + 0x24], 0
je 0x10155835
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10155835
cmp dword [eax], esi
jne 0x10155835
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x10155715
cmp eax, 0x39
je 0x10155715
cmp eax, 0x45
je 0x10155715
cmp eax, 0x49
je 0x10155715
cmp eax, 0x5b
je 0x10155715
cmp eax, 0x67
je 0x10155715
cmp eax, 0x71
je 0x10155715
cmp eax, 0x29a
jne 0x10155835
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x1015574e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x10155770
call fcn.10156260
jmp 0x10155775
call fcn.10158390
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.10158b30
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.10178ee0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x101bbcf2]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x101bbcf0]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x101bbcf4]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x101bbcf6]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x1015aae0
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [esp + 8]
lea eax, [edx - 2]
cmp eax, 0xa
ja case.default.0x1015aaf4
jmp dword [eax*4 + 0x1015ac84]
cmp cl, 0x40
jne 0x1015ab06
mov eax, 4
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x1015ab12
cmp al, 0x7a
jbe 0x1015ab7c
cmp cl, 0x30
jl 0x1015ab1c
cmp cl, 0x39
jle 0x1015ab7c
cmp cl, 0x2d
je 0x1015ab7c
cmp cl, 0x5f
je 0x1015ab7c
cmp cl, 0x2e
je 0x1015ab7c
cmp cl, 0x21
je 0x1015ab7c
cmp cl, 0x7e
je 0x1015ab7c
cmp cl, 0x2a
je 0x1015ab7c
cmp cl, 0x27
je 0x1015ab7c
cmp cl, 0x28
je 0x1015ab7c
cmp cl, 0x29
je 0x1015ab7c
cmp cl, 0x25
je 0x1015ab7c
cmp cl, 0x3b
je 0x1015ab7c
cmp cl, 0x3a
je 0x1015ab7c
cmp cl, 0x26
je 0x1015ab7c
cmp cl, 0x3d
je 0x1015ab7c
cmp cl, 0x2b
je 0x1015ab7c
cmp cl, 0x24
je 0x1015ab7c
xor eax, eax
cmp cl, 0x2c
sete al
lea eax, [eax*2 + 1]
ret
mov eax, 3
ret
cmp cl, 0x5b
jne 0x1015ab8d
mov eax, 5
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x1015ab99
cmp al, 0x7a
jbe 0x1015abdd
cmp cl, 0x30
jl 0x1015aba3
cmp cl, 0x39
jle 0x1015abdd
cmp cl, 0x2e
je 0x1015abdd
cmp cl, 0x2d
je 0x1015abdd
cmp cl, 0x5f
je 0x1015abdd
mov eax, 1
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x1015abc4
cmp al, 0x7a
jbe 0x1015abdd
cmp cl, 0x30
jl 0x1015abce
cmp cl, 0x39
jle 0x1015abdd
cmp cl, 0x2e
je 0x1015abdd
cmp cl, 0x2d
je 0x1015abdd
cmp cl, 0x5f
jne case.0x1015aaf4.8
mov eax, 6
ret
cmp cl, 0x3a
jne case.default.0x1015aaf4
mov eax, 0xb
ret
cmp cl, 0x5d
je 0x1015ac2c
cmp cl, 0x30
jl 0x1015abfd
cmp cl, 0x39
jle 0x1015ac21
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x1015ac09
cmp al, 0x66
jbe 0x1015ac21
cmp cl, 0x3a
je 0x1015ac21
cmp cl, 0x2e
je 0x1015ac21
cmp edx, 7
jne case.default.0x1015aaf4
cmp cl, 0x25
jne case.default.0x1015aaf4
lea eax, [edx + 2]
ret
mov eax, 7
ret
cmp cl, 0x5d
jne case.0x1015aaf4.9
mov eax, 8
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x1015ac3e
cmp al, 0x7a
jbe 0x1015ac6d
cmp cl, 0x30
jl 0x1015ac48
cmp cl, 0x39
jle 0x1015ac6d
cmp cl, 0x25
je 0x1015ac6d
cmp cl, 0x2e
je 0x1015ac6d
cmp cl, 0x2d
je 0x1015ac6d
cmp cl, 0x5f
je 0x1015ac6d
cmp cl, 0x7e
mov eax, 1
mov edx, 0xa
cmove eax, edx
ret
mov eax, 0xa
ret
mov al, 9
sub cl, 0x30
cmp al, cl
sbb eax, eax
and eax, 0xfffffff5
add eax, 0xc
ret
Function at 0x1015af70
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
push esi
cmp bl, 0x20
je case.default.0x1015afa1
cmp bl, 0xd
je case.default.0x1015afa1
cmp bl, 0xa
je case.default.0x1015afa1
mov esi, dword [esp + 0xc]
lea eax, [esi - 0x14]
cmp eax, 0xb
ja case.default.0x1015afa1
jmp dword [eax*4 + 0x1015b188]
cmp bl, 0x2f
je 0x1015b018
cmp bl, 0x2a
je 0x1015b018
or bl, 0x20
sub bl, 0x61
cmp bl, 0x19
ja case.default.0x1015afa1
pop esi
mov eax, 0x15
pop ebx
ret
mov al, bl
or al, 0x20
sub al, 0x61
cmp al, 0x19
jbe 0x1015b183
cmp bl, 0x3a
jne case.default.0x1015afa1
pop esi
mov eax, 0x16
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x1015afa1
pop esi
mov eax, 0x17
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x1015afa1
pop esi
mov eax, 0x18
pop ebx
ret
cmp bl, 0x40
je case.default.0x1015afa1
cmp bl, 0x2f
jne 0x1015b020
pop esi
mov eax, 0x1b
pop ebx
ret
cmp bl, 0x3f
je 0x1015b0e3
cmp bl, 0x40
jne 0x1015b036
pop esi
mov eax, 0x1a
pop ebx
ret
mov al, bl
or al, 0x20
cmp al, 0x61
jb 0x1015b042
cmp al, 0x7a
jbe 0x1015b0ab
cmp bl, 0x30
jl 0x1015b04c
cmp bl, 0x39
jle 0x1015b0ab
cmp bl, 0x2d
je 0x1015b0ab
cmp bl, 0x5f
je 0x1015b0ab
cmp bl, 0x2e
je 0x1015b0ab
cmp bl, 0x21
je 0x1015b0ab
cmp bl, 0x7e
je 0x1015b0ab
cmp bl, 0x2a
je 0x1015b0ab
cmp bl, 0x27
je 0x1015b0ab
cmp bl, 0x28
je 0x1015b0ab
cmp bl, 0x29
je 0x1015b0ab
cmp bl, 0x25
je 0x1015b0ab
cmp bl, 0x3b
je 0x1015b0ab
cmp bl, 0x3a
je 0x1015b0ab
cmp bl, 0x26
je 0x1015b0ab
cmp bl, 0x3d
je 0x1015b0ab
cmp bl, 0x2b
je 0x1015b0ab
cmp bl, 0x24
je 0x1015b0ab
cmp bl, 0x2c
je 0x1015b0ab
cmp bl, 0x5b
je 0x1015b0ab
cmp bl, 0x5d
jne case.default.0x1015afa1
pop esi
mov eax, 0x19
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x101bffb8], al
jne 0x1015b183
test bl, bl
js 0x1015b183
cmp bl, 0x23
je 0x1015b11b
cmp bl, 0x3f
jne case.default.0x1015afa1
pop esi
mov eax, 0x1c
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x101bffb8], al
jne 0x1015b123
test bl, bl
js 0x1015b123
cmp bl, 0x23
je 0x1015b11b
cmp bl, 0x3f
je 0x1015b123
pop esi
mov eax, 1
pop ebx
ret
pop esi
mov eax, 0x1e
pop ebx
ret
pop esi
mov eax, 0x1d
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x101bffb8], al
jne 0x1015b153
test bl, bl
js 0x1015b153
cmp bl, 0x23
je 0x1015b183
cmp bl, 0x3f
jne case.default.0x1015afa1
pop esi
mov eax, 0x1f
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x101bffb8], al
jne 0x1015b183
test bl, bl
js 0x1015b183
cmp bl, 0x23
je 0x1015b183
cmp bl, 0x3f
jne case.default.0x1015afa1
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10174cb1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10174cd8
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10174cdb
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10174c8d
pop esi
leave
ret 8

Function at 0x1018879a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10188662
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10188909
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10188909
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101888be
jg 0x101887f6
test eax, eax
je 0x101888b4
push 1
push 0x1000
call fcn.10196094
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10188819
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101888ab
push 0x8000
push ebx
call fcn.10199e90
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10188842
jg 0x1018883d
cmp ecx, 0x1000
jb 0x10188842
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101938ce
add esp, 0x10
cmp eax, 0xffffffff
je 0x10188887
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1018883d
jl 0x1018886e
test ecx, ecx
jne 0x1018882f
push dword [ebp - 0xc]
push ebx
call fcn.10199e90
push esi
call fcn.101960f1
add esp, 0xc
xor ebx, ebx
jmp 0x10188917
cmp byte [edi + 0x24], 0
je 0x1018889e
cmp dword [edi + 0x20], 5
jne 0x1018889e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101888a9
mov ebx, dword [edi + 0x18]
jmp 0x101888ab
xor ebx, ebx
push esi
call fcn.101960f1
pop ecx
jmp 0x10188917
test ecx, ecx
jg 0x10188880
jl 0x101888be
test eax, eax
jae 0x10188880
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10189778
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101888de
cmp byte [edi + 0x1c], 0
je 0x10188880
jmp 0x1018890f
push ebx
call fcn.10188e32
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10188880
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10188917
cmp byte [edi + 0x1c], 0
je 0x10188914
mov ebx, dword [edi + 0x18]
jmp 0x10188917
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10189778
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret