joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473820
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
xor ebx, ebx
xor edi, edi
call fcn.00473900
mov ecx, dword [0x58d28c]
push 0x536054
push ecx
call fcn.004b7678
add esp, 0xc
test eax, eax
je 0x4738eb
push 0x58d28c
call fcn.004898d0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4738eb
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [0x534d60]
cmp eax, 0xffffffff
mov dword [0x58d2a4], eax
jne 0x47389a
push edi
mov dword [0x58d2a4], ebx
call fcn.00487ea0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4738eb
lea eax, [esi + 0x10]
push eax
call fcn.00487e70
add esp, 4
cmp eax, ebx
mov dword [0x58d2a8], eax
je 0x4738eb
mov edx, dword [0x58d2a4]
push esi
mov ecx, esi
push ebx
push ebx
push eax
shr ecx, 1
push edx
mov dword [0x58d288], ecx
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4738eb
mov ebx, 1
push edi
call fcn.00487ea0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x474010
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00473b80
add esp, 4
mov ecx, 0x58d290
push 0
call fcn.00488480
mov ecx, dword [0x58c95c]
call fcn.00450790
call fcn.004808a0
call fcn.00459410
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4748b0
Capabilities:
Terminate process

Disassembly:
push 0
call fcn.004b95fc
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x474ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
call fcn.00474820
cmp eax, 0xffffffff
jne 0x474eb4
push 0
call fcn.004748b0
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x58d2b0]
cmp eax, 0x3e8
jbe 0x474ede
push 0x50e7e0
call fcn.00474920
add esp, 4
call esi
mov dword [0x58d2b0], eax
pop esi
ret
Function at 0x47daf0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4ed8a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0x14]
call fcn.004d4b3f
xor ebp, ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], ebp
call fcn.004d4b3f
mov eax, dword [ebx + 0x28]
mov byte [esp + 0x4c], 1
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004d4be1
mov esi, eax
cmp esi, ebp
jne 0x47db74
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0
call fcn.004d4c5e
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004d4c5e
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [esi + 4]
push edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ecx
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.004d4bf6
mov edx, dword [esi + 4]
push edx
call edi
push eax
lea ecx, [esp + 0x3c]
call fcn.004d4bf6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x14]
call fcn.004d564e
mov eax, dword [esi + 4]
push 0x2e
push pe_nt_image_headers32
push eax
mov byte [esp + 0x5c], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
cmp edi, ebp
je 0x47dbd7
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x30], pe_nt_image_headers32
neg eax
sbb eax, eax
mov dword [esp + 0x34], 0x2e
and eax, edx
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.0047dcc0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push 0x2e
push pe_nt_image_headers32
push 3
push 0x14
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x47dc5e
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [ebx + 0x28]
mov edx, dword [esi + 4]
push edx
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call fcn.004d55e8
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0
call fcn.004d4c5e
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
call fcn.004d4c5e
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x47e240
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x258
xor eax, eax
push esi
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x268]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x34]
push 0xc
push edx
push eax
mov dword [esp + 0x48], eax
push eax
mov eax, dword [esp + 0x278]
push 0x2d1080
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x47e296
mov dword [esi], 0xffffffff
pop esi
add esp, 0x258
ret
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x58]
push edx
push 0x102
mov dword [esp + 0x20], ecx
call dword [0x534da8]
mov ecx, dword [0x529ba8]
mov edx, dword [0x529bac]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x529bb0]
mov dword [esp + 0x20], edx
mov dx, word [0x529bb4]
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
mov dword [esi], 0
jle 0x47e3e3
push ebx
push ebp
mov ebp, dword [0x534d60]
push edi
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x64]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp ax, 0x41
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x47e3c6
cmp ax, 0x42
je 0x47e3c6
lea edx, [esp + 0x14]
push edx
call dword [0x534d90]
cmp eax, 2
jb 0x47e3c6
cmp eax, 3
ja 0x47e3c6
mov ax, word [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x3c]
push 0x80000000
push ecx
mov word [esp + 0x4c], ax
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x47e3c6
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [esp + 0x4c]
push 0x20
push eax
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47e3c6
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jne 0x47e3bf
mov eax, dword [esp + 0x274]
mov edi, dword [esp + 0x270]
mov cx, word [esp + 0x14]
mov edx, dword [eax]
mov word [edi + edx*2], cx
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add eax, 4
add ebx, 8
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x47e2ff
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x258
ret
Function at 0x47e3f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x248
mov eax, dword [str.._:]
mov ecx, dword [0x5155e8]
mov edx, dword [0x5155ec]
mov dword [esp + 4], eax
mov ax, word [0x5155f0]
push esi
mov esi, dword [esp + 0x254]
push edi
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], ax
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
mov di, word [esp + 0x254]
mov dword [esp + 8], 0
test esi, esi
mov dword [esp + 0x2c], 0x227
mov word [esp + 0x14], di
jne 0x47e473
push esi
push esi
push 3
push esi
push 3
lea ecx, [esp + 0x20]
push 0x80000000
push ecx
call dword [0x534d60]
mov esi, eax
cmp esi, 0xffffffff
je 0x47e4d0
mov eax, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x30]
push 0xc
push edx
push 0x2d1400
push esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test di, di
mov ebx, eax
je 0x47e4b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
pop ebx
je 0x47e4d0
cmp dword [esp + 0x44], 7
jne 0x47e4d0
pop edi
mov eax, 1
pop esi
add esp, 0x248
ret
pop edi
xor eax, eax
pop esi
add esp, 0x248
ret
Function at 0x47e550
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4ed94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e0
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [esp + 0xc]
mov dword [ebx + 0x3c], eax
xor edi, edi
mov esi, 1
call fcn.004cccda
push 0x4011
lea eax, [esp + 0x3c]
push 0x2b4
push eax
push edi
push 0x516740
mov dword [esp + 0x308], edi
mov dword [esp + 0x28], 0x27
mov dword [esp + 0x2c], 0xffffffff
call dword [0x534e5c]
push eax
lea ecx, [esp + 0x10]
call fcn.004ccdc7
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x1c]
neg eax
sbb eax, eax
and eax, edx
push eax
push edi
push 0x402
push ecx
call dword [0x534f28]
push eax
call fcn.004ccd6c
lea ecx, [esp + 0xc]
call fcn.004ccd2c
mov ecx, dword [ebx + 0x3c]
mov eax, 0x1a
test esi, ecx
je 0x47e600
inc edi
shl esi, 1
dec eax
jne 0x47e5fb
lea edx, [edi*8 + 2]
push edx
call fcn.0041cc50
add esp, 4
mov dword [ebx + 0x44], eax
mov esi, eax
lea eax, [edi*4 + 1]
push esi
push eax
call dword [0x534da8]
mov ax, word [esi]
test ax, ax
je 0x47e702
mov edi, dword [esp + 0x2fc]
push ebp
mov ebp, dword [0x534d90]
cmp ax, 0x5a
jbe 0x47e64f
add eax, 0xffffffe0
mov word [esi], ax
push 0x4211
lea ecx, [esp + 0x40]
push 0x2b4
push ecx
push 0x10
push esi
call dword [0x534e5c]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x48]
push esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
call ebp
cmp edi, 2
jne 0x47e68e
cmp eax, 5
jne 0x47e6f1
jmp 0x47e6e5
cmp edi, 3
jne 0x47e6b0
mov ax, word [esi]
cmp ax, 0x41
je 0x47e6e5
cmp ax, 0x61
je 0x47e6e5
cmp ax, 0x42
je 0x47e6e5
cmp ax, 0x62
jne 0x47e6f1
jmp 0x47e6e5
cmp edi, 4
jne 0x47e6c7
mov ax, word [esi]
push eax
call fcn.00448be0
add esp, 4
test eax, eax
je 0x47e6f1
jmp 0x47e6e5
cmp edi, 6
jne 0x47e6e0
mov cx, word [esi]
push 0
push ecx
call fcn.0047e3f0
add esp, 8
test eax, eax
je 0x47e6f1
jmp 0x47e6e5
cmp edi, 5
je 0x47e6f1
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
call fcn.004cce3c
mov ax, word [esi + 8]
add esi, 8
test ax, ax
jne 0x47e643
pop ebp
mov eax, dword [ebx + 0x40]
push 0
push eax
mov eax, dword [ebx + 0x1c]
push 0x14e
push eax
call dword [0x534f28]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.004ccd03
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2ec
ret 4
Function at 0x481b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4edde0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov dword [esp + 8], vtable.CMenu.0
mov dword [esp + 0xc], 0
mov eax, dword [0x532afc]
mov dword [esp + 0x28], 0
cmp eax, 2
je 0x481bde
cmp eax, 5
je 0x481bde
mov eax, dword [0x58c95c]
mov ecx, dword [eax + 0x354]
jmp 0x481bea
mov ecx, dword [0x58c95c]
mov ecx, dword [ecx + 0x358]
call fcn.0045a110
mov edi, eax
call fcn.004e3d21
mov eax, dword [eax + 0xc]
push 0xa7
push eax
call dword [0x534ef0]
push eax
lea ecx, [esp + 0xc]
call fcn.004d2db1
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004d2d7e
mov esi, eax
push 1
push 0xa7
mov eax, dword [esi + 4]
push eax
call fcn.004a6e10
mov ecx, dword [esi + 4]
add esp, 0xc
add edi, 0x8008
push 0
push edi
push 0x800b
push 0x8008
push ecx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov edx, dword [0x58c95c]
lea ecx, [esp + 0x10]
push ecx
push 8
mov eax, dword [edx + 0x364]
lea edi, [edx + 0x364]
mov ecx, edi
call dword [eax + 0xe0]
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004d52ad
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 0
push eax
push ecx
push edx
push 2
mov ecx, esi
call fcn.004d00e2
mov dword [esp + 8], vtable.CMenu.0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.004d2e08
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x481cd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4ede00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov dword [esp + 8], vtable.CMenu.0
mov dword [esp + 0xc], 0
mov eax, dword [0x58c95c]
mov dword [esp + 0x28], 0
mov ecx, dword [eax + 0x358]
call fcn.0045a110
mov esi, eax
call fcn.004e3d21
mov eax, dword [eax + 0xc]
push 0x140
push eax
call dword [0x534ef0]
push eax
lea ecx, [esp + 0xc]
call fcn.004d2db1
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004d2d7e
mov edi, eax
push 1
push 0xa7
mov edx, dword [edi + 4]
push edx
call fcn.004a6e10
mov eax, dword [edi + 4]
add esp, 0xc
add esi, 0x81be
push 0
push esi
push 0x81c1
push 0x81be
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, dword [0x58c95c]
lea eax, [esp + 0x10]
push eax
push 0xc
mov esi, dword [ecx + 0x360]
add esi, 0xbc
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xe0]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004d52ad
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 0
push edx
push eax
push ecx
push 2
mov ecx, edi
call fcn.004d00e2
mov dword [esp + 8], vtable.CMenu.0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.004d2e08
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x482390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4edee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, vtable.CMenu.0
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 0
cmp eax, 2
jne 0x4823d4
mov edi, 0x13b
jmp 0x4823e2
cmp eax, 3
jne 0x4824f4
mov edi, 0x15e
call fcn.004e3d21
mov eax, dword [eax + 0xc]
and edi, 0xffff
push edi
push eax
call dword [0x534ef0]
push eax
lea ecx, [esp + 0x10]
call fcn.004d2db1
test eax, eax
jne 0x482417
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], 2
jmp 0x482500
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push 0
push eax
call ebx
push eax
call fcn.004d2d7e
mov esi, eax
test esi, esi
jne 0x482450
lea ecx, [esp + 0xc]
call fcn.004d2e08
mov dword [esp + 0xc], vtable.CMenu.0
mov dword [esp + 0x24], 3
jmp 0x482500
mov ecx, dword [esi + 4]
push 1
push edi
push ecx
call fcn.004a6e10
add esp, 0xc
push 1
push 0x52a220
push 0x39
call fcn.004a6ea0
mov edx, dword [esi + 4]
add esp, 8
push eax
push 0
push edx
call fcn.004a6980
mov eax, dword [esi + 4]
add esp, 0x10
push 0
push eax
call ebx
push eax
call fcn.004d2d7e
test eax, eax
je 0x4824b4
mov ecx, dword [0x521868]
mov edx, dword [eax + 4]
add ecx, 0x81be
push 0
push ecx
push 0x81c1
push 0x81be
push edx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
push 2
mov ecx, esi
call fcn.004d00e2
lea ecx, [esp + 0xc]
call fcn.004d2e08
mov dword [esp + 0xc], vtable.CMenu.0
mov dword [esp + 0x24], 4
jmp 0x482500
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], 1
lea ecx, [esp + 0xc]
call fcn.004d2e08
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x482980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4edf50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, vtable.CMenu.0
push esi
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0
call fcn.004e3d21
mov edi, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
and edi, 0xffff
push edi
push eax
call dword [0x534ef0]
push eax
lea ecx, [esp + 0x10]
call fcn.004d2db1
test eax, eax
jne 0x4829ed
mov dword [esp + 0xc], ebp
mov dword [esp + 0x24], 1
jmp 0x482a74
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004d2d7e
mov esi, eax
test esi, esi
jne 0x482a1d
lea ecx, [esp + 0xc]
call fcn.004d2e08
mov dword [esp + 0xc], ebp
mov dword [esp + 0x24], 2
jmp 0x482a74
mov ecx, dword [esi + 4]
push 1
push edi
push ecx
call fcn.004a6e10
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
push 2
mov ecx, esi
call fcn.004d00e2
lea ecx, [esp + 0xc]
call fcn.004d2e08
mov dword [esp + 0xc], ebp
mov dword [esp + 0x24], 3
lea ecx, [esp + 0xc]
call fcn.004d2e08
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x485f20
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x532c18]
push str.Out_of_memory._Program_abort.
push 0x64
mov dword [esp + 8], eax
call fcn.004a6ea0
add esp, 8
lea ecx, [esp]
push eax
call fcn.004ce403
mov ecx, dword [esp]
push 0
push 0x10
push ecx
call fcn.004d7952
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x487fc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call fcn.00487f10
add esp, 0xc
test eax, eax
jne 0x487fe0
pop edi
pop esi
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push 0
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x487fff
pop edi
pop esi
ret
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, esi
pop edi
sete al
pop esi
ret

Function at 0x488010
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call fcn.00487f10
add esp, 0xc
test eax, eax
jne 0x488031
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x488052
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x488120
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
push esi
mov esi, dword [esp + 0xc]
and edx, ecx
cmp edx, 0xffffffff
mov dword [esp + 4], 0
je 0x488154
push ecx
push eax
push esi
call fcn.00487f10
add esp, 0xc
test eax, eax
jne 0x488154
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x488181
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x488181
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x488190
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
lea edx, [esp]
push edx
push ecx
push eax
call fcn.00486460
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 0x14
ret
Function at 0x489190
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4ee2e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x910
mov eax, dword [0x532c18]
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x92c]
mov dword [esp + 0x924], ebx
mov edx, dword [ecx]
mov eax, dword [edx - 8]
inc eax
push eax
call fcn.004ce6b1
mov ebp, eax
cmp ebp, ebx
je 0x48935b
push 0xc
call fcn.004d2c41
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x489250
mov eax, dword [0x532c18]
push edi
mov dword [esi + 8], eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x58c95c]
mov eax, dword [esp + 0x934]
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x24], str.open
mov edx, dword [ecx + 0x1c]
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], 1
pop edi
jne 0x489257
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ebp
push eax
call dword [0x534e64]
jmp 0x4892fb
xor esi, esi
jmp 0x489334
cmp eax, 1
jne 0x489296
lea ecx, [esp + 0x54]
push str.shell32.dll_OpenAs_RunDLL
push ecx
call fcn.004b71cd
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.004b71a3
add esp, 0x10
lea ecx, [esp + 0x14]
lea eax, [esp + 0x54]
mov dword [esp + 0x24], 0x52b940
push ecx
mov dword [esp + 0x2c], eax
call dword [0x534e64]
jmp 0x4892fb
cmp eax, 2
jne 0x4892fb
lea edx, [esp + 0x10]
push edx
call fcn.00489390
add esp, 4
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x928], 1
call fcn.004ce3b3
lea ecx, [esp + 0x10]
mov byte [esp + 0x924], 0
call fcn.004ce26c
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.004ce6b1
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], ebp
call dword [0x534e64]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.004ce701
cmp dword [esp + 0x34], 0x1f
je 0x489334
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x489334
push ebp
lea ecx, [esi + 8]
mov dword [esi], eax
call fcn.004ce403
lea edx, [esp + 0x50]
push edx
push 0
push esi
push 0x489110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov ebx, 1
mov ecx, dword [esp + 0x92c]
push 0xffffffffffffffff
call fcn.004ce701
test ebx, ebx
jne 0x48935b
test esi, esi
je 0x48935b
lea ecx, [esi + 8]
call fcn.004ce26c
push esi
call fcn.004d2c6a
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x924], 0xffffffff
call fcn.004ce26c
mov ecx, dword [esp + 0x91c]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x91c
ret
Function at 0x48abb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xad8
push esi
lea eax, [esp + 0x2bc]
push edi
xor esi, esi
push eax
push esi
push esi
push 0x590964
mov dword [esp + 0x18], esi
call dword [0x534ddc]
test eax, eax
je 0x48ac9e
mov edi, dword [0x534d68]
lea ecx, [esp + 0x2c0]
push ecx
call edi
lea edx, [esp + 0x2c0]
push str..ico
push edx
call fcn.004b71a3
add esp, 8
lea eax, [esp + 0x2c0]
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [0x534d60]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48ac38
xor esi, esi
push esi
call fcn.00487eb0
add esp, 4
pop edi
pop esi
add esp, 0xad8
ret
mov edx, dword [esp + 0xae8]
mov eax, dword [esp + 0xae4]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48ac9e
push esi
call fcn.00487eb0
add esp, 4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c0]
xor esi, esi
push 0x4411
push 0x2b4
push ecx
push 0x80
push edx
call dword [0x534e5c]
mov eax, dword [esp + 0xaec]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c0]
push edx
mov dword [eax], ecx
call edi
push esi
call fcn.00487eb0
add esp, 4
pop edi
pop esi
add esp, 0xad8
ret

Function at 0x48c260
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov ecx, 0x4000
xor eax, eax
mov edi, 0x5cda60
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x591d88]
mov dword [0x5bda44], esi
cmp eax, esi
mov dword [0x5dda68], esi
mov dword [0x591d78], esi
jne 0x48c298
mov eax, dword [esp + 0xc]
mov dword [0x591d84], eax
jmp 0x48c2d0
mov eax, dword [0x5bda48]
push 0x10000
push eax
call fcn.0048c310
add esp, 8
cmp eax, 0x106
mov dword [0x591d84], eax
jae 0x48c2d0
cmp dword [0x591d78], esi
jne 0x48c2d0
call fcn.0048c370
mov eax, dword [0x591d84]
cmp eax, 0x106
jb 0x48c2b7
cmp eax, esi
je 0x48c306
mov esi, dword [0x5bda48]
xor ecx, ecx
mov dword [0x591d74], ecx
xor eax, eax
xor edx, edx
and ecx, 0x3ff
mov dl, byte [esi + eax]
and edx, 0x7fff
shl ecx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [0x591d74], ecx
jb 0x48c2e4
pop edi
pop esi
ret