joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e0615
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x764040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005d9e24
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005d9e24
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5e068c
cmp word [ecx], dx
je 0x5e068c
mov eax, dword [0x5e8a9c]
push edi
dec eax
push eax
push 0x5e8988
call fcn.005e05b4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5e06ff
cmp word [eax], dx
je 0x5e06ff
mov eax, dword [edi]
test eax, eax
je 0x5e06b0
cmp word [eax], dx
je 0x5e06b0
lea eax, [ebp - 0x10]
push eax
call fcn.005dff97
jmp 0x5e06b9
lea eax, [ebp - 0x10]
push eax
call fcn.005e0032
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5e0729
mov eax, dword [0x5e8984]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5e8678
call fcn.005e05b4
add esp, 0xc
test al, al
je 0x5e0729
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5e06f4
cmp word [eax], di
je 0x5e06f4
lea eax, [ebp - 0x10]
push eax
call fcn.005dff97
pop ecx
jmp 0x5e072b
lea eax, [ebp - 0x10]
push eax
call fcn.005e0032
jmp 0x5e06f1
mov eax, dword [edi]
test eax, eax
je 0x5e0716
cmp word [eax], dx
je 0x5e0716
lea eax, [ebp - 0x10]
push eax
call fcn.005dff4c
pop ecx
jmp 0x5e0729
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5e07f4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005e0439
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5e07f4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5e07f4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5e07f4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e0781
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005da8d9
test ebx, ebx
je 0x5e07ef
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005da8d9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5e07f4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5e07f4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005e28c2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5e07f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d0a92
leave
ret
Function at 0x5e44d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5e44fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5e44fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5e4630
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
sub esp, 0x40
lea eax, [esp]
mov ecx, 0x40
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x5e4640
mov eax, dword [esp + 0x44]
lea edx, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebx, esi
shr ebx, 2
push edi
mov edi, ebx
test edi, edi
je 0x5e4674
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
add edx, 4
sub edi, 1
jne 0x5e4665
mov edi, esi
and edi, 3
je 0x5e468e
sub edx, eax
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
sub edi, 1
jne 0x5e4680
xor edx, edx
test esi, esi
jle 0x5e46ab
mov cl, byte [esp + edx + 0x10]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x5e46a6
add cl, 0x20
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, esi
jl 0x5e4694
mov edi, dword [esp + 0x5c]
mov ebp, esi
lea edx, [esp + 0x10]
cmp esi, 4
jl 0x5e46e4
mov eax, ebx
neg eax
lea esi, [esi + eax*4]
imul ecx, dword [edx], 0x5bd1e995
add edx, 4
imul edi, edi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
sub ebx, 1
jne 0x5e46c1
xor ecx, ecx
sub esi, 1
je 0x5e4705
sub esi, 1
je 0x5e46fc
sub esi, 1
jne 0x5e470a
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul edx, ebp, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, edi, 0x5bd1e995
pop edi
pop esi
pop ebp
pop ebx
xor ecx, eax
mov eax, edx
shr eax, 0x18
xor eax, edx
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x40
ret
Function at 0x403181
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4031a1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4031b0
mov ebx, 0x418ea0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031c5
mov ecx, dword [0x42a278]
add ecx, eax
push ecx
call fcn.0040337c
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403366
test eax, eax
je 0x40331d
test byte [ebp + 0x17], 0x80
je 0x403306
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce10
mov dword [ebp - 0xc], eax
call fcn.00406834
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40335c
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403215
mov esi, dword [ebp + 0x14]
mov edi, 0x414ea0
push esi
push edi
call fcn.00403366
test eax, eax
je 0x40331d
sub dword [ebp + 0x14], esi
mov dword [0x40ce28], edi
mov dword [0x40ce2c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce10
mov dword [0x40ce30], ebx
mov dword [0x40ce34], eax
call fcn.00406854
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4032fe
mov esi, dword [0x40ce30]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2d4], 1
mov edi, eax
je 0x4032bd
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403284
cmp dword [ebp + 0x14], 0
jne 0x4032bd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405361
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4032f2
cmp dword [ebp + 0x10], 0
jne 0x4032da
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405ea1
test eax, eax
je 0x403302
add dword [ebp - 4], esi
jmp 0x4032e6
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce30]
cmp dword [ebp - 0x10], 1
jne 0x403238
jmp 0x40335c
cmp dword [ebp + 0x14], 0
jg 0x403208
jmp 0x40335c
push 0xfffffffffffffffc
jmp 0x40331f
push 0xfffffffffffffffe
jmp 0x40331f
test edi, edi
je 0x403351
cmp dword [ebp + 0x14], esi
jge 0x403312
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403366
test eax, eax
jne 0x403359
push 0xfffffffffffffffd
pop eax
jmp 0x40335f
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40332d
mov esi, dword [ebp + 0x14]
mov edi, 0x414ea0
push esi
push edi
call fcn.00403366
test eax, eax
je 0x40331d
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ea1
test eax, eax
je 0x403302
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403322
jmp 0x40335c
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405830
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405881
xor eax, eax
jmp 0x4058a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058a8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40587d
call esi
pop esi
leave
ret 4

Function at 0x4058e2
Capabilities:
Create process on windows

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

Function at 0x405925
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4059c3
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dca
mov edi, eax
cmp edi, 0xffffffff
je 0x405a04
test byte [esp + 0x10], 1
push esi
je 0x4059e6
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ec
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059f5
xor eax, eax
inc eax
jmp 0x405a06
test byte [esp + 0x10], 4
jne 0x405a04
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a0b
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cd6
test bl, 8
mov dword [ebp - 8], eax
je 0x405a4a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405bc7
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a64
test eax, eax
je 0x405b75
test bl, 2
je 0x405b75
mov esi, 0x4256f0
push edi
push esi
call fcn.004062f9
cmp dword [ebp + 8], 0
je 0x405a83
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a89
push edi
call fcn.00405c1a
cmp word [edi], 0
jne 0x405a99
cmp word [0x4256f0], 0x5c
jne 0x405aa4
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b6a
cmp word [ebp - 0x22c], 0x2e
jne 0x405aee
cmp word [ebp - 0x22a], 0
je 0x405b4d
cmp word [ebp - 0x22a], 0x2e
jne 0x405aee
cmp word [ebp - 0x228], 0
je 0x405b4d
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004062f9
test byte [ebp - 0x258], 0x10
je 0x405b19
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b4d
push dword [ebp + 0xc]
push edi
call fcn.00405a0b
jmp 0x405b4d
push dword [ebp - 4]
push edi
call fcn.004059c3
test eax, eax
jne 0x405b45
cmp dword [ebp - 4], eax
je 0x405b3d
push edi
push 0xfffffffffffffff1
call fcn.00405361
push 0
push edi
call fcn.004060bf
jmp 0x405b4d
inc dword [0x42a2a8]
jmp 0x405b4d
push edi
push 0xfffffffffffffff2
call fcn.00405361
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ac6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b75
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bc7
cmp dword [ebp - 8], esi
jne 0x405b89
inc dword [0x42a2a8]
jmp 0x405bc7
push edi
call fcn.0040663c
test eax, eax
je 0x405bc7
push edi
call fcn.00405bce
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059c3
test eax, eax
jne 0x405bbf
cmp dword [ebp - 4], esi
je 0x405b81
push edi
push 0xfffffffffffffff1
call fcn.00405361
push esi
push edi
call fcn.004060bf
jmp 0x405bc7
push edi
push 0xffffffffffffffe5
call fcn.00405361
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cd6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425ef0
push esi
call fcn.004062f9
push esi
call fcn.00405c79
mov edi, eax
test edi, edi
jne 0x405cf7
xor eax, eax
jmp 0x405d4f
push edi
call fcn.0040658d
test byte [0x42a21c], 0x80
je 0x405d14
mov ax, word [edi]
test ax, ax
je 0x405cf3
cmp ax, 0x5c
je 0x405cf3
sub edi, esi
sar edi, 1
jmp 0x405d2e
call fcn.0040663c
test eax, eax
je 0x405d28
test byte [eax], 0x10
je 0x405cf3
push esi
call fcn.00405c1a
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d1a
call fcn.00405bce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de9
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405def
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
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_CreateFileW]
ret 0xc

Function at 0x405e1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e6e
test edi, edi
jne 0x405e2b
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e68
Function at 0x405f45
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426d88], 0x55004e
mov dword [0x426d8c], 0x4c
mov edi, 0x400
mov ebp, 0x426d88
je 0x405f9b
push 1
push 0
push esi
call fcn.00405def
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4060ba
cmp eax, edi
jg 0x4060ba
mov esi, 0x427588
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4060ba
cmp eax, edi
jg 0x4060ba
push esi
push ebp
push str._ls_ls_r_n
push 0x426988
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a214]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040631b
push 4
push 0xc0000000
push esi
call fcn.00405def
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ba
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 0x4060b3
push edi
push esi
push ebp
call fcn.00405e72
test eax, eax
je 0x4060b3
push str._Rename__r_n
push esi
call fcn.00405d54
test eax, eax
jne 0x406051
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406086
add eax, 0xa
push 0x40a560
push eax
call fcn.00405d54
mov ebp, eax
test ebp, ebp
je 0x406082
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406073
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40606d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406088
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x426988
push eax
call fcn.00405daa
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ea1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060bf
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4060e2
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f45
pop ecx
pop ecx
inc dword [0x42a2b0]
ret 8
Function at 0x4061c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406166
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406237
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406237
cmp dword [ebp + 0xc], 1
je 0x40623b
cmp dword [ebp + 0xc], 2
je 0x40623b
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406663
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406687
xor eax, eax
test eax, eax
je 0x40669a
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40669a
xor ecx, ecx
jmp 0x40669d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067c6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x4067fd
xor ecx, ecx
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 0x4067d7
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4067d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40682e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406810
pop edi
not eax
pop esi
ret 0xc
Function at 0x40a54e
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40a56c
mov eax, 0x5e0ec4
push eax
push 1
mov ebx, 0x50be40
call fcn.0050b890
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a596
mov eax, 0
jmp 0x40a60a
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x40a5f7
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40a5e0
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40a5cf
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40a5c0
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4

Function at 0x412e44
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x412e66
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
mov dword [ebp - 4], 0
push eax
push ecx
push edx
push ebx
push esi
push edi
nop
nop
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
mov esi, ecx
nop
pop edx
pop ecx
pop ebx
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x64]
add esi, eax
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, al
add esi, ebx
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, cl
add esi, ebx
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, dl
add esi, ebx
nop
imul esi, esi, 0x666
mov dword [ebp - 4], esi
nop
pop edi
pop esi
pop ebx
pop edx
pop ecx
pop eax
mov eax, dword [ebp - 4]
jmp 0x412f8c
mov esp, ebp
pop ebp
ret