joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d809
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x526a10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d84c
cmp word [esi], dx
jne 0x41d84c
or byte [edi + eax + 0x28], 4
jmp 0x41d851
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d9a4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d984
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d893
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d8c9
cmp eax, edx
jae 0x41d8d5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d86b
jmp 0x41d9a4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d980
cmp dword [ebp - 0x14], 0
je 0x41d980
mov eax, dword [ebx*4 + 0x526a10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d958
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d921
mov word [esi], cx
jmp 0x41d954
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x526a10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x526a10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x526a10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d9a4
pop ebx
cmp word [ebp - 4], bx
jne 0x41d969
cmp esi, dword [ebp + 0xc]
jne 0x41d969
mov word [esi], bx
jmp 0x41d9a1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e23d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d9a4
push 0xd
jmp 0x41d99d
mov ecx, dword [ebx*4 + 0x526a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d99b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d9a4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429670
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040b076
mov cl, byte [0x431ddc]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
xor esi, esi
mov byte [esp + 0x20], cl
xor edi, edi
mov byte [esp + 0x21], 0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
nop dword [eax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x431ee0]
movss dword [esp + 0x14], xmm0
cmp esi, edi
je 0x4296e6
movss dword [esi], xmm0
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x4296fd
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004074b0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, 0xa
jl 0x4296c0
mov eax, dword [esp + 0x1c]
xor ebx, ebx
sub esi, eax
xor ecx, ecx
mov edx, esi
xor ebp, ebp
sar edx, 2
mov dword [esp + 0x14], edx
test edx, edx
je 0x42978d
cmp edx, 0x3fffffff
ja 0x42989a
lea ebp, [edx*4]
cmp ebp, 0x1000
jb 0x429762
lea eax, [ebp + 0x23]
cmp eax, ebp
jbe 0x42989f
push eax
call fcn.0040b076
add esp, 4
test eax, eax
je 0x4298a4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
jmp 0x429779
test ebp, ebp
je 0x429777
push ebp
call fcn.0040b076
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x429779
xor ebx, ebx
push esi
push eax
push ebx
add ebp, ebx
call fcn.0040c0c0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [ebx + eax*4]
sub ecx, ebx
sar ecx, 2
test ecx, ecx
je 0x42981b
xor esi, esi
nop dword [eax]
movzx eax, byte [esi + 0x5250e0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x5250e0], al
call fcn.00405030
push eax
call fcn.00405240
movzx eax, byte [esi + 0x5250e0]
add esp, 4
add al, 0x4e
mov edx, str.Earth
xor al, 0xdc
mov byte [esi + 0x5250e0], al
call fcn.00405030
push eax
call fcn.00405240
movzx eax, byte [esi + 0x5250e0]
add esp, 4
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x431e3c
mov byte [esi + 0x5250e0], al
call fcn.00412b61
xor byte [esi + 0x5250e0], al
add esp, 4
inc esi
cmp esi, 0x4ac
jb 0x4297a0
test ebx, ebx
je 0x429848
sub ebp, ebx
mov eax, ebx
and ebp, 0xfffffffc
cmp ebp, 0x1000
jb 0x42983e
mov ebx, dword [eax - 4]
add ebp, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4298a4
push ebp
push ebx
call fcn.0040b0a6
add esp, 8
push 1
push dword [esp + 0x1c]
call fcn.0040b0a6
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
je 0x429887
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x42987d
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4298a4
push edi
push ecx
call fcn.0040b0a6
add esp, 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b063
add esp, 0x2c
ret
call fcn.004070a0
call fcn.00401370
call fcn.00412ecf
int3
Function at 0x402e0a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c33e9
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, eax
lea esi, [edi + 0x11c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x18], esi
test eax, eax
je 0x402fe2
push 0
push 0
push 0x130b
push dword [edi + 0xf4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov dword [esp + 0x18], eax
call fcn.00403ba9
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004037cd
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
and dword [esp + 0xf8], 0
lea ecx, [esp + 0x3c]
lea esi, [edi + 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov byte [esp + 0xf8], 1
push dword [esp + 0x1c]
push eax
push 0x138d
lea eax, [esp + 0x64]
push eax
call fcn.0047b333
mov byte [esp + 0xf8], 2
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
mov byte [esp + 0xf8], 1
lea eax, [esp + 0x58]
push eax
call fcn.00401d09
mov byte [esp + 0xf8], 0
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.0040115a
or dword [esp + 0xf8], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.0040115a
push ebx
push dword [edi + 0x100]
lea eax, [esp + 0xac]
push eax
call fcn.0047e976
mov dword [esp + 0xf8], 3
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
push 0
mov edi, ecx
call dword [eax + 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push eax
lea ecx, [esp + 0xb0]
call fcn.0047eda0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edi, eax
mov byte [esp + 0xf8], 4
push dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
call fcn.00403ba9
push eax
push edi
push 0x138d
lea eax, [esp + 0x64]
push eax
call fcn.0047b333
mov byte [esp + 0xf8], 5
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
mov byte [esp + 0xf8], 4
lea eax, [esp + 0x58]
push eax
call fcn.00401d09
mov byte [esp + 0xf8], 3
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.0040115a
or dword [esp + 0xf8], 0xffffffff
lea eax, [esp + 0xa4]
push eax
call fcn.00403006
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0049cdcb
mov esp, ebp
pop ebp
ret
Function at 0x4030be
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c335b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, str.AiStopPageChange
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.00401bf3
xor ebx, ebx
mov dword [esp + 0xa8], ebx
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
call fcn.004011e0
mov byte [esp + 0xa8], 1
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x3c]
push edx
call dword [eax + 0xc]
mov byte [esp + 0xa8], bl
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.0040115a
or dword [esp + 0xa8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040115a
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push dword [esi + 0x100]
push eax
call fcn.0047e976
mov dword [esp + 0xa8], 2
mov ecx, dword [esi + 0x38]
mov eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ecx]
call dword [eax]
push eax
lea ecx, [esp + 0x60]
call fcn.0047eda0
push edi
lea ecx, [esp + 0x3c]
call fcn.00401bf3
mov byte [esp + 0xa8], 3
mov esi, dword [esi + 0x100]
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax]
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x14], ebx
setne byte [esp + 0x17]
mov byte [esp + 0xa8], 3
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.0040115a
mov byte [esp + 0xa8], 2
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040115a
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x54]
push eax
call fcn.00403006
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0049cdcb
mov esp, ebp
pop ebp
ret
Function at 0x40598e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4059a5
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4059da
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4059d6
cmp edi, eax
jae 0x4059da
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4059c8
cmp edi, eax
jb 0x4059de
xor eax, eax
jmp 0x4059e7
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40f103
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x40f114
lea edi, [esi - 0xc0]
jmp 0x40f116
xor edi, edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 4]
call ebx
call fcn.0040dff7
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.0040e0ed
cmp dword [esi + 0x18], 0
je 0x40f145
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 5
push dword [edi + 4]
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40f5e1
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x1c
mov eax, 0x4ba7ea
call fcn.004a1f7e
xor ebx, ebx
cmp esi, ebx
je 0x40f5fe
lea eax, [esi - 0xc0]
mov dword [ebp - 0x18], eax
jmp 0x40f601
mov dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 4]
test al, al
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jne 0x40f6ef
xor edi, edi
inc edi
push 0x17
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40f62f
mov dword [ebp - 0x14], 2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
seta al
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
cmp byte [esi + 0x14], bl
je 0x40f654
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 8
jne 0x40f668
xor ecx, ecx
cmp al, bl
setne cl
inc ecx
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x40f67a
cmp dword [ebp + 8], 0x14
jne 0x40f67f
xor ecx, ecx
cmp al, bl
setne cl
inc ecx
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push dword [ebp - 0x10]
push ebx
push edi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push dword [ebp - 0x14]
push 2
push edi
call dword [eax + 0x18]
cmp dword [ebp + 8], 8
je 0x40f6bc
cmp dword [ebp + 8], 0x14
jne 0x40f6dd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x12
call dword [sym.imp.USER32.dll_TrackMouseEvent]
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x40f6ef
push edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
call fcn.004a2057
ret 8
Function at 0x413c2b
Capabilities:
Hash data using fnv

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x413c36
mov ecx, dword [eax + 4]
jmp 0x413c39
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
push esi
mov eax, 0x811c9dc5
lea edx, [ecx + edx*2]
jmp 0x413c54
movzx esi, word [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
inc ecx
cmp ecx, edx
jne 0x413c47
mov esi, SysReAllocString
and eax, esi
push 0x1f31d
push eax
call fcn.0049d686
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
pop ecx
sub edx, eax
pop ecx
mov eax, edx
jns 0x413c80
add eax, esi
pop esi
ret
Function at 0x421224
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x42126e
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x421295
shr eax, 2
test al, 1
je 0x42129e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4212d1
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x4212d0
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x421ad3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421b37
cmp dword [ebp + 0xc], 1
je 0x421b0f
cmp dword [ebp + 0xc], 2
je 0x421b0f
push 0xd
pop eax
jmp 0x421b37
mov eax, dword [ebp - 4]
test edi, edi
je 0x421b31
test eax, eax
je 0x421b2c
test al, 1
jne 0x421b0a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x421b31
jmp 0x421b0a
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x42d7b9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb0f5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x42d7f2
mov eax, dword [eax + 4]
jmp 0x42d7f5
add eax, 4
push eax
lea esi, [esp + 0x30]
call fcn.0043304e
and dword [esp + 0x48], 0
push 3
pop eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0xe
mov byte [esp + 0x48], 1
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x48], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push edx
push edx
lea edx, [esp + 0x28]
push edx
mov edx, esi
push edx
push eax
call dword [ecx + 0xd0]
test eax, eax
setge bl
mov byte [esp + 0x48], 1
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xc]
push eax
call esi
mov byte [esp + 0x48], 0
lea eax, [esp + 0x1c]
push eax
call esi
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call esi
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42d88f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4c84
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x30]
push eax
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, eax
lea ecx, [esp + 8]
call fcn.004332e4
pop ecx
and dword [esp + 0x30], 0
lea eax, [esp + 4]
push eax
push esi
call fcn.0042d7b9
or dword [esp + 0x30], 0xffffffff
push 0
push 1
lea ecx, [esp + 0xc]
call fcn.0040115a
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0049cdcb
mov esp, ebp
pop ebp
ret 4
Function at 0x433594
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
call fcn.004125fe
cmp dword [esi], 0
je 0x4335c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4335c1
mov byte [esi + 8], 1
pop esi
ret 4

Function at 0x436e95
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4c90bb
call fcn.004a1fe8
push edi
call fcn.00405877
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.004011e0
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00436f2b
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403b1f
push eax
push dword [ebp - 0x34]
call esi
cmp eax, ebx
jne 0x436f01
mov byte [ebp - 0x2d], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040115a
mov al, byte [ebp - 0x2d]
call fcn.004a206b
ret
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403b1f
mov ebx, edi
mov ecx, eax
call fcn.004490c0
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
seta byte [ebp - 0x2d]
xor ebx, ebx
jmp 0x436ee9

Function at 0x437fe5
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x4ba13d
call fcn.004a1f7e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
xor ebx, ebx
cmp eax, ebx
je 0x438004
mov dword [ecx], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x438036
or dword [ebp - 4], eax
push eax
jmp 0x4380b4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.00438364
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x43809e
cmp dword [ebp - 0x10], ebx
je 0x43809e
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push edi
call fcn.004380c7
mov byte [ebp + 0xb], al
mov byte [ebp - 4], bl
push edi
call fcn.0049d65c
pop ecx
mov dword [ebp + 0xc], ebx
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x438099
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
mov al, byte [ebp + 0xb]
jmp 0x4380bf
mov byte [ebp - 4], bl
push edi
call fcn.0049d65c
pop ecx
mov dword [ebp + 0xc], ebx
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4380bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
xor al, al
call fcn.004a2057
ret 8
Function at 0x438dd3
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push 0x58
mov eax, 0x4c6825
call fcn.004a1f7e
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
xor esi, esi
cmp eax, esi
je 0x438f85
lea ecx, [ebp - 0x10]
call fcn.00409513
mov byte [ebp - 4], 2
push 0x4d9d5c
lea eax, [ebp - 0x18]
push eax
call fcn.00405d54
mov byte [ebp - 4], 3
lea edi, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0044fcb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004058e3
push str..bat
mov eax, edi
push eax
call fcn.00438cdb
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 4
cmp edi, 0xffffffff
jne 0x438e76
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], esi
jmp 0x438f79
lea eax, [ebp - 0x18]
push eax
call fcn.00439967
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0043998e
mov byte [ebp - 4], 6
cmp byte [ebx + 9], 0
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
jne 0x438ea3
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 0x14]
push dword [ebp - 0x14]
push dword [ebx]
push dword [ebx]
push dword [ebx]
push eax
lea eax, [ebp - 0x18]
call fcn.00439d36
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
add esp, 0x18
push esi
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x14]
push eax
call fcn.004399d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
call fcn.004399d0
mov byte [ebp - 4], 2
cmp edi, esi
je 0x438efb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x1c]
lea esi, [ebx + 4]
push eax
call fcn.0044f580
pop ecx
mov byte [ebp - 4], 7
cmp byte [ebx + 8], 0
jne 0x438f2a
xor eax, eax
push eax
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x438f6d
push 0x3c
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0049d850
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], 0x500
mov dword [ebp - 0x58], str.runas
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004058e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004058e3
mov byte [ebp - 4], 0
lea ecx, [ebx + 4]
call fcn.004058e3
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.004399d0
call fcn.004a2057
ret 4