joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418dfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c6d

Function at 0x4191f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f50
mov eax, dword [0x47c300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415f6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419238
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419394
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423500
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47dee8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1ed
mov ecx, dword [esi*4 + 0x47dee8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41938d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41938d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41938d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1ed
add esp, 0x14
test edx, edx
jl 0x41938d
jg 0x419303
test eax, eax
jb 0x41938d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41938d
jl 0x41931d
cmp dword [ebp - 0x1008], eax
ja 0x41938d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41933b
test ebx, ebx
je 0x419374
cmp ecx, edi
jae 0x419374
mov al, byte [ecx]
cmp al, 0xd
jne 0x419355
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419361
cmp byte [ecx + 1], 0xa
jne 0x419361
inc ecx
jmp 0x419361
movzx eax, al
movsx eax, byte [eax + 0x47c5d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41933b
cmp edx, ebx
jne 0x41933b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419392
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004071da
leave
ret
Function at 0x41968b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47dee8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4196cb
cmp byte [ebx], 0xa
jne 0x4196cb
or byte [eax + edi + 0x28], 4
jmp 0x4196d0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197ce
mov al, byte [edx]
cmp al, 0x1a
je 0x4197b0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ff
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419724
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41972e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4196e1
jmp 0x4197ce
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4197ab
cmp dword [ebp - 0xc], 0
je 0x4197ab
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47dee8]
test byte [eax + edi + 0x28], 0x48
je 0x419785
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419770
mov byte [esi], dl
jmp 0x419781
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47dee8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197ce
cmp byte [ebp - 1], 0xa
jne 0x419794
cmp esi, ebx
jne 0x419794
mov byte [esi], 0xa
jmp 0x4197cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a20b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197ce
mov byte [esi], 0xd
jmp 0x4197cd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47dee8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197ce
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47dee8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41981a
cmp word [esi], dx
jne 0x41981a
or byte [edi + eax + 0x28], 4
jmp 0x41981f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419972
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419952
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419861
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419897
cmp eax, edx
jae 0x4198a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419839
jmp 0x419972
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41994e
cmp dword [ebp - 0x14], 0
je 0x41994e
mov eax, dword [ebx*4 + 0x47dee8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419926
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198ef
mov word [esi], cx
jmp 0x419922
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47dee8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47dee8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47dee8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419972
pop ebx
cmp word [ebp - 4], bx
jne 0x419937
cmp esi, dword [ebp + 0xc]
jne 0x419937
mov word [esi], bx
jmp 0x41996f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a20b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419972
push 0xd
jmp 0x41996b
mov ecx, dword [ebx*4 + 0x47dee8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419969
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419972
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b769
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b806
push ebx
push esi
call fcn.0041b732
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a3b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b7b3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b805
push edi
push eax
call fcn.00415136
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b7d3
call fcn.00414f0c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b804
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a3b7
add esp, 0x20
test eax, eax
jne 0x41b7f2
push edi
call fcn.00414f0c
jmp 0x41b7fa
push ebx
call fcn.00414f0c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x47d638
mov ebx, ecx
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.00407197
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424062
push 4
call fcn.00407197
add esp, 4
test eax, eax
je 0x424040
mov dword [eax], 0x424bb0
jmp 0x424042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040e516
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42409d
jmp 0x424064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4240aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4240b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.004050d5
add esp, 0xc
test eax, eax
jne 0x4240b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004071c7
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.0040528b
push 1
call fcn.0040528b
push 5
call fcn.0040528b
push 2
call fcn.0040528b
int3
Function at 0x406cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51ebd8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x3c]
xor ebx, ebx
mov eax, ecx
neg eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
and eax, 3
lea edx, [esi + 0x1003c]
add eax, ecx
mov dword [edx], ebx
mov dword [esi + 0x10040], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edx
mov dword [esp + 0x14], ebx
push 9
mov dword [esi + 0x10044], ebx
call fcn.004d37a6
add eax, 8
mov dword [esi + 0x10044], eax
mov dword [eax - 8], 1
mov eax, dword [esi + 0x10044]
mov byte [eax], bl
mov eax, dword [esi + 0x10044]
add esp, 4
cmp eax, ebx
je 0x406d65
mov dword [eax - 4], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x406df0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x520700
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.00434f90
xor ebp, ebp
mov dword [esp + 0x3c], ebp
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00402700
cmp eax, 1
jne 0x406e42
mov eax, dword [esp + 0x14]
mov dword [eax - 4], ebp
mov byte [esp + 0x3c], 1
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00402700
cmp eax, 1
jne 0x406e61
mov ecx, dword [esp + 0x18]
mov dword [ecx - 4], ebp
mov byte [esp + 0x3c], 2
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push 0x547fa8
push ecx
call fcn.00402230
mov edi, dword [esp + 0x40]
push edi
lea edx, [esp + 0x40]
push str.SELECT_MARK_COUNT_FROM_AnswerTable_WHERE__s
push edx
call fcn.00402230
add esp, 0x34
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040eef0
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
mov byte [esp + 0x48], 3
call fcn.004081a0
test eax, eax
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x1c]
sete bl
cmp eax, ebp
je 0x406ef1
sub eax, 8
push eax
mov dword [esp + 0x20], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x1c], ebp
test bl, bl
je 0x406f40
cmp edi, ebp
je 0x406f05
add edi, 0xfffffff8
push edi
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406f19
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00435090
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x20]
xor esi, esi
call fcn.004354a0
test eax, eax
jle 0x406f6a
push ebp
lea ecx, [esp + 0x24]
call fcn.00435770
push ebp
push str.MARK_COUNT
lea ecx, [esp + 0x28]
call fcn.00435ba0
mov esi, eax
cmp edi, ebp
je 0x406f7a
add edi, 0xfffffff8
push edi
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406f8e
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00435090
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x408590
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x51f568
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
push 9
call fcn.004d37a6
add eax, 8
lea esi, [eax - 8]
mov dword [esi], 1
mov byte [eax], 0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [eax - 4], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00434f90
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push str.SELECT_Q_TYPE_ANSWER_FROM_AnswerExTable_WHERE
push ecx
mov byte [esp + 0x3c], 1
call fcn.0040c300
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
mov byte [esp + 0x3c], 2
call fcn.004081a0
test eax, eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x40]
sete bl
test eax, eax
je 0x408642
sub eax, 8
push eax
mov dword [esp + 0x44], eax
call fcn.004d37ab
add esp, 4
test bl, bl
lea ecx, [esp + 0x14]
je 0x408674
mov byte [esp + 0x30], 0
call fcn.00435090
push esi
call fcn.004d37ab
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
call fcn.004354a0
test eax, eax
jle 0x4086ca
push 0
lea ecx, [esp + 0x18]
call fcn.00435770
test ebp, ebp
je 0x4086a7
push 0x5476a1
push str.Q_TYPE
lea ecx, [esp + 0x1c]
call fcn.00435c10
push eax
mov ecx, ebp
call fcn.0040f320
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x4086ca
push 0x5476a1
push str.ANSWER
lea ecx, [esp + 0x1c]
call fcn.00435c10
push eax
mov ecx, ebx
call fcn.0040f320
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.00435090
push esi
call fcn.004d37ab
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
Function at 0x40b300
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x520700
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.00434f90
xor ebp, ebp
mov dword [esp + 0x3c], ebp
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00402700
cmp eax, 1
jne 0x40b352
mov eax, dword [esp + 0x14]
mov dword [eax - 4], ebp
mov byte [esp + 0x3c], 1
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00402700
cmp eax, 1
jne 0x40b371
mov ecx, dword [esp + 0x18]
mov dword [ecx - 4], ebp
mov byte [esp + 0x3c], 2
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push 0x547fa8
push ecx
call fcn.00402230
mov edi, dword [esp + 0x40]
push edi
lea edx, [esp + 0x40]
push str.SELECT_LAST_SELECT_FROM_AnswerTable_WHERE__s
push edx
call fcn.00402230
add esp, 0x34
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040eef0
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
mov byte [esp + 0x48], 3
call fcn.004081a0
test eax, eax
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x1c]
sete bl
cmp eax, ebp
je 0x40b401
sub eax, 8
push eax
mov dword [esp + 0x20], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x1c], ebp
test bl, bl
je 0x40b450
cmp edi, ebp
je 0x40b415
add edi, 0xfffffff8
push edi
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40b429
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00435090
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x20]
xor esi, esi
call fcn.004354a0
test eax, eax
jle 0x40b47a
push ebp
lea ecx, [esp + 0x24]
call fcn.00435770
push ebp
push str.LAST_SELECT
lea ecx, [esp + 0x28]
call fcn.00435ba0
mov esi, eax
cmp edi, ebp
je 0x40b48a
add edi, 0xfffffff8
push edi
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40b49e
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00435090
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40bcc0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x520410
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x1c]
call fcn.00434f90
xor ebp, ebp
mov dword [esp + 0x38], ebp
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
call fcn.00402700
cmp eax, 1
jne 0x40bd0f
mov eax, dword [esp + 0x10]
mov dword [eax - 4], ebp
mov byte [esp + 0x38], 1
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00402700
cmp eax, 1
jne 0x40bd2e
mov ecx, dword [esp + 0x14]
mov dword [ecx - 4], ebp
mov byte [esp + 0x38], 2
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push 0x547fa8
push ecx
call fcn.00402230
mov edi, dword [esp + 0x3c]
push edi
lea edx, [esp + 0x3c]
push str.SELECT_REMAIN_TIME_MARK_COUNT_FROM_AnswerTable_WHERE__s
push edx
call fcn.00402230
add esp, 0x34
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.0040eef0
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
mov byte [esp + 0x44], 3
call fcn.004081a0
test eax, eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x18]
sete bl
cmp eax, ebp
je 0x40bdbe
sub eax, 8
push eax
mov dword [esp + 0x1c], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x18], ebp
test bl, bl
jne 0x40be03
lea ecx, [esp + 0x1c]
call fcn.004354a0
test eax, eax
jle 0x40be03
push ebp
lea ecx, [esp + 0x20]
call fcn.00435770
push ebp
push str.REMAIN_TIME
lea ecx, [esp + 0x24]
call fcn.00435ba0
mov edx, dword [esp + 0x40]
push ebp
push str.MARK_COUNT
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00435ba0
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
cmp edi, ebp
je 0x40be13
add edi, 0xfffffff8
push edi
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40be27
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00435090
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x4188f0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x418964
cmp dword [ebx + 0x998], 0
jne 0x418964
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.004d71a9
test eax, eax
je 0x41891b
mov eax, dword [eax + 0x20]
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov edi, eax
push esi
push edi
call ebp
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, ebx
call fcn.004d9fcf
push 0
push esi
push edi
call ebp
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x418f10
Capabilities:
Create process on windows

Disassembly:
call fcn.0049d6b0
cmp eax, 0xd
jl 0x418f48
cmp dword [esi + 0x998], 0
jne 0x418f48
push 0
push 0
push str._F__IM_explorer.exe
push str.TASKKILL
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esi + 0x9a4], 1
ret

Function at 0x418f50
Capabilities:
Create process on windows
Schedule task via at
Schedule task via schtasks

Disassembly:
push 0xffffffffffffffff
push 0x521330
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
call fcn.0049d6b0
cmp eax, 0xd
jl 0x419083
cmp dword [ebp + 0x9a4], 0
je 0x419083
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push str._Create__TN__explorer___TR__explorer.exe___SC_ONCE__ST_00:00
push str.schtasks
push str.open
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
push 0
push 0
push str._Run__TN__explorer_
push str.schtasks
push str.open
push 0
call esi
push 0xbb8
call edi
push 0
push 0
push str._Delete__F__TN__explorer_
push str.schtasks
push str.open
push 0
call esi
call fcn.00401bd0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x10]
push eax
mov ecx, str.explorer.exe
mov dword [esp + 0x28], 0
call fcn.0041d390
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x41905a
push str.explorer.exe
lea ecx, [esp + 0x30]
call fcn.00401f50
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x28], 1
call fcn.0041d8d0
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
je 0x41905a
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
mov edi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
lea esi, [ebp + 0xa8c]
push esi
push 0
mov dword [ebp + 0x9a4], 0
call edi
push esi
push 1
call edi
lea esi, [esp + 0x10]
call fcn.0041a420
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4