joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40589c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
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.00405b5a
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4058db
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4477c8], eax
jmp 0x405a65
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4058f5
test eax, eax
je 0x405a13
test bl, 2
je 0x405a13
mov esi, 0x43a538
push edi
push esi
call fcn.004060d4
cmp dword [ebp + 8], 0
je 0x405914
push 0x40a3c4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40591a
push edi
call fcn.00405ab3
cmp byte [edi], 0
jne 0x405928
cmp byte [0x43a538], 0x5c
jne 0x405933
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405a09
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405a97
cmp byte [eax], 0
je 0x405979
cmp byte [ebp - 0x1c], 0
je 0x405979
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40598f
mov al, byte [esi + 1]
test al, al
je 0x4059e8
cmp al, 0x2e
jne 0x40598f
cmp byte [esi + 2], 0
je 0x4059e8
push esi
push ebx
call fcn.004060d4
test byte [ebp - 0x14c], 0x10
je 0x4059b4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059e8
push dword [ebp + 0xc]
push edi
call fcn.0040589c
jmp 0x4059e8
push dword [ebp - 4]
push edi
call fcn.00405854
test eax, eax
jne 0x4059e0
cmp dword [ebp - 4], eax
je 0x4059d8
push edi
push 0xfffffffffffffff1
call fcn.004051fb
push 0
push edi
call fcn.00405eb3
jmp 0x4059e8
inc dword [0x4477c8]
jmp 0x4059e8
push edi
push 0xfffffffffffffff2
call fcn.004051fb
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405957
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a13
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a65
cmp dword [ebp - 0xc], esi
jne 0x405a27
inc dword [0x4477c8]
jmp 0x405a65
push edi
call fcn.004063d7
test eax, eax
je 0x405a65
push edi
call fcn.00405a6c
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405854
test eax, eax
jne 0x405a5d
cmp dword [ebp - 4], esi
je 0x405a1f
push edi
push 0xfffffffffffffff1
call fcn.004051fb
push esi
push edi
call fcn.00405eb3
jmp 0x405a65
push edi
push 0xffffffffffffffe5
call fcn.004051fb
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x43f2c4], 0
push esi
jne 0x40655a
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 0x406534
mov dword [ecx*4 + 0x43f2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
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 + 0x43f2c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc

Function at 0x402910
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402969
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402953
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x402953
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402933
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x402967
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x40297f
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x40297f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402969
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x40299f
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x40299f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x40297f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402a40
push 0x404004
push section..data
call fcn.00402a10
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x4029d8
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x4029df
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00402ab0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401b00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
mov eax, 0x404280
add eax, 0x304
push eax
push 0x800
lea eax, [ebp - 0x804]
push eax
push 0x4061a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x401b7a
push 0xff
push 0x404080
push str.Address_file_has_no_server_names
push 0x2717
call section..text
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
push 0
mov eax, 0x404280
add eax, 4
push eax
push 0x404080
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401bf0
lea eax, [ebp - 0x804]
mov dword [ebp - 0x808], eax
jmp 0x401ba2
mov edi, dword [ebp - 0x808]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [ebp - 0x808], ecx
cmp dword [ebp - 0x808], 0
je 0x401be6
mov eax, dword [ebp - 0x808]
movsx eax, byte [eax]
test eax, eax
je 0x401be6
mov eax, dword [ebp - 0x808]
push eax
push 0
push 0x143
push 0x65
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401b8b
mov eax, 1
jmp 0x401bf0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402fab
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403130
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov dword [0x404884], 0xffffffff
mov eax, dword [0x404884]
mov dword [0x404888], eax
call dword [sym.imp.MSVCRT20.dll___p__fmode]
mov ecx, dword [0x406690]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT20.dll___p__commode]
mov ecx, dword [0x40668c]
mov dword [eax], ecx
call fcn.0040312f
call fcn.0040311c
push 0x4066a8
push 0x4066a4
call sub.MSVCRT20.dll__initterm
add esp, 8
mov eax, dword [0x406688]
push eax
mov eax, dword [0x406684]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT20.dll___getmainargs]
add esp, 0x14
push 0x4066a0
push 0x40669c
call sub.MSVCRT20.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT20.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x40307b
mov al, byte [ebp - 0x3c]
inc esi
mov al, byte [esi]
test al, al
je 0x403073
cmp al, 0x22
jne 0x403068
cmp byte [esi], 0x22
jne 0x403085
inc esi
jmp 0x403085
cmp al, 0x20
jbe 0x403085
inc esi
cmp byte [esi], 0x20
ja 0x40307f
cmp byte [esi], 0
je 0x403095
cmp byte [esi], 0x20
ja 0x403095
inc esi
cmp byte [esi], 0
jne 0x40308a
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
mov eax, 0xa
je 0x4030b8
movzx eax, word [ebp - 0x54]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT20.dll_exit]
jmp 0x4030f6
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e2c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406e18
add esp, 0x208
pop ebx
ret

Function at 0x40be28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40be61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405118
jmp 0x40be6a
mov eax, ebx
mov edx, esi
call fcn.00404fdc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be74
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40be96
movzx eax, word [esp]
jmp 0x40be98
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40c745
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040c434
mov esi, eax
mov eax, dword [0x41bd50]
cmp byte [eax], 0
je 0x40c6ed
mov eax, dword [0x41bc64]
call fcn.0040326c
call fcn.0040305c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40c5fc]
call fcn.00405e68
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40c760
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c729
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41bc44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41eb48]
call fcn.00405f20
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c74c
lea eax, [ebp - 4]
mov edx, dword [0x40c5fc]
call fcn.00405e74
ret
Function at 0x40dfe7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404bd0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40e00a
mov eax, edi
add eax, eax
call fcn.00402ef4
mov esi, eax
jmp 0x40e00c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40e045
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40e02f
mov eax, esp
cmp esi, eax
je 0x40e052
mov eax, esi
call fcn.00402f10
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40e08c
cmp bl, 0
je 0x40e088
cmp bl, 0x41
jl 0x40e083
cmp bl, 0x5a
jg 0x40e083
or bl, 0x20
xor al, bl
inc esi
jmp 0x40e067
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40dfcc

Function at 0x40f458
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f49e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040f370
mov eax, dword [ebp - 4]
call fcn.00405068
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f4a5
lea eax, [ebp - 4]
call fcn.00404fcc
ret

Function at 0x40f6bc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f753
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40f707
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405118
jmp 0x40f73d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40f720
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405030
jmp 0x40f733
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040f57c
mov ebx, eax
test esi, esi
je 0x40f733
dec esi
jmp 0x40f70e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f75a
lea eax, [ebp - 4]
call fcn.00404fcc
ret

Function at 0x40f764
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00409154
add esp, 0x208
pop ebx
ret

Function at 0x40f7c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00409154
add esp, 0x208
pop ebx
ret
Function at 0x40f944
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40fa81
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40fa6b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40f9a1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40fa6b
cmp dword [ebp - 0x14], 0
jne 0x40f9b8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404fdc
mov bl, 1
jmp 0x40fa6b
cmp dword [ebp - 0x14], 0x70000000
jb 0x40f9c6
call fcn.0040c78c
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405118
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004057f0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40f96a
test eax, eax
jne 0x40fa6b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40fa14
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40fa6b
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40fa1c
dec esi
test esi, esi
je 0x40fa30
lea eax, [ebp - 4]
call fcn.00404a90
cmp word [eax + esi*2 - 2], 0
je 0x40fa1b
cmp dword [ebp - 0x10], 7
jne 0x40fa3b
test esi, esi
je 0x40fa3b
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405244
cmp dword [ebp - 0x10], 7
jne 0x40fa5e
test esi, esi
je 0x40fa5e
lea eax, [ebp - 4]
call fcn.004057f0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404fdc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fa88
lea eax, [ebp - 4]
call fcn.00404fcc
ret

Function at 0x4105bc
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x420d9c
mov eax, esi
mov edx, 8
test al, 1
je 0x4105d8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4105da
shr eax, 1
dec edx
jne 0x4105cb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4105c4
pop esi
ret

Function at 0x4105f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x420d98], 0
jne 0x410613
call fcn.004105bc
push 1
push 0x420d98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x41063e
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x420d9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x410619
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4164c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.00416474
test al, al
jne 0x4164e1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41652d
xor eax, eax
push ebp
push 0x41651d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405068
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416524
lea eax, [ebp - 9]
call fcn.004164b0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4165e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4165e8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41674a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00405158
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040f178
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040f350
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
call fcn.0040f798
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040eda4
lea eax, [ebp - 0x2c]
mov edx, 0x416768
call fcn.004052dc
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040f350
mov eax, dword [ebp - 0x28]
pop edx
call fcn.0040583c
dec eax
je 0x416682
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x416722
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x416722
lea eax, [ebp - 4]
call fcn.0040fad0
cmp dword [ebp - 4], 0
jne 0x41669d
lea eax, [ebp - 4]
mov edx, 0x416780
call fcn.00405030
push 0x416794
push dword [ebp - 4]
push 0x4167d4
push 0x4167e4
push 0x416824
lea eax, [ebp - 8]
mov edx, 5
call fcn.00405480
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.00405068
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4166e6
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor ebx, ebx
jmp 0x416722
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x416715
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0xc], edx
call fcn.00403984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416751
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404fd4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404fd4
ret
Function at 0x416b18
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x41bdc0]
cmp dword [eax], 2
jne 0x416b80
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x416b3b
xor eax, eax
jmp 0x416b8f
lea eax, [esp + 8]
push eax
push 0x416b94
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x416b80
xor eax, eax
jmp 0x416b8f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x416bbc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x416c16
inc esi
xor edi, edi
cmp edi, 1
jne 0x416be2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x416bf0
cmp edi, 1
jle 0x416bf0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004164c0
test eax, eax
jne 0x416c16
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x416c16
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x416c16
inc edi
dec esi
jne 0x416bd2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x416c20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416c44
mov eax, dword [ebp - 4]
jmp 0x416c47
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret