joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc6d0
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.004f1b98
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004f5284
mov edi, eax
cmp edi, 0x104
jbe 0x4dc67b
mov eax, edi
add eax, eax
call fcn.004ef110
mov esi, eax
jmp 0x4dc67d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004f5284
push esi
call sub.USER32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4dc6b6
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 0x4dc6a0
mov eax, esp
cmp esi, eax
je 0x4dc6c3
mov eax, esi
call fcn.004ef12c
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 0x4dc6fc
cmp bl, 0
je 0x4dc6f8
cmp bl, 0x41
jl 0x4dc6f3
cmp bl, 0x5a
jg 0x4dc6f3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4dc6d7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4dc63c

Function at 0x4dcf30
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.004f244c
add esp, 0x800
pop ebx
ret

Function at 0x4ef520
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004f16c8
test esi, esi
jne 0x4ef556
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004f1850
jmp 0x4ef574
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004ef464
mov edi, eax
test esi, esi
je 0x4ef574
cmp dword [ebx], 0
je 0x4ef574
dec esi
jmp 0x4ef55d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4f04fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004f08e8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4f0685
test edi, edi
je 0x4f0685
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4f05bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4f0597
cmp edi, 0xffffffff
je 0x4f055b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4f055b
mov byte [esp], 0
jmp 0x4f0685
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4f0597
test ebx, ebx
jne 0x4f0590
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004ed4d0
test eax, eax
jne 0x4f0590
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4f0685
pause
dec ebp
test ebp, ebp
jg 0x4f0540
cmp edi, 0xffffffff
je 0x4f05bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4f05ba
mov byte [esp], 0
jmp 0x4f0685
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4f050a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004ed4d0
cmp ebx, eax
jne 0x4f05bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004f06f8
mov edx, eax
mov ebx, dword [0x546634]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4f0623
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4f0621
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4f0623
xor edi, edi
cmp byte [esp], 0
je 0x4f064c
mov ebx, dword [esi]
test bl, 1
jne 0x4f0665
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004ed4d0
cmp ebx, eax
jne 0x4f0629
mov byte [esp + 1], 1
jmp 0x4f0665
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004ed4d0
cmp ebx, eax
jne 0x4f064c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4f05d6
cmp byte [esp], 0
je 0x4f0685
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4f132c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x545dbc], 0
je 0x4f138d
cmp word [0x546098], 0xd7b2
jne 0x4f1355
cmp dword [0x5460a0], 0
jbe 0x4f1355
mov eax, 0x546094
call dword [0x5460b0]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4f13b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x539650], 0
jne 0x4f13a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4f1584
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x539620], 0
je 0x4f15af
mov edx, edi
mov eax, esi
call dword [0x539620]
mov ebx, eax
jmp 0x4f15c0
mov eax, 8
call fcn.004ef110
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x545dbd], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4f154c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4f15f5
mov edx, 8
mov eax, ebx
call fcn.004ef12c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4f3d6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f3ed1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f16c8
cmp si, word [0x539e10]
jb 0x4f3e04
cmp si, word [0x53a010]
ja 0x4f3e04
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4f3e04
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x539e10]
jae 0x4f3dde
mov edi, ebx
dec edi
jmp 0x4f3dff
cmp si, word [ebx*8 + 0x539e10]
jbe 0x4f3dee
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4f3dff
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x539e14]
call fcn.004f3c7c
jmp 0x4f3e04
cmp edi, dword [ebp - 8]
jae 0x4f3dc8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4f3eb3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4f3eb3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004f244c
push dword [ebp - 0x160]
push 0x4f3eec
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004f244c
push dword [ebp - 0x164]
push 0x4f3efc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004f244c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004f2684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3ed8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004f1728
ret
Function at 0x4f4084
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f4187
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5488c5
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5488de]
jne 0x4f40d0
mov eax, esi
mov edx, 0x5488e0
mov ecx, 0x55
call fcn.004f244c
push 0x5488c5
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4f4171
push 0x5488c5
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004f16c8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4f413f
cmp byte [0x5488c4], 0
je 0x4f4104
mov edx, esi
mov eax, ebx
call fcn.004f3f68
jmp 0x4f413f
mov edx, esi
mov eax, ebx
call fcn.004f3d6c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4f413f
cmp dword [esi], 0
je 0x4f4128
mov eax, esi
mov edx, 0x4f41a0
call fcn.004f25a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004f3d6c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004f25a4
push 0x5488c5
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5488de], bx
push 0xaa
mov eax, dword [esi]
call fcn.004f23a8
push eax
push 0x5488e0
call sub.kernel32.dll_lstrcpynW
push 0x5488c5
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f418e
lea eax, [ebp - 4]
call fcn.004f16c8
ret
Function at 0x4f43bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004f17ac
xor eax, eax
push ebp
push 0x4f45e1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4f43fc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4f4416
push 0x105
mov eax, dword [ebp - 4]
call fcn.004f23a8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4f45cb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4f45f0
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x4f44e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4f45f0
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x4f44e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4f462c
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x4f44e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4f462c
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x4f44e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4f4660
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x4f44e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4f4694
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x4f45cb
xor eax, eax
push ebp
push 0x4f45c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004f41c8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExW
test eax, eax
jne 0x4f4554
mov eax, dword [ebp - 0x10]
call fcn.004ef110
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004f23f8
jmp 0x4f459f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4f46d4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExW
test eax, eax
jne 0x4f459f
mov eax, dword [ebp - 0x10]
call fcn.004ef110
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4f46d4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004f23f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f45cb
cmp dword [ebp - 8], 0
je 0x4f45ba
mov eax, dword [ebp - 8]
call fcn.004ef12c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f45e8
lea eax, [ebp - 4]
call fcn.004f16c8
ret
Function at 0x4f4920
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004f17ac
xor eax, eax
push ebp
push 0x4f49e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004f244c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004f25fc
mov eax, dword [ebx]
call fcn.004f47e8
test al, al
jne 0x4f49bd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004f244c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004f25fc
mov eax, dword [ebx]
call fcn.004f47e8
test al, al
jne 0x4f49bd
mov eax, ebx
call fcn.004f16c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f49e7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004f1728
lea eax, [ebp - 4]
call fcn.004f16c8
ret

Function at 0x4f52a4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4f5384
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x546650], 1
jae 0x4f542d
call fcn.004ebeac
call fcn.004eeeec
call fcn.004f3b14
mov byte [0x539640], 2
mov dword [0x545d78], 0x52d926
mov dword [0x545d7c], 0x52d93e
mov byte [0x545dbe], 2
call fcn.004f52a4
mov dword [0x545dc0], eax
mov dword [0x545d64], 0x4f3128
call fcn.004efbe8
mov word [0x545dc8], 0xd7b0
mov word [0x546098], 0xd7b0
mov word [0x546368], 0xd7b0
call sub.kernel32.dll_GetCommandLineW
mov dword [0x545db0], eax
call fcn.004ed4e0
mov dword [0x545dac], eax
call sub.kernel32.dll_GetACP
mov dword [0x546638], eax
mov dword [0x54663c], 0x4b0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [0x545da4], eax
call fcn.004f52b8
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x515be4
call fcn.00517680
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x515c03
test bl, 1
je 0x515c03
call fcn.0051fdc4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x515de4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.005171fc
test byte [ebp + 0xd], 0xc0
jne 0x515e08
mov eax, dword [0x53d72c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x515e15
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x515e42
je 0x515e54
sub ecx, 0x100
je 0x515e66
sub ecx, 0x100
je 0x515e6f
sub ecx, 0x100
je 0x515e5d
jmp 0x515e78
sub ecx, 0x600
je 0x515e6f
sub ecx, 0x100
je 0x515e54
jmp 0x515e78
mov dword [ebp - 8], 1
jmp 0x515e7f
mov dword [ebp - 8], 2
jmp 0x515e7f
mov dword [ebp - 8], 4
jmp 0x515e7f
mov dword [ebp - 8], 5
jmp 0x515e7f
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x515ea6
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x53d188]
test al, 0x80
je 0x515e9f
mov ebx, 0x80
jmp 0x515eb8
mov ebx, 1
jmp 0x515eb8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x515eb8
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x515eca
je 0x515ed3
dec eax
je 0x515edc
jmp 0x515ee5
mov dword [ebp - 4], 0x80000000
jmp 0x515ef4
mov dword [ebp - 4], 0x40000000
jmp 0x515ef4
mov dword [ebp - 4], 0xc0000000
jmp 0x515ef4
push 1
call fcn.00517614
pop ecx
mov ebx, eax
jmp 0x515ff4
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x515f10
sub eax, 0x10
je 0x515f14
sub eax, 0x10
je 0x515f1b
sub eax, 0x10
je 0x515f22
jmp 0x515f22
xor edi, edi
jmp 0x515f27
mov edi, 1
jmp 0x515f27
mov edi, 2
jmp 0x515f27
mov edi, 3
test byte [ebp + 0xc], 4
je 0x515f3f
cmp dword [ebp - 4], 0x80000000
jne 0x515f3d
mov edi, 1
jmp 0x515f3f
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x515fad
call sub.kernel32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x515fa2
test byte [ebp + 0xd], 1
je 0x515f9d
mov ebx, 0x50
jmp 0x515fa2
mov ebx, 2
push ebx
call fcn.00517614
pop ecx
mov ebx, eax
jmp 0x515ff4
mov edi, esi
push edi
call fcn.00515d48
pop ecx
test eax, eax
je 0x515fc1
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x515fcd
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0051733c
add esp, 8
mov ebx, eax
inc eax
jne 0x515ff4
push 4
call fcn.00517614
pop ecx
push esi
call sub.kernel32.dll_CloseHandle
call fcn.00517230
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5168b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x54947c
call fcn.005170d8
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x54947c
call fcn.00516bd0
add esp, 0x14
push 0x53d724
lea ecx, [ebp - 8]
push ecx
call fcn.005148e8
add esp, 8
mov byte [0x54947c], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x54947c
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x516927
mov eax, 0x54947c
jmp 0x516929
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x5169e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x516a05
cmp dword [ebx + 4], 0xfffffffe
jne 0x516a05
or eax, 0xffffffff
jmp 0x516b41
test byte [ebx + 8], 8
je 0x516a74
cmp dword [ebx + 4], 0xffffffff
jne 0x516a74
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.005168b4
pop ecx
mov edi, eax
test edi, edi
je 0x516a5c
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x516b41
call fcn.00517660
test eax, eax
jne 0x516a6c
xor eax, eax
jmp 0x516b41
or eax, 0xffffffff
jmp 0x516b41
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x516a81
cmp eax, 0xfffffffe
jne 0x516aa8
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.kernel32.dll_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x516ab8
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x516ace
call fcn.00517660
test eax, eax
jne 0x516ac9
xor eax, eax
jmp 0x516b41
or eax, 0xffffffff
jmp 0x516b41
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x516ae4
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
jne 0x516ae4
jmp 0x516a74
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea edi, [ebp - 8]
push edi
lea eax, [ebp - 0x134]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea edx, [esi + 0xc]
push edx
lea ecx, [esi + 0xe]
push ecx
lea edi, [ebp - 8]
push edi
call sub.kernel32.dll_FileTimeToDosDateTime
mov eax, dword [ebp - 0x128]
lea edi, [ebp - 0x11c]
mov dword [esi + 4], eax
add esi, 0x10
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5170d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00513a3c
pop ecx
mov ebx, eax
test eax, eax
jne 0x5170fc
xor eax, eax
jmp 0x5171ac
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.kernel32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x51711d
cmp esi, 0x104
jb 0x51712b
push ebx
call fcn.00513a4c
pop ecx
xor eax, eax
jmp 0x5171ac
cmp byte [ebx + 1], 0x3a
jne 0x51715b
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jae 0x51715b
push ebx
call fcn.00513a4c
pop ecx
xor eax, eax
jmp 0x5171ac
inc esi
test edi, edi
je 0x5171a2
cmp esi, dword [ebp + 0x10]
jbe 0x517172
push ebx
call fcn.00513a4c
pop ecx
xor eax, eax
jmp 0x5171ac
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00513a4c
pop ecx
mov eax, edi
jmp 0x5171ac
push esi
push ebx
call fcn.00513a5c
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret