joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 0x1b]
push eax
lea ecx, [ebp + 8]
call fcn.0043719c
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xb]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov word [eax], di
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push edi
push 0x31
mov word [eax + esi*2 + 0x14], di
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call esi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x10], edi
jge 0x40d75c
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx edx, word [ebp + 0x10]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push edi
push dword [0x4afe10]
push edx
push dword [ebp - 4]
push eax
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
push 0x497928
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push dword [ebp - 0x14]
mov edi, eax
push 0x30
push edi
call esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xb1
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00431c4c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40da4e
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebp
mov esi, dword [esp + 0x38]
mov edi, eax
add edi, esi
xor ebx, ebx
cmp esi, 0x4e20
jb 0x40da76
push ebx
call fcn.004335fe
pop ecx
cmp esi, ebx
mov esi, dword [esp + 0x3c]
jg 0x40da95
cmp esi, ebx
jg 0x40da95
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, ebx
jg 0x40daa3
cmp esi, ebx
jle 0x40da89
cmp byte [0x4ae290], bl
jle 0x40da89
cmp ecx, ebx
jbe 0x40db18
cmp ecx, 0x7d0
jbe 0x40dabe
mov ecx, 0x3e8
jmp 0x40dac6
cmp ecx, 0x64
jbe 0x40dac6
push 0x64
pop ecx
push 0x4bf
push ecx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x40db18
cmp esi, ebx
jg 0x40dae9
call ebp
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x40db20
push 3
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40db20
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, ebx
jle 0x40db18
dec esi
cmp byte [0x4ae290], bl
jg 0x40dadb
xor esi, esi
jmp 0x40da95

Function at 0x40db27
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.0043719c
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x40dbbb
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0040d285
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x40dbaa
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x40dba4
dec eax
jne 0x40dbaa
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x40dbaa
mov esi, eax
jmp 0x40dbbe
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40db71
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e548
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e579
xor eax, eax
jmp 0x40e5e8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x40e5dd
cmp word [ebp - 0x48], 0x5a4d
jne 0x40e5dd
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40e5dd
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x40e5dd
cmp dword [ebp - 0x140], 0x4550
jne 0x40e5dd
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40e615
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20a
lea ecx, [ebp - 4]
call fcn.0043719c
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.004371ec
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, str.unknown
je 0x40e670
mov esi, 0x4980a0
test bl, 0x10
je 0x40e67a
mov esi, str.reboot
test bl, 2
je 0x40e684
mov esi, 0x499120
test bl, 4
je 0x40e68e
mov esi, str.suspend
test bl, 8
je 0x40e698
mov esi, str.hiber
test bl, 0x40
je 0x40e6a2
mov esi, str.poweroff
test bl, bl
jns 0x40e6ab
mov esi, str.lock
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.004371ec
push 0x49825c
lea ecx, [ebp - 4]
call fcn.004371ec
cmp dword [ebp + 8], 0
je 0x40e6dd
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004371ec
push dword [ebp - 4]
mov esi, 0x4aff28
mov ecx, esi
call fcn.004296fc
push str._25INDATA
lea ecx, [ebp - 8]
call fcn.004419bc
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.004371ec
test bl, 0x70
je 0x40e717
push dword [ebp - 8]
mov ecx, esi
call fcn.004296fc
lea ecx, [ebp - 8]
call fcn.00431c4c
lea ecx, [ebp - 4]
call fcn.00431c4c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e7dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x499284
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x4aff28
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40e876
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00452970
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00436b54
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x40e806
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x40e89a
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.00427548
leave
ret

Function at 0x40ecaa
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.0043717e
lea ecx, [ebp - 4]
call fcn.0043717e
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x40ed8c
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4aff28
mov ecx, esi
call fcn.0043fdd2
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.0043fdd2
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x40ed43
lea ecx, [ebp + 8]
call fcn.0040c032
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x40ed7f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.00432b38
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.00432b38
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x40ed8f
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40f296
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x40f2a7
call fcn.0040f23b
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x40f2bb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x40f2c7
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x40f2bf
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x40f561
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4afe00], 0
jne 0x40f584
push 0
push dword [0x4afe10]
push 0x40f464
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4afe00], eax
ret

Function at 0x40f5b5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x40f5d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f61f
cmp dword [ebp - 0x224], esi
je 0x40f625
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f60a
jmp 0x40f62b
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x40f5d0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40f7a9
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x40f7cd
cmp dword [ebp + 0xc], 2
jne 0x40f7fc
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40f7d0
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x40f7e0
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x4aff28
call fcn.00436b54
pop esi
pop edi
pop ebp
ret
Function at 0x40f88f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4aff33], 1
call fcn.0043719c
push 0x822
push 0
push dword [ebp - 4]
call fcn.004832e0
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x4aff28
push esi
call fcn.004394ef
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.004394ef
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.004394ef
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x499692
call esi
push edi
mov ebx, 0x4aff28
push str.MyName
mov ecx, ebx
call fcn.00436b54
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x40f956
lea edi, [eax + 2]
push edi
push 0x49967e
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.00436b54
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.0040f7ff
push edi
push edi
push str.Favorites
call fcn.0040f7ff
push edi
push edi
push str.Programs
call fcn.0040f7ff
push edi
push edi
push str.SendTo
call fcn.0040f7ff
push edi
push edi
push str.Personal
call fcn.0040f7ff
push edi
push str.Start_Menu
push 0x498bc4
call fcn.0040f7ff
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.0040f7ff
push edi
push edi
push str.Startup
call fcn.0040f7ff
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.0040f7ff
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.00431c4c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fa17
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.00483780
push esi
mov esi, 0x4ae294
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x40fa3d
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4aff28
call fcn.00436b54
add esi, 4
cmp esi, 0x4ae2a8
jl 0x40fa2a
pop esi
leave
ret
Function at 0x410da8
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
mov byte [esi], 0
je 0x410dd6
test byte [0x4b0ab8], 4
jne 0x410dd6
push 2
mov byte [esi], 1
or byte [0x4b0ab8], 4
push str.SeDebugPrivilege
call fcn.0040fac5
pop ecx
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x410ddc
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x410df6
and byte [0x4b0ab8], 0xfb
push 4
push str.SeDebugPrivilege
call fcn.0040fac5
pop ecx
pop ecx
ret

Function at 0x410df7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4b069c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403276
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x410e4f
push dword [ebp + 8]
and word [esi], 0
call fcn.00482b55
test eax, eax
pop ecx
jne 0x410e44
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x410e29
cmp byte [ebp - 4], al
je 0x410e65
push dword [ebp - 8]
call fcn.00403287
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x41128a
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004832e0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x4112bf
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x411356
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
push edi
mov dword [ebp - 0xc], 0x20
je 0x411372
mov dword [ebp - 8], esi
jmp 0x41137a
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 0x10]
mov ax, word [esi + 2]
push dword [ebp + 0xc]
mov word [ebp - 4], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4113a5
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x4113a7
xor edi, edi
test ebx, ebx
je 0x4113b7
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x4113b9
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x4113d5
test eax, eax
je 0x4114b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x4114b6
test edi, edi
jle 0x4114b6
test byte [esi], 0x40
jne 0x411445
push 0
push edi
push ebx
call fcn.00434929
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x411445
test byte [esi], 0x20
je 0x41140f
test al, 2
je 0x41140f
xor eax, eax
jmp 0x4114bf
push 0
lea ecx, [ebp - 0x18]
call fcn.0044199d
movzx eax, word [ebp - 4]
mov esi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0043ad84
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00431c4c
jmp 0x411482
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0040bf72
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.00410b58
add esp, 0xc
cmp word [ebp - 4], 0
je 0x411482
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040f296
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.004832e0
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.004832e0
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x4114b8
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4114c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00404863
cmp dword [ebp - 8], ebx
jne 0x4114f5
push 0xfffffffffffffffe
pop esi
jmp 0x4115ba
push edi
push dword [ebp - 8]
call fcn.00477e78
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.00432bc3
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00437099
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
push 6
add eax, edi
push ebx
push eax
call fcn.004832e0
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.00434929
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x4115a3
push dword [0x4aff0c]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040bfbe
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0043ad84
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.00437099
lea ecx, [ebp - 0x1c]
call fcn.00431c4c
push 1
push esi
call fcn.0047a39a
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x4115b7
or esi, 0xffffffff
jmp 0x4115ba
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402b75
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411b5a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
xor esi, esi
cmp dword [0x4afd90], esi
push edi
jne 0x411d14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GdiPlus.dll
call ebx
mov edi, eax
cmp edi, esi
jne 0x411c55
push 1
push esi
lea eax, [ebp - 4]
push eax
push str._SystemRoot_WinSxS
mov ecx, 0x4aff28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0043fdd2
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.00482c3e
add esp, 0xc
test eax, eax
je 0x411c45
push dword [ebp - 4]
call fcn.0040c795
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
cmp word [ebp - 0x244], 0x2e
je 0x411c32
test byte [ebp - 0x270], 0x10
je 0x411c32
push dword [ebp - 4]
call esi
mov edi, eax
lea eax, [ebp - 0x244]
push eax
call esi
lea eax, [eax + edi + 0x1e]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043719c
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 4]
push str._s_sGdiPlus.dll
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00431c4c
test edi, edi
jne 0x411c45
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 8]
call fcn.004048d9
test eax, eax
jne 0x411bd4
lea ecx, [ebp - 4]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00402baa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusStartup
push edi
call esi
push str.GdiplusShutdown
push edi
mov dword [0x4afd90], eax
call esi
push str.GdipLoadImageFromFile
push edi
mov dword [0x4afd94], eax
call esi
push str.GdipDisposeImage
push edi
mov dword [0x4afda4], eax
call esi
push str.GdipCreateFromHDC
push edi
mov dword [0x4afd98], eax
call esi
push str.GdipDrawImageRectI
push edi
mov dword [0x4afd9c], eax
call esi
push str.GdipCreateBitmapFromHBITMAP
push edi
mov dword [0x4afda0], eax
call esi
push str.GdipCreateHBITMAPFromBitmap
push edi
mov dword [0x4afdb0], eax
call esi
push str.GdipSaveImageToFile
push edi
mov dword [0x4afdb4], eax
call esi
push str.GdipGetImageEncodersSize
push edi
mov dword [0x4afdb8], eax
call esi
push str.GdipGetImageEncoders
push edi
mov dword [0x4afda8], eax
call esi
push str.GdipDrawImageI
push edi
mov dword [0x4afdac], eax
call esi
push str.GdipGetImageWidth
push edi
mov dword [0x4afdbc], eax
call esi
push str.GdipGetImageHeight
push edi
mov dword [0x4afdc0], eax
call esi
mov dword [0x4afdc4], eax
xor esi, esi
pop ebx
cmp dword [0x4afe50], esi
jne 0x411d43
cmp dword [0x4afda4], esi
je 0x411d43
xor eax, eax
mov dword [ebp - 0x20], 1
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0x4afe50
call dword [0x4afd90]
cmp dword [ebp + 8], 0xffffffff
jne 0x411d50
mov eax, dword [0x4afe50]
jmp 0x411d6d
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x411d6a
mov eax, dword [0x4afda4]
cmp eax, esi
je 0x411d6a
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret