joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x457b88], 0
je 0x43034f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x456030]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43034f
mov eax, dword [0x457b8c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x457b88]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43031e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x457b88]
call fcn.00413984
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x430316
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x430316
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x430316
mov eax, dword [ebp - 0x14]
call fcn.00438e7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x430316
push ebp
call fcn.004301bc
pop ecx
test al, al
jne 0x430316
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4302d2
mov eax, dword [ebp - 0x14]
call fcn.004379ac
dec eax
jle 0x430316
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004032f8
cmp byte [ebp - 1], 0
je 0x430316
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x430316
mov edx, dword [ebp - 0x14]
mov eax, dword [0x457b8c]
call fcn.0042f988
inc edi
dec ebx
jne 0x430265
mov eax, dword [0x457b8c]
cmp dword [eax + 8], 0
jle 0x430336
mov eax, dword [0x457b8c]
call fcn.0042fa18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43034f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00430024
pop ecx
test al, al
jne 0x43034f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433914
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x433960
mov eax, esi
call fcn.00448fdc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x433960
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x433960
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x433a9f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4339a0
cmp eax, 0x108
ja 0x4339a0
mov eax, esi
call fcn.00448fdc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x433a96
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x433a9f
jmp 0x433a96
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x433a7f
cmp eax, 0x20a
ja 0x433a7f
test byte [esi + 0x50], 0x80
jne 0x4339d2
sub eax, 0x203
je 0x4339cf
sub eax, 3
je 0x4339cf
sub eax, 3
jne 0x4339d2
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4339e6
dec eax
je 0x4339fb
dec eax
je 0x433a18
dec eax
je 0x4339fb
jmp 0x433a1f
mov ecx, ebx
mov eax, dword [0x456030]
mov eax, dword [eax]
mov edx, esi
call fcn.00452788
jmp 0x433a96
cmp byte [esi + 0x5d], 1
jne 0x433a11
mov eax, esi
mov si, 0xffed
call fcn.004032f8
jmp 0x433a9f
or word [esi + 0x54], 1
jmp 0x433a96
and word [esi + 0x54], 0xfffe
jmp 0x433a96
mov eax, dword [0x457b44]
cmp byte [eax + 0x20], 0
je 0x433a96
mov eax, dword [0x457b44]
cmp dword [eax + 0x1c], 0
je 0x433a96
mov eax, dword [ebx]
mov edx, dword [0x457b44]
cmp eax, dword [edx + 0x1c]
jne 0x433a96
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00448f20
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004032f8
jmp 0x433a9f
cmp eax, 0xb00b
jne 0x433a96
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00432250
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43700c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x437028
cmp dword [esi + 4], 0
je 0x437055
test byte [ebx + 0x55], 1
jne 0x437047
mov eax, ebx
call fcn.00435bac
test eax, eax
jne 0x437047
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x437165
mov edx, esi
mov eax, ebx
call fcn.00436b30
jmp 0x437165
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43715e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00438e7c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00433848
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043700c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00438e7c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437165
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d734
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x456194]
cmp byte [eax + 0xc], 0
je 0x43d8a1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d89a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x457b98], 0
jne 0x43d788
push 0x43d8a8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d8b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b98], eax
cmp dword [0x455b58], 0
jne 0x43d883
push 0x43d8c0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x455b58], eax
cmp dword [0x455b58], 0
je 0x43d883
push 0x43d8cc
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b9c], eax
push 0x43d8dc
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457ba0], eax
push 0x43d8f0
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457ba4], eax
push 0x43d908
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457ba8], eax
push 0x43d920
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bac], eax
push 0x43d934
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bb0], eax
push 0x43d94c
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bb4], eax
push 0x43d964
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bb8], eax
push 0x43d980
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bbc], eax
push 0x43d98c
mov eax, dword [0x455b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d8a1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44172c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44177b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448e90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448ee0]
test si, 4
je 0x448ea4
or bl, 1
test si, 8
je 0x448eae
or bl, 4
test si, 1
je 0x448eb8
or bl, 8
test si, 2
je 0x448ec2
or bl, 0x10
test si, 0x10
je 0x448ecc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448edb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x448ee4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448f1c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448efd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448f0c
or bl, 4
test esi, 0x20000000
je 0x448f17
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f5c4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f5d6
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419324
mov eax, dword [0x455e5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f968
mov eax, dword [0x455e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f974
mov eax, ebx
call fcn.0044f980
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44bd9c
push eax
push 0
push 0
mov eax, dword [0x455fb0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ad88]
call fcn.0041c4fc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ad88]
call fcn.0041c4fc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ad88]
call fcn.0041c4fc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044fda0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fc7c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fc7c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fc7c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f713
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fa60
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44fc0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44fbec
mov dl, 1
mov eax, dword [0x411a38]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44fbdb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043da94
test al, al
je 0x44fbce
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44fc1c
lea eax, [ebp - 0x254]
call fcn.004089b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44fbce
xor eax, eax
push ebp
push 0x44fbc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44fc54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44fbb0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44fbb0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fbce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fad1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415514
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fc12
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

Function at 0x450540
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x457be4]
cmp byte [eax + 0xa5], 0
jne 0x4505b1
cmp dword [0x457bfc], 0
jne 0x450572
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4504fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457bfc], eax
cmp dword [0x457bf8], 0
jne 0x45058d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457bf8], eax
cmp dword [0x457c00], 0
jne 0x4505b1
push esp
push 0
push 0
push 0x4504a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457c00], eax
pop edx
ret
Function at 0x4506a8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4506bf
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419324
mov eax, dword [0x455f9c]
cmp word [eax + 2], 0
jne 0x4506e7
mov eax, dword [0x455f9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451d80
mov eax, dword [0x45604c]
cmp word [eax + 2], 0
jne 0x450701
mov eax, dword [0x45604c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451f78
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41161c]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b868]
call fcn.00422be0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450888
mov eax, dword [0x455ebc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422fb0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452518
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455ebc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c084
test eax, eax
je 0x4507f6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c0ac
test eax, eax
je 0x45080a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x455db0]
cmp byte [eax], 0
jne 0x45083e
mov eax, ebx
call fcn.004509b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004526f4
mov eax, ebx
call fcn.004530b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45087e
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x14], esi
call fcn.00406673
mov ecx, dword [0x428e8c]
mov dword [ebp - 4], esi
mov dword [ebp + 8], ecx
mov bl, 2
push str.SELECT_FValue_FROM_System_WHERE_FNameActiveBQNum
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00417bea
mov edx, dword [ebp + 8]
push 4
push edx
push 1
lea ecx, [ebp - 0x138]
call fcn.00406988
cmp eax, esi
je 0x403176
lea ecx, [ebp - 0x28]
call fcn.0040b100
lea eax, [ebp - 0x28]
push esi
push eax
push esi
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 3
call fcn.0040716b
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push eax
call fcn.0040c1d7
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
call fcn.0040b170
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00417aad
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0xffffffff
call fcn.0040687f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4137bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42bf20
cmp edx, dword [eax]
je 0x4137dd
add eax, 8
inc ecx
cmp eax, 0x42bfb0
jl 0x4137ce
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42bf20]
jne 0x41390b
mov eax, dword [0x42e8a4]
cmp eax, 1
je 0x4138e5
test eax, eax
jne 0x41380e
cmp dword [0x429804], 1
je 0x4138e5
cmp edx, 0xfc
je 0x41390b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413845
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413fd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040da30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x413888
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040da30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42369c
push edi
call fcn.0040bff0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413fd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413fe0
lea eax, [ebp - 0xa0]
push 0x42367c
push eax
call fcn.00413fe0
push dword [esi + 0x42bf24]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413fe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004152c2
add esp, 0x2c
pop edi
jmp 0x41390b
lea eax, [ebp + 8]
lea esi, [esi + 0x42bf24]
push 0
push eax
push dword [esi]
call fcn.0040da30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x418d95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x418db7
cmp dword [edi + 0x3c], 0
jne 0x418db7
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0041e706
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00418de4
pop edi
pop esi
pop ebx
ret 8
Function at 0x419124
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4205ac
call fcn.0040cdc8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041e706
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x419163
call fcn.0041e706
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419171
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41917f
or eax, 0xffffffff
jmp 0x419267
mov ecx, esi
call fcn.0041909a
mov dword [ebp - 0x14], eax
call fcn.0041a06b
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4191b6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4191b6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a01f
push dword [ebp - 0x14]
call fcn.00419b6c
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00418e32
cmp eax, edi
je 0x419229
test byte [esi + 0x24], 0x10
je 0x4191f7
push 4
mov ecx, esi
pop ebx
call fcn.00419576
test ah, 1
je 0x4191ef
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041bb76
cmp dword [esi + 0x1c], edi
je 0x419229
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004195aa
jmp 0x419229
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41923d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x419256
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x419256
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004190d4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41ba24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41ba66
call fcn.0041e706
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ba66
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ba5d
xor eax, eax
jmp 0x41ba6e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ba74
pop edi
pop esi
pop ebx
ret 4