joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb2f0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x565860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x18]
call fcn.0054aae4
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], ebx
call fcn.0054aae4
mov eax, dword [ebp + 0x28]
mov byte [esp + 0x50], 1
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0054ab86
mov esi, eax
cmp esi, ebx
jne 0x4cb373
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], bl
call fcn.0054ac19
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
call fcn.0054ac19
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
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 + 0x20]
call fcn.0054ab9b
mov edx, dword [esi + 4]
push edx
call edi
push eax
lea ecx, [esp + 0x40]
call fcn.0054ab9b
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x18]
call fcn.0054b609
mov eax, dword [esi + 4]
push 0x2e
push 0x100
push eax
mov byte [esp + 0x60], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
cmp edi, ebx
je 0x4cb3d6
mov ecx, dword [esp + 0x20]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x2e
call fcn.004ceee0
test eax, eax
jne 0x4cb41a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x4cb443
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push 0xf9f8f8
push 0xfdfbfb
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x24], 1
call fcn.004d7840
add esp, 0x14
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.004cb500
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push 0x2e
push 0x100
push 3
push 0x14
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
je 0x4cb491
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [ebp + 0x28]
mov edx, dword [esi + 4]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x14], vtable.CGdiObject.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call fcn.0054b5a3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call fcn.0054ac19
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0xffffffff
call fcn.0054ac19
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x4cb880
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x254
test eax, eax
push esi
mov esi, dword [esp + 0x264]
mov dword [esi], 0
je 0x4cb8a1
mov word [eax], 0
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push eax
push ecx
push 0xc
push edx
push eax
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esp + 0x274]
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4cb8e3
mov dword [esi], 0xffffffff
pop esi
add esp, 0x254
ret
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x54]
push edx
push 0x102
mov dword [esp + 0x1c], ecx
call dword [0x703290]
mov ecx, dword [str..A:]
mov edx, dword [0x6d1dc4]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x6d1dc8]
mov dword [esp + 0x1c], edx
mov dx, word [0x6d1dcc]
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
mov dword [esi], 0
jle 0x4cba22
push ebx
push ebp
push edi
xor ebp, ebp
lea ebx, [esp + 0x60]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp ax, 0x41
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
je 0x4cba0d
cmp ax, 0x42
je 0x4cba0d
lea edx, [esp + 0x10]
push edx
call dword [0x703278]
cmp eax, 2
jb 0x4cba0d
cmp eax, 3
ja 0x4cba0d
mov ax, word [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x38]
push 0x80000000
push ecx
mov word [esp + 0x48], ax
call dword [0x703240]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cba0d
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [esp + 0x48]
push 0x20
push eax
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4cba0d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
cmp eax, ecx
jne 0x4cba04
mov eax, dword [esp + 0x270]
mov edi, dword [esp + 0x26c]
mov cx, word [esp + 0x10]
mov edx, dword [eax]
mov word [edi + edx*2], cx
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
push esi
call fcn.004df7b0
add esp, 4
mov eax, dword [esp + 0x18]
add ebp, 4
add ebx, 8
cmp ebp, eax
jl 0x4cb940
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x254
ret
Function at 0x4cbb90
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x248
mov eax, dword [str.._:]
mov ecx, dword [0x6d23ec]
mov edx, dword [0x6d23f0]
mov dword [esp + 4], eax
mov ax, word [0x6d23f4]
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 0x4cbc13
push esi
push esi
push 3
push esi
push 3
lea ecx, [esp + 0x20]
push 0x80000000
push ecx
call dword [0x703240]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cbc72
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 0x4cbc58
push esi
call fcn.004df7b0
add esp, 4
test ebx, ebx
pop ebx
je 0x4cbc72
cmp dword [esp + 0x44], 7
jne 0x4cbc72
pop edi
mov eax, 1
pop esi
add esp, 0x248
ret
pop edi
xor eax, eax
pop esi
add esp, 0x248
ret
Function at 0x4cbf90
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x565911
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov edi, 1
call fcn.00542726
mov eax, dword [0x700320]
xor ebp, ebp
mov dword [esp + 0x2dc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x2dc], 2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [0x703424]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push 0x146
push eax
call ebx
test eax, eax
jle 0x4cc01b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004cc700
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push 0x14b
push eax
call ebx
push 0x4011
lea ecx, [esp + 0x24]
push 0x2b4
push ecx
push 0
push 0x6d2dc4
call dword [0x703348]
push eax
lea ecx, [esp + 0x1c]
call fcn.00542813
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esi + 0x1c]
push eax
push 0
push 0x402
push edx
call ebx
push eax
call fcn.005427b8
lea ecx, [esp + 0x18]
call fcn.00542778
mov ecx, dword [esi + 0x3c]
mov eax, 0x1a
test edi, ecx
je 0x4cc079
inc ebp
shl edi, 1
dec eax
jne 0x4cc074
lea eax, [ebp*8 + 2]
push eax
call fcn.00425ec0
add esp, 4
mov edi, eax
lea ecx, [ebp*4 + 1]
mov dword [esi + 0x44], eax
push edi
push ecx
call dword [0x703290]
mov ax, word [edi]
test ax, ax
je 0x4cc0f2
cmp ax, 0x5a
jbe 0x4cc0b6
add eax, 0xffffffe0
mov word [edi], ax
mov dx, word [edi]
push 0
push edx
mov ecx, esi
call fcn.004cbe00
mov eax, dword [esp + 0x10]
push edi
push eax
call fcn.00526bed
add esp, 8
test eax, eax
jne 0x4cc0e6
mov ecx, dword [esi + 0x1c]
push eax
push eax
push 0x146
push ecx
call ebx
dec eax
mov dword [esi + 0x40], eax
mov ax, word [edi + 8]
add edi, 8
test ax, ax
jne 0x4cc0aa
mov eax, dword [esi + 0x40]
test eax, eax
jl 0x4cc107
mov edx, dword [esi + 0x1c]
push 0
push eax
push 0x14e
push edx
call ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2dc], 1
call fcn.00544250
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 0
call fcn.00544250
lea ecx, [esp + 0x18]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.0054274f
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2d0
ret
Function at 0x4ccfd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x565a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x700320]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
push str.Version
push 0x690
mov dword [esp + 0x30], 0
xor edi, edi
call fcn.00506990
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.005443e7
push 0x68d870
lea ecx, [esp + 0x10]
call fcn.00544641
push 0x6f63fc
lea ecx, [esp + 0x10]
call fcn.00544641
push 0x691704
lea ecx, [esp + 0x10]
call fcn.00544641
push str.32_bit
push 0x25d3
call fcn.00506990
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.00544641
push 0x6916f4
lea ecx, [esp + 0x10]
call fcn.00544641
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
lea eax, [esp + 0x14]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [0x7a9b44]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x4cd0b1
mov edx, dword [esi + 4]
push eax
push edx
call ebx
mov edi, eax
mov eax, dword [esi]
push ebp
push 0
mov ecx, esi
call dword [eax + 0x30]
push 1
mov ecx, esi
call fcn.0054ada4
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea ebp, [esp + 0x14]
push 2
mov ecx, dword [eax - 8]
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
test edi, edi
pop ebp
je 0x4cd0e7
mov eax, dword [esi + 4]
push edi
push eax
call ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00544250
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x4d7650
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x700320]
push 0x68daa0
push 0x2706
mov dword [esp + 8], eax
call fcn.00506990
add esp, 8
lea ecx, [esp]
push eax
call fcn.005443e7
mov ecx, dword [esp]
push 0
push 0x10
push ecx
call fcn.0054d56b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4d7ef0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x566488
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4d7f6a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00526b30
add esp, 4
lea edx, [eax + eax + 0x10]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d7f64
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d7f64
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.00526ae2
add esp, 8
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.00544250
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x4d9d80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5665c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi], 0x652e38
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, dword [0x700320]
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], eax
mov ecx, dword [0x700320]
mov dword [esi + 0x20], ecx
mov edx, dword [0x700320]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edi
mov eax, dword [0x700320]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x700320]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 5
call fcn.00543255
mov edx, dword [0x700320]
mov dword [esi + 0x48], edx
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 7
call fcn.00543255
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], 0x652e38
mov dword [esi + 0x64], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x74], edi
mov eax, dword [0x700320]
mov dword [esi + 0x78], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4dd8b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
xor esi, esi
push eax
push edi
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str.GetMappedFileNameW
push str.psapi.dll
mov dword [esp + 0x24], eax
call dword [0x7032f4]
push eax
call dword [0x7032a8]
mov ebx, eax
test ebx, ebx
je 0x4dd961
push 0x800
call fcn.004df770
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4dd961
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4dd917
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dd961
push 0
push 1
push 0
push 2
push 0
push edi
call dword [0x70323c]
mov esi, eax
test esi, esi
je 0x4dd961
push 1
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4dd970
push 0x104
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4dd965
mov dword [esp + 0x14], 1
jmp 0x4dd965
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4dd970
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call fcn.004df7b0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x4dd994
push ebp
call fcn.004df7a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4deb20
Capabilities:
Get disk size

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.004deb80
mov esi, eax
add esp, 4
test esi, esi
jle 0x4deb74
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x10]
push 8
push ecx
push 0
push 0
push 0x7405c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4deb74
mov eax, esi
cdq
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00526d20
pop edi
pop esi
add esp, 8
ret
xor eax, eax
pop edi
xor edx, edx
pop esi
add esp, 8
ret

Function at 0x4df7d0
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.004df820
add esp, 0xc
test eax, eax
jne 0x4df7f1
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 0x4df812
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x4df870
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.004d9ce0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 0x14
ret

Function at 0x4dfa70
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x4dfac1
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4dfac1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
call fcn.004df820
add esp, 0xc
test eax, eax
je 0x4dfac1
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dfac1
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
pop edi
pop esi
pop ebx
sete al
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4dfbc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
push ebx
mov ebx, dword [esp + 8]
push ebp
and edx, ecx
xor ebp, ebp
push esi
cmp edx, 0xffffffff
push edi
je 0x4dfbf2
push ecx
push eax
push ebx
call fcn.004df820
add esp, 0xc
test eax, eax
jne 0x4dfbf2
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push esi
push edi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4dfc21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x4dfbea
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4dfc55
push esi
push ebx
call fcn.004dda90
add esp, 8
cmp eax, 1
jne 0x4dfc44
mov eax, dword [esp + 0x14]
add edi, eax
sub esi, eax
add ebp, eax
jmp 0x4dfbfa
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x7f2fa4], 1
pop ebx
ret
add ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x4dfe10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4e0fa0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x566bd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x910
mov eax, dword [0x700320]
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.00544695
mov ebp, eax
cmp ebp, ebx
je 0x4e116b
push 0xc
call fcn.00548c73
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4e1060
mov eax, dword [0x700320]
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 [0x75e0b4]
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 0x4e1067
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ebp
push eax
call dword [0x703350]
jmp 0x4e110b
xor esi, esi
jmp 0x4e1144
cmp eax, 1
jne 0x4e10a6
lea ecx, [esp + 0x54]
push str.shell32.dll_OpenAs_RunDLL
push ecx
call fcn.00526ae2
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.00526ab8
add esp, 0x10
lea ecx, [esp + 0x14]
lea eax, [esp + 0x54]
mov dword [esp + 0x24], str.RUNDLL32.EXE
push ecx
mov dword [esp + 0x2c], eax
call dword [0x703350]
jmp 0x4e110b
cmp eax, 2
jne 0x4e110b
lea edx, [esp + 0x10]
push edx
call fcn.004e11a0
add esp, 4
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x928], 1
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x924], 0
call fcn.00544250
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.00544695
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], ebp
call dword [0x703350]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.005446e5
cmp dword [esp + 0x34], 0x1f
je 0x4e1144
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4e1144
push ebp
lea ecx, [esi + 8]
mov dword [esi], eax
call fcn.005443e7
lea edx, [esp + 0x50]
push edx
push 0
push esi
push 0x4e0f20
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.005446e5
test ebx, ebx
jne 0x4e116b
test esi, esi
je 0x4e116b
lea ecx, [esi + 8]
call fcn.00544250
push esi
call fcn.00548c9c
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x924], 0xffffffff
call fcn.00544250
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 0x4e8240
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov ecx, 0x4000
xor eax, eax
mov edi, 0x7e27e0
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x765500]
mov dword [0x7d27c4], esi
cmp eax, esi
mov dword [0x7f27e8], esi
mov dword [0x7654f0], esi
jne 0x4e8278
mov eax, dword [esp + 0xc]
mov dword [0x7654fc], eax
jmp 0x4e82b0
mov eax, dword [0x7d27c8]
push 0x10000
push eax
call fcn.004e82f0
add esp, 8
cmp eax, 0x106
mov dword [0x7654fc], eax
jae 0x4e82b0
cmp dword [0x7654f0], esi
jne 0x4e82b0
call fcn.004e8350
mov eax, dword [0x7654fc]
cmp eax, 0x106
jb 0x4e8297
cmp eax, esi
je 0x4e82e6
mov esi, dword [0x7d27c8]
xor ecx, ecx
mov dword [0x7654ec], 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 [0x7654ec], ecx
jb 0x4e82c4
pop edi
pop esi
ret
Function at 0x4eb110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
je 0x4eb140
mov ecx, dword [esp + 8]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x654bec]
xor eax, edx
inc ecx
dec esi
jne 0x4eb121
pop ebx
not eax
pop esi
ret

Function at 0x4ec3d0
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 1
push edi
call fcn.004ec370
mov ebp, dword [edi + 0x61ad0]
add esp, 4
test ebp, ebp
jne 0x4ec3ff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
jle 0x4ec41d
lea esi, [edi + 4]
mov ebx, ebp
mov eax, dword [esi]
push eax
call fcn.004df7a0
mov dword [esi], 0
add esp, 4
add esi, 4
dec ebx
jne 0x4ec406
lea ecx, [ebp*4]
push ecx
call fcn.004df770
add esp, 4
mov dword [edi + 0x61ac8], eax
test eax, eax
jne 0x4ec445
call fcn.004d7650
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
xor ebx, ebx
test ebp, ebp
jle 0x4ec4a6
mov eax, 0xfffffffc
lea esi, [edi + 4]
sub eax, edi
mov dword [esp + 0x18], eax
push ebx
push edi
call fcn.004eb9e0
mov edx, dword [esi]
push edx
call fcn.004df8a0
add esp, 0xc
test eax, eax
jne 0x4ec48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4ec485
mov eax, dword [esi]
push eax
call fcn.004dcf00
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x4ec49e
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x61ac8]
add ecx, esi
mov dword [ecx + edx], eax
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x4ec459
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret