joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049cf0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push esi
push edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0x48]
mov esi, dword [eax + 0x34]
test ecx, ecx
je 0x10049d10
push esi
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.10040fc0
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x10049d45
movzx ecx, word [edi + 6]
xor edx, edx
xor eax, eax
mov word [esi + 4], cx
cmp dx, cx
jae 0x10049d41
mov ecx, dword [esi + 0x10]
add ecx, 0x1c
mov edi, edi
test byte [ecx], 1
jne 0x10049d5e
movzx edx, word [esi + 4]
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x10049d30
or byte [esi + 6], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push eax
push ecx
call fcn.100410b0
add esp, 0xc
mov dword [ebx], eax
pop edi
pop esi
pop ecx
ret
pop edi
mov dword [ebx], 0xffffffff
pop esi
pop ecx
ret
Function at 0x10055660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
mov eax, ebp
test ebp, ebp
jne 0x10055677
xor ebx, ebx
jmp 0x1005568f
cmp byte [ebp], 0
je 0x10055686
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x10055680
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x10055750
jmp 0x100556b4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x100556bc
xor esi, 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100556e1
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x10]
mov ecx, esi
shl ecx, 4
mov ecx, dword [ecx + edx]
push ecx
push eax
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x1005573d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
shl esi, 4
mov ecx, dword [esi + eax + 0xc]
add ecx, 8
cmp dword [ecx + 0xc], 0
je 0x10055727
xor eax, eax
mov edi, ebx
mov edx, ebp
test ebx, ebx
jle 0x10055721
movzx esi, byte [edx]
movzx esi, byte [esi + 0x103691e8]
lea ebp, [eax*8]
xor esi, ebp
dec edi
xor eax, esi
inc edx
test edi, edi
jg 0x10055702
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x10055729
xor edx, edx
push ebp
call fcn.10027150
add esp, 4
test eax, eax
je 0x1005575a
mov edi, dword [eax + 8]
test edi, edi
jne 0x10055750
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x100556b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x1005573d
Function at 0x10055850
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, edi
test edi, edi
jne 0x10055866
xor ebx, ebx
jmp 0x1005587f
cmp byte [edi], 0
je 0x10055876
jmp 0x10055870
inc eax
cmp byte [eax], 0
jne 0x10055870
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 0x14]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x10055940
mov ecx, dword [ecx + 0x10]
push esi
mov dword [esp + 0x14], ecx
jmp 0x100558a4
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x100558ac
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x100558d1
mov eax, dword [eax]
push eax
push ecx
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x1005591f
cmp dword [esi + 0x24], 0
lea ecx, [esi + 0x18]
je 0x10055909
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x10055903
movzx edi, byte [edx]
movzx edi, byte [edi + 0x103691e8]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x100558e4
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x1005590b
xor edx, edx
push edi
call fcn.10027150
add esp, 4
test eax, eax
je 0x1005593c
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x10055932
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x100558a0
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x1005591f
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1005a5f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
jmp 0x1005a610
mov al, byte [ebp + 0x10369a18]
mov byte [esp + 0x10], al
test edi, edi
je 0x1005a695
cmp byte [edi], 0
mov eax, edi
je 0x1005a62b
inc eax
cmp byte [eax], 0
jne 0x1005a625
mov ecx, dword [esp + 0x20]
sub eax, edi
and eax, 0x3fffffff
add ecx, 0x19c
cmp dword [ecx + 0xc], 0
mov ebx, eax
je 0x1005a67d
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x1005a673
mov edi, edi
movzx edi, byte [edx]
movzx edi, byte [edi + 0x103691e8]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x1005a650
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
jmp 0x1005a67f
xor edx, edx
push edi
call fcn.10027150
add esp, 4
test eax, eax
je 0x1005a691
mov eax, dword [eax + 8]
jmp 0x1005a69c
xor eax, eax
jmp 0x1005a69c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
test eax, eax
je 0x1005a6ac
movzx ecx, byte [esp + 0x10]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x1005a6cd
inc ebp
cmp ebp, 3
mov dword [esp + 0x14], ebp
jl 0x1005a610
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0x10]
pop edi
mov dword [esi + 0x10], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x10084f10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x103b2018]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov ebx, dword [ebp + 0x1c]
xor eax, eax
sub ebx, 6
push esi
xor edx, edx
cmp ebx, eax
push edi
mov dword [esp + 0x10], eax
jle 0x10084f44
mov esi, dword [esp + 0x44]
mov ecx, ebx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jle 0x10084f88
mov ecx, 8
lea ecx, [ecx]
mov esi, dword [esp + 0x10]
cmp esi, dword [ebp + 0x1c]
ja 0x10084f88
cmp eax, ebx
jge 0x10084f76
lea ecx, [ecx]
cmp edx, 4
jge 0x10084f79
mov edi, dword [esp + eax*4 + 0x18]
lea esi, [ecx + edx]
inc eax
inc edx
cmp eax, ebx
mov dword [ebp + esi*4], edi
jl 0x10084f60
cmp edx, 4
jne 0x10084f84
inc dword [esp + 0x10]
add ecx, 4
xor edx, edx
cmp eax, ebx
jl 0x10084f50
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x1c]
ja 0x100850c6
mov esi, 0x103b78c0
jmp 0x10084fa4
mov esi, dword [esp + 0x14]
movzx ecx, byte [esp + ebx*4 + 0x15]
mov al, byte [esp + 0x18]
xor al, byte [ecx + str.cw]
add esi, 4
mov byte [esp + 0x18], al
movzx ecx, byte [esp + ebx*4 + 0x16]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x19], cl
movzx ecx, byte [esp + ebx*4 + 0x17]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x1a], cl
movzx ecx, byte [esp + ebx*4 + 0x14]
xor al, byte [esi - 4]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x1b], cl
mov byte [esp + 0x18], al
mov dword [esp + 0x14], esi
mov eax, 1
cmp ebx, 8
je 0x10085012
cmp ebx, eax
jle 0x10085073
mov ecx, dword [esp + eax*4 + 0x14]
xor dword [esp + eax*4 + 0x18], ecx
inc eax
cmp eax, ebx
jl 0x10085003
jmp 0x10085073
mov ecx, dword [esp + eax*4 + 0x14]
xor dword [esp + eax*4 + 0x18], ecx
inc eax
cmp eax, 4
jl 0x10085012
movzx eax, byte [esp + 0x24]
movzx ecx, byte [eax + str.cw]
movzx eax, byte [esp + 0x25]
xor byte [esp + 0x28], cl
movzx ecx, byte [eax + str.cw]
movzx eax, byte [esp + 0x26]
xor byte [esp + 0x29], cl
movzx ecx, byte [eax + str.cw]
movzx eax, byte [esp + 0x27]
xor byte [esp + 0x2a], cl
movzx ecx, byte [eax + str.cw]
xor byte [esp + 0x2b], cl
mov eax, 5
mov ecx, dword [esp + eax*4 + 0x14]
xor dword [esp + eax*4 + 0x18], ecx
inc eax
cmp eax, 8
jl 0x10085065
xor eax, eax
test ebx, ebx
jle 0x100850b9
mov ecx, dword [esp + 0x10]
lea ecx, [ecx*4 + 8]
mov esi, dword [esp + 0x10]
cmp esi, dword [ebp + 0x1c]
ja 0x100850b9
cmp eax, ebx
jge 0x100850a7
cmp edx, 4
jge 0x100850aa
mov edi, dword [esp + eax*4 + 0x18]
lea esi, [ecx + edx]
inc eax
inc edx
cmp eax, ebx
mov dword [ebp + esi*4], edi
jl 0x10085091
cmp edx, 4
jne 0x100850b5
inc dword [esp + 0x10]
add ecx, 4
xor edx, edx
cmp eax, ebx
jl 0x10085084
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x1c]
jbe 0x10084fa0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10126cba
add esp, 0x2c
ret
Function at 0x100850e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 1
cmp dword [edx + 0x1c], ecx
jbe 0x100851ca
push esi
lea eax, [edx + 0x32]
push edi
jmp 0x10085100
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x103b74c0]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x103b6cc0]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x103b70c0]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x103b68c0]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x103b74c0]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x103b70c0]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x103b6cc0]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x103b68c0]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x103b74c0]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x103b70c0]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x103b6cc0]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x103b68c0]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x103b74c0]
xor esi, dword [edi*4 + 0x103b70c0]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x103b6cc0]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x103b68c0]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x1c]
jb 0x10085100
pop edi
pop esi
ret
Function at 0x100861b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x103b2018]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
mov dword [esp + 0x10], eax
xor esi, esi
xor edi, edi
xor eax, eax
mov byte [esp + eax + 0x14], al
inc eax
cmp eax, 0x100
jl 0x100861e0
xor edx, edx
xor eax, eax
movzx ecx, byte [esp + eax + 0x14]
mov ebx, eax
and ebx, 0x8000000f
jns 0x10086204
dec ebx
or ebx, 0xfffffff0
inc ebx
movzx ebx, byte [ebx + ebp]
add ebx, ecx
add edx, ebx
and edx, 0x800000ff
jns 0x1008621c
dec edx
or edx, 0xffffff00
inc edx
mov bl, byte [esp + edx + 0x14]
mov byte [esp + eax + 0x14], bl
inc eax
cmp eax, 0x100
mov byte [esp + edx + 0x14], cl
jl 0x100861f0
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x120]
sub ebp, ecx
mov edx, 0x20
inc esi
and esi, 0x800000ff
jns 0x10086253
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [esp + esi + 0x14]
add edi, eax
and edi, 0x800000ff
jns 0x1008626a
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], al
movzx ebx, byte [esp + esi + 0x14]
movzx eax, al
add ebx, eax
and ebx, 0x800000ff
jns 0x10086290
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
xor al, byte [ecx + ebp]
inc ecx
sub edx, 1
mov byte [ecx - 1], al
jne 0x10086242
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10126cba
add esp, 0x108
ret
Function at 0x10086760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x103b2018]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [esp + 0xac]
push ecx
push edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], eax
call fcn.10086710
xor eax, eax
add esp, 8
xor ecx, ecx
cmp eax, 0x20
jge 0x100867b1
mov dl, byte [eax + 0x103b469c]
mov byte [esp + eax + 0x7c], dl
inc eax
cmp eax, 0x20
jl 0x100867a1
lea eax, [esp + 0x7c]
push 0x20
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call fcn.10085a50
add esp, 8
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.100859a0
mov edi, 0x32
mov edi, edi
xor eax, eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x10
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.10085a50
add esp, 8
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.100859a0
sub edi, 1
jne 0x10086800
mov ecx, 8
lea esi, [esp + 0xac]
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ebx, ebx
xor eax, eax
jmp 0x10086870
mov dl, byte [esp + eax + 0x6c]
xor dl, bl
mov byte [esp + eax + 0x9c], dl
inc eax
cmp eax, 0x10
jl 0x10086870
lea eax, [esp + 0x7c]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0xa4]
push edx
call fcn.100861b0
inc ebx
add esp, 0xc
cmp ebx, 0x14
jl 0x10086865
lea eax, [esp + 0xac]
push 0x20
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.10085a50
lea ecx, [esp + 0x84]
push 0x20
push ecx
lea eax, [esp + 0x20]
call fcn.10085a50
add esp, 0x10
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.100859a0
mov edi, 0x32
xor eax, eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x10
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.10085a50
add esp, 8
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.100859a0
sub edi, 1
jne 0x10086904
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
pop edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc8]
pop esi
pop ebx
xor ecx, esp
mov dword [eax + 0xc], edx
call fcn.10126cba
mov esp, ebp
pop ebp
ret
Function at 0x10089610
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x100897c0
test esi, esi
je 0x100897c0
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x100897c0
mov ebx, dword [esp + 0x20]
push 2
mov eax, ebx
call fcn.10089570
add esp, 4
cmp dword [ebp], eax
jl 0x100897c0
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
xor ebp, ebp
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
lea eax, [ebp + 0x13]
mov dword [esp + 0x14], ebp
js 0x10089734
cmp ebp, ebx
jne 0x100896a8
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x1008971c
mov ebp, eax
mov edi, edi
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shl ecx, 6
mov byte [esi + 1], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
sub ebp, 1
jne 0x100896b0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc ebp
cmp ebp, ebx
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jle 0x1008968f
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x20]
sub ecx, eax
je 0x100897a9
lea ebp, [ecx + 1]
test ebp, ebp
je 0x100897a9
xor eax, eax
test ecx, ecx
jle 0x10089750
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x1008975e
movzx edx, byte [edi]
or eax, edx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x1008976b
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x1008978a
mov ecx, ebp
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi], dl
inc esi
shl eax, 6
sub ecx, 1
jne 0x10089774
add dword [esp + 0x10], ebp
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x100897a5
push edi
push 0x3d
push esi
call fcn.1012a6a0
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x1008db30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135984
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x103b2018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x634], edi
je 0x1008dc3e
cmp dword [esi + 0x638], edi
je 0x1008dc3e
lea ecx, [ebp - 0x14]
call dword [0x1013762c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call dword [0x1013762c]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x630]
push eax
call sym.NirvanaBiz.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CBaiduUser::GetBaiduID_void_
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov ebx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push ecx
lea edx, [ebp - 0x14]
push str.SELECT__FROM_fc_keyword_list_WHERE_user_id_s
push edx
call ebx
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [0x1013761c]
mov edx, dword [esi + 0x634]
lea ecx, [ebp - 0x3c]
push ecx
push edx
mov ecx, edi
call fcn.10020a50
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.10019f40
cmp byte [esi + 0x498], 0
je 0x1008dc20
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push str.SEARCH_KEYWORDS:__s_COUNT:__d
push ecx
call ebx
mov ecx, dword [esi + 0x638]
add esp, 0x10
lea edx, [ebp - 0x18]
push edx
call sub.NirvanaUtils.dll_public:_long_int___thiscall_GLog::WriteLog_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.10019e40
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1008ddd0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x314]
test eax, eax
je 0x1008de1c
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x314]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x314]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x314], 0
pop esi
pop ecx
ret
Function at 0x1008faa0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x1013651b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x103b2018]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call dword [0x1013762c]
lea eax, [esp + 0xc]
mov byte [esp + 0x18], 1
mov ecx, dword [esi + 0x62c]
push eax
call sym.NirvanaBiz.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CBaiduUser::GetBaiduID_void_
mov byte [esp + 0x18], 2
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x10]
push str.SELECT__FROM_fc_keyword_list_WHERE_user_id_s_AND_keyword_id_IN___s_
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push 1
lea edx, [esi + 0x170]
push edx
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call dword [0x1013761c]
lea ecx, [esi - 4]
call sym.NirvanaBiz.dll_public:_int___thiscall_CSWordModel::LoadKeywordsBySQL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_CMap_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_CNVUserWord___class_CNVUserWord_____bool__bool__bool__bool_
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 8
Function at 0x10091870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10136482
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x103b2018]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x630], 0
je 0x1009193d
cmp dword [esi + 0x62c], 0
je 0x1009193d
lea ecx, [esp + 0xc]
call dword [0x1013762c]
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
mov ecx, dword [esi + 0x62c]
push eax
call sym.NirvanaBiz.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CBaiduUser::GetBaiduID_void_
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
mov byte [esp + 0x28], 1
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
push str.SELECT__FROM_fc_keyword_list_WHERE_user_id_s_AND_plan_id_I64d
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0
push 0
push 1
push 1
lea edx, [esi + 0x170]
push edx
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [0x1013761c]
lea ecx, [esi - 4]
call sym.NirvanaBiz.dll_public:_int___thiscall_CSWordModel::LoadKeywordsBySQL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_CMap_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_CNVUserWord___class_CNVUserWord_____bool__bool__bool__bool_
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8