joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f00
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423deb
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push 2
call fcn.00413311
mov esi, eax
add esp, 8
test esi, esi
jne 0x406f9b
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040f380
push str.Tool.cpp
push 0x959
push str.Safe_at__d_lines_in__s
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0040111f
add esp, 0x20
lea edx, [ebp - 0x210]
mov ecx, str._Safe_Line_
call fcn.00405050
jmp 0x4070ac
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x406fc2
mov edx, str.Fail
mov ecx, str.Get_copy_path:
call fcn.00405050
jmp 0x4070ac
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406fc7
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x406ff5
push 0x4299ec
push esi
push str._s_s
push esi
call edi
add esp, 0x10
mov edx, str.BOKServiSign
lea ecx, [ebp - 0x214]
call fcn.00403ce0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004012e7
push dword [eax]
push esi
push str._s_s
push esi
call edi
mov edi, dword [ebp - 0x214]
add esp, 0x10
test edi, edi
je 0x407072
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x407072
test edi, edi
je 0x407072
mov eax, dword [edi]
test eax, eax
je 0x407050
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x407067
push eax
call fcn.0040cae6
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0040cd22
add esp, 8
mov ecx, esi
xor eax, eax
mov word [0x430768], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407080
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push esi
push 0x104
push 0x430768
call fcn.00413237
push esi
call fcn.004132e7
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.0040cad5
mov esp, ebp
pop ebp
ret
Function at 0x4070d0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x630
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x234]
mov ebx, edx
push 0
push eax
mov edi, ecx
call fcn.0040f380
add esp, 0xc
test edi, edi
jne 0x407167
push 0x200
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0040f380
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x98a
push str.Tool.cpp
push str.inputMutexLock
push str.Parameter__s_is_null_at__s__d
push 0x200
push ecx
call fcn.0040111f
add esp, 0x18
lea edx, [esp + 0x30]
mov ecx, 0x4299e8
call fcn.00405440
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.0040cad5
add esp, 0x630
ret
call fcn.00406d50
mov esi, eax
test esi, esi
jne 0x4071dd
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [esp + 0x30]
push str.Tool.cpp
push 0x98d
push str.Safe_at__d_lines_in__s
push 0x200
push eax
call fcn.0040111f
add esp, 0x14
lea edx, [esp + 0x30]
mov ecx, str._Safe_Line_
call fcn.00405050
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.0040cad5
add esp, 0x630
ret
push edi
push esi
push str._s__s
lea eax, [esp + 0x23c]
push 0x200
push eax
call fcn.00401090
add esp, 0x14
push esi
call fcn.004131f1
add esp, 4
lea eax, [esp + 0x1c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0x230]
push eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x4072a6
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [esp + 0x30]
push str.Tool.cpp
push 0x99a
push str.Safe_at__d_lines_in__s
push 0x200
push eax
call fcn.0040111f
add esp, 0x14
lea edx, [esp + 0x30]
mov ecx, str._Safe_Line_
call fcn.00405050
jmp 0x4072b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040cad5
add esp, 0x630
ret
Function at 0x407350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x204
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
xor bl, bl
test ecx, ecx
jne 0x4073c7
push 0x200
push ecx
lea eax, [esp + 0xc]
push eax
call fcn.0040f380
push 0xabb
push str.Tool.cpp
push str.inputFileName
push str.Parameter__s_is_null_at__s__d
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.0040111f
add esp, 0x24
lea edx, [esp + 4]
mov ecx, 0x4299e8
call fcn.00405440
mov al, bl
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040cad5
add esp, 0x204
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4073e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x407401
xor al, al
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040cad5
add esp, 0x204
ret
mov al, 1
mov ecx, dword [esp + 0x204]
pop ebx
xor ecx, esp
call fcn.0040cad5
add esp, 0x204
ret

Function at 0x407530
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x67c
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x674], eax
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [esp + 0x58]
xorps xmm0, xmm0
movups xmmword [esp], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x58]
push eax
push 0x7d0
lea eax, [esp + 0x268]
push str.cmd.exe__C_ping_1.1.1.1__n_1__w__d___Nul__Del___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x280]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x674]
xor ecx, esp
call fcn.0040cad5
add esp, 0x67c
ret
Function at 0x4075e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [0x430520]
push ebx
xor bl, bl
push esi
mov esi, ecx
test eax, eax
jne 0x4076b9
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x407648
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x430520], eax
test eax, eax
jne 0x4076b9
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040cad5
add esp, 0x20c
ret
mov eax, dword [0x430520]
test eax, eax
jne 0x4076b9
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0040f380
push str.Tool.cpp
push 0xcd1
push str.Safe_at__d_lines_in__s
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.0040111f
add esp, 0x20
lea edx, [esp + 8]
mov ecx, str._Safe_Line_
call fcn.00405050
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040cad5
add esp, 0x20c
ret
push 8
push esi
call eax
test al, al
setne al
mov ecx, dword [esp + 0x20c]
pop esi
pop ebx
xor ecx, esp
call fcn.0040cad5
add esp, 0x20c
ret

Function at 0x4076e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x407725
lea ecx, [esp]
call fcn.00403f20
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040cad5
add esp, 0x214
ret
mov ecx, dword [esp + 0x20c]
xor eax, eax
xor ecx, esp
call fcn.0040cad5
add esp, 0x214
ret
Function at 0x40a720
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x230
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x22c], eax
movups xmm0, xmmword [str.kernel32.dll]
mov eax, dword [0x42b6dc]
push ebx
push ebp
push 0x208
mov dword [esp + 0x2c], eax
mov ebp, edx
movups xmmword [esp + 0x14], xmm0
lea eax, [esp + 0x30]
mov ebx, ecx
movq xmm0, qword [0x42b6d4]
push 0
push eax
movq qword [esp + 0x2c], xmm0
call fcn.0040f380
add esp, 0xc
mov dword [esp + 8], 0
lea eax, [esp + 0x2c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x40a865
test eax, eax
je 0x40a865
cmp eax, 0xf6
ja 0x40a865
push edi
push 0x38
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
lea eax, [ecx + eax*2]
push eax
call fcn.00423440
add esp, 0xc
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x40a84b
push esi
push edi
call fcn.004155ea
mov esi, eax
add esp, 4
test esi, esi
je 0x40a830
push esi
push edi
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a827
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4299ec
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a827
cmp dword [esp + 0x14], 0x34
jb 0x40a827
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 0x12]
mov dword [ebx], eax
movzx eax, word [ecx + 0x10]
mov dword [ebp], eax
push esi
call fcn.004131f1
add esp, 4
pop esi
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040cad5
add esp, 0x230
ret
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040cad5
add esp, 0x230
ret
mov ecx, dword [esp + 0x234]
xor al, al
pop ebp
pop ebx
xor ecx, esp
call fcn.0040cad5
add esp, 0x230
ret
Function at 0x40a880
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x140], eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
lea eax, [esp]
push eax
movups xmmword [esp + 4], xmm0
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x11c
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040f380
add esp, 0xc
mov dword [esp + 0x24], 0x11c
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40aa3d
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
call fcn.0040a720
mov eax, dword [esp + 0x28]
cmp eax, 5
jne 0x40a996
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x40a90a
jmp 0x40aa0c
cmp eax, 2
jne 0x40aa3d
cmp byte [esp + 0x13e], 1
jne 0x40a93e
cmp word [esp], 9
jne 0x40a93e
or eax, 0x200000
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040cad5
add esp, 0x144
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40a954
mov eax, 4
jmp 0x40aa0c
mov eax, dword [esp + 0x28]
cmp eax, 5
jne 0x40a996
cmp dword [esp + 0x2c], 2
jne 0x40aa3d
test dword [esp + 0x13c], 0x8000
je 0x40a97f
mov eax, 8
jmp 0x40aa0c
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40a992
mov eax, 0x10
jmp 0x40aa0c
mov eax, dword [esp + 0x28]
cmp eax, 6
jne 0x40a9eb
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40a9ba
cmp byte [esp + 0x13e], 1
mov eax, 0x40
mov ecx, 0x20
cmove eax, ecx
jmp 0x40aa0c
cmp eax, 1
jne 0x40a9c9
mov eax, 0x100
lea ecx, [eax - 0x80]
jmp 0x40aa01
cmp eax, 2
jne 0x40a9da
mov eax, 0x400
mov ecx, 0x200
jmp 0x40aa01
cmp eax, 3
jne 0x40aa3d
mov eax, 0x1000
mov ecx, 0x800
jmp 0x40aa01
cmp eax, 0xa
jne 0x40aa3d
cmp dword [esp + 0x2c], 0
jne 0x40aa3d
mov eax, 0x4000
mov ecx, 0x2000
cmp byte [esp + 0x13e], 1
cmovne eax, ecx
mov ecx, dword [esp]
cmp cx, 9
je 0x40a924
cmp cx, 6
je 0x40a924
or eax, 0x100000
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040cad5
add esp, 0x144
ret
mov ecx, dword [esp + 0x140]
xor eax, eax
xor ecx, esp
call fcn.0040cad5
add esp, 0x144
ret

Function at 0x40aa60
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0xf3bcc908
mov dword [ecx + 0x14], 0x6a09e667
mov dword [ecx + 0x18], 0x84caa73b
mov dword [ecx + 0x1c], 0xbb67ae85
mov dword [ecx + 0x20], 0xfe94f82b
mov dword [ecx + 0x24], 0x3c6ef372
mov dword [ecx + 0x28], 0x5f1d36f1
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0xade682d1
mov dword [ecx + 0x34], 0x510e527f
mov dword [ecx + 0x38], 0x2b3e6c1f
mov dword [ecx + 0x3c], 0x9b05688c
mov dword [ecx + 0x40], 0xfb41bd6b
mov dword [ecx + 0x44], 0x1f83d9ab
mov dword [ecx + 0x48], 0x137e2179
mov dword [ecx + 0x4c], 0x5be0cd19
mov dword [ecx + 0xd0], 0
ret
Function at 0x40c220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push edi
mov edi, dword [ebp + 8]
push 0x100
push 0
push eax
mov dword [ebp - 0x224], edi
call fcn.0040f380
push 0x100
lea eax, [ebp - 0x120]
mov byte [ebp - 0x10], 0
xorps xmm0, xmm0
mov byte [ebp - 7], 0
push 0
push eax
movq qword [ebp - 0xf], xmm0
call fcn.0040f380
add esp, 0x18
cmp dword [0x42ec18], 1
jne 0x40c296
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cad5
mov esp, ebp
pop ebp
ret
push esi
test ebx, ebx
je 0x40c319
push 0x2f
push ebx
call fcn.0040f4e0
add esp, 8
test eax, eax
jne 0x40c319
push 0x5c
push ebx
call fcn.0040f4e0
add esp, 8
test eax, eax
jne 0x40c319
push 0x104
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40c2d2
mov ax, word [0x42a3fc]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40c2e7
lea edi, [ebp - 0x120]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c2f7
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x224]
push ebx
push 0x100
push 0x42eb18
push str.Log_File
push edi
call fcn.0040c4e0
add esp, 0x14
test eax, eax
je 0x40c350
mov ecx, dword [str.C:CGLog.log]
mov edx, 0x42eb18
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c343
lea eax, [ebp - 0x10]
push eax
call fcn.0040c420
push 0x2e
push 0x42eb18
call fcn.0040f610
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c39b
push 0xc8
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00415600
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10]
push eax
push str.__s_s
push esi
call fcn.004010ed
add esp, 0x1c
jmp 0x40c3b6
lea eax, [ebp - 0x10]
push eax
push 0x42eb18
push 0x424320
push 0x42eb18
call fcn.004010ed
add esp, 0x10
push ebx
push 0x10
lea eax, [ebp - 0x20]
push eax
push str.Log_Level
push edi
call fcn.0040c4e0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40c3dd
mov dword [0x42ec1c], 0
jmp 0x40c3ee
lea eax, [ebp - 0x20]
push eax
call fcn.0041573f
add esp, 4
mov dword [0x42ec1c], eax
mov dword [0x42ec18], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [0x42ec24], eax
xor ecx, ebp
mov eax, esi
pop esi
pop edi
pop ebx
call fcn.0040cad5
mov esp, ebp
pop ebp
ret

Function at 0x41a53b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a3ba

Function at 0x41b684
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b344
Function at 0x9dfc9c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xa05274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xa0240c
push esi
call fcn.009d80f3
pop ecx
pop ecx
test eax, eax
jne 0x9dfcca
xor al, al
jmp 0x9dfd47
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009df9d1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9dfd04
push dword [ebp - 0x210]
call fcn.009c6372
xor al, al
jmp 0x9dfd45
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9dfd0a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9dfd2a
push edx
call fcn.009dfbd3
pop ecx
test al, al
je 0x9dfcf5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9dfd38
mov bl, 1
push dword [ebp - 0x210]
call fcn.009c6372
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009c2cd2
leave
ret

Function at 0x9e082c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xa05274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9e086f
call fcn.009d0369
mov dword [eax], 0xf
call fcn.009d037c
mov dword [eax], 0xd
call fcn.009d3c44
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c2cd2
leave
ret
test eax, eax
jne 0x9e0876
inc eax
jmp 0x9e0863
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9e0861
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9e0863
Function at 0x408948
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
push edx
pop ebx
call fcn.00408965
xor dword [edi], eax
add edi, 1
and ebx, edx
or edx, edx
cmp edi, esi
jne fcn.00408948
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401a6a
Capabilities:
Parse pe header

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

Function at 0x40ab80
Capabilities:
Parse pe header

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

Function at 0x10018c30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10018d3c
test eax, eax
je 0x10018d3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x10033ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10018d23
lea edi, [eax + 4]
jmp 0x10018c87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10018c9c
mov dword [ebp - 4], 2
jmp 0x10018cbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10018cb3
mov dword [ebp - 4], 1
jmp 0x10018cbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10018d33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10018cf6
mov byte [ecx], 0x3d
jmp 0x10018d02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10018d0d
mov byte [ecx], 0x3d
jmp 0x10018d13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10018c84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e40
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x450080]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408ed6
lea eax, [ebp - 0x10]
push eax
push 0x44adb4
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x408e93
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041feb1
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
test eax, eax
jne 0x408e7f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80000000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041feb1
mov esp, ebp
pop ebp
ret