joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [edi]
cmp eax, dword [esi + 8]
jne case.0x40dbcf.154
mov eax, dword [edi + 8]
add eax, 0x9b
cmp eax, 0x99
ja case.0x40dbcf.154
movzx eax, byte [eax + 0x40dcb0]
jmp dword [eax*4 + 0x40dc98]
call fcn.0040f0a0
pop edi
xor al, al
pop esi
pop ebp
ret 8
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x4c]
jne 0x40dc02
cmp byte [esi + 0x50], 0
sete al
mov byte [esi + 0x50], al
call fcn.0040eaf0
pop edi
xor al, al
pop esi
pop ebp
ret 8
test eax, eax
mov dword [esi + 0x4c], eax
sete al
mov byte [esi + 0x50], al
call fcn.0040eaf0
pop edi
xor al, al
pop esi
pop ebp
ret 8
push ebx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, word [edi + 0xc]
shr eax, 0xf
mov edx, ecx
and al, 1
cmp edx, 8
je 0x40dc57
cmp edx, 0x52
je 0x40dc46
cmp ecx, 0x76
jne 0x40dc53
mov ecx, esi
call fcn.0040ed90
jmp 0x40dc5e
test al, al
je 0x40dc53
mov ecx, esi
call fcn.0040eaf0
jmp 0x40dc5e
xor bl, bl
jmp 0x40dc60
mov ecx, esi
call fcn.0040ebf0
mov bl, 1
push 0
push 0
push 0x8001
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret 8
push 0
push 0
push 0x8001
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x410070
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444650
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x454100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
setne cl
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], cl
mov byte [esi + 0x19], cl
lea ecx, [esi + 0x30]
push eax
call fcn.0041f260
mov eax, dword [ebp + 0x14]
lea edi, [esi + 0x94]
cmp eax, 3
ja case.default.0x4100c5
jmp dword [eax*4 + 0x41014c]
lea edi, [esi + 0x64]
jmp case.default.0x4100c5
lea edi, [esi + 0x70]
jmp case.default.0x4100c5
lea edi, [esi + 0x7c]
jmp case.default.0x4100c5
lea edi, [esi + 0x88]
mov ebx, dword [esi + 0x48]
add ebx, 0x168
lea esi, [ebx + 0x98]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea ecx, [ebx + 0x44]
call fcn.0041f160
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x410112
push ecx
lea ecx, [ebx + 0x50]
call fcn.0041f260
jmp 0x410121
mov eax, dword [ebx + 0x50]
xor ecx, ecx
mov dword [ebx + 0x54], 0
mov word [eax], cx
mov al, byte [ebp - 0xd]
push esi
mov byte [ebx + 3], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.00412040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x414f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, dword [esi + 0xb4]
jne 0x414fcc
cmp dword [ecx + 8], 0xffffff65
jne 0x414fcc
movzx eax, word [ecx + 0xc]
sub eax, 0x2d
je 0x415026
sub eax, 0x14
je 0x414fdf
sub eax, 2
je 0x415026
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x414fcc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 2
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
mov dword [ebp - 0x20], 2
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x414fcc
mov ecx, esi
call fcn.00415050
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00440370
mov esp, ebp
pop ebp
ret 8
Function at 0x41a610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x45b2cc]
cmp eax, dword [ecx + 0x18]
jle 0x41a66f
push 0x45b2cc
call fcn.004402ff
add esp, 4
cmp dword [0x45b2cc], 0xffffffff
jne 0x41a66f
push 0x4563
push 0
push 0xa
call fcn.00419f30
test eax, eax
push 0x45b2cc
setne byte [0x45b2a0]
call fcn.004402ae
add esp, 4
cmp byte [0x45b2a0], 0
jne 0x41a688
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x20119
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a6ed
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push ebx
push str.AppsUseLightTheme
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a6e4
cmp dword [ebp - 8], 4
jne 0x41a6e4
cmp dword [ebp - 0xc], ebx
sete bl
push dword [ebp - 0x14]
call dword [0x448288]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00440370
mov esp, ebp
pop ebp
ret

Function at 0x41b32b
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
lock cmpxchg dword [ebx], esi
test eax, eax
je 0x41b359
cmp eax, 0xffffffff
jne 0x41b34c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
xor ebp, ebp
test byte [esp + 0x228], 1
mov dword [esp + 0x10], ebp
je 0x41b375
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x41b418
call fcn.0041b200
mov esi, eax
test esi, esi
je 0x41b34a
test byte [esp + 0x228], 2
je 0x41b391
push 2
jmp 0x41b414
test byte [esp + 0x228], 4
je 0x41b39e
push ebp
jmp 0x41b414
call fcn.0041b140
test eax, eax
jne 0x41b40f
call fcn.0041b1e0
mov ebp, eax
test ebp, ebp
je 0x41b34a
push 0x208
lea eax, [esp + 0x20]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41b409
cmp eax, 0x104
jae 0x41b409
mov ecx, edi
call fcn.0041b053
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
push 0
lea eax, [esp + 0x28]
push eax
call ebp
mov eax, dword [esp + 0x10]
jmp 0x41b41c
push 0
push 0
jmp 0x41b415
push 0x800
push ebp
push edi
call esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41b42a
or eax, 0xffffffff
xchg dword [ebx], eax
jmp 0x41b34a
xchg dword [ebx], eax
test eax, eax
je 0x41b43a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
jmp 0x41b34c
Function at 0x41d420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi - 0x10000]
movzx eax, si
test eax, eax
je 0x41d445
sub esi, eax
mov ebx, dword [ebp + 0xc]
cmp esi, ebx
jbe 0x41d4e9
cmp esi, dword [0x454080]
jb 0x41d468
cmp esi, dword [0x454084]
ja 0x41d468
sub esi, 0x8000000
jmp 0x41d4e1
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x41d4e9
cmp dword [ebp - 0x10], 0x10000
jne 0x41d4cf
cmp dword [ebp - 0x14], 0x10000
jb 0x41d4cf
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x41d59f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x41d4e9
sub esi, 0x10000
jmp 0x41d4e1
mov esi, dword [ebp - 0x1c]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x41d4e1
sub esi, eax
cmp esi, ebx
ja 0x41d450
movzx eax, di
test eax, eax
je 0x41d4f8
sub edi, eax
add edi, 0x10000
mov esi, dword [ebp + 0x10]
cmp edi, esi
jae 0x41d59d
cmp edi, dword [0x454080]
jb 0x41d51b
cmp edi, dword [0x454084]
ja 0x41d51b
add edi, 0x8000000
jmp 0x41d595
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x41d59d
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x41d580
cmp ecx, 0x10000
jb 0x41d580
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x41d59f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x41d59d
add edi, 0x10000
jmp 0x41d595
mov edi, dword [ebp - 0x20]
add edi, ecx
movzx ecx, di
test ecx, ecx
je 0x41d595
mov eax, 0x10000
sub eax, ecx
add edi, eax
cmp edi, esi
jb 0x41d503
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440370
mov esp, ebp
pop ebp
ret
Function at 0x41d890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x450d50
push fcn.00441370
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x454100]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x41d935
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x41d935
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x41d935
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x41d935
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x41d93e
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
Function at 0x41ded0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4551d0], 0
jne 0x41df6b
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x4551d0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41df6b
push esi
mov esi, dword [0x4551c0]
mov dword [0x4551e0], eax
mov dword [0x4551dc], eax
mov dword [0x4551d8], eax
test esi, esi
je 0x41df3c
lea ecx, [ecx]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x41df52
mov esi, dword [esi + 4]
test esi, esi
jne 0x41df20
xor eax, eax
mov dword [0x4551d4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x4551d4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
Function at 0x41e410
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4551d4]
test eax, eax
jne 0x41e48f
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x41e430
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.00440383
mov esi, eax
add esp, 4
test esi, esi
jne 0x41e446
lea edi, [eax + 8]
jmp 0x41e463
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x41e47b
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.004403b3
add esp, 8
pop esi
mov dword [0x4551d4], edi
mov eax, edi
mov dword [0x4551d8], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x4551dc]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x4551dc], esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x420c10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44578d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.004228c0
add esp, 4
cmp eax, 0xffffffff
je 0x420c57
test al, 0x10
je 0x420c57
mov al, 1
jmp 0x420e18
push esi
call fcn.00420900
add esp, 4
test al, al
je 0x420c6b
xor al, al
jmp 0x420e18
push esi
call fcn.00420580
add esp, 4
lea ecx, [ebp - 0x1c]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x1c], eax
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0041f0d0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0041fd90
test eax, eax
js 0x420cc2
mov edx, dword [ebp - 0x18]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x420cc2
cmp edx, 1
jne 0x420cb6
mov bl, dl
jmp 0x420e0b
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041efc0
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x420db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x420d4b
lea ecx, [ebp - 0x60]
call fcn.00421df0
lea ecx, [ebp - 0x38]
call fcn.0041f130
push 0
push edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00422220
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
test al, al
jne 0x420d35
call fcn.0044037e
add esp, 4
jmp 0x420d4b
mov ebx, dword [ebp - 0x40]
shr ebx, 4
call fcn.0044037e
add esp, 4
and bl, 1
jne 0x420db3
mov ebx, dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x420e34
lea ecx, [ebp - 0x1c]
call fcn.0041fd90
mov esi, eax
test esi, esi
js 0x420e34
je 0x420e34
mov edi, dword [ebp - 0x1c]
cmp esi, 1
jne 0x420d91
movzx eax, word [edi]
cmp eax, 0x5c
je 0x420e34
cmp eax, 0x2f
je 0x420e34
lea eax, [esi + 1]
cmp ebx, eax
jae 0x420e34
cmp esi, dword [ebp - 0x18]
jae 0x420ce3
xor eax, eax
mov dword [ebp - 0x18], esi
mov word [edi + esi*2], ax
jmp 0x420ce0
cmp esi, dword [ebp - 0x24]
jge 0x420dfe
jmp 0x420dc0
mov eax, dword [ebp - 0x28]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.00420210
add esp, 4
test eax, eax
jns 0x420ddb
mov esi, dword [ebp - 0x24]
jmp 0x420dde
inc esi
add esi, eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
call fcn.0041fdc0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x420e34
cmp esi, dword [ebp - 0x24]
jl 0x420dc0
mov bl, 1
push dword [ebp - 0x28]
call fcn.0044037e
add esp, 4
push dword [ebp - 0x1c]
call fcn.0044037e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x420e00
Function at 0x420e60
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004228c0
add esp, 4
cmp eax, 0xffffffff
je 0x420e91
test al, 0x10
jne 0x420e91
test al, 1
je 0x420e91
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x420e91
xor al, al
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
pop ebp
ret

Function at 0x420ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4457d0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x420fc9
xor eax, eax
cmp esi, 0x114
jae 0x420f26
mov word [ebp - 0x14], ax
mov ecx, edi
lea eax, [ebp - 0x23c]
push eax
call fcn.0041f260
mov al, 1
jmp 0x420fcb
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
call fcn.0041f130
mov dword [ebp - 4], 0
cmp esi, dword [ebp - 0x240]
jbe 0x420f5e
push esi
lea ecx, [ebp - 0x248]
call fcn.0041fa60
push dword [ebp - 0x248]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x420fbb
mov ecx, dword [ebp - 0x248]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x420f8a
inc eax
cmp word [ecx + eax*2], 0
jne 0x420f82
mov dword [ebp - 0x244], eax
cmp eax, edx
jne 0x420fbb
lea eax, [esi - 1]
cmp eax, edx
jne 0x420fbb
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0041f160
push dword [ebp - 0x248]
call fcn.0044037e
add esp, 4
mov al, 1
jmp 0x420fcb
push dword [ebp - 0x248]
call fcn.0044037e
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret

Function at 0x4211b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4211d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, 0xf0000000
je 0x4211e2
and eax, 0x3fff
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret
Function at 0x4228c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4228d3
or eax, eax
pop ebp
ret
Function at 0x422e30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
push eax
push dword [ecx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x422e7d
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00440370
mov esp, ebp
pop ebp
ret 4

Function at 0x423040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp eax, 0x400000
jbe 0x423067
mov eax, 0x400000
push 0
lea edi, [ebp - 8]
mov dword [ebp - 8], 0
push edi
push eax
push edx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
test eax, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.00440370
mov esp, ebp
pop ebp
ret 0xc

Function at 0x423290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebx], 0
mov eax, esi
cmp esi, 0x400000
jbe 0x4232c4
mov eax, 0x400000
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add dword [ebx], ecx
test eax, eax
je 0x423306
test ecx, ecx
je 0x4232f1
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp - 0xc]
jne 0x4232b5
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440370
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423ad0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x423b3b
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x423b3b
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
lea ebx, [esi + 0x10]
lea ebx, [ebx]
mov eax, ecx
shr ecx, 1
mov edx, ecx
and eax, 1
and edx, 1
shr ecx, 1
add esi, eax
add edi, edx
sub ebx, 1
jne 0x423b10
lea eax, [edi + esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret

Function at 0x4249d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edx
push 0
push eax
push ecx
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x424a15
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424a24
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
Function at 0x429a30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x44], edx
mov dword [edi + 0xc], eax
cmp eax, 0xc
jb 0x429a8f
mov eax, 0xc
not eax
mov dword [edi + 0x14], 0
lea ecx, [esi - 0xc]
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
lea eax, [edx + 0x600]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
lea eax, [edx + 2]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [ecx], 0x1010100
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0
xor ecx, ecx
lea ebx, [ebx]
mov byte [eax - 2], cl
lea eax, [eax + 6]
xor edx, edx
mov byte [eax - 7], 1
inc ecx
mov dword [eax - 6], edx
cmp ecx, 0x100
jb 0x429ad0
xor ebx, ebx
lea eax, [edi + 0x9fc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov esi, eax
xor edi, edi
lea eax, [ebx + 2]
mov dword [ebp - 0xc], eax
mov ebx, eax
movzx eax, word [edi + 0x448fc0]
xor edx, edx
div ebx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
lea esp, [esp]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x429b20
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x429b02
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
cmp ebx, 0x80
jb 0x429af6
mov ebx, dword [ebp + 8]
mov esi, 0x50
lea edi, [ebx + 0x3bc]
lea ecx, [ecx]
mov eax, edi
movzx edx, si
mov ecx, 0x10
lea ebx, [ebx]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x429b70
add esi, 0x28
add edi, 0x40
cmp esi, 0x438
jb 0x429b60
pop edi
pop esi
mov dword [ebx + 0x3b8], 0x40070000
pop ebx
mov esp, ebp
pop ebp
ret