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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46de03
test eax, eax
jbe 0x46de03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46de03
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46ddae
xor esi, esi
jmp 0x46ddb4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46dddf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046fc90
add esi, eax
push esi
mov ebx, esi
call fcn.0046fc90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46ddc0
pop ebp
test edi, edi
pop edi
jne 0x46de03
test ebx, ebx
je 0x46de03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004798c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46df45
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46e05d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46e05d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048b337
mov esi, eax
test esi, esi
je 0x46e05d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46e05d
mov ecx, esi
call fcn.0046deb0
cmp edi, eax
jge 0x46e05d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46dfe3
mov dword [esp + 0x34], 1
jmp 0x46e03e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46e05d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046d490
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48bcdb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48bd13
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489d52
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00489d2a
jmp 0x48bd1f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d3ce
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 0x48d410
call fcn.004933a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d410
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d407
xor eax, eax
jmp 0x48d418
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d41e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4938d2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x493900
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49391e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00493838
jmp 0x49391e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49391e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00493838
test edi, edi
mov eax, edi
jne 0x493908
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e81
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [0x429214], 0
jne 0x401eb0
cmp dword [0x429218], 0
jne 0x401eb0
cmp dword [0x42921c], 0
je 0x401ec8
cmp dword [0x42c28c], 0
je 0x401ec8
call fcn.00403062
mov dword [0x42c28c], 0
cmp dword [0x429218], 0
je 0x401eff
push 0x4244f4
mov eax, dword [0x429218]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [ebp - 4], eax
push 0x424508
mov ecx, dword [0x429218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [ebp - 8], eax
jmp 0x401fea
cmp dword [0x42921c], 0
je 0x401fea
cmp dword [0x4291ec], 0
je 0x401f2e
cmp dword [0x4291e8], 0
je 0x401f2e
call dword [0x4291ec]
push eax
call dword [0x4291e8]
add esp, 4
push str.TJ_GetSakuSysWork
mov edx, dword [0x42921c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [ebp - 4], eax
push str.TJ_GetSakuCmnWork
mov eax, dword [0x42921c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [ebp - 8], eax
push str.DllSlgCopyWork
mov ecx, dword [0x42921c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [0x4291f4], eax
push str.DllCpSlgStandardWork
mov edx, dword [0x42921c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [0x4291fc], eax
push 0x427140
call dword [0x4291f4]
add esp, 4
push 0x427130
call dword [0x4291fc]
add esp, 4
push str.GetTjBupWork
mov eax, dword [0x42921c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [ebp - 0x10], eax
push str.SetTjBupWork
mov ecx, dword [0x429214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x401fea
cmp dword [ebp - 0xc], 0
je 0x401fea
lea edx, [ebp - 0x1c]
push edx
call dword [ebp - 0x10]
add esp, 4
lea eax, [ebp - 0x1c]
push eax
call dword [ebp - 0xc]
add esp, 4
cmp dword [ebp - 4], 0
je 0x40201d
call dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [0x429220], 0
je 0x40201d
cmp dword [ebp - 0x20], 0
je 0x40201d
push 0x1000
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [0x429220]
push edx
call fcn.00412bd0
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x402050
call dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp dword [0x429224], 0
je 0x402050
cmp dword [ebp - 0x24], 0
je 0x402050
push 0x1000
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [0x429224]
push ecx
call fcn.00412bd0
add esp, 0xc
cmp dword [0x429218], 0
je 0x402070
mov edx, dword [0x429218]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
mov dword [0x429218], 0
cmp dword [0x42921c], 0
je 0x40208f
mov eax, dword [0x42921c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
mov dword [0x42921c], 0
mov esp, ebp
pop ebp
ret
Function at 0x402632
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 8], 0
jne 0x402648
xor eax, eax
jmp 0x4026de
mov dword [ebp - 4], 0
jmp 0x40265a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe
jge 0x4026d9
mov ecx, dword [ebp - 4]
add ecx, 0x190
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem_1]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x402685
jmp 0x4026d4
lea eax, [ebp - 0x108]
push eax
push 0x100
push 0xd
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA_1]
lea edx, [ebp - 0x108]
push edx
call fcn.004026e2
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4026bf
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [0x429240]
mov cl, byte [edx + ecx*8 + 4]
mov byte [eax], cl
jmp 0x402651
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402732
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem_1]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402759
xor eax, eax
jmp 0x402849
mov byte [ebp - 0x10c], 0
lea edx, [ebp - 0x10c]
push edx
push 0x100
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA_1]
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004026e2
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402796
cmp dword [ebp - 0xc], 0
jge 0x4027a0
mov eax, 1
jmp 0x402849
mov dword [ebp - 4], 0
jmp 0x4027b2
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xe
jge 0x402844
mov eax, dword [ebp - 4]
add eax, 0x190
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp + 0xc]
jne 0x4027d7
jmp 0x40283f
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem_1]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4027f3
jmp 0x40283f
lea ecx, [ebp - 0x20c]
push ecx
push 0x100
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA_1]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00412f70
add esp, 8
test eax, eax
jne 0x40283f
mov edx, dword [0x429240]
mov eax, dword [edx]
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA_1]
jmp 0x4027a9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40ce20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x42c28c]
sub esp, 0x200
cmp eax, 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
je 0x40ce93
test eax, eax
je 0x40ce40
call fcn.00403062
push esi
push str.SE02B.S2S
push str.DATA_
lea eax, [esp + 0x10]
push 0x443ad8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA_1]
push eax
call esi
push eax
call esi
lea ecx, [esp + 8]
push ecx
call fcn.00402fe9
add esp, 4
mov dword [0x42c28c], 2
pop esi
call fcn.00403027
call edi
mov dword [0x429fe0], eax
pop edi
add esp, 0x200
ret
call edi
mov ecx, dword [0x429fe0]
sub eax, ecx
cmp eax, 0x1f4
jb 0x40ceb0
call fcn.00403027
call edi
mov dword [0x429fe0], eax
pop edi
add esp, 0x200
ret
Function at 0x40fbf0
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
test ebp, ebp
jne 0x40fc22
mov eax, dword [esp + 0x14]
push 0x35
push 0x424a88
push str.CD_ROM_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA_1]
cmp eax, 4
jne 0x40fcf5
jmp 0x40fbf4
call fcn.0040fd00
mov esi, 1
mov ecx, eax
shl esi, cl
cmp eax, 0xffffffff
nop
nop
test ebp, esi
nop
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov al, 0x2e
push edx
push 0x424a9c
mov byte [0x424a9c], al
call fcn.0040fe10
add esp, 0xc
cmp eax, 1
nop
nop
nop
nop
nop
nop
not esi
and ebp, esi
xor edi, edi
xor ebx, ebx
mov esi, 1
mov ecx, ebx
shl esi, cl
test ebp, esi
je 0x40fcbe
mov al, bl
push 0x424a9c
mov al, 0x2e
mov byte [0x424a9c], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test edi, edi
jne 0x40fc94
cmp eax, 5
jmp 0x40fc9e
cmp edi, 1
jne 0x40fcbe
cmp eax, 5
je 0x40fcbe
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0x424a9c
call fcn.0040fe10
add esp, 0xc
cmp eax, 1
je 0x40fceb
not esi
and ebp, esi
inc ebx
cmp ebx, 0x19
jle 0x40fc68
inc edi
cmp edi, 1
jl 0x40fc66
mov eax, dword [esp + 0x14]
push 0x41
push 0x424a88
push 0x425748
push eax
call dword [sym.imp.USER32.dll_MessageBoxA_1]
cmp eax, 1
jne 0x40fcf5
jmp 0x40fbf4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40fd00
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [str.Default_Drive]
mov edx, dword [0x425800]
push ebx
push esi
push edi
mov ecx, 0xf
mov esi, str.SystemCurrentControlSetcontrolMediaResourcesmcicdaudio
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4257fc]
mov dword [esp + 0x1c], eax
mov ax, word [0x425804]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
test edi, edi
je 0x40fdf8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA_1]
test eax, eax
jne 0x40fdf8
mov eax, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
test esi, esi
je 0x40fdb9
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
test edi, eax
je 0x40fdf2
mov cl, bl
push 0x424a9c
mov cl, 0x2e
nop
mov byte [0x424a9c], cl
call esi
cmp eax, 5
nop
nop
mov eax, dword [esp + 0xc]
test eax, eax
jmp 0x40fe02
inc ebx
cmp ebx, 0x19
jle 0x40fdc1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x417b11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426420
cmp edx, dword [eax]
je 0x417b33
add eax, 8
inc ecx
cmp eax, 0x4264b0
jl 0x417b24
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426420]
jne 0x417c61
mov eax, dword [0x44bf80]
cmp eax, 1
je 0x417c3b
test eax, eax
jne 0x417b64
cmp dword [0x425b14], 1
je 0x417c3b
cmp edx, 0xfc
je 0x417c61
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA_1]
test eax, eax
jne 0x417b9b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418810
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004164f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417bde
lea eax, [ebp - 0x1a4]
push eax
call fcn.004164f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x422418
push edi
call fcn.00419900
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418810
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418820
lea eax, [ebp - 0xa0]
push 0x4223f8
push eax
call fcn.00418820
push dword [esi + 0x426424]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418820
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041bacc
add esp, 0x2c
pop edi
jmp 0x417c61
lea eax, [ebp + 8]
lea esi, [esi + 0x426424]
push 0
push eax
push dword [esi]
call fcn.004164f0
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_1]
pop esi
leave
ret
Function at 0x450e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
lea eax, [esp + 0x50]
push edi
mov esi, ecx
push eax
mov edi, edx
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call edi
mov ebx, eax
mov edi, dword [esp + 0x78]
push edi
call fcn.00450c40
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
push edx
sub eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
call fcn.00450d40
mov ebp, eax
push edi
call fcn.00450d60
push edi
mov dword [esp + 0x7c], eax
call fcn.00450d80
push 0
push edi
push ebp
push 4
push edi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ebp, eax
push ebp
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
sub edx, edi
xor eax, eax
test edx, edx
jle 0x450f84
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov ebp, edx
mov dword [esp + 0x44], eax
add ecx, eax
sub ebp, edi
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], ecx
jle 0x450f6c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
lea ebp, [eax + edi]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450f56
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push ebx
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov eax, ebp
sub ecx, edi
cmp eax, ecx
jl 0x450f0d
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
cmp eax, ecx
jl 0x450ef1
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
push edx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
Function at 0x451c00
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp word [esi], 3
jne 0x451c20
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x451c2e
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
mov edx, edi
call fcn.00451a10
test eax, eax
jne 0x451c35
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8

Function at 0x4540f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45414a
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x454940
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x45ed80]
push ebx
push ebp
push esi
mov esi, dword [ecx + 6]
push edi
mov edi, edx
mov edx, dword [ecx + 2]
xor edx, eax
mov eax, edx
mov dword [ecx + 2], edx
mov edx, dword [ecx + 0xa]
xor esi, eax
mov eax, dword [esp + 0x14]
xor esi, edx
add esi, eax
xor edx, edx
mov eax, esi
mov ebx, dword [ecx + 6]
mov ebp, dword [eax]
xor ebp, ebx
inc edx
mov dword [eax], ebp
mov ebx, dword [ecx + 0xa]
mov ebp, dword [eax + 4]
add eax, 4
xor ebp, ebx
inc edx
mov dword [eax], ebp
add eax, 4
cmp edx, 0x14
jl 0x454969
mov ecx, dword [edi]
call fcn.00458440
mov dword [edi], 0
cmp word [0x45ee10], 0
je 0x4549ac
cmp word [0x45b29a], 0
je 0x4549ac
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x456050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push 0x104
mov edi, edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x456081
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x4560a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__lopen]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push 0x1a3
push 0x45b3a0
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45610d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
lea ecx, [edi - 0x104]
test ecx, ecx
jle 0x45613f
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
sub edi, 0x104
cmp edi, 0x104
jg 0x456117
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
push ebx
call ebp
lea edx, [esp + 0x118]
mov edi, dword [esp + 0x10]
push 0x200
push edx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4561be
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
jne 0x4561f3
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
je 0x4561d2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call ebp
push ebx
call ebp
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret