joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14de4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 5
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x14e4d
mov eax, 0x10000
shl eax, 2
push eax
push 1
mov dword [ebp - 4], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
cmp edi, ebx
je 0x14e99
push ebx
push dword [ebp - 4]
push edi
push 5
call esi
test eax, eax
jge 0x14e3d
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
xor edi, edi
cmp edi, ebx
jne 0x14e7b
mov eax, dword [ebp - 4]
cmp eax, 0x400000
jb 0x14e12
jmp 0x14e99
add eax, eax
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
cmp edi, ebx
je 0x14e99
mov eax, dword [ebp - 4]
push ebx
add eax, eax
push eax
push edi
push 5
call esi
test eax, eax
jge 0x14e77
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
xor edi, edi
cmp edi, ebx
je 0x14e99
mov eax, edi
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x14e88
inc dword [ebp - 8]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x14e92
add eax, ecx
jmp 0x14e7d
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1525c
Capabilities:
Get file attributes
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x16584]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x234], ecx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
push esi
mov dword [ebp - 0x22c], ecx
push edi
mov dword [ebp - 0x228], edx
mov byte [ebp - 0x215], bl
xor ecx, ecx
movzx esi, word [ecx + 0x16166]
mov word [ebp + ecx - 0x214], si
inc ecx
inc ecx
cmp si, bx
jne 0x1529c
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x152b4
sub eax, esi
lea edi, [ebp - 0x214]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x152c8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0001467e
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
push esi
push ebx
push ebx
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x24c]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x15442
push ebx
push ebx
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x224], ebx
call fcn.0001467e
push dword [ebp - 0x21c]
lea eax, [ebp - 0x24c]
push 0x8000000
push 2
push ebx
push eax
push 0xf0005
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jl 0x15426
push 2
push ebx
push esi
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x224]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x230], ebx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x1541e
cmp dword [ebp - 0x220], ebx
je 0x1541e
push 5
push 0x18
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x15410
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x274]
cmp eax, ebx
je 0x153ea
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x153f5
cmp eax, ecx
jbe 0x153f7
mov eax, ecx
push dword [ebp - 0x228]
push eax
push dword [ebp - 0x220]
call fcn.00013f58
mov byte [ebp - 0x215], 1
push dword [ebp - 0x220]
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
push dword [ebp - 0x224]
call edi
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x1543a
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
jmp 0x15442
push dword [ebp - 0x21c]
call edi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x215]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00015a4f
leave
ret 0x14
Function at 0x4021c1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0xff
push 0x406520
push 0x64
push dword [0x4063f8]
mov esi, eax
call dword [sym.imp.USER32.dll_LoadStringW]
movzx eax, word [esi]
mov ecx, eax
push 0x20
pop ebx
test ax, ax
je 0x40221f
push ebx
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x402212
mov esi, eax
cmp word [eax], bx
jne 0x40221c
add esi, 2
cmp word [esi], bx
je 0x402208
jmp 0x40221c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
movzx ecx, word [esi]
xor edi, edi
movzx eax, cx
inc edi
test ax, ax
je 0x40229f
mov ecx, eax
cmp cx, 0x2f
je 0x402238
cmp cx, 0x2d
jne 0x40227a
movzx eax, word [esi + 2]
cmp eax, 0x73
je 0x402246
cmp eax, 0x53
jne 0x40224c
mov dword [0x4063f4], edi
cmp eax, 0x63
je 0x402258
mov ecx, eax
cmp eax, 0x43
jne 0x402267
call dword [sym.imp.USER32.dll_GetActiveWindow]
movzx ecx, word [esi + 2]
mov dword [0x4063f0], eax
cmp cx, 0x70
je 0x402289
cmp cx, 0x50
je 0x402289
mov word [esi], bx
mov word [esi + 2], bx
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x40222c
jmp 0x40229f
lea eax, [esi + 4]
mov dword [0x4063f4], edi
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x4063ec], eax
cmp dword [0x4063f4], 0
je 0x4022b1
call fcn.004022dd
test eax, eax
jne 0x4022d7
xor esi, esi
push esi
push 0xfffd
push edi
push 0x66
push 0x65
push 0x406520
push esi
push dword [0x4063f0]
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4022dd
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x406074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4063f8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14c], 0x402480
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edi
cmp dword [0x4063ec], edi
jne 0x402333
mov dword [ebp - 0x138], edi
jmp 0x402345
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x138], eax
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x134], eax
mov ebx, 0x406520
lea eax, [ebp - 0x150]
mov dword [ebp - 0x130], edi
push eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40237d
xor eax, eax
jmp 0x40246e
push esi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
pop esi
test eax, eax
je 0x402415
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402415
cmp dword [ebp - 0x108], 2
jne 0x402415
cmp dword [ebp - 0x114], 5
jb 0x402415
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402415
push 0x4e
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
mov dword [ebp - 0x120], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x11c], eax
jmp 0x40241b
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x124]
mov ecx, dword [0x4063ec]
push edi
push dword [0x4063f8]
push edi
push ecx
push eax
mov eax, dword [ebp - 0x120]
sub eax, dword [ebp - 0x128]
neg ecx
push eax
push dword [ebp - 0x124]
sbb ecx, ecx
push dword [ebp - 0x128]
and ecx, 0xc0000000
add ecx, 0x90000000
push ecx
push ebx
push ebx
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004056b0
leave
ret
Function at 0x403489
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x406074]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.00402680
push 0x401340
lea ecx, [esp + 0x1c]
call fcn.004025dc
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x403509
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40353f
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc0
call fcn.004031eb
mov edi, eax
jmp 0x40353f
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00403374
mov ebx, eax
test ebx, ebx
jns 0x403531
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc6
call fcn.004031cc
mov edi, ebx
jmp 0x40353f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x403549
push esi
call fcn.0040326c
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004056b0
mov esp, ebp
pop ebp
ret 8

Function at 0x4059b4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405f08
call fcn.00405c78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405a14
cmp eax, 0xffffffff
je 0x405a14
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405a0d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405a0d
cmp edx, 0x10000000
jae 0x405a0d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x405a0a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405a80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405abe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405ab6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405ac0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405aa6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405b90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405bc1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405bc1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405bc1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ac64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x7c], 0
jne 0x40ac86
ret
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x78]
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
and dword [ebp - 0x20], 0
jmp 0x40accc
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x14]
jae 0x40ad5c
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x40ace5
jmp 0x40acbc
and dword [ebp - 0x9c], 0
and dword [ebp - 0x1c], 0
jmp 0x40acf9
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x40ad29
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + eax*2]
cmp eax, dword [ebp - 0x20]
jne 0x40ad27
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x9c], edx
jmp 0x40ad29
jmp 0x40acf2
cmp dword [ebp - 0x9c], 0
je 0x40ad57
mov eax, 0x406bd6
call fcn.0040f42d
mov dword [ebp - 0x74], eax
call fcn.0040f596
cmp dword [ebp - 0x10], 0
je 0x40ad57
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov dword [ebp - 0x64], ecx
jmp 0x40ad5c
jmp 0x40acbc
ret
Function at 0x40356e
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41832c
call fcn.004126e4
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41a208
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41a2c8
push 4
mov ebx, 0x41a218
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.004019e2
mov dword [esi + 0x3c], 0x41a358
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.004019e2
mov dword [edi], 0x41a360
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00401ee4
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.00402c05
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00401ee4
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.00402c05
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00401ee4
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.00402c05
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00401ee4
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.00402c05
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.00402c05
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40666c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41875f
call fcn.004126e4
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41a208
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41a230
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00408ac6
push dword [esi + 8]
mov ecx, ebx
call fcn.00408ac6
push dword [esi + 0xc]
mov ecx, edi
call fcn.00408ac6
push dword [esi + 0xc]
mov ecx, edi
call fcn.00408ac6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x406678
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41875f
call fcn.004126e4
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41a208
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41a230
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00408ac6
push dword [esi + 8]
mov ecx, ebx
call fcn.00408ac6
push dword [esi + 0xc]
mov ecx, edi
call fcn.00408ac6
push dword [esi + 0xc]
mov ecx, edi
call fcn.00408ac6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x409b70
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 8
Function at 0x409b98
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4220dc], 0
jne 0x409bcf
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00409be4
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.00409b70
push dword [ebp - 0xc]
mov bl, al
call fcn.00408c1b
pop ecx
mov al, bl
pop ebx
jmp 0x409be0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x409c36
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4220dc], 0
jne 0x409c69
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00409be4
push dword [eax]
call fcn.00409b86
push dword [ebp - 0xc]
mov bl, al
call fcn.00408c1b
pop ecx
mov al, bl
pop ebx
jmp 0x409c77
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x409c8f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4220dc], 0
jne 0x409cc2
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00409be4
push dword [eax]
call fcn.00409c7b
push dword [ebp - 0xc]
mov bl, al
call fcn.00408c1b
pop ecx
mov al, bl
pop ebx
jmp 0x409cd2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x409f05
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4220dc], 0
jne 0x409f38
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00409be4
push dword [eax]
call fcn.00409ee4
push dword [ebp - 0xc]
mov bl, al
call fcn.00408c1b
pop ecx
mov al, bl
pop ebx
jmp 0x409f54
push 0
push dword [ebp + 8]
call fcn.00409b98
test al, al
je 0x409f54
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
leave
ret 4

Function at 0x40a4ea
Capabilities:
Delete file

Disassembly:
mov eax, 0x418c8c
call fcn.004126e4
sub esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040a5a4
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0040a43b
test al, al
je 0x40a581
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40a56c
push dword [esi]
call fcn.0040ac37
test al, al
jne 0x40a548
push dword [esi]
call fcn.00409c7b
test al, al
jne 0x40a56a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a581
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040a4c6
push dword [ebp - 0x18]
call fcn.00408c1b
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040a5a4
mov dword [ebp - 4], ebx
jmp 0x40a509
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.0040a4c6
push dword [ebp - 0x18]
call fcn.00408c1b
pop ecx
mov al, bl
jmp 0x40a594
lea ecx, [ebp - 0x1c]
call fcn.0040a4c6
push dword [ebp - 0x18]
call fcn.00408c1b
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40adf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae16
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ae16
xor al, al
jmp 0x40ae36
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004132b0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40e834
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x40e861
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422440]
xor eax, esi
inc ecx
dec edx
jne 0x40e842
pop edi
pop esi
ret 4

Function at 0x40e8d5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jb 0x40ea25
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x40e915
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x40e915
inc esi
jmp 0x40e906
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x40ea05
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x40e94a
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x40e977
cmp cl, 0xff
je 0x40e977
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x40e8f9
dec ecx
shl edx, cl
and edx, 7
je 0x40e930
movzx ecx, byte [edx + 0x41a694]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x41a68c], 0
mov cl, byte [edi + 4]
je 0x40e972
test cl, cl
je 0x40e972
cmp cl, 0xff
jne 0x40e930
mov dword [ebp - 4], eax
jmp 0x40e93f
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40e9a0
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40e9a7
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x40e9db
movzx edi, byte [edx + 0x41a694]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x40e9c6
cmp al, 0xff
jne 0x40e9d8
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x40e992
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x40e8f9
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret 0x14