joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455ee4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46fbb8]
cmp dword [eax + 0x30], 0
je 0x455f8e
cmp dword [ebx + 0x94], 0
jne 0x455f88
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455e74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455f88
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455f4e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455f88
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004137e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455f5d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456af0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456b25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x456b32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457b84
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457bc5
mov eax, esi
call fcn.0043de50
test al, al
je 0x457bc5
mov eax, dword [ebx + 0x84]
call fcn.0043db4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457bc5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043db4c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45b28c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45b2ba
mov eax, ebx
call fcn.0045bd40
cmp dword [ebx + 0x40], 0
je 0x45b2b3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45b32b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45b31d
cmp dword [ebx + 8], 0
je 0x45b2dc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45b2ee
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45b31d
cmp dword [ebx + 8], 0
je 0x45b2cf
cmp eax, 3
je 0x45b301
dec eax
jne 0x45b2cf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45b2cf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45b2cf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45b349
cmp dword [ebx + 0x14], 0xcc
je 0x45b349
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045b354
pop ebx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40f6b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40f6d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f6d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f6c8
mov eax, 1
add ebx, ebx
jne 0x40f6eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f6e0
jne 0x40f6fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f6e0
xor ecx, ecx
sub eax, 3
jb 0x40f710
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f782
mov ebp, eax
add ebx, ebx
jne 0x40f71b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f74c
inc ecx
add ebx, ebx
jne 0x40f738
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f72d
jne 0x40f749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f72d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f76c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f75d
jmp 0x40f6ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f76c
add edi, ecx
jmp 0x40f6ce
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f78a
cmp byte [edi], 1
jne 0x40f78a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f78f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f807
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x103f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f7bc
mov ecx, edi
jns 0x40f7eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x103f4]
or eax, eax
je 0x40f801
mov dword [ebx], eax
add ebx, 4
jmp 0x40f7d9
call dword [esi + 0x10404]
mov ebp, dword [esi + 0x103f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f83b
sub esp, 0xffffff80
jmp 0x40173c
Function at 0x1f2a0b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1974000]
push edi
or ebp, 0xffffffff
jmp 0x1f2a0d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f2a0d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a0c8
mov eax, 1
add ebx, ebx
jne 0x1f2a0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f2a0fc
jne 0x1f2a11b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a11b
dec eax
add ebx, ebx
jne 0x1f2a108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f2a0e0
add ebx, ebx
jne 0x1f2a117
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f2a16d
xor ecx, ecx
sub eax, 3
jb 0x1f2a133
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f2a1a2
sar eax, 1
mov ebp, eax
jmp 0x1f2a13e
add ebx, ebx
jne 0x1f2a13e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a10c
inc ecx
add ebx, ebx
jne 0x1f2a14c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a10c
add ebx, ebx
jne 0x1f2a159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f2a14e
jne 0x1f2a16a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f2a14e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f2a18c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f2a17e
jmp 0x1f2a0ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f2a18c
add edi, ecx
jmp 0x1f2a0ce
pop esi
mov edi, esi
mov ecx, 0x4ca7fd
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1f2a1c7
cmp byte [edi], 0x65
jne 0x1f2a1ac
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1f2a1aa
lea edi, [esi + 0x1aee000]
mov eax, dword [edi]
or eax, eax
je 0x1f2a20f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fb799c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fb7acc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f2a1cd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fb7ad4]
or eax, eax
je 0x1f2a209
mov dword [ebx], eax
add ebx, 4
jmp 0x1f2a1ea
call dword [esi + 0x2fb7ad0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1f2a240
cmp al, 0xef
ja 0x1f2a233
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1f2a215
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1f2a222
mov ebp, dword [esi + 0x2fb7ad8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1f2a274
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x10003040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000306a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10003080
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1000b4b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b284d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100d85c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
jbe 0x1000b4f6
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b510
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10006310
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
cmp ecx, 7
jbe 0x1000b593
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b589
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b666
push ecx
push edx
call fcn.100874f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x1000b5cc
test esi, esi
je 0x1000b5cc
push dword [ebp - 0x34]
push edi
mov edi, dword [ebp - 0x2c]
push esi
push edi
call fcn.1000b040
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1000b64b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp eax, 5
jne 0x1000b627
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1000b5e4
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000b619
test edi, 0x400
jne 0x1000b621
push edi
push dword [ebp - 0x30]
call fcn.1000aaa0
mov ecx, dword [ebp - 0x2c]
and edi, 0x10
or edi, 0x20
add esp, 8
shr edi, 4
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x1000b638
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000b624
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
push edi
push eax
push ecx
call fcn.1000ae20
add esp, 0x10
cmp esi, 0xffffffff
je 0x1000b648
test esi, esi
je 0x1000b648
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100874e6
mov esp, ebp
pop ebp
ret
call fcn.10091fa9
int3
Function at 0x1000f220
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x1000f24a
mov edx, dword [esp + 0xc]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1000f234
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret
Function at 0x100102f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2fad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100d85c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10087525
mov edi, eax
add esp, 4
test edi, edi
je 0x1001039d
push 1
mov dword [ebp - 4], 0
call fcn.1006fd53
add esp, 4
mov dword [edi + 4], eax
jmp 0x1001039f
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10010e60
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
not ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [ebp - 4], 1
shl ecx, 2
mov edx, ecx
or edx, 2
test bl, 2
cmovne edx, ecx
mov ecx, edx
or ecx, 8
test bl, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
test bl, 4
cmove eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp dword [ecx + 0x14], 0xf
mov ebx, dword [ecx + 0x10]
jbe 0x100103f8
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
cmp ebx, 0x7fffffff
ja 0x100104be
test ebx, ebx
je 0x1001049e
and eax, 6
cmp al, 6
je 0x1001049b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [esi + 0x40]
push eax
call fcn.10008a70
push ebx
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.100891e0
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + edi]
mov dword [esi + 0x38], ecx
add esp, 0x14
mov ecx, eax
and ecx, 4
mov dword [ebp + 8], ecx
jne 0x1001045b
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
test al, 2
jne 0x10010496
mov edx, dword [esi + 0x38]
test al, 0x18
mov eax, dword [esi + 0x10]
mov ecx, edi
cmovne ecx, edx
sub edx, ecx
cmp dword [ebp + 8], 0
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
je 0x10010493
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
or eax, 1
jmp 0x100104a5
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1006fb0f
int3
Function at 0x100134c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3375
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100d85c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 4
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x100da234
push eax
call fcn.10008d60
mov esi, dword [ebp - 0x4c]
cmp byte [esi + 0xd], 0
jne 0x10013583
cmp dword [esi + 0x10], 4
jg 0x10013583
add esi, 0x14
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x10013522
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x10], ecx
jbe 0x10013542
nop
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [esi + 0x10]
jb 0x10013530
push edx
push esi
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.10013080
mov eax, dword [eax + 4]
test eax, eax
je 0x1001357f
cmp eax, dword [ebx + 4]
je 0x1001357f
cmp dword [ebx + 8], 1
jne 0x1001358d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100874e6
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x10013563
push str.invalid_map_K__T__key
call fcn.1006fb6c
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.100135e0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
push eax
call fcn.1000e0c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.10013470
push 0x100d41cc
lea eax, [ebp - 0x54]
push eax
call fcn.1008916e
int3
Function at 0x1001e270
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x1001e31b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.10020380
mov ecx, eax
add esp, 0xc
cmp ecx, 4
jne 0x1001e2d8
cmp byte [0x100da418], 0
jne 0x1001e2e2
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
test ecx, ecx
jne 0x1001e31b
mov eax, dword [esp + 0x1c]
jmp 0x1001e2ff
imul eax, dword [0x100da414], 0x41c64e6d
add eax, 0x3039
mov dword [0x100da414], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x1001e313
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x1001e303
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x1001e290
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x1001e330
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x1001e3c8
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10020380
add esp, 0xc
cmp eax, 4
jne 0x1001e38c
cmp byte [0x100da418], 0
jne 0x1001e396
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x1001e3cd
mov eax, dword [esp + 0x1c]
jmp 0x1001e3b1
imul eax, dword [0x100da414], 0x41c64e6d
add eax, 0x3039
mov dword [0x100da414], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
cmp eax, 0xfffffffc
jae 0x1001e350
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x1001e350
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1001e3e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.10089760
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x100200e0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x100d85c0]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 4]
and eax, 0xa
cmp al, 0xa
mov eax, dword [ecx + 0xc]
jne 0x10020117
mov esi, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov ebp, dword [eax + 0x80]
jmp 0x10020123
mov esi, dword [eax + 0x30]
mov ebx, dword [eax + 0x34]
mov ebp, dword [eax + 0x4c0]
test esi, esi
je 0x10020204
mov eax, dword [edi]
test eax, eax
je 0x10020160
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10020153
test dl, dl
je 0x1002014f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10020153
add ecx, 2
add eax, 2
test dl, dl
jne 0x10020133
xor eax, eax
jmp 0x10020158
sbb eax, eax
or eax, 1
test eax, eax
je 0x10020204
push edi
call fcn.10020090
push esi
call dword [0x100d8168]
mov edx, eax
add esp, 8
mov dword [edi], edx
test edx, edx
je 0x100201ba
test ebx, ebx
je 0x100201db
mov ecx, ebx
nop
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x100201a0
test al, al
je 0x1002019c
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x100201a0
add esi, 2
add ecx, 2
test al, al
jne 0x10020180
xor eax, eax
jmp 0x100201a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100201db
push ebx
call dword [0x100d8168]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x100201de
push edi
call fcn.10020090
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100874e6
add esp, 0x14
ret
mov dword [edi + 4], edx
mov esi, dword [edi]
test esi, esi
je 0x1002023a
cmp byte [esi], 0
je 0x1002023a
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x10]
push eax
push esi
push 2
call ebx
test eax, eax
je 0x10020223
mov dword [edi + 0xc], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100874e6
add esp, 0x14
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0x17
call ebx
test eax, eax
je 0x1002023a
mov dword [edi + 0xc], 2
jmp 0x10020204
mov ecx, dword [edi]
mov dword [edi + 0xc], 0
cmp byte [ecx], 0
je 0x10020204
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10020250
sub esi, edx
je 0x10020263
cmp byte [ecx + esi - 1], 0x2e
jne 0x10020263
dec esi
cmp esi, 0xffff
jae 0x10020204
lea eax, [esi + 1]
push eax
push 1
call dword [0x100d816c]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x100201ba
push esi
push dword [edi]
push eax
call fcn.1001c140
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x10020204
Function at 0x100226b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1002275f
push esi
call fcn.100403d0
add esp, 4
test al, al
jne 0x1002275f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100226d7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.10041690
add esp, 0xc
test eax, eax
je 0x1002270b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.10041690
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1002270d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x1002273e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.1001c0e0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x10022720
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret