joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a437
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x244]
push eax
push 0x1001a0c
push dword [ebp + 8]
xor edi, edi
xor esi, esi
call fcn.0100777d
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100a4a6
test byte [ebp - 0x140], 0x10
jne 0x100a48d
add edi, dword [ebp - 0x120]
adc esi, 0
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a47b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
shrd eax, esi, 0x14
pop edi
shr esi, 0x14
pop esi
pop ebx
leave
ret 4

Function at 0x100a705
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push edi
call fcn.010081a4
mov esi, eax
test esi, esi
jne 0x100a776
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100a776
mov eax, dword [ebp + 0xc]
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
and byte [ebp - 0x13], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 1
push edi
mov byte [ebp - 0x14], 1
mov word [ebp - 0x12], 4
call esi
lea eax, [ebp - 0x14]
push eax
push 4
push edi
call esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0x10]
push edi
call fcn.010081a4
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x100ab4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, 0x1002354
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
movsw word es:[edi], word [esi]
call fcn.01009540
test eax, eax
je 0x100ab7a
mov dword [ebp - 0xc], 0x40
jmp 0x100ac12
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x1002338
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ac12
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x100232c
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100ac09
push dword [ebp - 4]
call sub.msvcrt.dll_malloc
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100abdc
sub eax, ecx
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x100ac00
mov dword [ebp - 0xc], 0x62
push dword [ebp - 0x10]
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100aca6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
push 0xfffa
mov esi, 0x10239e0
push esi
push dword [ebp + 0xc]
xor edi, edi
push 0x1022660
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.0100777d
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
push ebx
lea eax, [ebp - 0x420]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0x80
push ebx
push esi
call edi
push esi
push dword [ebp + 8]
call fcn.01003cd3
lea eax, [ebp - 0x218]
push eax
call fcn.010095ad
test eax, eax
je 0x100ad3d
cmp eax, 0x800b0100
je 0x100ad3d
push eax
push esi
push 0x10023f8
jmp 0x100ad73
mov eax, dword [0x10102f4]
test eax, eax
je 0x100ad5a
push 0
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x218]
push ecx
call eax
jmp 0x100ad5f
mov eax, 0x4c7
test eax, eax
jne 0x100ad6c
mov dword [ebp - 4], 1
jmp 0x100ad7b
push eax
push esi
push 0x10023b0
call fcn.0100a99e
add esp, 0xc
push ebx
push esi
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010086f8
test eax, eax
je 0x100ada2
push 0x102049c
push dword [ebp - 8]
push esi
call fcn.0100a705
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100c109
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, 0x100fe90
cmp eax, esi
push edi
je 0x100c129
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100c11f
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100c12e
sub eax, ecx
lea edi, [eax + 0x100fe90]
mov byte [edi], 0x5c
inc edi
and dword [esp + 0x18], 0
mov ebp, 0x100f520
mov eax, dword [esp + 0x18]
push ebp
push esi
mov dword [esp + 0x18], eax
mov word [edi], 0x2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100c1e0
test byte [0x100f520], 0x10
jne 0x100c1bf
mov eax, 0x100f54c
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100c179
push 0x1002bc8
push 0x100f54c
call sub.ntdll.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x100c1ad
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100c1bf
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call fcn.0100a705
inc dword [esp + 0x18]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100c167
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jne 0x100c14b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x100c33a
Capabilities:
Check if file exists
Delete directory
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x30c]
push eax
push 0x1002bec
push dword [ebp + 8]
call fcn.0100777d
push dword [ebp + 0x10]
lea eax, [ebp - 0x30c]
push dword [ebp + 0xc]
push eax
call fcn.0100c109
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, 0x80
push edi
lea eax, [ebp - 0x30c]
push eax
call esi
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x100c3a8
push 4
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100c109
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call edi
test eax, eax
jne 0x100c3d7
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [ebp + 0x14], 0
jne 0x100c4df
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x100c4df
call fcn.01009540
mov dword [ebp + 8], eax
cmp eax, 1
lea eax, [ebp - 0x104]
push ebx
push eax
lea eax, [ebp - 0x208]
jne 0x100c42b
push 0x100237c
push eax
call fcn.0100777d
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push 0x1002364
push eax
call fcn.0100777d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call esi
cmp eax, 0xffffffff
jne 0x100c483
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.0100988e
test eax, eax
jne 0x100c483
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x1002394
lea eax, [ebp - 0x208]
push eax
call fcn.0100777d
lea eax, [ebp - 0x104]
push eax
call esi
cmp eax, 0xffffffff
je 0x100c4df
lea eax, [ebp - 0x104]
push eax
call fcn.01007bf5
test eax, eax
je 0x100c4df
cmp dword [ebp + 8], 0
je 0x100c4a9
lea eax, [ebp - 0x410]
push eax
call fcn.01007bf5
test eax, eax
je 0x100c4df
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x1002bd8
lea eax, [ebp - 0x208]
push eax
call fcn.0100777d
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x100c4df
push 4
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100c4e6
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push ecx
push esi
push edi
mov edi, 0xfffa
push edi
mov esi, 0x10339e0
push esi
push 0x1002c08
push dword [esp + 0x24]
call fcn.0100777d
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x10102d4], eax
je 0x100c635
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100c635
push 0
call eax
test eax, eax
mov dword [0x10102dc], eax
je 0x100c635
lea eax, [esp + 8]
push eax
push esi
call fcn.0100c1e8
test eax, eax
je 0x100c619
mov edx, dword [esp + 8]
cmp edx, 0x8740001
mov ecx, dword [esp + 0xc]
mov eax, 0x50000
jne 0x100c566
cmp ecx, eax
je 0x100c59c
cmp edx, 0x8930652
jne 0x100c572
cmp ecx, eax
je 0x100c59c
cmp ecx, eax
jb 0x100c619
ja 0x100c588
cmp edx, 0x8740960
jb 0x100c619
push 1
push dword [0x10102d4]
call fcn.0100a176
mov dword [0x10102e0], eax
jmp 0x100c619
push ebx
push edi
push esi
mov ebx, 0x1002bf8
push ebx
push dword [esp + 0x24]
call fcn.0100777d
push edi
mov edi, 0x10239e0
push edi
push ebx
push dword [esp + 0x28]
call fcn.0100777d
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
je 0x100c5f6
cmp dword [esp + 0x20], 0
je 0x100c5f6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push edi
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push edi
call ebp
pop ebp
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100c606
push edi
call ebx
cmp eax, 0xffffffff
je 0x100c618
push 0
push dword [0x10102d4]
call fcn.0100a176
mov dword [0x10102e0], eax
pop ebx
cmp dword [0x10102e0], 0
jne 0x100c635
push 5
push dword [0x10102d4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10102d8], eax
pop edi
pop esi
pop ecx
pop ecx
ret 0xc
Function at 0x100c8b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push 2
xor esi, esi
pop ebx
cmp dword [0x10204b0], ebx
mov dword [ebp - 4], esi
jne 0x100c9c5
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1002cc0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c9c4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1002ca8
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c9bb
cmp dword [ebp - 0x14], edi
jne 0x100c9bb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1002c94
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x100c94b
mov dword [ebp - 4], ebx
jmp 0x100c9bb
push 0x1002c80
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x100c9bb
push 0x1002c6c
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x100c9bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002c58
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x100c9b4
push 0x1002c44
push edi
call esi
mov esi, eax
test esi, esi
je 0x100c9b4
lea eax, [ebp - 0x10]
push eax
push 0x65
push 0
call ebx
test eax, eax
jne 0x100c9b4
mov eax, dword [ebp - 0x10]
test byte [eax + 0x10], 0x10
je 0x100c9b1
mov dword [ebp - 4], 3
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x100ca7d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
or dword [esi], 0xffffffff
push edi
call fcn.0100c8b7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi + 4], eax
push 0x1021400
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
lea eax, [esi + 0x10]
push eax
call edi
push 0x1002360
lea eax, [esi + 0x218]
push eax
call edi
cmp word [ebp - 0x210], 0
mov dword [esi + 8], 0x10
mov dword [esi + 0xc], 8
je 0x100cb1d
cmp word [ebp - 0x20e], 0x3a
jne 0x100cb1d
cmp word [ebp - 0x20c], 0x5c
jne 0x100cb1d
push 4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x100cb1d
mov eax, dword [esi + 8]
or dword [esi + 0xc], 0x19
mov dword [esi + 8], eax
pop edi
pop esi
leave
ret 4
Function at 0x100cb23
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xabc
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [0x1021618], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x10204a0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 1
mov dword [0x1021614], eax
mov dword [0x10204a0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1002d6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x101036c], eax
je 0x100cb9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002d5c
push eax
call esi
push 0x1002d50
push dword [0x101036c]
mov dword [0x1021610], eax
call esi
mov dword [0x102160c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x214]
push eax
push 0x1002d34
mov dword [0x1021608], 0x1002d20
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100cc64
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, 0x1021400
push edi
push esi
push ebx
push dword [0x1021608]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, esi
ja 0x100cc63
cmp eax, ebx
je 0x100cc63
mov eax, dword [0x1021610]
cmp eax, ebx
je 0x100cc07
push ebx
lea ecx, [ebp - 8]
push ecx
push 4
push edi
push 0x100f178
call eax
jmp 0x100cc09
xor eax, eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100cc63
mov ecx, dword [0x10204a4]
cmp ecx, 5
jb 0x100cc4f
jne 0x100cc2d
cmp dword [0x10204a8], ebx
jne 0x100cc2d
mov eax, dword [eax + 0xc4c]
jmp 0x100cc33
mov eax, dword [eax + 0xc5c]
cmp eax, ebx
je 0x100cc4f
push ebx
push 0x100c9f2
push 0x8a8
lea ecx, [ebp - 0xabc]
push ecx
push eax
call fcn.0100900a
cmp dword [ebp - 4], ebx
je 0x100cc63
mov eax, dword [0x102160c]
cmp eax, ebx
je 0x100cc63
lea ecx, [ebp - 4]
push ecx
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x100cceb
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, edx
not eax
je 0x100cd01
push esi
movsx esi, byte [ecx]
rol eax, 3
xor eax, esi
inc ecx
dec edx
jne 0x100ccf4
pop esi
ret
Function at 0x100cf2d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002da0
call fcn.010070d8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100cf6a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100cf6a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100cf82
cmp eax, 0x20b
je 0x100cf6f
mov dword [ebp - 0x1c], ebx
jmp 0x100cf96
cmp dword [ecx + 0x84], 0xe
jbe 0x100cf6a
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100cf90
cmp dword [ecx + 0x74], 0xe
jbe 0x100cf6a
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1043af8], 0xffffffff
or dword [0x1043afc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101037c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1010378]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1043b00], eax
call fcn.0100d186
cmp dword [0x100f1a0], ebx
jne 0x100cff1
push fcn.0100d186
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100d174
push 0x10013c0
push 0x10013bc
call sub.msvcrt.dll__initterm
mov eax, dword [0x1010374]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1010370]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10013b8
push 0x10013b4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x100d087
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100d05b
cmp al, 0x22
jne 0x100d04d
cmp byte [esi], 0x22
jne 0x100d064
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100d06e
cmp al, 0x20
jbe 0x100d060
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x100d092
movzx eax, word [ebp - 0x48]
jmp 0x100d095
cmp byte [esi], 0x20
jbe 0x100d064
inc esi
mov dword [ebp - 0x34], esi
jmp 0x100d087
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100d0b2
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100d0e7
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01007111
ret

Function at 0x100d3d5
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100d3df
sub eax, ecx
mov ecx, eax
not eax
je 0x100d3fa
movsx edx, byte [esi]
rol eax, 3
xor eax, edx
inc esi
dec ecx
jne 0x100d3ee
pop esi
ret 4
Function at 0xb93cd3
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
xor esi, esi
sub edx, esi
je 0xb93d33
dec edx
je 0xb93d0f
dec edx
jne 0xb93d55
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
jmp 0xb93d55
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
jmp 0xb93d55
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov ecx, dword [ecx]
add ecx, 0xa0
pop esi
jmp 0x894a92
Function at 0xbb3c49
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xbc55cd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0xd59320]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, esi
call fcn.0087cc63
mov edi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0087d3dd
and dword [esp + 0x30], 0
mov ecx, edi
call 0x929471
movzx eax, al
push eax
lea ecx, [esp + 0x18]
call fcn.008a1e0a
or edi, 0xffffffff
push edi
push 0xd37698
mov byte [esp + 0x38], 1
call fcn.00883e88
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x38], 2
call fcn.008782db
mov ecx, eax
call fcn.00871b14
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0087591a
pop ecx
pop ecx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0xbb3d00
push dword [esp + 0xc]
call fcn.00880e60
pop ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.008a112b
push esi
call fcn.00bb39d0
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x10]
lock xadd dword [eax], edi
jne 0xbb3d2c
push dword [esp + 0x10]
call fcn.00880e60
pop ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4028f4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00401e00
ret
Function at 0x402f68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004012a0
mov eax, dword [ebp - 8]
call fcn.004012a0
xor eax, eax
push ebp
push 0x40306b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.004012b8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004012c8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403050
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004012c8
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
cmp dword [ebp - 0x10], 0
je 0x403047
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x403041
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jb 0x40302a
sub eax, 4
jne 0x403035
mov eax, ebx
mov edx, esi
call fcn.004012e0
jmp 0x403041
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.004012d0
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403072
lea eax, [ebp - 8]
mov edx, 2
call fcn.004012b0
ret
Function at 0x403cfc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004012a0
xor eax, eax
push ebp
push 0x403e32
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x214]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x403e07
lea ebx, [ebp - 0x214]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x420]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x403df0
lea eax, [ebp - 8]
lea edx, [ebp - 0x420]
mov ecx, 0x106
call fcn.004012f0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00401378
test eax, eax
jle 0x403df0
lea eax, [ebp - 8]
call fcn.00401220
call fcn.00401320
mov esi, eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 4]
call fcn.00401220
call fcn.00401320
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00401350
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, ebx
call fcn.004012e0
mov edx, dword [ebp - 0x428]
mov eax, edi
pop ecx
call fcn.00401338
jmp 0x403e07
add ebx, 2
cmp word [ebx], 0
jne 0x403ded
add ebx, 4
test ebx, ebx
je 0x403e01
cmp word [ebx], 0
jne 0x403d55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e39
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.004012b0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004012b0
ret