joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, esi
push ebp
mov ebp, dword [esp + 0x220]
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016332
sub eax, ebx
sar eax, 1
je 0x100163c2
lea eax, [esp + 8]
push eax
push 1
push 0
push edi
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100163c2
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100163b7
lea ecx, [esp + 0x10]
push ecx
push 0x104
push ebp
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov edx, dword [esp + 0x14]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100190a2
add esp, 0x214
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100190a2
add esp, 0x214
ret

Function at 0x100163e0
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100163e6
mov ecx, dword [esi]
sub eax, edi
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
ret

Function at 0x10016420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
mov dword [esp], 0
jne 0x1001645d
lea ecx, [esp]
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100164a0
mov ecx, dword [esp]
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0xc]
push eax
push 0
push edi
push ecx
jmp 0x1001648a
lea edx, [esp]
push edx
push 0x101
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100164a0
mov edx, dword [esp]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push edx
mov dword [esp + 0x24], 0x200
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
test eax, eax
je 0x100164ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x100190a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022018]
jne 0x100190ac
repz ret
jmp fcn.10019592

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x100012e8
Capabilities:
Check os version

Disassembly:
push ecx
mov ecx, dword fs:[0x18]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x30]
push edi
cmp dword [eax + 0xa4], 0xa
jae 0x10001308
lea ebx, [ecx + 0xff8]
jmp 0x1000130d
mov eax, dword [ecx + 0x2c]
mov ebx, dword [eax]
push 0xfffffffffffffffe
pop ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov ecx, eax
test ecx, ecx
je 0x1000132d
cmp ecx, 0xfffffffe
jne 0x10001332
pause
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
jmp 0x10001321
push 0xfffffffffffffffd
pop eax
xchg dword [ebx], eax
cmp ecx, 0xfffffffd
push 0
sbb esi, esi
and esi, ecx
pop ebp
mov dword [esp + 0x10], esi
mov edi, ebp
je 0x1000138c
lea eax, [esi + 0x28]
jmp 0x1000134b
pause
lock bts dword [eax], 0
jb 0x10001349
cmp dword [esi + 0x24], 0
je 0x1000135e
mov edi, dword [esi + 0x24]
mov dword [esi + 0x24], ebp
lock btr dword [eax], 0
test edi, edi
je 0x1000138c
cmp dword [edi], ebp
jle 0x10001383
lea esi, [edi + 4]
mov ecx, dword [esi]
xor edx, edx
call fcn.10001104
inc ebp
lea esi, [esi + 8]
cmp ebp, dword [edi]
jl 0x1000136e
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, edi
call fcn.10001104
lea eax, [esi + 0x20]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100011f9
push 0xfffffffffffffffd
pop ecx
xchg dword [ebx], ecx
pop edi
pop esi
pop ebp
pop ebx
cmp ecx, 0xfffffffd
jae 0x100013b7
test ecx, ecx
je 0x100013b7
xor edx, edx
add esp, 4
jmp fcn.10001104
pop ecx
ret
Function at 0x4f88bd30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4f88bd6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4f88bd66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4f88bd70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4f88bd56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f88be40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4f88be71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4f88be71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4f88be71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401823
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x3405fa73
pop dword [ebp - 0x30]
mov eax, 0x6910c906
sub eax, 0x350ace93
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x21fb1d2a
add dword [ebp - 0x40], 0x2c572821
mov dword [ebp - 0x3c], 0x8316be2e
sub dword [ebp - 0x3c], 0x50e371e9
mov dword [ebp - 0x38], 0x758e3beb
add dword [ebp - 0x38], 0xd6be0843
mov dword [ebp - 0x34], 0xb35da48
add dword [ebp - 0x34], 0xf4ca25b8
lea eax, [ebp - 0x40]
push eax
mov eax, 0xd4e7d419
sub eax, 0xa0e4c251
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x4e64b3bc
add dword [ebp - 0x40], 0x260db59a
mov dword [ebp - 0x3c], 0x795bbc34
sub dword [ebp - 0x3c], 0x37ef5abf
mov dword [ebp - 0x38], 0x1f06a8a0
sub dword [ebp - 0x38], 0xbb973c34
mov dword [ebp - 0x34], 0x46eb4881
sub dword [ebp - 0x34], 0x46eb4881
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x48d89
push 0
call eax
mov ecx, 0x117a126d
add ecx, 0xee864301
xor edx, edx
add edx, eax
mov ebx, 0xd8f32467
add ebx, 0x5b169399
add ebx, dword [ebp - 0x30]
mov esi, 0x72aa1b7
add esi, 0x67d07c
sub dword [ebp - 0x24], ecx
mov edi, dword [ebx]
xor edi, esi
xor dword [ebp - 0x20], edi
mov dword [edx], edi
xor dword [ebp - 0x24], ecx
add edx, 4
add ebx, 0x44486725
add ebx, 0xbbb798df
loop 0x3405fb92
add eax, 0x723d074e
sub eax, 0x723bbec3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x34030000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x3407b622
Capabilities:
Set registry value

Disassembly:
call fcn.34044726
test eax, eax
jl 0x3407b630
jmp fcn.3407ad34
ret

Function at 0x3407f0f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3403d054]
jne 0x3407fcb3
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x34086a80], eax
mov dword [0x34086a7c], ecx
mov dword [0x34086a78], edx
mov dword [0x34086a74], ebx
mov dword [0x34086a70], esi
mov dword [0x34086a6c], edi
mov word [0x34086a98], ss
mov word [0x34086a8c], cs
mov word [0x34086a68], ds
mov word [0x34086a64], es
mov word [0x34086a60], fs
mov word [0x34086a5c], gs
pushfd
pop dword [0x34086a90]
mov eax, dword [ebp]
mov dword [0x34086a84], eax
mov eax, dword [ebp + 4]
mov dword [0x34086a88], eax
lea eax, [ebp + 8]
mov dword [0x34086a94], eax
mov eax, dword [ebp - 0x320]
mov dword [0x340869d0], 0x10001
mov eax, dword [0x34086a88]
mov dword [0x34086984], eax
mov dword [0x34086978], 0xc0000409
mov dword [0x3408697c], 1
mov eax, dword [0x3403d054]
mov dword [ebp - 0x328], eax
mov eax, dword [0x34086850]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x340869c8], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3403d3b4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x340869c8], 0
jne 0x3407fda3
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0xb612b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0xb650a0
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.00b611ad
test eax, eax
jne 0xb61323
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xb61340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xb61323
cmp dword [ebp - 0x10], 4
jne 0xb61323
cmp dword [ebp - 8], 1
jne 0xb61323
cmp dword [esi + 0xc], ebx
je 0xb6136e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0xb6133b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
leave
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0xb61323
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
jmp 0xb61323
Function at 0xb625d1
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
cmp eax, edi
jne 0xb62d32
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0xb6303e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, edi
je 0xb62616
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], edi
jne 0xb632d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x38], bl
jne 0xb632c4
push ebx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.00b62d61
test eax, eax
jne 0xb625ec
jmp 0xb632bd
shl eax, 0xa
push eax
jmp 0xb62610
xor eax, eax
jmp 0xb6262b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0xb625ec
jmp 0xb632bd
push ebx
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0xb6261f
Function at 0x40aa14
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x4a0754
call fcn.0048a884
mov dword [ebp - 8], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.0049974c
inc dword [ebp - 8]
mov word [ebp - 0x14], 0xc
lea eax, [ebp + 0xc]
call fcn.00402594
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov edx, dword [ebp + 8]
mov dword [edx + 0x1280], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1280], 0x20
jae 0x40aaaf
push 0xf000000f
push dword [ebp + 8]
call fcn.00407ce4
add esp, 8
push eax
lea eax, [ebp + 0xc]
call fcn.00402594
push eax
push 0x49ff7f
call fcn.00401c50
add esp, 0xc
mov eax, 0xf000000f
push eax
dec dword [ebp - 8]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00499788
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40ab91
push 0x49ff9e
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x1284], eax
push 0x49ffaa
mov eax, dword [ebp + 8]
push dword [eax + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1288], eax
push 0x49ffb9
mov eax, dword [ebp + 8]
push dword [eax + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x128c], eax
push 0x49ffc7
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x1290], eax
push 0x49ffd4
mov eax, dword [ebp + 8]
push dword [eax + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1294], eax
push 0x49ffdf
mov eax, dword [ebp + 8]
push dword [eax + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x1298], eax
push 0x49fff2
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1280]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x129c], eax
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00499788
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40b64c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
push ebx
push esi
push edi
mov eax, 0x4a0dcc
call fcn.0048a884
mov esi, 0x4a08a8
lea edi, [ebp - 0x650]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov dl, 1
mov eax, dword [0x4238c4]
call fcn.0040b860
mov dword [ebp - 0x40], eax
mov dl, 1
mov eax, dword [0x4238c4]
call fcn.0040b860
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.00419ee0
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
jmp 0x40b73a
mov word [ebp - 0x2c], 0xc
lea eax, [ebp - 4]
call fcn.00402564
mov ecx, eax
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 4]
call fcn.004025b4
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00499788
pop ecx
test cl, cl
je 0x40b737
mov word [ebp - 0x2c], 0x18
lea eax, [ebp - 8]
call fcn.00402564
mov ecx, eax
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 8]
call fcn.00402594
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.0048a538
add esp, 8
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00499788
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x48]
jg 0x40b6aa
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x40b778
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0xc], edx
mov word [ebp - 0x2c], 0x30
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x24
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40b7a5
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x2c], 0x48
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x3c
lea eax, [ebp - 0x650]
push eax
call fcn.0048a570
pop ecx
test eax, eax
ja 0x40b7f7
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
push 0x4a0ccb
call sub.KERNEL32.DLL_GetVolumeInformationA
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40b7e0
mov dword [ebp - 0x4c], 0xf1206
push dword [ebp - 0x4c]
push 0x4a0ccf
lea ecx, [ebp - 0x650]
push ecx
call fcn.0048d820
add esp, 0xc
push 0x4a0cd2
lea eax, [ebp - 0x250]
push eax
call fcn.0048a538
add esp, 8
mov esi, 0x4a0ca9
lea edi, [ebp - 0x660]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x660]
push eax
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x650]
push ecx
call fcn.00417e64
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x660]
push eax
call fcn.0040b56c
add esp, 8
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419018
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [edx + 0x4a314c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
and eax, 7
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
sar edx, 3
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx + edx]
mov edx, dword [ebp - 0x10]
and ax, word [edx*2 + 0x4a30dc]
je 0x41905c
mov cl, 1
jmp 0x41905e
xor ecx, ecx
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xcc], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x38
jl 0x419026
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp + ecx*4 - 0x94], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp + edx*4 - 0x94], eax
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x4a3184]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x1c
jge 0x4190cd
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + ecx - 0xcc]
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x104], al
jmp 0x4190e1
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + ecx - 0xe8]
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x104], al
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1c
jl 0x4190a0
mov dword [ebp - 8], 0x1c
mov ecx, dword [ebp - 4]
xor eax, eax
mov al, byte [ecx + 0x4a3184]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x38
jge 0x41911e
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0xcc]
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x104], cl
jmp 0x419132
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0xe8]
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x104], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x38
jl 0x4190f1
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
xor eax, eax
mov al, byte [ecx + 0x4a3194]
cmp byte [ebp + eax - 0x104], 0
je 0x419169
mov edx, dword [ebp - 8]
mov ecx, dword [edx*4 + 0x4a30ec]
mov eax, dword [ebp - 0x10]
or dword [ebp + eax*4 - 0x94], ecx
mov edx, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [edx + 0x4a31ac]
cmp byte [ebp + ecx - 0x104], 0
je 0x419192
mov eax, dword [ebp - 8]
mov edx, dword [eax*4 + 0x4a30ec]
mov ecx, dword [ebp - 0x14]
or dword [ebp + ecx*4 - 0x94], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x18
jl 0x419140
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x419076
push dword [ebp + 0x10]
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 8]
call fcn.004191fd
add esp, 0xc
push 0x38
push 0
lea edx, [ebp - 0xcc]
push edx
call fcn.0041eca8
add esp, 0xc
push 0x38
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.0041eca8
add esp, 0xc
push 0x80
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.0041eca8
add esp, 0xc
mov esp, ebp
pop ebp
ret