joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415120
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea eax, [edi + 0x40]
cmp esi, 0xffffffff
jne 0x415148
mov esi, dword [eax]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x415367
cmp esi, 1
jl 0x415367
cmp esi, dword [eax]
jg 0x415367
lea eax, [esi + esi*8]
shl eax, 3
mov dword [ebp - 0x3fc], eax
cmp dword [eax + ecx + 0xc], 0
je 0x415367
cmp dword [eax + ecx], 0x26
jne 0x415229
push 0x3ac
lea eax, [ebp - 0x3e8]
push 0
push eax
call fcn.0048b770
mov eax, dword [edi + 0x230]
add esp, 0xc
mov dword [ebp - 0x3f4], eax
xor eax, eax
mov dword [ebp - 0x3f8], 0x3bc
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3ec], 4
test ebx, ebx
je 0x4151e2
cmp word [ebx], ax
je 0x4151d8
nop dword [eax]
inc eax
cmp word [ebx + eax*2], 0
jne 0x4151d0
mov ecx, 0x7f
cmp eax, ecx
cmovg eax, ecx
push eax
push ebx
lea eax, [ebp - 0x3e0]
push 0x80
push eax
call fcn.0048cf13
add esp, 0x10
mov dword [ebp - 0xd8], 3
lea eax, [ebp - 0x3f8]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c65
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x238], 0
jne 0x41528b
push 0
push dword [edi + 0x11c]
push 0
push dword [edi + 0x230]
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SHDefExtractIconW
push 0
push 0x4bff5c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x238], eax
test eax, eax
je 0x415367
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x3fc]
xorps xmm0, xmm0
add ecx, dword [edi + 0x3c]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0x30
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0x1c
jne 0x415308
push 0
push esi
push 0x419
mov dword [ebp - 0x30], 0x10
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x415367
lea ecx, [ebp - 0x24]
push ecx
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push 0x41d
push dword [eax + ecx*8 + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x415367
mov dword [ebp - 0x28], esi
jmp 0x415315
mov dword [ebp - 0x30], 0x11
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x186a0
push 0
push 0x418
push dword [edi + 0x238]
call esi
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [edi + 0x238]
mov dword [ebp - 0x10], ebx
call esi
cmp eax, 1
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c65
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489c65
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cf0d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d7200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x1c], 0
mov eax, dword [ebp + 8]
je 0x418d04
cmp dword [ebx], 1
jl 0x418d04
cmp eax, 0xfffffffe
jg 0x418d04
cmp dword [ebx + 4], 2
jne 0x418ba8
cmp eax, dword [ebx + 8]
je 0x418d04
mov ecx, 0xffffff9c
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 8], ecx
cmp eax, 0xffffffff
je 0x418bf2
test eax, eax
je 0x418bf2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x34], 1
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x418bf2
cmp eax, 0xffffffff
je 0x418bf2
push 0
push eax
call edi
cmp eax, 0x102
jne 0x418bf2
push 0x1e
call esi
jmp 0x418bd4
mov ecx, dword [ebx + 0xc]
mov edx, ecx
push dword [ebx + 0x18]
call fcn.00405060
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
push eax
push eax
push esi
push 0
push dword [ebx]
call fcn.00413d30
mov eax, dword [ebx]
mov edx, dword [ebx + 0x1c]
test eax, eax
jne 0x418c2e
mov eax, dword [edx + 0x230]
jmp 0x418c5a
lea ecx, [edx + 0x40]
cmp eax, 0xffffffff
jne 0x418c38
mov eax, dword [ecx]
mov edx, dword [edx + 0x3c]
test edx, edx
je 0x418c58
cmp eax, 1
jl 0x418c58
cmp eax, dword [ecx]
jg 0x418c58
lea eax, [eax + eax*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x418c58
mov eax, dword [edx + eax*8 + 4]
jmp 0x418c5a
xor eax, eax
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 0x20]
mov dword [edi], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x24], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
push 0
movzx eax, dl
and edx, 0xff00
shl eax, 0x10
push 0
or ecx, eax
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0xc]
or ecx, edx
push edi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
push 0x40bb70
push 0
neg eax
mov dword [ebx + 0x28], ecx
push 0
mov dword [ebx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 0x38]
mov edi, eax
cmp ecx, 0xffffffff
je 0x418cc1
test ecx, ecx
je 0x418cc1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x38], edi
test edi, edi
jne 0x418ccf
mov dword [ebx + 0x38], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 4], 2
mov edx, dword [eax + 0x230]
test ecx, ecx
je 0x418cf9
test edx, edx
je 0x418cf9
mov eax, dword [ecx]
push 1
push edx
push ecx
call dword [eax + 0x28]
test esi, esi
je 0x418d04
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
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 0x41a610
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d06d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x4ba0b8
push 1
push 0
push 0x4ba0a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41a72e
cmp dword [ebp - 0x14], 0
je 0x41a72e
push 0x4bfb80
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
call fcn.00401420
mov dword [ebp - 4], 0
mov edx, dword [eax]
test edx, edx
je 0x41a68f
mov edx, dword [edx]
jmp 0x41a691
xor edx, edx
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x18]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41a704
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x41a6fd
test esi, esi
je 0x41a6fd
mov eax, dword [esi]
test eax, eax
je 0x41a6db
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41a6f2
push eax
call fcn.00489c73
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0048a01d
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a730
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x18]
jmp 0x41a730
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489c65
mov esp, ebp
pop ebp
ret
Function at 0x41cd60
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x230]
cmp eax, 0xffffffff
je 0x41ce61
test eax, eax
je 0x41ce61
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 4]
cmp edi, 0xc
jae 0x41ce29
mov eax, dword [esi]
test eax, eax
je 0x41cd9d
push eax
call fcn.00489c73
add esp, 4
push 0xc
call fcn.0048a02b
add esp, 4
mov dword [esi + 4], 0xc
mov edi, eax
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [esi], edi
push 0
push ecx
push 8
push edi
push 0xc
push edi
mov dword [edi], eax
mov dword [edi + 4], 0
push 0x2d1400
push dword [ebx + 0x230]
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41ce61
mov eax, dword [edi + 4]
test eax, eax
je 0x41ce61
mov edi, 0xc
cmp eax, edi
jbe 0x41ce29
mov ecx, dword [esi]
mov edi, eax
add eax, 0xa
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x41ce0f
push ecx
call fcn.00489c73
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.0048a02b
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push eax
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0048b770
add esp, 0x10
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push 0
mov dword [eax], ecx
mov dword [eax + 4], 0
lea eax, [ebx + 4]
push eax
push edi
mov dword [eax], 0
mov ecx, dword [esi]
push ecx
push edi
push ecx
push 0x2d1400
push dword [ebx + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x41e280
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
movups xmm0, xmmword [0x4c0508]
mov ecx, dword [0x4c0538]
mov ebx, eax
mov dword [ebp - 8], ecx
mov cx, word [0x4c053c]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 4], cx
mov ecx, edi
movups xmm0, xmmword [0x4c0518]
push 0x4c0540
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [0x4c0528]
movups xmmword [ebp - 0x18], xmm0
call fcn.00401860
mov esi, 3
mov eax, 8
nop
test ebx, eax
je 0x41e2f5
inc esi
add eax, eax
cmp esi, 0x1a
jb 0x41e2e0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
jne 0x41e30e
push 2
call fcn.0048a02b
add esp, 4
mov dword [edi], eax
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 4], ecx
mov ecx, dword [edi]
mov ax, word [ebp + esi*2 - 0x38]
pop edi
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a996
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48a9d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48a9d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48a9d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48a9d5
cmp dword [ecx + 0x74], 0xe
jbe 0x48a9d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x49a6a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49a6cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49a6cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406960
Capabilities:
Write file on windows

Disassembly:
push esi
call fcn.004238a0
test edi, edi
mov esi, eax
je 0x406a24
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xc0]
add dword [esi + 0xc4], 0xffffffff
mov dword [esi + 0xd0], eax
push 9
mov byte [ecx], 0
add dword [esi + 0xc0], 1
push 2
call fcn.004068d0
add esp, 8
cmp byte [esi + 0x40], 0
je 0x4069b1
push 1
push 4
call fcn.004068d0
add esp, 8
cmp byte [esi + 0x42], 0
je 0x4069c3
push 1
push 5
call fcn.004068d0
add esp, 8
push edi
push 6
call fcn.004068d0
mov eax, dword [esi + 0x2d8]
mov edx, dword [esi + 0xc0]
push eax
add edx, 2
push 8
mov dword [esi + 0xcc], edx
call fcn.004068d0
mov eax, dword [esi + 0x18]
push 7
call fcn.00406830
lea eax, [esi + 0x1c]
push 1
call fcn.00406830
mov ecx, dword [esi + 0xc0]
add dword [esi + 0xc4], 0xffffffff
mov byte [ecx], 0
add esp, 0x18
add dword [esi + 0xc0], 1
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xd4], eax
jmp 0x406a3a
push 4
lea edx, [esi + 0x2d8]
push edx
call sub.fbclient.dll_Ordinal_83
mov ecx, dword [esi + 0xcc]
mov dword [ecx], eax
cmp byte [esp + 0xc], 0
je 0x406aab
mov ecx, dword [esi + 0xac]
mov edx, dword [esi + 0xd0]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406aaf
mov edx, dword [esp + 0xc]
cmp edx, dword [esi + 0xac]
jne 0x406aaf
mov eax, dword [esi + 0x80]
cmp dword [eax + 8], 2
jne 0x406aa4
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x30], edx
jbe 0x406a9d
mov eax, ecx
sub dword [eax + 0x30], edx
mov byte [esi + 0x2dc], 0
mov al, 1
pop esi
ret
mov dword [ecx + 0x30], 0
mov byte [esi + 0x2dc], 0
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x406ac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x78
mov eax, dword [0x440388]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
call fcn.004238a0
mov esi, eax
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x30], 0x64
jae 0x406af7
xor al, al
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00430baf
add esp, 0x78
ret
push edi
push 0
call dword [sym.imp.MSVCR80.dll__time64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 4]
mov edi, dword [eax + 0x28]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll__ctime64]
mov ecx, dword [esi + 0x80]
movzx edx, word [ecx]
mov ecx, dword [ecx + 4]
push edi
push edx
movzx edx, word [ecx + 0x38]
push edx
push eax
push str.InterBase_gbak_
lea eax, [esp + 0x30]
push str._s_.24s________file_No.__4d_of__4d____27.27s
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x24
push 0
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x80]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax + 4]
push 0x64
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], 0x64
pop edi
jne 0x406ae5
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x78]
add dword [eax + 0x30], 0xffffff9c
pop esi
xor ecx, esp
mov al, 1
call fcn.00430baf
add esp, 0x78
ret
Function at 0x406ba0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x440388]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
push edi
call fcn.004238a0
mov esi, eax
mov eax, dword [esi + 0x80]
test eax, eax
je 0x406caf
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x406caf
cmp dword [ecx + 0x34], 0xffffffff
je 0x406caf
push 0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x34]
push 0x64
lea edx, [esp + 0x18]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
test eax, eax
jl 0x406caf
cmp eax, 0x64
jne 0x406caf
mov edi, dword [sym.imp.MSVCR80.dll_strncmp]
push 0x12
lea edx, [esp + 0x10]
push str.InterBase_gbak_
push edx
call edi
add esp, 0xc
test eax, eax
je 0x406c42
push 0x12
lea eax, [esp + 0x10]
push str.InterBase_gsplit_
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x406caf
mov edi, dword [sym.imp.MSVCR80.dll_atoi]
lea ecx, [esp + 0x47]
push ecx
call edi
mov edx, dword [esi + 0x80]
mov ecx, dword [edx + 4]
mov word [ecx + 0x38], ax
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 4]
add esp, 4
cmp word [eax + 0x38], 0
jbe 0x406caf
lea ecx, [esp + 0x4f]
push ecx
call edi
mov edx, dword [esi + 0x80]
mov word [edx], ax
mov eax, dword [esi + 0x80]
add esp, 4
cmp word [eax], 0
jbe 0x406caf
mov esi, eax
mov ecx, dword [esi + 4]
mov dx, word [ecx + 0x38]
cmp dx, word [esi]
ja 0x406caf
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00430baf
add esp, 0x6c
ret
mov ecx, dword [esp + 0x70]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00430baf
add esp, 0x6c
ret
Function at 0x407650
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
push ebp
push esi
push edi
call fcn.004238a0
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov ecx, dword [esi + 0xac]
mov edx, dword [esi + 0xc8]
xor edi, edi
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x2ec]
push ecx
push edx
push eax
mov dword [esp + 0x20], edi
call ebp
mov ecx, dword [esp + 0xc]
cmp ecx, edi
mov edx, dword [esi + 0xc8]
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xc0], edx
jg 0x407757
push ebx
cmp ecx, edi
jne 0x4076d8
cmp eax, edi
je 0x4076d8
mov ecx, dword [esi + 0x2ec]
push edi
mov ebx, Ordinal_1
call fcn.00407310
add esp, 4
cmp dword [esi + 0xc4], edi
mov dword [esi + 0x2ec], eax
jg 0x407756
jmp 0x407713
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x407713
cmp dword [esp + 0xd0], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc4], edi
je 0x407703
lea eax, [esp + 0x14]
push eax
push 0xdc
jmp 0x40770a
lea ecx, [esp + 0x14]
push ecx
push 0x32
push edi
call fcn.00402910
add esp, 0xc
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xc8]
push edi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x2ec]
push eax
push ecx
push edx
mov dword [esp + 0x24], edi
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc4], ecx
mov edx, dword [esi + 0xc8]
mov dword [esi + 0xc0], edx
cmp dword [esi + 0xc4], edi
jle 0x4076aa
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xbc
ret
Function at 0x415430
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x431d18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x440388]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
push esi
push edi
mov eax, dword [0x440388]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x50]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415470
sub eax, edx
lea ebp, [eax + 1]
call fcn.00426980
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x34], eax
mov word [esp + 0x38], 0
mov word [esp + 0x3a], 0x20
mov byte [esp + 0x14], 0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push eax
push ebp
push eax
push edx
push ebp
push eax
lea eax, [esp + 0x34]
push str.EXECUTE_BLOCK_AS_DECLARE_VARIABLE_maxInTable_INT__DECLARE_VARIABLE_currentGen_INT__BEGIN__SELECT_FIRST_1__CAST_SUBSTRING__s_FROM__d_FOR_32__AS_INT__FROM__s__WHERE_SUBSTRING__s_FROM__d_FOR_32__SIMILAR_TO__0_9______AND__s_STARTING_WITH__s_ORDER_BY_1_DESC_INTO_:maxInTable____currentGen__gen_id__s__0____IF__currentGen___maxInTable__THEN___EXECUTE_STATEMENT_SET_GENERATOR__s_TO___maxInTable__END
push eax
mov dword [esp + 0x74], 0
call fcn.00429bb0
mov ecx, dword [esp + 0x60]
add esp, 0x2c
push ecx
push 0
lea edx, [edi + 0x2e4]
push edx
lea eax, [edi + 0x2e0]
push eax
add edi, 0x2f0
push edi
call sub.fbclient.dll_Ordinal_134
test eax, eax
je 0x4154fa
call fcn.00412e90
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x48], 0xffffffff
je 0x41551b
test eax, eax
je 0x41551b
mov ecx, dword [eax - 4]
push eax
call fcn.00428be0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00430baf
add esp, 0x3c
ret
Function at 0x425930
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x42b6b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4325e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x440388]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.0042ff40
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x2c], 0
call fcn.0042b3f0
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
add esp, 0x20
ret

Function at 0x42cf40
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
push 0
push 0
push ebx
call ebp
mov edi, dword [esp + 0x18]
mov esi, eax
test esi, esi
je 0x42cf96
lea eax, [esi - 1]
push eax
mov ecx, edi
call fcn.004299d0
mov eax, dword [edi + 0x24]
push esi
push eax
push ebx
call ebp
cmp eax, esi
jae 0x42cf96
test eax, eax
je 0x42cf96
mov eax, dword [edi + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42cf80
sub eax, edx
mov word [edi + 0x28], ax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
mov ecx, dword [edi + 0x24]
mov byte [ecx], 0
mov eax, dword [edi + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42cfa2
sub eax, edx
mov word [edi + 0x28], ax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x42d0b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
lea edx, [ecx + 8]
push edx
push 0
lea edx, [ecx + 4]
push edx
push 0
push eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x42d0e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
lea eax, [ecx + 8]
push eax
push edx
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 4]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x42e200
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e210
mov ecx, dword [esp + 8]
push ecx
sub eax, esi
push eax
push 1
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
pop esi
ret

Function at 0x430baf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440388]
jne 0x430bb9
repz ret
jmp fcn.004313b3
Function at 0x40351c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x403531
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0040136d
or al, 0x22
mov ebp, 0x8bf88be9
inc edi
cmp al, 0x8b

Function at 0x403730
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403791
cmp word [0x40a218], 0xd7b2
jne 0x403759
cmp dword [0x40a220], 0
jbe 0x403759
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4037b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x409020], 0
jne 0x4037ad
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret