joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5120
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64cc3e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0042a5f0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x30]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x48]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x48]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x60]
mov byte [ebp - 4], 3
lea ecx, [edi + 0x60]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x78]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x78]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x90]
mov byte [ebp - 4], 5
lea ecx, [edi + 0x90]
push eax
call fcn.0042a5f0
mov eax, dword [esi + 0xa8]
lea ecx, [edi + 0xac]
mov dword [edi + 0xa8], eax
lea eax, [esi + 0xac]
push eax
mov byte [ebp - 4], 6
call fcn.0042a5f0
lea eax, [esi + 0xc4]
mov byte [ebp - 4], 7
lea ecx, [edi + 0xc4]
push eax
call fcn.0042a5f0
mov eax, dword [esi + 0xdc]
lea ecx, [edi + 0xe0]
mov dword [edi + 0xdc], eax
lea eax, [esi + 0xe0]
push eax
mov byte [ebp - 4], 8
call fcn.0042a5f0
lea eax, [esi + 0xf8]
mov byte [ebp - 4], 9
lea ecx, [edi + 0xf8]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x110]
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x110]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x128]
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x128]
push eax
call fcn.0042a5f0
mov byte [ebp - 4], 0xc
lea eax, [esi + 0x140]
lea ecx, [edi + 0x140]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x158]
mov byte [ebp - 4], 0xd
lea ecx, [edi + 0x158]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x170]
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0x170]
push eax
call fcn.0042a5f0
lea eax, [esi + 0x188]
mov byte [ebp - 4], 0xf
lea ecx, [edi + 0x188]
push eax
call fcn.004f4980
lea eax, [esi + 0x3d4]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [edi + 0x3d4]
call fcn.004f4230
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4f7970
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64cfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6d3438]
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 esi, ecx
mov dword [ebp - 0x14], esi
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], eax
mov dword [esi], 0
lea edi, [esi + 4]
mov dword [ebp - 4], 0
mov dword [edi], 0
push 0
push 0
push 0
push 4
push str.Simple_HttpFetcher_1.1
mov byte [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea ecx, [ebp - 0x1c]
cmp esi, ecx
je 0x4f79ec
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x4f79f7
push ecx
jmp 0x4f79f1
test eax, eax
je 0x4f79f7
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x4f7ab2
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xaa0
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4f7a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd150
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_set_secure_protocols
jmp 0x4f7ace
cmp dword [ebx + 0x14], 8
jb 0x4f7a44
mov ebx, dword [ebx]
push 0
push dword [ebp - 0x18]
push ebx
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea ecx, [ebp - 0x1c]
cmp edi, ecx
je 0x4f7a64
mov ecx, dword [edi]
mov dword [edi], eax
test ecx, ecx
je 0x4f7a6f
push ecx
jmp 0x4f7a69
test eax, eax
je 0x4f7a6f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [edi], 0
jne 0x4f7a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd150
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_connect_to_host
jmp 0x4f7ace
mov eax, esi
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.00608185
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd150
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_create_session
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.004857d0
push 0x6cd794
lea eax, [ebp - 0x2c]
push eax
call fcn.0060a2f4
int3
Function at 0x4fc2d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d650
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_unsigned_char__struct_std::char_traits_unsigned_char__.0
call fcn.0060862c
mov esi, eax
add esp, 4
test esi, esi
je 0x4fc330
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.005f3b84
add esp, 4
mov dword [esi + 4], eax
jmp 0x4fc332
xor esi, esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x38], eax
mov dword [ebx], vtable.SKVS_DAD::internal::cryptolib_buf.0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
sub edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x521a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
test al, al
je 0x521a62
cmp al, 3
jb 0x521a42
push esi
call fcn.00521cb0
add esp, 4
test eax, eax
jne 0x521b8f
mov al, byte [esi]
cmp al, 1
jne 0x521a50
mov eax, 0x65
pop esi
pop ebp
ret
cmp al, 2
jne 0x521a62
cmp dword [esi + 4], 0
mov byte [esi], 0
jge 0x521a62
xor eax, eax
pop esi
pop ebp
ret
mov edx, dword [esi + 0x74]
movzx eax, word [esi + 0x46]
push ebx
push edi
cmp byte [edx + 8], 0
mov ecx, eax
jne 0x521aaf
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.00536360
add esp, 8
test eax, eax
jne 0x521b8d
push esi
call fcn.005364a0
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
test ax, ax
jne 0x521b5b
nop dword [eax + eax]
mov bl, byte [esi + 0x44]
test bl, bl
je 0x521b7e
and byte [esi + 1], 0xf9
xor eax, eax
mov ecx, dword [esi + 0x74]
movsx edx, bl
dec bl
mov word [esi + 0x32], ax
mov ax, word [esi + edx*2 + 0x46]
mov word [esi + 0x46], ax
mov byte [esi + 0x44], bl
mov eax, dword [esi + edx*4 + 0x74]
mov dword [esi + 0x74], eax
mov edx, dword [ecx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x521b40
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push edi
mov edi, dword [ebx + 0x48]
mov ecx, edi
call dword [0x659730]
call edi
add esp, 0x10
jmp 0x521b49
push edx
call fcn.005660b0
add esp, 4
movzx eax, word [esi + 0x46]
test ax, ax
je 0x521ac0
mov edx, dword [esi + 0x74]
mov ecx, eax
lea eax, [ecx - 1]
mov word [esi + 0x46], ax
cmp byte [edx + 2], 0
je 0x521b8b
cmp byte [edx + 8], 0
jne 0x521b8b
push 0
push esi
call fcn.0054c010
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
ret
pop edi
pop ebx
mov byte [esi], 1
mov eax, 0x65
pop esi
pop ebp
ret
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x521ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x44]
test al, al
js 0x521c9f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x521c31
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x521c16
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x521c1f
push ecx
call fcn.005660b0
add esp, 4
mov ecx, dword [ebp - 4]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x521bc1
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x521c90
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, dword [ebp + 8]
add esp, 0x10
pop edi
pop ebx
mov byte [esi + 0x44], 0xff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call fcn.005660b0
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x522c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
movzx esi, word [edx + 0x12]
add esi, dword [ebp + 0xc]
cmp esi, dword [eax + 0x3c]
jbe 0x522c61
push 0x674cf4
push 0x118d5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
add esp, 0x14
mov eax, 0xb
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x34]
mov ecx, dword [edx + 0xc]
push ebx
mov dword [ebp - 4], eax
push edi
mov edi, dword [eax + 0x28]
movzx eax, word [edx + 0x10]
sub edi, 4
sub ecx, eax
mov esi, dword [esi - 4]
xor edx, edx
bswap esi
lea eax, [ecx - 1]
add eax, edi
div edi
mov ebx, eax
test ebx, ebx
je 0x522da1
dec ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp esi, 2
jb 0x522daa
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x30]
ja 0x522daa
test ebx, ebx
je 0x522cdc
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
call fcn.005322b0
add esp, 0x10
test eax, eax
jne 0x522da3
mov edi, dword [ebp - 8]
test edi, edi
jne 0x522cec
mov eax, dword [ebp - 4]
push esi
push eax
call fcn.00521740
mov edi, eax
add esp, 8
test edi, edi
je 0x522d1d
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x522d1d
push 0x674cf4
push 0x118fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x522d2e
mov eax, dword [ebp - 4]
push esi
push edi
push eax
call fcn.00530600
add esp, 0xc
mov dword [ebp - 8], eax
test edi, edi
je 0x522d8f
mov edx, dword [edi + 0x48]
test edx, edx
je 0x522d8f
test byte [edx + 0x1c], 0x20
je 0x522d86
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x659730]
call esi
add esp, 0x10
jmp 0x522d8f
push edx
call fcn.005660b0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
jne 0x522da3
mov esi, dword [ebp - 0xc]
test ebx, ebx
jne 0x522c90
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0x674cf4
push 0x118e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
add esp, 0x14
mov eax, 0xb
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x536550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
mov al, byte [esi + 0x44]
test al, al
js 0x53660b
je 0x536606
mov eax, dword [esi + 0x74]
push dword [eax + 0x48]
call fcn.00565290
mov al, byte [esi + 0x44]
add esp, 4
sub al, 1
mov byte [esi + 0x44], al
je 0x5365fb
push ebx
nop word [eax + eax]
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x5365e7
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push edi
mov edi, dword [ebx + 0x48]
mov ecx, edi
call dword [0x659730]
call edi
add esp, 0x10
jmp 0x5365f0
push ecx
call fcn.005660b0
add esp, 4
mov al, byte [esi + 0x44]
sub al, 1
mov byte [esi + 0x44], al
jne 0x536590
pop ebx
mov edx, dword [esi + 0x78]
mov dword [esi + 0x74], edx
jmp 0x536698
mov edx, dword [esi + 0x74]
jmp 0x536683
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x536620
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x53664b
cmp al, 4
jne 0x536633
mov eax, dword [esi + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x10]
call fcn.0050dbb0
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push ecx
push dword [eax + 4]
call fcn.00532030
mov ecx, eax
add esp, 0x14
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x536677
pop edi
mov byte [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [edx + 2]
mov byte [esi + 0x45], al
cmp byte [edx], 0
je 0x5366f9
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x5366f9
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
cmp word [edx + 0x18], ax
jbe 0x5366b7
mov byte [esi], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [edx + 8], al
jne 0x536612
cmp dword [edx + 4], 1
je 0x5366d9
push 0x1145a
call fcn.0054f5b0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.00536360
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x674cf4
push 0x1144d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x540720
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.00562f00
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x540763
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.00562f00
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
Function at 0x549f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0xc], xmm0
call fcn.00536550
add esp, 4
cmp eax, 0x10
jne 0x549f77
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push edi
test eax, eax
jne 0x54a0d4
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x118], 0
jne 0x54a0d4
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x549fb3
cmp byte [edi + 2], cl
jne 0x54a06f
movzx eax, word [edi + 0x18]
cdq
add dword [ebp - 4], eax
adc ebx, edx
mov dword [ebp - 8], ebx
test cl, cl
je 0x54a06f
nop dword [eax + eax]
mov dl, byte [esi + 0x44]
test dl, dl
je 0x54a0bd
and byte [esi + 1], 0xf9
xor eax, eax
movsx ecx, dl
dec dl
mov word [esi + 0x32], ax
mov ax, word [esi + ecx*2 + 0x46]
mov word [esi + 0x46], ax
mov byte [esi + 0x44], dl
mov eax, dword [esi + ecx*4 + 0x74]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x54a04d
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push edi
mov edi, dword [ebx + 0x48]
mov ecx, edi
call dword [0x659730]
call edi
add esp, 0x10
jmp 0x54a056
push edx
call fcn.005660b0
add esp, 4
mov edi, dword [esi + 0x74]
movzx eax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x549fd0
mov ebx, dword [ebp - 8]
inc eax
mov word [esi + 0x46], ax
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x54a088
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x54a0a2
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.00536360
add esp, 8
test eax, eax
je 0x549f90
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
call fcn.00536550
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x559030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
xor edx, edx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [eax + 0x14], edx
jle 0x5590ed
push ebx
nop
mov eax, dword [eax + 0x10]
mov ebx, esi
xor ebx, 1
cmp esi, 2
cmovge ebx, esi
mov ecx, ebx
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
test edi, edi
je 0x5590b1
mov eax, dword [eax + ecx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x559084
test edx, edx
je 0x5590b1
inc eax
jmp 0x559072
movzx ecx, byte [ecx + 0x669d98]
movzx edx, byte [edx + 0x669d98]
sub edx, ecx
jne 0x559099
inc eax
jmp 0x559072
test ebx, ebx
jne 0x5590d1
push dword [ebp + 0x10]
push str.main
call fcn.005713e0
add esp, 8
test eax, eax
jne 0x5590d1
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.0052d540
add esp, 0xc
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x5590e4
jmp 0x5590d4
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc esi
mov edi, dword [ebp + 0x10]
cmp esi, dword [eax + 0x14]
jl 0x559050
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5652f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x56531a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x56531a
cmp dword [edx + 0x60], 0
je 0x565316
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0058e0b0
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x565318
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x565338
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0053a7c0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0053bac0
Function at 0x593ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 0x14
mov dword [ebx], 0
call fcn.00562690
mov esi, eax
add esp, 8
test esi, esi
jne 0x593ee7
lea eax, [esi + 7]
pop esi
pop ebx
pop ebp
ret
cmp byte [0x6d196c], 0
push edi
je 0x593f3d
mov edi, dword [0x6d1a68]
test edi, edi
je 0x593f11
push 0xc8
mov ecx, edi
call dword [0x659730]
call edi
add esp, 4
test eax, eax
jne 0x593f3d
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x571720
push 0
push 0
mov dword [esi + 8], edi
call fcn.0060e7ba
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x593f4d
jmp 0x593f40
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x593f6f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 0x10]
mov ecx, edi
mov dword [esi + 4], eax
call dword [0x659730]
call edi
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x5a5d40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64dfcb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
call fcn.0042a5f0
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x18]
push eax
call fcn.0042a5f0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x30]
push eax
call fcn.0042a5f0
lea esi, [ebx + 0x48]
mov byte [ebp - 4], 2
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0060862c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp - 0x10]
lea eax, [edi + 0x48]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.005a58b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4