joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4149b8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x414bf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406bb8
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x414a8f
cmp dword [ebp - 0x14], 0
jne 0x414a8f
xor edx, edx
mov eax, 6
call fcn.00419f6c
test al, al
je 0x414a8f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x414a8f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.004072b4
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00414790
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00406e8c
mov byte [ebp - 9], 1
jmp 0x414bd7
test ebx, ebx
jne 0x414a9d
cmp dword [ebp - 0x14], 0
je 0x414b8b
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x414b8b
xor eax, eax
push ebp
push 0x414b84
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x414b6d
xor eax, eax
push ebp
push 0x414b66
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.0040ca04
test eax, eax
jbe 0x414b4f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.004072b4
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00414790
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00406e8c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414b6d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414b8b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
cmp byte [ebp - 9], 0
jne 0x414bd7
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004148cc
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00406e8c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x414bd7
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00414790
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00406e8c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414bfc
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00406c18
ret
Function at 0x414c08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00419f6c
test al, al
je 0x414cd0
xor edx, edx
mov eax, ebx
call fcn.004159e0
test al, al
je 0x414cd0
mov eax, ebx
call fcn.00415828
test al, 0x20
je 0x414cd0
mov eax, ebx
call fcn.00407220
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414cd0
test ah, 4
je 0x414cd0
test al, 0x10
je 0x414c6f
mov edi, 0x2000000
jmp 0x414c71
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00407220
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x414cd0
xor eax, eax
push ebp
push 0x414cc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004149b8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414cd0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x414d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x414d59
test eax, edx
je 0x414d5c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x414d17
movzx eax, word [eax]
sub eax, ecx
jmp 0x414d3e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x414d3f
add ecx, 4
js 0x414d2f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x414d3c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x414d3e
xor eax, eax
ret
test eax, eax
je 0x414d68
test edx, edx
jne 0x414d08
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x415828
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x41598c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4157c8]
call fcn.00408354
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4157f8]
call fcn.00408354
add esp, 4
movzx ebx, byte [0x41599c]
mov dl, 1
mov eax, esi
call fcn.00415a78
test al, al
jne 0x4158a2
mov dl, 1
mov eax, esi
call fcn.004159e0
test al, al
je 0x41592c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00416008
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0041a1fc
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407220
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x415927
test byte [ebp - 0x14], 1
je 0x4158f2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4158fb
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x415904
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x415918
dec eax
je 0x41591d
dec eax
je 0x415922
dec eax
jne 0x41594d
or bl, 0x10
jmp 0x41594d
or bl, 4
jmp 0x41594d
or bl, 8
jmp 0x41594d
call fcn.0041ade8
lea edx, [ebp - 0x20]
mov eax, dword [0x426754]
call fcn.0040ae44
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4129f0]
call fcn.00418ef8
call fcn.00406398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415993
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406c18
lea eax, [ebp - 0xc]
mov edx, dword [0x4157f8]
call fcn.00408478
lea eax, [ebp - 8]
mov edx, dword [0x4157c8]
call fcn.00408478
lea eax, [ebp - 4]
call fcn.00406bb8
ret

Function at 0x4159e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407220
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415a4a
test ah, 4
je 0x415a43
test bl, bl
jne 0x415a08
mov al, 1
jmp 0x415a71
test al, 0x10
je 0x415a10
xor eax, eax
jmp 0x415a71
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x415a34
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x415a71
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x415a71
test al, 0x10
sete al
jmp 0x415a71
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x415a6b
cmp ebx, 3
je 0x415a6b
cmp ebx, 0x7b
je 0x415a6b
mov eax, esi
call fcn.004159a0
test al, al
jne 0x415a6f
xor eax, eax
jmp 0x415a71
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x415a78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407220
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x415b1f
test esi, 0x400
jne 0x415ab4
test esi, 0x10
setne bl
jmp 0x415b4f
cmp byte [esp], 0
je 0x415ae8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x415b4f
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x415b4f
test esi, 0x10
je 0x415af4
mov bl, 1
jmp 0x415b4f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x415b1b
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x415b4f
mov bl, 1
jmp 0x415b4f
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x415b49
cmp eax, 3
je 0x415b49
cmp eax, 0xa1
je 0x415b49
cmp eax, 0x7b
je 0x415b49
cmp eax, 0x35
je 0x415b49
cmp eax, 0x15
je 0x415b49
cmp eax, 0x43
jne 0x415b4d
xor ebx, ebx
jmp 0x415b4f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x415c5c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415d2f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406ed4
cmp byte [ebp - 9], 0
je 0x415ced
mov eax, ebx
call fcn.00407220
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x415ced
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00414c08
test al, al
je 0x415ced
mov eax, dword [ebp - 8]
call fcn.00416114
test al, al
je 0x415ce2
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00415f64
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0041a1fc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.004073e4
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406ed4
push edi
mov eax, dword [ebp - 4]
call fcn.00407220
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x415d07
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415d36
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406c18
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406c18
ret

Function at 0x415e68
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407220
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x415ebd
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415eb7
test ah, 4
je 0x415eb7
test al, 0x10
je 0x415eb7
mov eax, esi
call fcn.00407220
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x415ebd
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x417a3c
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
test eax, eax
jle 0x417a75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d10
jmp 0x417a7e
mov eax, ebx
mov edx, esi
call fcn.00406e8c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417a88
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
test eax, eax
jle 0x417aaa
movzx eax, word [esp]
jmp 0x417aac
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418da8
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 0x418ecd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418bb0
mov esi, eax
mov eax, dword [0x426718]
cmp byte [eax], 0
je 0x418e75
mov eax, dword [0x426620]
call fcn.004049d0
call fcn.0040461c
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x418d78]
call fcn.00408354
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x418ee8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x418eb1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4265f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42a620]
call fcn.00408540
push eax
call sub.user32.dll_LoadStringW
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 0x418ed4
lea eax, [ebp - 4]
mov edx, dword [0x418d78]
call fcn.00408478
ret
Function at 0x419f8c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a08c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406ed4
lea eax, [ebp - 4]
call fcn.00406fe8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407220
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a076
mov eax, ebx
call fcn.004044c8
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x41a06f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407220
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a059
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a0a0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a059
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a076
mov eax, dword [ebp - 0x10]
call fcn.004044e4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a093
lea eax, [ebp - 4]
call fcn.00406bb8
ret

Function at 0x41ac58
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.00406f7c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040aed8
mov edi, eax
cmp edi, 0x104
jbe 0x41ac03
mov eax, edi
add eax, eax
call fcn.004044c8
mov esi, eax
jmp 0x41ac05
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040aed8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41ac3e
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 0x41ac28
mov eax, esp
cmp esi, eax
je 0x41ac4b
mov eax, esi
call fcn.004044e4
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 0x41ac84
cmp bl, 0
je 0x41ac80
cmp bl, 0x41
jl 0x41ac7b
cmp bl, 0x5a
jg 0x41ac7b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41ac5f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41abc4

Function at 0x41af6c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004072b4
add esp, 0x800
pop ebx
ret
Function at 0x41e1dc
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x42c904
mov eax, esi
mov edx, 8
test al, 1
je 0x41e1f8
shr eax, 1
xor eax, 0xedb88320
jmp 0x41e1fa
shr eax, 1
dec edx
jne 0x41e1eb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x41e1e4
pop esi
ret

Function at 0x41e210
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x42c900], 0
jne 0x41e23a
call fcn.0041e1dc
mov dword [esp], 0x42c900
mov eax, dword [esp]
mov edx, 1
lock xchg dword [eax], edx
mov eax, edi
test esi, esi
je 0x41e264
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x42c904]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x41e240
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x420214
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x420296
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00420940
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x4202b0
call fcn.0042071c
push 0
mov eax, dword [ebp - 4]
call fcn.00407220
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x420271
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x42022d
mov eax, ebx
call fcn.0041adf8
jmp 0x42022d
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0041a1fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42029d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406c18
ret

Function at 0x4202bc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, eax
mov esi, edx
dec esi
test esi, esi
jl 0x420313
inc esi
xor ebx, ebx
cmp ebx, 1
jne 0x4202e2
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4202f0
cmp ebx, 1
jle 0x4202f0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.00415e68
test al, al
jne 0x420313
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x420313
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x420313
inc ebx
dec esi
jne 0x4202d2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x42037c
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x280]
mov edx, dword [0x411c68]
call fcn.00407720
xor eax, eax
push ebp
push 0x4205b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0041ffa4
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00415a78
test al, al
je 0x420580
lea eax, [ebp - 0x284]
mov ecx, 0x4205d4
mov edx, dword [ebp - 0xc]
call fcn.004073e4
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x280]
mov edx, 0x1ff
call fcn.00415dd8
mov edi, eax
test edi, edi
jne 0x420572
xor eax, eax
push ebp
push 0x42056b
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
jne 0x420552
mov eax, dword [ebp - 0x26c]
mov edx, 0x4205e8
call fcn.0040751c
je 0x42053d
mov eax, dword [ebp - 0x26c]
mov edx, 0x4205f8
call fcn.0040751c
je 0x42053d
mov esi, dword [ebp - 0x270]
mov eax, esi
and eax, 1
dec eax
jne 0x4204aa
test esi, 0x10
sete al
or al, bl
je 0x4204aa
and esi, 0xfffffffe
push esi
lea eax, [ebp - 0x288]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0xc]
call fcn.004073e4
mov eax, dword [ebp - 0x288]
call fcn.00407220
push eax
call sub.kernel32.dll_SetFileAttributesW
test byte [ebp - 0x270], 0x10
je 0x4204ef
test bl, bl
je 0x42053d
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0xc]
call fcn.004073e4
mov eax, dword [ebp - 0x28c]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.0042037c
jmp 0x42053d
push ebp
lea eax, [ebp - 0x290]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0xc]
call fcn.004073e4
mov eax, dword [ebp - 0x290]
call fcn.0042031c
pop ecx
test al, al
jne 0x42053d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x294]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0xc]
call fcn.004073e4
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.004202bc
lea eax, [ebp - 0x280]
call fcn.00415e28
mov edi, eax
test edi, edi
je 0x42043a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420572
lea eax, [ebp - 0x280]
call fcn.00415e4c
ret
mov eax, dword [ebp - 0xc]
call fcn.00407220
push eax
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4205be
lea eax, [ebp - 0x294]
mov edx, 5
call fcn.00406c18
lea eax, [ebp - 0x280]
mov edx, dword [0x411c68]
call fcn.004077f0
lea eax, [ebp - 0xc]
call fcn.00406bb8
ret
Function at 0x420600
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4206e7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x420704
push ebx
push 0x420714
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040746c
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00415fa4
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00404a34
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 8]
call fcn.00407220
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407220
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x420692
call fcn.0041ade8
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00420ac0
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x42069b
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4206ee
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406c18
ret

Function at 0x420a94
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.00416314
add esp, 0x208
pop ebx
ret