joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x6846a201
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
sub eax, 0xca69a452
je 0x4124fb
jmp 0x4122fa
mov eax, dword [ebp - 0x20]
sub eax, 0xe25a6726
je 0x4124f5
jmp 0x41230d
mov eax, dword [ebp - 0x20]
sub eax, 0xec8652cb
je 0x4124a4
jmp 0x412320
mov eax, dword [ebp - 0x20]
sub eax, 0x1f0e2ac1
je 0x4124dd
jmp 0x412333
mov eax, dword [ebp - 0x20]
sub eax, 0x1f89ee36
je 0x412403
jmp 0x412346
mov eax, dword [ebp - 0x20]
sub eax, 0x349cec8d
je 0x4124e9
jmp 0x412359
mov eax, dword [ebp - 0x20]
sub eax, 0x3a486f5d
je 0x412492
jmp 0x41236c
mov eax, dword [ebp - 0x20]
sub eax, 0x514da72d
je 0x41245d
jmp 0x41237f
mov eax, dword [ebp - 0x20]
sub eax, 0x5ded71fb
je 0x412469
jmp 0x412392
mov eax, dword [ebp - 0x20]
sub eax, 0x6846a201
je 0x4123bd
jmp 0x4123a5
mov eax, dword [ebp - 0x20]
sub eax, 0x78ab50ed
je 0x4124c2
jmp 0x4123b8
jmp 0x412508
mov eax, dword [0x43c594]
mov ecx, dword [0x43c590]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xca69a452
mov ecx, 0x1f89ee36
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x412508
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [0x43c594]
mov ecx, dword [0x43c590]
mov edx, eax
sub edx, 0x8011b0c0
sub edx, 1
add edx, 0x8011b0c0
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xca69a452
mov ecx, 0x514da72d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x412508
mov dword [ebp - 0x18], 0x5ded71fb
jmp 0x412508
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov edx, eax
mov eax, 0xe25a6726
mov ecx, 0x3a486f5d
cmp edx, 0xffffffff
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x412508
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0xec8652cb
jmp 0x412508
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x78ab50ed
jmp 0x412508
mov edx, dword [ebp - 8]
mov eax, 0x1f0e2ac1
mov ecx, 0x349cec8d
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x412508
mov dword [ebp - 0x18], 0xe25a6726
jmp 0x412508
mov dword [ebp - 0x18], 0xe25a6726
jmp 0x412508
add esp, 0x20
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x1f89ee36
jmp 0x4122e4
Function at 0x42458b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4245ca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4245ca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4245ca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4245ca
cmp dword [ecx + 0x74], 0xe
jbe 0x4245ca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42bd3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42bdd8
push ebx
push esi
call fcn.0042bd04
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042bc98
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42bd85
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42bdd7
push edi
push eax
call fcn.0042a7d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42bda5
call fcn.0042a81e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42bdd6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042bc98
add esp, 0x20
test eax, eax
jne 0x42bdc4
push edi
call fcn.0042a81e
jmp 0x42bdcc
push ebx
call fcn.0042a81e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42cfe7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436040
push 0x436038
push str.FlsAlloc
push 0x1f
call fcn.0042cea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d01b
push dword [ebp + 8]
mov ecx, esi
call dword [0x433140]
call esi
jmp 0x42d021
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d065
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436050
push 0x436048
push str.FlsGetValue
push 0x21
call fcn.0042cea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d09c
push dword [ebp + 8]
mov ecx, esi
call dword [0x433140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d0a4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436058
push 0x436050
push str.FlsSetValue
push 0x22
call fcn.0042cea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d0de
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x433140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4323b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4323dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4323dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4031d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403201
mov ecx, dword [0x4702b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42a6d4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004032de
cmp eax, esi
jl 0x4032d8
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405f61
test eax, eax
je 0x4032c8
push dword [ebp + 8]
add dword [0x42a6d4], 4
call fcn.004032de
mov ebx, eax
cmp ebx, esi
jl 0x4032d6
cmp dword [ebp + 0x10], esi
jne 0x4032a4
cmp dword [ebp + 8], esi
jle 0x4032d6
mov esi, 0x4266d0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403266
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405f61
test eax, eax
je 0x4032c8
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405f90
test eax, eax
je 0x4032a0
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42a6d4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403255
jmp 0x4032d6
push 0xfffffffffffffffe
jmp 0x4032ca
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032af
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032cd
push 0xfffffffffffffffd
pop eax
jmp 0x4032d8
mov ebx, dword [ebp - 4]
add dword [0x42a6d4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x40591f
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 0x405970
xor eax, eax
jmp 0x405997
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405997
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40596c
call esi
pop esi
leave
ret 4

Function at 0x4059d1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45e730], 0x44
push eax
xor eax, eax
push 0x45e730
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 0x405a10
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a14
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 0x405ab2
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405eb9
mov edi, eax
cmp edi, 0xffffffff
je 0x405af3
test byte [esp + 0x10], 1
push esi
je 0x405ad5
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405adb
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405ae4
xor eax, eax
inc eax
jmp 0x405af5
test byte [esp + 0x10], 4
jne 0x405af3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405afa
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.00405dc5
test bl, 8
mov dword [ebp - 8], eax
je 0x405b39
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4702e8], eax
jmp 0x405cb6
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b53
test eax, eax
je 0x405c64
test bl, 2
je 0x405c64
mov esi, 0x456730
push edi
push esi
call fcn.004063e8
cmp dword [ebp + 8], 0
je 0x405b72
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405b78
push edi
call fcn.00405d09
cmp word [edi], 0
jne 0x405b88
cmp word [0x456730], 0x5c
jne 0x405b93
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 0x405c59
cmp word [ebp - 0x22c], 0x2e
jne 0x405bdd
cmp word [ebp - 0x22a], 0
je 0x405c3c
cmp word [ebp - 0x22a], 0x2e
jne 0x405bdd
cmp word [ebp - 0x228], 0
je 0x405c3c
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063e8
test byte [ebp - 0x258], 0x10
je 0x405c08
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c3c
push dword [ebp + 0xc]
push edi
call fcn.00405afa
jmp 0x405c3c
push dword [ebp - 4]
push edi
call fcn.00405ab2
test eax, eax
jne 0x405c34
cmp dword [ebp - 4], eax
je 0x405c2c
push edi
push 0xfffffffffffffff1
call fcn.00405450
push 0
push edi
call fcn.004061ae
jmp 0x405c3c
inc dword [0x4702e8]
jmp 0x405c3c
push edi
push 0xfffffffffffffff2
call fcn.00405450
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bb5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c64
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cb6
cmp dword [ebp - 8], esi
jne 0x405c78
inc dword [0x4702e8]
jmp 0x405cb6
push edi
call fcn.0040672b
test eax, eax
je 0x405cb6
push edi
call fcn.00405cbd
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405ab2
test eax, eax
jne 0x405cae
cmp dword [ebp - 4], esi
je 0x405c70
push edi
push 0xfffffffffffffff1
call fcn.00405450
push esi
push edi
call fcn.004061ae
jmp 0x405cb6
push edi
push 0xffffffffffffffe5
call fcn.00405450
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405dc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a730
push esi
call fcn.004063e8
push esi
call fcn.00405d68
mov edi, eax
test edi, edi
jne 0x405de6
xor eax, eax
jmp 0x405e3e
push edi
call fcn.0040667c
test byte [0x47025c], 0x80
je 0x405e03
mov ax, word [edi]
test ax, ax
je 0x405de2
cmp ax, 0x5c
je 0x405de2
sub edi, esi
sar edi, 1
jmp 0x405e1d
call fcn.0040672b
test eax, eax
je 0x405e17
test byte [eax], 0x10
je 0x405de2
push esi
call fcn.00405d09
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e09
call fcn.00405cbd
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 0x405eb9
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 0x405ed8
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 0x405ede
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 0x405f0d
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 [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
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 0x405f5d
test edi, edi
jne 0x405f1a
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f57
Function at 0x406034
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 [0x45edc8], 0x55004e
mov dword [0x45edcc], 0x4c
mov edi, 0x400
mov ebp, 0x45edc8
je 0x40608a
push 1
push 0
push esi
call fcn.00405ede
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061a9
cmp eax, edi
jg 0x4061a9
mov esi, 0x45f5c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061a9
cmp eax, edi
jg 0x4061a9
push esi
push ebp
push str._ls_ls_r_n
push 0x45e9c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x470254]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040640a
push 4
push 0xc0000000
push esi
call fcn.00405ede
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061a9
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 0x4061a2
push edi
push esi
push ebp
call fcn.00405f61
test eax, eax
je 0x4061a2
push str._Rename__r_n
push esi
call fcn.00405e43
test eax, eax
jne 0x406140
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406175
add eax, 0xa
push 0x40a590
push eax
call fcn.00405e43
mov ebp, eax
test ebp, ebp
je 0x406171
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406162
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40615c
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406177
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45e9c8
push eax
call fcn.00405e99
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.00405f90
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 0x4061ae
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 0x4061d1
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406034
pop ecx
pop ecx
inc dword [0x4702f0]
ret 8
Function at 0x4062b6
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], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406255
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406326
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 + 0x3ffe], 0
test edi, edi
pop edi
jne 0x406326
cmp dword [ebp + 0xc], 1
je 0x40632a
cmp dword [ebp + 0xc], 2
je 0x40632a
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406752
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 0x406776
xor eax, eax
test eax, eax
je 0x406789
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406789
xor ecx, ecx
jmp 0x40678c
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 0x4068b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x4068ec
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 0x4068c6
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40691d
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 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068ff
pop edi
not eax
pop esi
ret 0xc
Function at 0x8442fc
Capabilities:
Execute anti-debugging instructions

Disassembly:
cld
mov dh, byte [esp + 0x14]
pop word [esp + 0x26]
xchg byte [esp + 0x1a], ah
cmc
jmp 0x844052
pop word [esp + 0x21]
setl ah
sub esp, 7
not ah
rdtsc
neg ax
jmp 0x843ff3
mov dh, 7
rcl al, cl
btc ebp, ecx
mov byte [esp + 0xa], cl
setle dl
std
jmp 0x844009
mov dh, byte [esp + 0x16]
mov dh, ah
mov word [esp + 0x1c], bx
inc edx
add esp, 1
jmp 0x84409d
lea esp, [esp + 0xf]
rdtsc
pop edx
lea ebp, [esi*4]
bsf bp, di
xchg byte [esp + 0x13], dl
jmp 0x84403c
std
push word [esp + 0x26]
clc
mov dx, 0x9bcf
xchg bp, dx
mov ah, 0xce
jmp 0x84402b
lea edx, [edx + ebx]
setp al
push word [esp + 0x2f]
bswap ebp
jmp 0x844284
xchg dword [esp + 0x18], ebp
mov bp, word [esp + 0x15]
pushal
mov byte [esp + 0x11], ch
pop bp
mov eax, 0xd06a7189
jmp 0x844087
mov eax, dword [esp + 0x11]
bsr edx, edx
add esp, 0x11
bsr edx, ebx
mov ax, dx
rdtsc
call fcn.0084410b
dec dl
mov ax, word [esp]
stc
neg bp
call fcn.008442da
mov cl, 0x24
mov edx, 0xd1852cdd
mov dx, ax
mov eax, dword [esp]
pop bp
neg bp
setns dl
sete dl
jmp 0x84429b
push eax
lea edx, [edx + esi]
push si
jmp 0x844075

Function at 0x844586
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
cmc
xchg word [esp + 2], ax
bswap eax
jmp 0x844570

Function at 0x84467d
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
jmp 0x8446c1
btc edx, ecx
bsf eax, ebx
neg bp
mov word [esp], di
std
mov word [esp], ax
jmp 0x8446ab

Function at 0x844e75
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov byte [esp + 0xa], ah
mov dword [esp + 0xc], edi
jmp 0x844eb2
lea esp, [esp + 0xc]

Function at 0x8516ef
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0085176e
jae 0x8516fb
xor ecx, ecx
call fcn.0085176e
jae 0x851725
xor eax, eax
call fcn.0085176e
jae 0x851736
mov al, 0x10
call fcn.0085176e
adc al, al
jae 0x851717
jne 0x851763
stosb byte es:[edi], al
jmp 0x8516fc
call fcn.0085177a
dec ecx
loop 0x851742
mov eax, ebp
call fcn.00851778
jmp 0x851764
lodsb al, byte [esi]
shr eax, 1
je 0x85178a
adc ecx, 2
mov ebp, eax
jmp 0x851764
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00851778
cmp eax, 0x7d00
jae 0x851762
cmp eax, 0x500
jae 0x851763
cmp eax, 0x7f
ja 0x851764
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8516fc
pop ebp
ret 8
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
xor ch, cl
or al, 0x56
lea eax, [ebp - 0x78]
push 0x78
push eax
invalid

Function at 0x40b05b
Capabilities:
Read file on windows

Disassembly:
inc ebp
or byte [ecx], dh
pop es
mov dword [ebx + 0x28], 0x98
inc ebx
sub byte [eax - 0x75000000], bl
inc ebp
salc
inc ebx
sub byte [eax - 0x75000000], bl
inc ebp
salc
pop edi
mov dword [ecx - 0x75], edx
inc ebp
or byte [edi + 0x5b], ch
mov esp, ebp
pop ebp
loop 0x40b056
add byte [eax - 0x61bf6f03], dl
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov edx, 0x5763758b
jmp 0x40b107
je 0x40b103
push esp
add byte [ebp - 0x3d], bl
jne 0x40b101
jbe 0x40b120
mov edi, eax
mov eax, dword [esi + 0xc]
test dword [eax], ebp
scasb al, byte es:[edi]
and ecx, dword [edx - 0x367bf793]
jne 0x40b137
mov ecx, dword [esi + 0x50]
add al, 0x48
push 0xffffffffffffff8b
inc esi
push eax
aas
push esi
push esp
mov ecx, 0x2520
call 0x2266b810
mov edx, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0x53]
push ebx
lea ecx, [ebp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
out dx, al
pop es
xor eax, eax
jmp 0x40b325
dec esi
push esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
jecxz 0x40b324
mov dword [edx - 0x3b3ca2b4], ebp
nop
nop
nop
retf
add byte [edi - 0x74b32e40], cl
inc ebp
pop eax
ror dword [ebx + ecx*4 + 0x45], 1
cld
mov ebx, ebp
jmp 0x40b2bb