joyce8/EMBER2024-capa huggingface dataset:
Function at 0x816c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x408
mov eax, dword [0x824008]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x828678], 0xfc7
mov dword [esp], 0x343f0
jne 0x816c76
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
add dword [esp + 4], 0xd
mov ecx, dword [0x82737c]
imul ecx, dword [esp + 4]
add ecx, 0x269ec3
cmp dword [0x828678], 0x1381
mov dword [0x82737c], ecx
movzx esi, word [0x82737e]
jne 0x816cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
and eax, 0x7fff
call fcn.0040126a
add esp, 0x408
ret

Function at 0x816cd0
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x828678], 0x930
jne 0x816cf0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
push 0
call esi
push 0
push 0
call esi
pop esi
cmp dword [0x828678], 0x114e
mov eax, dword [esp + 4]
mov dword [0x82737c], eax
jne 0x816d10
push str.ficujivusabut
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x22163f4e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x41950378
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402400
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x4be0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4c4], edi
test esi, esi
je 0x40255f
test edi, edi
je 0x40255f
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x402512
xor ebx, ebx
cmp word [ebp - 0x4bc], bx
je 0x402512
lea esi, [ebp - 0x4bc]
xor edi, edi
jmp 0x402470
push 0x4b2564
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4024ea
push 0x4b256c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4024ea
mov cx, word [esi]
mov dx, word [ebp + edi - 0x4ba]
mov word [ebp - 0xc], cx
push 0x64
lea ecx, [ebp - 0xd4]
mov word [ebp - 0xa], dx
push ecx
lea edx, [ebp - 0xc]
xor eax, eax
push edx
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40251a
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x4c0]
mov esi, eax
push esi
lea ecx, [ebp - 0xd4]
push ecx
push edi
call fcn.0044e740
add esp, 0xc
test eax, eax
je 0x40252d
add ebx, 4
lea edi, [ebx + ebx]
cmp word [ebp + edi - 0x4bc], 0
lea esi, [ebp + edi - 0x4bc]
jne 0x402470
mov edi, dword [ebp - 0x4c4]
mov esi, dword [ebp - 0x4c0]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x4c4]
lea edx, [ebp - 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0044de17
mov esp, ebp
pop ebp
ret

Function at 0x402580
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4be0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test esi, esi
jne 0x4025aa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
push edi
xor ecx, ecx
push eax
push ecx
push 0x400
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4025e1
push 0x104
lea edx, [ebp - 0x20c]
push edx
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x4025f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00402400
push edi
test eax, eax
je 0x4025db
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0044de17
mov esp, ebp
pop ebp
ret
Function at 0x402620
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4be0f0]
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
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x460]
push ecx
push eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ebx, [edi + 8]
lea ebx, [ebx]
xor edx, edx
lea eax, [ebp - 0x43c]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4026a2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x43c]
lea esi, [ebp - 0x234]
call fcn.00401a50
mov eax, esi
push eax
mov dword [ebp - 4], edi
call fcn.00402b80
mov dword [ebp - 0x468], eax
cmp eax, dword [0x4c2a5c]
je 0x402751
mov esi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4026e9
mov eax, dword [eax]
mov edi, dword [ebp - 0x224]
mov edx, edi
cmp edi, esi
jb 0x4026f7
mov edx, esi
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x40270b
lea ecx, [ebp - 0x234]
test edx, edx
je 0x40272b
nop
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x402723
add ecx, 2
add eax, 2
dec edx
jne 0x402710
jmp 0x40272b
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x40273b
cmp edi, esi
jae 0x402734
or eax, 0xffffffff
jmp 0x40273b
xor eax, eax
cmp edi, esi
setne al
test eax, eax
sets al
mov ebx, 8
test al, al
jne 0x402751
lea eax, [ebp - 0x468]
jmp 0x402763
mov edx, dword [0x4c2a5c]
mov dword [ebp - 0x46c], edx
lea eax, [ebp - 0x46c]
mov ecx, dword [0x4c2a5c]
cmp ecx, dword [eax]
jne 0x4027ae
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], ebx
jb 0x40278b
mov edx, dword [ebp - 0x234]
push edx
call fcn.0044de0c
add esp, 4
mov ecx, dword [ebp - 0x464]
lea eax, [ebp - 0x460]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40283d
xor edi, edi
jmp 0x402680
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00458dc0
mov ecx, dword [ebp - 0x458]
push ecx
lea esi, [ebp - 0x218]
call fcn.00402580
mov eax, esi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027e3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov esi, 0x4c0c2c
call fcn.00401a50
mov esi, 1
cmp dword [ebp - 0x220], ebx
jb 0x40281f
mov edx, dword [ebp - 0x234]
push edx
call fcn.0044de0c
add esp, 4
mov eax, esi
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.0044de17
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x402821
Function at 0x405b10
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4be0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x2cc]
mov dword [edi + 0x2dc], 0x3bc
mov ecx, dword [eax + 0xc]
mov eax, 7
push esi
mov dword [edi + 0x2e8], eax
mov dword [ebp - 0xc], eax
xor edx, edx
push 4
mov eax, 0x4b2624
lea esi, [ebp - 0x20]
mov dword [edi + 0x2e0], ecx
mov dword [edi + 0x2ec], 0x7e9
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
call fcn.00401a50
mov eax, dword [ebp - 0x20]
mov esi, 8
cmp dword [ebp - 0xc], esi
jae 0x405b7e
lea eax, [ebp - 0x20]
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax + 0x2f4], cx
add eax, 2
test cx, cx
jne 0x405b82
push 0x81
push 0
mov dword [edi + 0x2e4], 0x81
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0x2f0], eax
test eax, eax
je 0x405bc4
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp dword [ebp - 0xc], esi
pop esi
jb 0x405bd6
mov edx, dword [ebp - 0x20]
push edx
call fcn.0044de0c
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
Function at 0x40af90
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4be0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov word [ebp - 0x124], ax
mov eax, edi
mov dword [ebp - 0x110], 7
mov dword [ebp - 0x114], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40afd0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x124]
call fcn.00401a50
push 4
push 0x4b2940
mov ecx, esi
push ecx
call fcn.0040b190
cmp eax, 0xffffffff
jne 0x40b10a
push 8
push str._install
mov edx, esi
push edx
call fcn.0040b190
cmp eax, 0xffffffff
jne 0x40b10a
push 0xa
push str._uninstall
mov eax, esi
push eax
call fcn.0040b190
cmp eax, 0xffffffff
jne 0x40b10a
push str.mini_weather
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b128
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b0e8
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.00458dc0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0044f0b0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebp - 0x124]
push edx
mov edx, str._hide
xor edi, edi
call fcn.0040b160
cmp eax, 0xffffffff
je 0x40b0cb
mov edi, 1
call fcn.0041dde0
push edi
call fcn.004061c0
mov ebx, eax
call fcn.004062c0
test eax, eax
je 0x40b128
call fcn.0041df60
jmp 0x40b128
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b0f0
sub eax, edx
sar eax, 1
jne 0x40b128
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40b128
cmp dword [ebp - 0x110], 8
mov eax, dword [ebp - 0x124]
jae 0x40b11f
lea eax, [ebp - 0x124]
push eax
call fcn.0040be00
add esp, 4
cmp dword [ebp - 0x110], 8
pop edi
pop esi
pop ebx
jb 0x40b143
mov eax, dword [ebp - 0x124]
push eax
call fcn.0044de0c
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0044de17
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c5b0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4be0f0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040c200
test eax, eax
jne 0x40c5dc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40c601
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
cmp dword [0x4c0ccc], 8
mov eax, dword [0x4c0cb8]
jae 0x40c614
mov eax, 0x4c0cb8
push esi
push 0x10020
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40c641
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
test ebx, ebx
pop ebx
je 0x40c68b
push str.Service__deleted
call fcn.0040c6b0
add esp, 4
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044de17
mov esp, ebp
pop ebp
ret
push str.Service_could_not_be_deleted
call fcn.0040c6b0
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0044de17
mov esp, ebp
pop ebp
ret
Function at 0x414e30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4be0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x238]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x414fbc
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x218], edx
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x20c], eax
cdq
sub eax, edx
mov edx, dword [esi + 0xc]
push 0xffffffffffffffde
mov ebx, eax
push edx
sar ebx, 1
call dword [sym.imp.USER32.dll_GetClassLongW]
test eax, eax
je 0x414ef0
test dword [esi + 0x7c], 0x200
je 0x414ef0
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
push 3
push 0
push 0
push ecx
push edx
push eax
mov eax, ecx
mov ecx, dword [edi + 0x10]
cdq
sub eax, edx
mov edx, dword [edi + 0xc]
sar eax, 1
sub ecx, eax
mov eax, dword [edi + 8]
add ecx, ebx
push ecx
add edx, 8
push edx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esi + 0x4c]
add eax, 0xb
jmp 0x414ef5
mov eax, 8
test dword [esi + 0x7c], 0x400
mov dword [ebp - 0x218], eax
je 0x414fbc
mov ecx, dword [ebp - 0x210]
sub ecx, eax
cmp ecx, 0x14
jle 0x414fbc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x206]
push eax
mov word [ebp - 0x208], dx
call fcn.00458dc0
mov edx, dword [esi + 0xc]
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x23c], eax
test eax, eax
jle 0x414fbc
mov edx, dword [ebp - 0x218]
mov ecx, dword [edi + 0xc]
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x20c]
mov esi, dword [ebp - 0x214]
mov dword [ebp - 0x228], edx
add edx, ecx
add ebx, ecx
mov ecx, dword [edi + 0x10]
add eax, ecx
push 0x24
mov dword [ebp - 0x21c], eax
add esi, ecx
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x228], edx
push ecx
lea edx, [ebp - 0x208]
push edx
push eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044de17
mov esp, ebp
pop ebp
ret
Function at 0x41d820
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x4c2438
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c2930], 0
jne 0x41d870
push 0x1c
call fcn.0044f6d6
add esp, 4
test eax, eax
je 0x41d869
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], 0x10
mov dword [eax], 0x46
jmp 0x41d86b
xor eax, eax
mov dword [0x4c2930], eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xc], esi
test esi, esi
je 0x41d883
mov dword [ebx + 8], 0
jmp 0x41d88a
mov eax, dword [ebx + 0x14]
dec eax
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4c2930]
mov dword [ebx + 0x18], eax
mov edx, dword [esi + 0xc]
xor eax, eax
test edx, edx
jle 0x41d8be
cmp eax, 0xffffffff
jle 0x41d8b3
cmp eax, edx
jge 0x41d8b3
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + eax*4]
jmp 0x41d8b5
xor ecx, ecx
cmp ecx, ebx
je 0x41d924
inc eax
cmp eax, edx
jl 0x41d8a2
cmp edx, dword [esi + 0x10]
jl 0x41d918
mov eax, dword [esi + 0x10]
push edi
mov edi, edx
sub eax, edi
cmp eax, 2
jl 0x41d8d5
cmp eax, dword [esi + 0x14]
jle 0x41d917
mov eax, dword [esi + 0x14]
add eax, edi
mov dword [esi + 0x10], eax
add eax, eax
add eax, eax
push eax
call fcn.0044f6d6
mov ebx, eax
add esp, 4
xor eax, eax
test edi, edi
jle 0x41d901
mov ecx, dword [esi + 8]
mov edx, dword [ecx + eax*4]
mov dword [ebx + eax*4], edx
inc eax
cmp eax, dword [esi + 0xc]
jl 0x41d8f2
mov eax, dword [esi + 8]
test eax, eax
je 0x41d911
push eax
call fcn.0044fa55
add esp, 4
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 8]
pop edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0xc]
push 0x4c2438
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
pop ebp
ret
Function at 0x41dde0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
push 0x82
push edi
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0x41e110
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
call ebx
push 0x7f00
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 6
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], str.XCGUI
call ebx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor ecx, ecx
cmp cx, ax
jne 0x41de75
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push str.HTML_Format
call edi
push str.XCGUI_RichEdit_Format
mov dword [0x4c2a14], eax
call edi
push 0x50
mov dword [0x4c2a10], eax
mov dword [0x4c2470], esi
mov dword [0x4c2478], esi
mov dword [0x4c2480], 0xa
mov dword [0x4c247c], esi
call fcn.0044f6d6
add esp, 4
push 0x50
push esi
push eax
mov dword [0x4c2474], eax
call fcn.00458dc0
add esp, 0xc
push esi
lea edx, [esp + 0x14]
push edx
push 0x4c2468
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, dword [0x4c2938]
cmp eax, esi
je 0x41df16
call eax
test eax, eax
jne 0x41df16
push esi
push 0x4b2ec4
push str.code:0009
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.0044f9ed
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4c2450
call edi
push 0x4c2438
call edi
push 0x4c2420
call edi
push 0x4c2408
call edi
push esi
push esi
push esi
push 0x41d9a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, esi
setne cl
pop edi
pop esi
mov dword [0x4c292c], eax
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x41e7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
push edi
mov ebx, ecx
mov edi, edx
test esi, esi
jne 0x41e7fc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
movzx ecx, di
cmp ebx, 2
jne 0x41e8c3
lea eax, [ebp - 8]
push eax
push ecx
push esi
mov dword [ebp - 0x1c], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 8], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 8]
push edx
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x41e848
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x41e860
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
fild dword [ebp - 0xc]
test ecx, ecx
jns 0x41e870
fadd dword [0x4b6378]
fstp dword [ebp - 0x24]
mov dword [ebp - 0xc], edi
fild dword [ebp - 0xc]
test edi, edi
jns 0x41e883
fadd dword [0x4b6378]
fstp dword [ebp - 0x20]
sub esp, 0x10
fld dword [ebp - 0x20]
lea edi, [ebp - 0x1c]
fstp dword [esp + 0xc]
fld dword [ebp - 0x24]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.0041e990
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41e8d9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0xc]
push edi
push edx
push eax
call fcn.00456d70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 8]
push eax
push 1
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [ebp - 8]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x41e95f
lea eax, [esi + 4]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x41e961
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [edx + 8]
mov dword [ecx], esi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret