joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x458af4]
cmp byte [eax + 0xc], 0
je 0x441fa1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441f9a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45dc50], 0
jne 0x441e88
push 0x441fa8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441fb0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc50], eax
cmp dword [0x458544], 0
jne 0x441f83
push 0x441fc0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458544], eax
cmp dword [0x458544], 0
je 0x441f83
push 0x441fcc
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc54], eax
push 0x441fdc
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc58], eax
push 0x441ff0
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc5c], eax
push 0x442008
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc60], eax
push 0x442020
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc64], eax
push 0x442034
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc68], eax
push 0x44204c
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc6c], eax
push 0x442064
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc70], eax
push 0x442080
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc74], eax
push 0x44208c
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441fa1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x447fec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x44800d
test edi, 0x40000
je 0x448027
test bl, bl
jne 0x4480a8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4480a8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x44805a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x44806f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44807e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x44808f
cmp byte [esp + 2], 0
je 0x4480a8
cmp byte [esp + 2], 0
je 0x4480a0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4480a8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44834c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x448372
mov eax, esp
push eax
push 0x448314
call sub.user32.dll_EnumWindows
jmp 0x448385
mov eax, esp
push eax
push 0x4482f4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x448410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x448464]
test si, 4
je 0x448425
or bl, 1
test si, 8
je 0x44842f
or bl, 4
test si, 1
je 0x448439
or bl, 8
test si, 2
je 0x448443
or bl, 0x10
test si, 0x10
je 0x44844d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44845c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x448468
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4484a4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448482
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448491
or bl, 4
test esi, 0x20000000
je 0x44849c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450510
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450522
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419fcc
mov eax, dword [0x4587c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4508b4
mov eax, dword [0x4587d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4508c0
mov eax, ebx
call fcn.004508cc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
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, 0x44bd74
push eax
push 0
push 0
mov eax, dword [0x458914]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41db60]
call fcn.0041f080
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41db60]
call fcn.0041f080
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41db60]
call fcn.0041f080
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450d44
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c14
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c14
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c14
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45065f
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4509f8
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 0x450ba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450b84
mov dl, 1
mov eax, dword [0x4121a0]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450b73
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.00442190
test al, al
je 0x450b66
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, 0x450bb4
lea eax, [ebp - 0x254]
call fcn.0040925c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450b66
xor eax, eax
push ebp
push 0x450b5f
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 0x450bec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450b48
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
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 0x450b48
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b66
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450a69
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415e78
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 0x450baa
lea eax, [ebp - 0x260]
call fcn.00404814
ret

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

Disassembly:
push ecx
mov eax, dword [0x45dc94]
cmp byte [eax + 0xad], 0
jne 0x45158d
cmp dword [0x45dcb0], 0
jne 0x45154e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4514d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dcb0], eax
cmp dword [0x45dcac], 0
jne 0x451569
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dcac], eax
cmp dword [0x45dcb4], 0
jne 0x45158d
push esp
push 0
push 0
push 0x45147c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dcb4], eax
pop edx
ret
Function at 0x451790
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4517a7
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419fcc
mov eax, dword [0x458900]
cmp word [eax + 2], 0
jne 0x4517cf
mov eax, dword [0x458900]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453480
mov eax, dword [0x4589a8]
cmp word [eax + 2], 0
jne 0x4517e9
mov eax, dword [0x4589a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045368c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411d7c]
call fcn.004039d0
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e33c]
call fcn.00424208
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4519a0
mov eax, dword [0x45882c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004245dc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453d50
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45882c]
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.0040c998
test eax, eax
je 0x4518f0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c14
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9cc
test eax, eax
je 0x451904
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x452f0c
call fcn.0041b148
mov dword [ebx + 0xc8], eax
mov eax, dword [0x458738]
cmp byte [eax], 0
jne 0x451955
mov eax, ebx
call fcn.00451ae4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00453f64
mov eax, ebx
call fcn.00454ac8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451995
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451d64
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x451e03
cmp dword [ebx + 0x94], 0
jne 0x451dfd
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451cec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451dfd
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451dc3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451dfd
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414120
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451dd2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45201c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x45dc94]
cmp dword [eax + 0x30], 0
je 0x452179
test bl, bl
jne 0x4520ca
cmp dword [esi + 0x9c], 0
jne 0x4520bf
mov eax, esi
call fcn.00454944
push eax
push 0x451f48
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x452090
mov eax, dword [0x45dc94]
call fcn.00454f34
test al, al
je 0x452090
mov eax, dword [0x45dcb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x452090
push 0
mov eax, dword [0x45dcb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45207a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4520bf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414120
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45209f
inc dword [esi + 0x9c]
jmp 0x452179
cmp dword [esi + 0x9c], 0
jle 0x452179
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x452179
cmp dword [esi + 0x44], 0
je 0x452125
mov eax, dword [0x45dc94]
call fcn.00454f34
test al, al
je 0x452125
mov eax, dword [0x45dcb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x452125
push 5
mov eax, dword [0x45dcb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45210f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x452154
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414120
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x452134
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x45dcb8
mov ecx, 1
mov edx, dword [0x451f28]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x452c60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x452cca
mov eax, ebx
call fcn.00454f34
test al, al
jne 0x452cca
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x452cb7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x452cd7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x452cd7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x454148
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4541b6
mov eax, esi
call fcn.0043cfc8
test al, al
je 0x4541b6
mov eax, dword [ebx + 0x84]
call fcn.0043cccc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4541b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4541aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cccc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00434d70
jmp 0x4541b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00453f84
pop esi
pop ebx
ret
Function at 0x404280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x42a470]
mov dword [ebp - 4], eax
push 0x42fde0
push 0x42e2a0
push str._sParamComp_s
lea eax, [ebp - 0x110]
push eax
call fcn.00407e60
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4042ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x114]
push eax
push 0x425d0c
push 0x425d30
call fcn.00405ef0
add esp, 0x10
jmp 0x404307
lea ecx, [ebp - 0x110]
push ecx
push 0x425d3c
push 0x425d5c
call fcn.00405ef0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x334
push edx
push 0x42e060
push str._s_s
lea eax, [ebp - 0x110]
push eax
call fcn.00407e60
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404369
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x118], eax
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0x425d70
push 0x425d94
call fcn.00405ef0
add esp, 0x10
jmp 0x404382
lea ecx, [ebp - 0x110]
push ecx
push 0x425da0
push 0x425dc0
call fcn.00405ef0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x53c]
push eax
push 0x42fba0
push str._s_ddpiOvlDemo.tif
lea ecx, [ebp - 0x110]
push ecx
call fcn.00407e60
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4043e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push str.Error__d_DeleteTempFiles___sur__s
push 0x425e08
call fcn.00405ef0
add esp, 0x10
jmp 0x4043fd
lea edx, [ebp - 0x110]
push edx
push str.DeleteTempFiles___sur__s_:_OK
push str.TIFFTONPP
call fcn.00405ef0
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.00408089
mov esp, ebp
pop ebp
ret
Function at 0x4061a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x280
call fcn.00407c0d
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x280
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4061f8
mov edx, dword [ebp - 4]
push edx
call fcn.00407ad8
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.00407c0d
add esp, 4
mov dword [ebp - 4], eax
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x406269
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1e], 1
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1a0], 6
jne 0x406253
movzx edx, byte [ebp + 8]
movzx eax, byte [ebp - 0x1e]
mov cl, byte [ebp - 0x1e]
add cl, 1
mov byte [ebp - 0x1e], cl
cmp eax, edx
jle 0x406246
mov dword [ebp - 0x24], 1
jmp 0x40624d
mov dword [ebp - 0x24], 0
mov dl, byte [ebp - 0x24]
mov byte [ebp - 0x1d], dl
movzx eax, byte [ebp - 0x1d]
test eax, eax
jne 0x406269
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x40621c
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x406288
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x194]
mov dword [ebp - 0x2c], edx
mov eax, dword [ecx + 0x198]
mov dword [ebp - 0x28], eax
jmp 0x406296
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
push eax
call fcn.00407ad8
add esp, 4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x408d2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040dcf4
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408d6f
test byte [esp + 8], 2
je 0x408d6f
mov dword [0x42b9e4], 0xd
mov dword [0x42b9e8], 5
jmp 0x408d4a
xor eax, eax
ret

Function at 0x40983d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x41cbe8
call fcn.0040bfbc
mov edi, 0x94
mov eax, edi
call fcn.00408b80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42b9f0], ecx
mov eax, dword [esi + 4]
mov dword [0x42b9fc], eax
mov edx, dword [esi + 8]
mov dword [0x42ba00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42b9f4], esi
cmp ecx, 2
je 0x40989d
or esi, 0x8000
mov dword [0x42b9f4], esi
shl eax, 8
add eax, edx
mov dword [0x42b9f8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4098d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4098d6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4098ee
cmp eax, 0x20b
je 0x4098db
mov dword [ebp - 0x1c], edi
jmp 0x409902
cmp dword [ecx + 0x84], 0xe
jbe 0x4098d6
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4098fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4098d6
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0040a1d2
pop ecx
test eax, eax
jne 0x40992e
cmp dword [0x42b99c], 2
je 0x40991b
call fcn.0040e70f
push 0x1c
call fcn.0040e598
push 0xff
call fcn.0040c453
pop ecx
pop ecx
call fcn.0040ecb0
mov dword [ebp - 4], edi
call fcn.0040c1d5
test eax, eax
jge 0x409947
push 0x1b
call fcn.00409818
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x432ac4], eax
call fcn.0040eb8e
mov dword [0x42b994], eax
call fcn.0040eaec
test eax, eax
jge 0x40996d
push 8
call fcn.00409818
pop ecx
call fcn.0040e8b9
test eax, eax
jge 0x40997e
push 9
call fcn.00409818
pop ecx
push 1
call fcn.0040c483
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x409994
push eax
call fcn.00409818
pop ecx
mov eax, dword [0x42ba10]
mov dword [0x42ba14], eax
push eax
push dword [0x42ba08]
push dword [0x42ba04]
call fcn.00401b70
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4099c3
push esi
call fcn.0040c5ae
call fcn.0040c5d0
jmp 0x4099f5
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040bff7
ret
Function at 0x40c4ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42ba30], esi
push edi
jne 0x40c50d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42ba2c], esi
mov byte [0x42ba28], al
jne 0x40c573
mov ecx, dword [0x432740]
test ecx, ecx
je 0x40c554
mov eax, dword [0x43273c]
sub eax, 4
cmp eax, ecx
jmp 0x40c54d
mov eax, dword [eax]
test eax, eax
je 0x40c53f
call eax
mov eax, dword [0x43273c]
sub eax, 4
cmp eax, dword [0x432740]
mov dword [0x43273c], eax
jae 0x40c537
mov eax, 0x421070
mov esi, 0x421078
cmp eax, esi
mov edi, eax
jae 0x40c573
mov eax, dword [edi]
test eax, eax
je 0x40c56c
call eax
add edi, 4
cmp edi, esi
jb 0x40c564
mov eax, 0x42107c
mov esi, 0x421084
cmp eax, esi
mov edi, eax
jae 0x40c592
mov eax, dword [edi]
test eax, eax
je 0x40c58b
call eax
add edi, 4
cmp edi, esi
jb 0x40c583
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40c5ac
push dword [ebp + 8]
mov dword [0x42ba30], 1
call fcn.0040c453
pop ebp
ret