joyce8/EMBER2024-capa huggingface dataset:
Function at 0x600300
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 4], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov eax, dword [esi + edi*4 + 0x18]
test eax, eax
jne 0x60033e
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + edi*4 - 8]
push eax
push ecx
push edx
push esi
call fcn.005fff70
add esp, 0x10
mov dword [esi + edi*4 + 0x18], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x600415
mov eax, dword [esi + edi*4 + 0x18]
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
push 1
push eax
mov dword [ebp + 8], eax
call fcn.0058f2a0
mov eax, dword [ebp + 8]
push eax
call fcn.0058daf0
add esp, 0x14
cmp eax, 0x65
jne 0x6003b0
mov eax, dword [ebp + 0xc]
test eax, eax
mov eax, str.__rowid
jne 0x600383
mov eax, str.__parent
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
push edi
push ebx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.005fffe0
mov eax, dword [ebp + 8]
add esp, 0x1c
push eax
push esi
call fcn.006002e0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x64
jne 0x600407
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.0058ed20
mov ecx, dword [ebp + 0x18]
add esp, 8
cmp eax, ecx
mov dword [ebp + 0x14], edx
jne 0x6003d2
cmp edx, dword [ebp + 0x1c]
je 0x600407
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], str.__rowid
test edx, edx
jne 0x6003e7
mov dword [ebp + 0xc], str.__parent
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push ecx
push edx
push eax
push edi
push ebx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.005fffe0
add esp, 0x2c
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.006002e0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x607fb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
lea esi, [edi + 0x3c]
test eax, eax
jne 0x607fe1
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
push str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
call fcn.0057aa30
push eax
push esi
push edi
call fcn.00602d20
add esp, 0x18
mov eax, dword [esi]
pop edi
pop esi
pop ebp
ret

Function at 0x608250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, 0xd
dec ecx
test ecx, ecx
jl 0x60827a
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edx, edx
lea edi, [eax*8]
mov dl, byte [ecx + esi]
xor edx, edi
xor eax, edx
dec ecx
jns 0x608265
pop edi
pop esi
xor edx, edx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret
Function at 0x613190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, 0xd
dec eax
test eax, eax
jl 0x6131ba
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edx, edx
lea edi, [ecx*8]
mov dl, byte [eax + esi]
xor edx, edi
xor ecx, edx
dec eax
jns 0x6131a5
pop edi
pop esi
mov edx, dword [ebp + 0xc]
lea eax, [ecx*8]
and edx, 0xff
xor eax, edx
xor edx, edx
xor eax, ecx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret
Function at 0x614bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ebx
xor eax, eax
push esi
push edi
test edx, edx
mov dword [ebp - 4], eax
mov dword [ecx], eax
je 0x614c9a
mov esi, dword [ebp + 0x14]
mov ecx, 0xd
lea eax, [esi - 1]
test eax, eax
jl 0x614c00
mov edi, dword [ebp + 0x10]
lea ebx, [ecx*8]
movsx edi, byte [eax + edi]
xor edi, ebx
xor ecx, edi
dec eax
jns 0x614beb
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor ebx, edi
and ecx, 0x3f
and ebx, 0x1ff
shl ecx, 3
xor ebx, ecx
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x614c54
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
cmp ecx, eax
jne 0x614c3b
cmp dword [edx + 4], esi
jne 0x614c3b
mov edi, dword [ebp + 0x10]
mov ecx, esi
mov esi, dword [edx]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x614c44
mov esi, dword [ebp + 0x14]
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x614c1c
jmp 0x614c54
mov ecx, dword [ebp + 0x18]
test edx, edx
mov dword [ecx], 1
jne 0x614c97
mov esi, dword [ebp + 0x14]
lea edx, [esi + 0x10]
push 0
lea eax, [ebp - 4]
push edx
push eax
call fcn.006018f0
add esp, 0xc
test eax, eax
je 0x614c97
mov ecx, dword [ebp + 0xc]
lea edi, [eax + 0x10]
mov dword [eax + 8], ecx
mov ecx, esi
mov edx, ecx
mov dword [eax + 4], esi
mov esi, dword [ebp + 0x10]
mov dword [eax], edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0xc], edx
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x61b3c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x61fa80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x625ab1
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea esi, [ecx + 2]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2dc], esi
Function at 0x628c20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push str.main
push edi
mov byte [ebx], 0
call fcn.00628d90
add esp, 8
test eax, eax
jne 0x628c49
pop edi
mov byte [ebx], 3
pop esi
pop ebx
pop ebp
ret
mov eax, dword [edi + 0x1f8]
test eax, eax
jne 0x628c5d
pop edi
mov byte [ebx], 1
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
push str.SELECT_pwsqlite_crypt__1_pw___isAdmin_FROM___w_.sqlite_user_WHERE_uname_2
push edi
call fcn.00628d00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x628c7f
pop edi
pop esi
mov eax, 7
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1f0]
mov edx, dword [edi + 0x1f4]
push 0
push ecx
push edx
push 1
push esi
call fcn.0058efe0
mov eax, dword [edi + 0x1f8]
push 0
push 0xffffffffffffffff
push eax
push 2
push esi
call fcn.0058f390
push esi
call fcn.0058daf0
add esp, 0x2c
cmp eax, 0x64
jne 0x628ce4
push 0
push esi
call fcn.0058ecf0
add esp, 8
test eax, eax
je 0x628ce4
push 1
push esi
call fcn.0058ecf0
add esp, 8
add al, 2
mov byte [ebx], al
push esi
call fcn.0058a550
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
mov byte [ebx], 1
call fcn.0058a550
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x629ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
cmp dword [esi + 0x1c], ecx
jbe 0x629bcf
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor edx, edx
mov bl, byte [eax - 1]
mov dl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x8594c0]
mov edx, dword [edx*4 + 0x859cc0]
xor ebx, ebx
xor edx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x8598c0]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor edx, edi
mov edi, dword [ebx*4 + 0x8590c0]
xor ebx, ebx
xor edx, edi
mov dword [eax - 0x12], edx
mov bl, byte [eax - 0xc]
xor edx, edx
mov dl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x8598c0]
xor ebx, ebx
mov edx, dword [edx*4 + 0x859cc0]
mov bl, byte [eax - 0xd]
xor edx, edi
mov edi, dword [ebx*4 + 0x8594c0]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor edx, edi
mov edi, dword [ebx*4 + 0x8590c0]
xor ebx, ebx
xor edx, edi
mov dword [eax - 0xe], edx
mov bl, byte [eax - 8]
xor edx, edx
mov dl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x8598c0]
xor ebx, ebx
mov edx, dword [edx*4 + 0x859cc0]
mov bl, byte [eax - 9]
xor edx, edi
mov edi, dword [ebx*4 + 0x8594c0]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor edx, edi
mov edi, dword [ebx*4 + 0x8590c0]
xor ebx, ebx
xor edx, edi
mov dword [eax - 0xa], edx
mov bl, byte [eax - 4]
xor edx, edx
mov dl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x8598c0]
xor ebx, ebx
mov edx, dword [edx*4 + 0x859cc0]
mov bl, byte [eax - 5]
xor edx, edi
mov edi, dword [ebx*4 + 0x8594c0]
xor ebx, ebx
mov bl, byte [eax - 6]
xor edx, edi
mov edi, dword [ebx*4 + 0x8590c0]
xor edx, edi
inc ecx
mov dword [eax - 6], edx
mov edx, dword [esi + 0x1c]
cmp ecx, edx
jb 0x629ada
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x62a7b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax], 0
mov dword [eax + 4], 0
pop ebp
ret
Function at 0x62b620
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor eax, eax
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jl 0x62b636
xor edi, edi
mov eax, esi
mov ebx, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
xor ecx, ecx
xor eax, eax
mov cl, byte [ebp + esi - 0x108]
mov al, byte [edx + ebx]
add eax, ecx
add edi, eax
and edi, 0x800000ff
jns 0x62b672
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], dl
inc esi
cmp esi, 0x100
mov byte [ebp + edi - 0x108], cl
jl 0x62b647
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x62b725
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub edx, ecx
mov dword [ebp + 0xc], eax
inc esi
and esi, 0x800000ff
jns 0x62b6bd
dec esi
or esi, 0xffffff00
inc esi
xor eax, eax
mov al, byte [ebp + esi - 0x108]
add edi, eax
and edi, 0x800000ff
jns 0x62b6d8
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], bl
xor ebx, ebx
mov byte [ebp + edi - 0x108], al
mov bl, byte [ebp + esi - 0x108]
and eax, 0xff
add ebx, eax
and ebx, 0x800000ff
jns 0x62b70d
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x108]
mov bl, byte [edx + ecx]
xor al, bl
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
inc ecx
dec eax
mov dword [ebp + 0xc], eax
jne 0x62b6ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6378c7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d6d16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.006bf7f4
mov eax, dword [0x869df8]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x75b864
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x637924
push ebx
call dword [0x6db40c]
inc eax
push eax
call fcn.006c0896
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [0x6db414]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x642ae4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x642c9d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x642c16
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x642c16
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x642bfd
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x642bfd
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.00643d50
mov ebp, eax
test ebp, ebp
je 0x642bf5
push ebp
mov ecx, esi
call fcn.006451d0
test eax, eax
je 0x642bf5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x642bf5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x642bb6
xor eax, eax
jmp 0x642bbe
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.00645b90
inc ebx
xor ebp, ebp
jmp 0x642b47
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x642b20
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.00644060
test eax, eax
pop ebx
je 0x642c9d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.00643d50
mov edi, eax
cmp edi, ebp
je 0x642c9d
push edi
mov ecx, esi
call fcn.006451d0
test eax, eax
je 0x642c9d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.006442a0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.00644310
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.00645b90
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x64ce00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6d8017
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x75c884
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.006beb45
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.006beb45
mov edi, dword [0x6db67c]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x75c870
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x6db5cc]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x6db0b0]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0064d920
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x688cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x688d43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x688d2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x68f6c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d9afe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0068ffe0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x75d634
call fcn.006c0896
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x68f753
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006c0896
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x68f74c
push 0
mov ecx, eax
call fcn.00686800
mov dword [esi + 0xc], eax
jmp 0x68f755
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x68f755
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4216b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4c98
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], edi
mov byte [ebp - 0x65], 0
cmp dword [eax + 0x14], 0x10
jb 0x4216f9
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x421719
push 0x67da3c
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 9
push eax
call fcn.005ba7c3
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.004232a0
add esp, 0x18
mov dword [ebp - 0x28], 0xf
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x421766
xor ecx, ecx
jmp 0x421779
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421770
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00421120
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00424460
mov ebx, eax
lea esi, [edi + 0xc]
cmp esi, ebx
je 0x4217c9
cmp dword [esi + 0x14], 8
jb 0x4217ae
push dword [esi]
call fcn.005ba02a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00424e30
cmp dword [ebp - 0x40], 8
jb 0x4217da
push dword [ebp - 0x54]
call fcn.005ba02a
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
jb 0x421802
push dword [ebp - 0x3c]
call fcn.005ba02a
add esp, 4
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x421811
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x42183a
push 0x67da3c
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0xa
push eax
call fcn.005ba7c3
push 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x2710
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x64], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push 0x10
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4218a4
push 0x67da3c
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 2
push eax
call fcn.005ba7c3
mov al, 1
jmp 0x4218bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 8
Function at 0x427010
Capabilities:
Initialize winhttp library

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x24]
mov dword [esi], vtable.CWinHttp.0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x1388
mov dword [esi + 0x1c], 0x1388
mov dword [esi + 0x20], 0x1388
call fcn.00428100
push 0
push 0
push 0
xorps xmm0, xmm0
push 0
movq qword [esi + 0x7c], xmm0
push 0x65e934
mov dword [esi + 0x84], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x427090
mov dword [esi + 0x84], 1
mov eax, esi
pop esi
ret
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
pop esi
ret