joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53fe80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x53feab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x53fecf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x53feea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x5408f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7031bc]
jne 0x540906
test ecx, 0xffff0000
jne 0x540906
ret
jmp fcn.0054090b
Function at 0x544a11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00559b5f
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [0x70325c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x544a42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00544a55
pop edi
pop esi
pop ebx
ret 8

Function at 0x54809b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5480dd
call fcn.00559b5f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [0x70325c]
cmp eax, edi
je 0x5480dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5480d4
xor eax, eax
jmp 0x5480e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005480eb
pop edi
pop esi
pop ebx
ret 4

Function at 0x55bb0a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x55bb38
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55bb56
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0055ba70
jmp 0x55bb56
mov eax, dword [esi + 0x14]
test eax, eax
je 0x55bb56
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0055ba70
test edi, edi
mov eax, edi
jne 0x55bb40
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x55be18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x55becb
mov ecx, 0x7b1aac
call fcn.0055bbf7
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x55bea9
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x55be84
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [0x70325c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x55be84
push ebx
push edi
push eax
call fcn.00548f6a
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [0x703328]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.005443e7
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x55db32
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x55db5a
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x55db6b
push 2
call edi
test ax, ax
jge 0x55db6b
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00545b73
cmp dword [esi + 0x30], ebx
jne 0x55dc45
mov edi, dword [0x7033fc]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00545b73
cmp eax, dword [esp + 0x34]
jne 0x55dc45
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x55dbe1
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x55dc26
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x55dc45
cmp eax, 0x205
je 0x55dc45
cmp eax, 0x201
je 0x55dc45
cmp eax, 0x204
je 0x55dc45
cmp eax, ebx
jne 0x55dc0c
cmp dword [esp + 0x1c], 0x1b
je 0x55dc45
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x7b1540]
jbe 0x55dc3b
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x55db9e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423c90]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405629
cmp eax, ebx
je 0x401524
push ebx
push dword [0x423c90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423c90], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x402d1c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x402d39
mov dword [ebp - 8], TrackPopupMenu
and dword [ebp - 4], 0
test edi, edi
mov ebx, edi
jne 0x402d48
mov ebx, 0x40ece8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402d5d
mov ecx, dword [0x423bf8]
add ecx, eax
push ecx
call fcn.00402d05
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402cd3
test eax, eax
jne 0x402d74
push 0xfffffffffffffffd
pop eax
jmp 0x402ecd
test dword [ebp + 0x14], 0x80000000
je 0x402eac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x41ecf0
mov dword [ebp - 0xc], eax
call fcn.00405de3
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x402eca
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402db4
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40ace8
push edi
call fcn.00402cd3
test eax, eax
je 0x402d6c
sub dword [ebp + 0x14], esi
mov dword [0x41ed08], edi
mov dword [0x41ed0c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x41ecf0
mov dword [0x41ed10], ebx
mov dword [0x41ed14], eax
call fcn.00405e03
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402e9e
mov esi, dword [0x41ed10]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423c94], 1
mov edi, eax
je 0x402e52
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402e1f
cmp dword [ebp + 0x14], 0
jne 0x402e52
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004045ff
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402e93
cmp dword [ebp + 0x10], eax
jne 0x402e7b
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ea5
cmp dword [ebp - 0x10], esi
jne 0x402ea5
add dword [ebp - 4], esi
jmp 0x402e87
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x41ed10]
cmp dword [ebp - 0x14], 1
jne 0x402dd3
jmp 0x402eca
cmp dword [ebp + 0x14], eax
jg 0x402da7
jmp 0x402eca
push 0xfffffffffffffffc
jmp 0x402d6e
push 0xfffffffffffffffe
jmp 0x402d6e
test edi, edi
je 0x402f13
cmp dword [ebp + 0x14], esi
jge 0x402eb8
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402cd3
test eax, eax
je 0x402d6c
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402edf
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40ace8
push edi
call fcn.00402cd3
test eax, eax
je 0x402d6c
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ea5
cmp esi, dword [ebp + 0x10]
jne 0x402ea5
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ed4
jmp 0x402eca
Function at 0x40521f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4211b8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4211b8], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40525a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405396
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4053b3
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4053b6
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4053e5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405429
test edi, edi
jne 0x4053f0
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405423

Function at 0x40542d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40549e
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40548d
cmp dword [ebp + 0x14], 1
je 0x40548f
cmp dword [ebp + 0x14], 2
je 0x40548f
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4056e7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421200
push esi
call fcn.00405546
push esi
call fcn.00405325
mov edi, eax
test edi, edi
jne 0x405708
xor eax, eax
jmp 0x405760
push edi
call fcn.00405568
test byte [0x423c08], 0x80
je 0x405721
mov al, byte [edi]
test al, al
je 0x405704
cmp al, 0x5c
je 0x405704
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405741
push esi
call fcn.00405602
test eax, eax
je 0x40573b
test byte [eax], 0x10
je 0x405765
push esi
call fcn.004056c0
push esi
call ebx
cmp eax, edi
jg 0x40572c
push esi
call fcn.00405693
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40575f
Function at 0x405a10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405629
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a34
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405b6d
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421600], 0x4c554e
mov edi, 0x400
mov ebp, 0x421600
je 0x405a78
push 1
push 0
push esi
call fcn.004053b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405b73
cmp eax, edi
jg 0x405b73
push edi
mov esi, 0x421f40
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405b73
cmp eax, edi
jg 0x405b73
push esi
push ebp
push str._s_s_r_n
push 0x421a00
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bac]
push dword [eax + 0x128]
push esi
call fcn.004057bf
push 4
push 0xc0000000
push esi
call fcn.004053b6
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405b6d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405b66
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405b66
cmp edi, dword [esp + 0x18]
jne 0x405b66
push str._Rename__r_n
push esi
call fcn.00405769
test eax, eax
jne 0x405b7a
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405546
add edi, 0xa
mov eax, edi
push ebx
push 0x421a00
add eax, esi
push eax
call fcn.00405372
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c70]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40760c
add eax, 0xa
push eax
call fcn.00405769
test eax, eax
je 0x405b31
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405ba1
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405b96
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b33
Function at 0x405ba9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004056e7
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x405bde
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c68], eax
jmp 0x405d70
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405bf9
test eax, eax
je 0x405d1b
test cl, 2
je 0x405d1b
push edi
push ebx
mov esi, 0x422340
push esi
call fcn.00405546
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405c1c
push str..
push esi
call edi
jmp 0x405c22
push ebx
call fcn.004056c0
cmp byte [ebx], 0
jne 0x405c30
cmp byte [0x422340], 0x5c
jne 0x405c38
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405d10
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.004052e4
cmp byte [eax], 0
je 0x405c7b
cmp byte [ebp - 0x18], 0
je 0x405c7b
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405c91
mov al, byte [esi + 1]
test al, al
je 0x405cef
cmp al, 0x2e
jne 0x405c91
cmp byte [esi + 2], 0
je 0x405cef
push esi
push edi
call fcn.00405546
test byte [ebp - 0x148], 0x10
je 0x405cb6
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cef
push dword [ebp + 0xc]
push ebx
call fcn.00405ba9
jmp 0x405cef
push ebx
call fcn.00405396
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405ce7
test byte [ebp + 0xc], 4
je 0x405cdf
push ebx
push 0xfffffffffffffff1
call fcn.004045ff
push 0
push ebx
call fcn.00405a10
jmp 0x405cef
inc dword [0x423c68]
jmp 0x405cef
push ebx
push 0xfffffffffffffff2
call fcn.004045ff
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c5d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d1a
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d6f
cmp dword [ebp - 8], esi
je 0x405d5f
push ebx
call fcn.00405602
test eax, eax
je 0x405d6f
push ebx
call fcn.00405693
push ebx
call fcn.00405396
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405d67
test byte [ebp + 0xc], 4
je 0x405d5f
push ebx
push 0xfffffffffffffff1
call fcn.004045ff
push esi
push ebx
call fcn.00405a10
jmp 0x405d6f
inc dword [0x423c68]
jmp 0x405d6f
push ebx
push 0xffffffffffffffe5
call fcn.004045ff
pop esi
pop ebx
leave
ret 8
Function at 0x405d75
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x422744], 0
jne 0x405db0
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d89
mov dword [ecx*4 + 0x422740], eax
inc ecx
cmp ecx, 0x100
jl 0x405d84
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405ddd
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422740]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405dbe
not eax
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00413990
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4010fa
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x4010ac
cmp dword [ebp - 8], 0
jne 0x4010ac
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4010ac
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4010bf
cmp dword [ebp - 8], 2
jne 0x4010bf
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x4010d8
cmp dword [ebp - 8], 2
jae 0x4010d1
cmp dword [ebp - 8], 1
jne 0x4010d8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x4010fa
cmp dword [ebp - 8], 0
jne 0x4010ed
mov dword [ebp - 4], 4
jmp 0x4010fa
cmp dword [ebp - 8], 1
jne 0x4010fa
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004100e5
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00413990
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40231f
cmp dword [ebp + 0xc], 0
jne 0x402329
jmp 0x4023fa
cmp dword [ebp + 0x10], 0
je 0x40237e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x402347
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402382
jmp 0x4023fa
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004100f4
add esp, 0xc
push 0x425f5c
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0041064b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4023ce
jmp 0x4023fa
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041093e
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.004109d2
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004100e5
mov esp, ebp
pop ebp
ret