joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416100
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or edx, 0xffffffff
mov al, 0x23
push ebx
push esi
push edi
mov edi, dword [0x45f4d8]
mov esi, 0x4574a1
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x41612e
cmp byte [esi], al
jne 0x41612e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x457de0]
test al, al
jne 0x416120
not edx
mov ecx, edx
call fcn.0040c9f0
cmp byte [edi + 0xd0], 0
je 0x41616a
test eax, eax
je 0x41616a
cmp byte [eax + 0xbb], 0
je 0x41616a
mov bl, 1
jmp 0x41616c
xor bl, bl
movss xmm2, dword [0x45cd9c]
lea eax, [ebp - 0x24]
movss xmm0, dword [edi + 0x3a04]
lea ecx, [edi + 0x4a68]
movss xmm1, dword [0x45cd30]
movaps xmm3, xmm2
subss xmm3, xmm0
mov dword [ebp - 0x24], 4
xorps xmm4, xmm4
push eax
mulss xmm3, xmm1
addss xmm3, xmm0
movss xmm0, dword [edi + 0x3a08]
subss xmm4, xmm0
movss dword [ebp - 4], xmm3
xorps xmm3, xmm3
mulss xmm4, xmm1
addss xmm4, xmm0
movss xmm0, dword [edi + 0x3a0c]
subss xmm3, xmm0
movss dword [ebp - 8], xmm4
mulss xmm3, xmm1
addss xmm3, xmm0
movss xmm0, dword [edi + 0x3a10]
subss xmm2, xmm0
movss dword [ebp - 0xc], xmm3
mulss xmm2, xmm1
addss xmm2, xmm0
movups xmm0, xmmword [edi + 0x3a04]
movups xmmword [ebp - 0x20], xmm0
movss dword [ebp - 0x10], xmm2
call fcn.0041ef70
cmp dword [edi + 0x4a64], 4
je 0x416247
movss xmm0, dword [ebp - 4]
movss dword [edi + 0x3a04], xmm0
movss xmm0, dword [ebp - 8]
movss dword [edi + 0x3a08], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [edi + 0x3a0c], xmm0
movss xmm0, dword [ebp - 0x10]
movss dword [edi + 0x3a10], xmm0
test bl, bl
je 0x41628e
mov edx, dword [0x45f4d8]
or dword [edx + 0x49f8], 1
mov eax, dword [edi + 0x518c]
mov ecx, dword [edi + 0x5190]
mov dword [edx + 0x4a08], eax
mov dword [edx + 0x4a0c], ecx
mov dword [edx + 0x4a10], 0
mov dword [edx + 0x4a14], 0
mov dword [edx + 0x49fc], 1
push 0x200016f
xor edx, edx
mov ecx, str.Tooltip_Error
call fcn.0040f800
add esp, 4
mov ecx, 1
mov bl, al
call fcn.00404230
test bl, bl
je 0x416310
mov ecx, dword [edi + 0x400c]
cmp word [ecx + 0xc8], 1
jne 0x416315
mov ecx, str.MESSAGE_FROM_DEAR_IMGUI
call fcn.0043b7e0
mov ecx, dword [edi + 0x400c]
call fcn.00412310
mov ecx, dword [edi + 0x400c]
call fcn.00412290
mov eax, dword [0x45f4d8]
mov eax, dword [eax + 0x400c]
movss xmm0, dword [eax + 0x18]
movss xmm1, dword [eax + 0x1c]
mov al, bl
movss dword [edi + 0x518c], xmm0
movss dword [edi + 0x5190], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00412060
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5158], 0
lea esi, [edi + 0x515c]
je 0x41cf42
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41cefc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0041f5b0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004032d0
mov edx, dword [esi]
mov ecx, 0x45f4d4
push dword [edi + 0x5158]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5164]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004032d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d350
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x45f4d8]
test bl, bl
je 0x41d396
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41d377
cmp byte [esi], bl
jne 0x41d377
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x457de0]
test bl, bl
jne 0x41d368
mov edi, dword [0x45f4d8]
mov ecx, dword [edi + 0x50f4]
not eax
mov edx, dword [edi + 0x50fc]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41d3bd
cmp dword [edx + 4], eax
je 0x41d3c0
add edx, 0x24
cmp edx, ecx
jne 0x41d3b1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x431190
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x45f4d8]
lea eax, [ebp - 0x10]
push edi
mov ebx, ecx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x431341
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x431341
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x45f4d8]
add esp, 4
mov edi, eax
test ecx, ecx
je 0x431238
movsx edx, word [ecx + 0x524c]
lea eax, [ecx + 0x5250]
mov ebx, dword [ecx + 0x3f78]
lea eax, [eax + edx*8]
cmp dword [eax], ebx
je 0x43122b
lea eax, [edx + 1]
mov dword [ebp - 0x24], 6
cdq
idiv dword [ebp - 0x24]
movzx eax, dx
mov word [ecx + 0x524c], ax
cwde
add eax, 0xa4a
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], ebx
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [ecx + 0x5244]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x43124b
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x43124d
xor edi, edi
or dword [esi + 0xc], 6
mov dword [esi + 0x80], edi
mov dword [esi + 0x78], str.imgui_impl_win32
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov esi, dword [esi + 0x80]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4312a8
mov dword [esi], eax
mov eax, dword [0x45f4d8]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4adc]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x43130f
inc esi
cmp esi, 5
jl 0x4312e6
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453924
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453924
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453924
mov esp, ebp
pop ebp
ret
Function at 0x44cc70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x45f4d8]
mov ebx, dword [edi + 0x400c]
cmp byte [ebx + 0xbf], 0
jne 0x44cd72
mov esi, dword [edi + 0x4de4]
test esi, esi
jne 0x44cca3
mov ecx, str.Mismatched_BeginTabBar___EndTabBar___
pop edi
pop esi
pop ebx
jmp fcn.00415bf0
cmp byte [esi + 0x73], 0
je 0x44ccb0
mov ecx, esi
call fcn.0044cd80
cmp byte [esi + 0x74], 0
jne 0x44ccd4
cmp dword [esi + 0x20], 0
je 0x44ccd4
mov eax, dword [esi + 0x28]
inc eax
cmp eax, dword [edi + 0x3f78]
jl 0x44ccd4
movss xmm1, dword [esi + 0x40]
addss xmm1, dword [esi + 0x38]
jmp 0x44ccf3
movss xmm1, dword [esi + 0x38]
movss xmm0, dword [ebx + 0x104]
subss xmm0, xmm1
maxss xmm0, dword [esi + 0x3c]
movss dword [esi + 0x3c], xmm0
addss xmm1, xmm0
movss dword [ebx + 0x104], xmm1
cmp byte [esi + 0x72], 1
jle 0x44cd19
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
or eax, 0xffffffff
test dword [esi + 0x10], 0x100000
mov word [esi + 0x78], ax
jne 0x44cd2e
call fcn.00413030
mov eax, dword [edi + 0x4e08]
add eax, 0xffffffff
mov dword [edi + 0x4e08], eax
jne 0x44cd4b
xor ecx, ecx
mov dword [edi + 0x4de4], ecx
pop edi
pop esi
pop ebx
ret
mov edx, dword [edi + 0x4e10]
mov ecx, dword [edx + eax*8 - 8]
test ecx, ecx
jne 0x44cd6c
imul ecx, dword [edx + eax*8 - 4], 0x9c
mov eax, dword [0x45f4d8]
add ecx, dword [eax + 0x4df0]
mov dword [edi + 0x4de4], ecx
pop edi
pop esi
pop ebx
ret

Function at 0x44db10
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0x10], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x44db82
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x44db58
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x44db3f
cmp byte [esi], cl
jne 0x44db3f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x457de0]
test cl, cl
jne 0x44db30
mov ecx, dword [0x45f4d8]
not eax
cmp dword [ecx + 0x4068], eax
jne 0x44db6e
mov dword [ecx + 0x406c], eax
cmp dword [ecx + 0x4090], eax
jne 0x44dbc8
mov byte [ecx + 0x4094], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x45f4d8]
xor edx, edx
mov esi, dword [eax + 0x400c]
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0xfc]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.00402a20
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x404c], ebx
jne 0x44dbc6
push ecx
push edi
mov edx, 0xc
mov ecx, ebx
call fcn.0041e530
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x453b18
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x453b4d
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x453b4a
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x453b56
add edx, 0x28
cmp edx, esi
jne 0x453b38
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x453b53

Function at 0x45450e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45454d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45454d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45454d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45454d
cmp dword [ecx + 0x74], 0xe
jbe 0x45454d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4012f0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0043b850
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x1008], 0
push edi
push 0x1000
mov dword [ebp - 0x100c], eax
mov edi, ecx
mov dword [eax], 0
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0041fc70
add esp, 0xc
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40136d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d9da
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call edi
test eax, eax
je 0x4014b0
mov edx, dword [ebp - 0x1008]
test edx, edx
je 0x4014b0
lea ecx, [ebp - 0x1004]
not esi
cmp edx, 8
jb 0x401470
mov edi, edx
shr edi, 3
movzx eax, byte [ecx]
sub edx, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 3]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 4]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 5]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 6]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
movzx eax, byte [ecx + 7]
add ecx, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
sub edi, 1
jne 0x4013c4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
test edx, edx
je 0x40148e
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x444370]
sub edx, 1
jne 0x401474
push 0
lea eax, [ebp - 0x1008]
not esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call edi
test eax, eax
jne 0x4013a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
mov eax, 1
pop esi
pop ebx
call fcn.0041d9da
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.004034e0
mov ecx, eax
test ecx, ecx
je 0x40180b
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x401815
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00402b60
test al, al
jne 0x4017ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017d1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402f50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d9da
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004039b0
call edx
jmp 0x4017aa
Function at 0x401820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c438
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401984
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 3
jne 0x40196c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x401980
push str.__
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00402a70
push edi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004023e0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4018e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4019ab
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x401943
test al, 0x10
jne 0x401943
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x40193c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4019b2
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
mov eax, 1
jmp 0x40198f
mov eax, 1
jmp 0x40198f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x40196c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4019b8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
cmp esi, 2
je 0x401980
cmp esi, 3
je 0x401980
cmp esi, 0x7b
je 0x401980
cmp esi, 0x35
jne 0x40193c
xor eax, eax
jmp 0x40198f
not al
movzx eax, al
shr eax, 4
and eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d9da
mov esp, ebp
pop ebp
ret
call esi
jmp 0x4018e8
mov ecx, edx
call esi
jmp 0x40193c
mov ecx, edx
call edi
jmp 0x40196c
Function at 0x4019c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], ecx
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], eax
push ecx
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x401a6c
push edi
push ebx
mov dword [ebp - 0xc], esi
call fcn.00421984
mov edi, eax
add esp, 4
test edi, edi
je 0x401a59
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x444348
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401a50
mov ecx, dword [ebp - 0x10]
mov esi, 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
push edi
call fcn.0042198f
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d9da
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d9da
mov esp, ebp
pop ebp
ret

Function at 0x403180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4031d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4031d9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4031c8
cmp esi, edx
jae 0x4031d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4031b6
cmp esi, edx
jae 0x4031d9
cmp word [esi], 0
je 0x4031d9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x404170
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], edi
jge 0x404251
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov ebx, eax
push edi
mov dword [ebp - 0x814], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
call ebx
push 0x802
mov edi, eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0041fc70
add esp, 0xc
lea eax, [ebp - 0x808]
push 0x400
push eax
push dword [ebp - 0x818]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x814]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push edi
mov edi, dword [ebp - 0x814]
push edi
call ebx
push edi
mov edi, dword [ebp - 0x818]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 0x7c]
push 0x60
push dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_MulDiv]
sub eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0xbc]
call fcn.00403da0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb8], eax
test edi, edi
je 0x404328
cmp dword [esi + 0x20], 0
je 0x40428d
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x78], xmm0
cmp dword [esi + 0x50], 0
mov ebx, dword [esi + 0x44]
jne 0x404300
mov eax, dword [esi + 0x54]
mov ecx, 0xc
mul ecx
mov ecx, eax
test edx, edx
ja 0x404351
jb 0x4042b5
cmp ecx, 0xffffffff
ja 0x404351
not eax
cmp eax, 8
jb 0x404351
add ecx, 8
push ecx
call fcn.00421984
add esp, 4
test eax, eax
je 0x404351
mov ecx, dword [esi + 0x4c]
mov dword [eax], ecx
mov dword [esi + 0x4c], eax
mov edx, dword [esi + 0x54]
lea ecx, [edx*2 - 1]
add ecx, edx
add edx, 0xffffffff
lea ecx, [eax + ecx*4]
js 0x404300
mov eax, dword [esi + 0x50]
mov dword [ecx], eax
mov dword [esi + 0x50], ecx
sub ecx, 0xc
sub edx, 1
jns 0x4042f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
mov dword [ecx + 8], edi
mov dword [esi + 0x50], eax
mov dword [ecx + 4], ebx
mov dword [ecx], 0
inc dword [esi + 0x48]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x404322
mov dword [eax], ecx
jmp 0x404325
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
push edi
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x81c]
lea ecx, [esi + 4]
call fcn.00405640
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d9da
mov esp, ebp
pop ebp
ret 0x14
push 0x8007000e
call fcn.004039b0
int3