joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42781a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040d806
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x4279b1
push dword [ebp - 0xc]
call fcn.0040cc11
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040d98a
push esi
lea eax, [ebp - 0x20]
call fcn.0040da22
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040da22
push esi
call fcn.0044b716
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x4279b1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x4279a8
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040cc11
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044b716
cmp esi, edi
pop ecx
jl 0x4279a8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x427953
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0044e311
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.00450270
add esp, 0x10
call fcn.00462ac6
fld qword [ebp - 0x28]
push eax
call fcn.00462ac6
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x4279a8
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044b716
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4279c1
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040d806
lea ecx, [ebp - 0x18]
call fcn.0040d806
lea ecx, [ebp - 0x30]
call fcn.0040d806
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040d98a
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040da22
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040da22
push 0x468050
lea eax, [ebp - 0x18]
call fcn.0040d98a
cmp edi, esi
je 0x427a48
cmp word [edi], 0x5c
je 0x427a48
cmp word [edi + 2], 0x5c
je 0x427a48
push 0x46c4a0
lea eax, [ebp - 0x18]
call fcn.0040d98a
push edi
lea eax, [ebp - 0x18]
call fcn.0040da22
cmp dword [ebp + 0x10], esi
je 0x427a97
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0044db90
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040d95e
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040da22
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x427b33
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x427b33
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x427b2e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x427b29
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x258], si
lea eax, [ebp - 0x258]
push eax
call fcn.0040cc11
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.0044b716
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044b716
push dword [ebp - 0x18]
call fcn.0044b716
push dword [ebp - 0x24]
call fcn.0044b716
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d62b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00450b00
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040d806
lea ecx, [ebp - 0x18]
call fcn.0040d806
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040eff7
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42d759
inc edi
cmp ax, 0x25
jne 0x42d718
cmp word [esi + edi*2], ax
jne 0x42d688
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040da69
inc edi
jmp 0x42d721
push 0x468050
lea eax, [ebp - 0x18]
call fcn.0040d98a
jmp 0x42d6a9
test ax, ax
je 0x42d6b3
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040da69
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42d697
cmp word [esi + edi*2], 0
je 0x42d730
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42d6ef
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040da22
mov bl, 1
jmp 0x42d721
push 0x46d25c
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040da22
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040d9e6
push 0x46d25c
lea eax, [ebp - 0xc]
call fcn.0040da22
jmp 0x42d721
push eax
lea eax, [ebp - 0xc]
call fcn.0040da69
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42d665
jmp 0x42d74a
push 0x46d25c
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040da22
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040d9e6
test bl, bl
je 0x42d759
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.0040f6aa
push dword [ebp - 0x18]
call fcn.0044b716
push dword [ebp - 0xc]
call fcn.0044b716
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4306e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x10]
call fcn.0040d832
xor edi, edi
push 0x3c
lea eax, [ebp - 0x4c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], edi
inc ebx
call fcn.0044db90
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x43074c
mov ecx, dword [ebp + 0x10]
mov eax, ebx
call fcn.00405338
mov esi, eax
call fcn.0040eff7
cmp word [eax], di
je 0x43074c
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.00405338
mov esi, eax
call fcn.0040eff7
push eax
call fcn.0040cc11
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x43076e
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.00405338
mov esi, eax
call fcn.0040eff7
push eax
call fcn.0040cc11
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x4307a7
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405338
mov esi, eax
call fcn.0040eff7
cmp word [eax], 0
je 0x4307a7
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405338
mov esi, eax
call fcn.0040eff7
push eax
lea eax, [ebp - 0x10]
call fcn.0040d98a
cmp dword [ebp + 0x14], 5
jb 0x4307c0
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.00405338
call fcn.0040f0cf
movzx ebx, ax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0044db90
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0x40
call fcn.00405338
mov esi, eax
call fcn.0040eff7
mov esi, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test edi, edi
mov ebx, eax
je 0x43081d
push edi
call fcn.0044b716
pop ecx
test esi, esi
je 0x430828
push esi
call fcn.0044b716
pop ecx
test ebx, ebx
jne 0x430879
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x298], 1
jne 0x43085f
push 0xffffffffffffffff
call fcn.004184d5
push eax
push 0x87
call fcn.0041830f
xor esi, esi
inc esi
push dword [ebp - 0x10]
call fcn.0044b716
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
xor ecx, ecx
push 0
inc ecx
mov eax, ebx
call fcn.00419aac
mov esi, dword [ebp + 0x18]
push 0
call fcn.0040f5b2
xor esi, esi
jmp 0x43084d
cmp byte [ebp + 0xc], 0
je 0x43088d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7cc], eax
jmp 0x430875
mov esi, dword [ebp + 0x18]
push 1
call fcn.0040f5b2
cmp dword [ebp - 0x14], 0
je 0x430875
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430875
Function at 0x43365b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
mov edi, 0x103
jmp 0x433716
xor eax, eax
cmp byte [0x486ee0], bl
je 0x4336a8
mov eax, 0x100
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433722
push dword [esp + 0x14]
call fcn.0043365b
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x433722
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x433722
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
cmp eax, edi
jne 0x433699
mov al, 1
jmp 0x433724
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4340bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x434143
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x434143
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x434117
cmp dword [ebp + 0x10], ebx
jbe 0x434117
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43410f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x434145
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x434137
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x43414d
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4396fa
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x489408
push edi
call fcn.0044db90
push 0x10
push ebx
mov esi, 0x4893f8
push esi
call fcn.0044db90
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x489408], 0x44
mov dword [0x489434], eax
mov word [0x489438], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43975d
push dword [0x4893f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x439d00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x4134], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x4138], eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
lea eax, [edi + 0x413c]
cmp ecx, dword [eax]
jne 0x439d4c
cmp edx, dword [edi + 0x4140]
je 0x439d66
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x4140], edx
jne 0x439d66
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.004395f9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
mov ebx, 0x8000
test bx, ax
jne 0x439d8d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x439d8d
and dword [ebp - 4], 0
jmp 0x439d94
mov dword [ebp - 4], 1
push 2
call esi
test bx, ax
jne 0x439dae
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x439dae
xor ebx, ebx
jmp 0x439db1
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x4144]
je 0x439e18
cmp dword [ebp + 0xc], 1
jne 0x439e18
cmp byte [edi + 0x4170], 0
je 0x439e1e
test esi, esi
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x439dd9
push 0xfffffffffffffff9
jmp 0x439e09
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.004395f9
cmp byte [edi + 0x414c], 0
je 0x439e11
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x439e07
push 0xfffffffffffffffa
jmp 0x439e09
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.004395f9
mov byte [edi + 0x414c], 0
cmp dword [ebp + 0xc], 0
je 0x439e24
mov dword [edi + 0x4144], esi
cmp ebx, dword [edi + 0x4148]
je 0x439e52
cmp dword [ebp + 0xc], 1
jne 0x439e52
test ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x439e48
push 0xfffffffffffffff7
push dword [ebp + 8]
call fcn.004395f9
jmp 0x439e58
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.004395f9
cmp dword [ebp + 0xc], 0
je 0x439e5e
mov dword [edi + 0x4148], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43ec02
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x43ed0a
push esi
push esi
push 3
push esi
push esi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43ec39
xor eax, eax
jmp 0x43ed36
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x465048
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x43ec32
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x43ece1
cmp dword [eax], esi
jne 0x43ece1
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x43ece9
mov dword [ebp - 0x2c], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x43ed0d
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x43ed1e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43f477
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x4158]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
je 0x43f4ff
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x43f4f6
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x43f4e8
cmp byte [eax + 0x70], 0xb
je 0x43f4e8
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4158]
je 0x43f4ca
cmp byte [esi + 0x4160], 0
je 0x43f4e8
cmp cl, 0xff
je 0x43f4e8
cmp byte [eax + 0x70], 0xa
je 0x43f4e8
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x43f4e8
cmp byte [eax + 0x70], 0x1a
jne 0x43f4e8
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x43f49c
mov eax, dword [ebp + 8]
mov dword [esi + 0x4158], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x43f55f
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x43f551
cmp byte [eax + 0x70], 0xb
je 0x43f551
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4158]
jne 0x43f551
test byte [eax + 0x72], 0x20
jne 0x43f551
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x43f551
cmp byte [eax + 0x70], 0x1a
jne 0x43f551
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x43f50d
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4150]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 4
Function at 0x44ea15
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44ea52
cmp dword [ebp + 0x14], edi
je 0x44ea52
cmp ecx, edi
jne 0x44ea59
call fcn.00451cac
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00451c4d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44ea6d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44ea8e
cmp ebx, 0xffffffff
je 0x44ea7d
push ebx
push edi
push ecx
call fcn.0044db90
add esp, 0xc
cmp esi, edi
je 0x44ea3a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44ea3a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44eaaa
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44eab1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44eba2
test word [esi + 0xc], 0x10c
je 0x44eb05
mov eax, dword [esi + 4]
test eax, eax
je 0x44eb05
jl 0x44ec03
cmp ebx, eax
mov edi, ebx
jb 0x44ead6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44ebaa
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00457d08
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44eb9a
cmp ebx, dword [ebp - 0xc]
jb 0x44eb72
cmp dword [ebp - 0xc], 0
je 0x44eb2f
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x44eb24
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44eb2b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44eb3a
mov eax, bind
cmp ebx, eax
ja 0x44eb3a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44ebd6
push eax
push dword [ebp - 8]
push esi
call fcn.0044f6bb
pop ecx
push eax
call fcn.00457c0b
add esp, 0xc
test eax, eax
je 0x44ec15
cmp eax, 0xffffffff
je 0x44ec03
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44eb9a
push esi
call fcn.0045752a
cmp eax, 0xffffffff
pop ecx
je 0x44ec07
cmp dword [ebp - 4], 0
je 0x44ebd6
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44eab9
mov eax, dword [ebp + 0x14]
jmp 0x44ea54
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44ebc1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044db90
add esp, 0xc
call fcn.00451cac
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44ea4a
cmp dword [ebp + 0xc], 0xffffffff
je 0x44ebec
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044db90
add esp, 0xc
call fcn.00451cac
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44ea4a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44ea54
or dword [esi + 0xc], 0x10
jmp 0x44ec07
Function at 0x451e13
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x471bf0]
je 0x451e2e
inc edi
cmp edi, 0x17
jb 0x451e1f
cmp edi, 0x17
jae 0x451fae
push ebp
push 3
call fcn.0045c995
cmp eax, 1
pop ecx
je 0x451f7a
push 3
call fcn.0045c995
test eax, eax
pop ecx
jne 0x451e62
cmp dword [0x471438], 1
je 0x451f7a
cmp ebx, 0xfc
je 0x451fad
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4741a8
push ebp
call fcn.0045c6b9
add esp, 0xc
test eax, eax
je 0x451e98
push esi
push esi
push esi
push esi
push esi
call fcn.00451b51
add esp, 0x14
push 0x104
mov esi, 0x4741c1
push esi
push 0
mov byte [0x4742c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x451edc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045c6b9
add esp, 0xc
test eax, eax
je 0x451edc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451b51
add esp, 0x14
push esi
call fcn.0044d7f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x451f21
push esi
call fcn.0044d7f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4744bc
push 0x4657bc
sub ecx, eax
push ecx
push eax
call fcn.0045c606
add esp, 0x14
test eax, eax
je 0x451f21
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00451b51
add esp, 0x14
jmp 0x451f23
xor esi, esi
push 0x4657b8
push ebx
push ebp
call fcn.0045c549
add esp, 0xc
test eax, eax
je 0x451f43
push esi
push esi
push esi
push esi
push esi
call fcn.00451b51
add esp, 0x14
push dword [edi*8 + 0x471bf4]
push ebx
push ebp
call fcn.0045c549
add esp, 0xc
test eax, eax
je 0x451f65
push esi
push esi
push esi
push esi
push esi
call fcn.00451b51
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045c7d8
add esp, 0xc
jmp 0x451fad
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x451fad
cmp ebp, 0xffffffff
je 0x451fad
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x471bf4]
push dword [esi]
call fcn.0044d7f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret