joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d23f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10015598
and dword [ebp - 4], 0
cmp dword [0x1002ab14], 0
mov ebx, eax
jne 0x1001d2f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001d3a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10023d70
push edi
call esi
test eax, eax
je 0x1001d3a1
push eax
call fcn.10015526
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002ab14], eax
call esi
push eax
call fcn.10015526
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002ab18], eax
call esi
push eax
call fcn.10015526
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002ab1c], eax
call esi
push eax
call fcn.10015526
pop ecx
mov dword [0x1002ab24], eax
test eax, eax
je 0x1001d2f0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015526
pop ecx
mov dword [0x1002ab20], eax
mov eax, dword [0x1002ab20]
cmp eax, ebx
je 0x1001d348
cmp dword [0x1002ab24], ebx
je 0x1001d348
push eax
call fcn.100155a1
push dword [0x1002ab24]
mov esi, eax
call fcn.100155a1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001d348
test edi, edi
je 0x1001d348
call esi
test eax, eax
je 0x1001d33f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001d33f
test byte [ebp - 0xc], 1
jne 0x1001d348
or dword [ebp + 0x10], 0x200000
jmp 0x1001d381
mov eax, dword [0x1002ab18]
cmp eax, ebx
je 0x1001d381
push eax
call fcn.100155a1
pop ecx
test eax, eax
je 0x1001d381
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001d381
mov eax, dword [0x1002ab1c]
cmp eax, ebx
je 0x1001d381
push eax
call fcn.100155a1
pop ecx
test eax, eax
je 0x1001d381
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002ab14]
call fcn.100155a1
pop ecx
test eax, eax
je 0x1001d3a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001d3a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xdc2564
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdc256e
pushal
call 0xdc2574
pop ebp
sub ebp, 0x10
sub ebp, 0x9c2564
jmp 0xdc258a
call 0xb9cd7d53
and eax, 0xc503009c
mov eax, 0x9c2564
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cc
mov edx, 0x88ec8ac6
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc25a1
jmp 0xdc25b4
dec ebp
or ecx, dword [ebp + 0x4f]
cli
mov dh, 0xc6
inc edi
pop es
mov dh, 0xc6
lds ecx, [ebx]
jle 0xdc2586
mov dh, 0xc6
jl 0xdc25b9
mov dh, 0xc6
xor dword [eax*8 - 0x35b8b2f2], esp
mov dh, 0xc6
lds eax, [ebx]
xchg esi, eax
dec ebx
mov byte [0xc24f3ae2], al
loop 0xdc2591
out 0x66, al
out 0xc6, eax
scasb al, byte es:[edi]
add byte [ebx - 0x44], 0xc6
invalid
Function at 0x45f710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x36000]
push edi
jmp 0x45f72a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45f731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45f720
mov eax, 1
add ebx, ebx
jne 0x45f743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45f738
jne 0x45f754
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45f738
xor ecx, ecx
sub eax, 3
jb 0x45f768
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45f7da
mov ebp, eax
add ebx, ebx
jne 0x45f773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45f780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45f7a4
inc ecx
add ebx, ebx
jne 0x45f790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45f785
jne 0x45f7a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45f785
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45f7c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45f7b5
jmp 0x45f726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45f7c4
add edi, ecx
jmp 0x45f726
pop esi
lea edi, [esi + 0x5a000]
mov ecx, 8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45f7e6
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x45f7eb
lea edi, [esi + 0x5c000]
mov eax, dword [edi]
or eax, eax
je 0x45f853
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5f25c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5f2e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45f811
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5f2ec]
or eax, eax
je 0x45f84d
mov dword [ebx], eax
add ebx, 4
jmp 0x45f82e
call dword [esi + 0x5f2e8]
mov ebp, dword [esi + 0x5f2f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x45f887
sub esp, 0xffffff80
jmp 0x401e60
Function at 0x10001760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], 0
push edi
mov edi, ecx
test esi, esi
je 0x1000181c
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 5
push edi
mov dword [ebp - 0xc], eax
call eax
mov eax, dword [edi]
sub ebx, edi
mov dword [esi], eax
sub ebx, 5
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov eax, ebx
mov byte [edi], 0xe9
mov byte [edi + 1], bl
shr eax, 8
mov byte [edi + 2], al
mov eax, ebx
push 0x40
push 0x3000
shr eax, 0x10
push 5
mov byte [edi + 3], al
shr ebx, 0x18
push 0
mov byte [edi + 4], bl
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000181c
mov ecx, edi
mov byte [esi], 0xe9
sub ecx, esi
mov byte [esi + 1], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x10
push 0
mov byte [esi + 3], al
shr ecx, 0x18
mov byte [esi + 4], cl
push dword [ebp - 8]
push 5
push edi
call dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003232
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003232
mov esp, ebp
pop ebp
ret
Function at 0x10002980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
sub dword [ebp + 0xc], 1
jne 0x10002b18
mov dword [esp + 8], 0x18933a3f
mov dword [esp + 0xc], 0x237d8827
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], 0x7f7dec78
mov dword [esp + 0xc], 0x426f4dcb
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], 0x73fe5f4b
mov dword [esp + 0xc], 0x4f19a646
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 8], 0x7f7dec14
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], 0x426f4dcb
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movaps xmm1, xmmword [esp + 0x10]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x3c], ecx
xorps xmm1, xmmword [esp + 0x30]
push eax
movaps xmmword [esp + 0x14], xmm1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.10002fa0
mov dword [esp + 8], 0x18933a3f
mov dword [esp + 0xc], 0x237d8827
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 8], 0x7f7dec78
mov dword [esp + 0xc], 0x426f4dcb
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 8], 0x73fe5f4b
mov dword [esp + 0xc], 0x4f19a646
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0x7f7dec14
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], 0x426f4dcb
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movaps xmm1, xmmword [esp + 0x20]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
xorps xmm1, xmmword [esp + 0x30]
movaps xmmword [esp + 0x20], xmm1
call fcn.10002dc0
push str.0.0.1
push str._INFO__LUA_INJECTOR_FOR_MTA:PROVINCE_INJECTED_
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 7
movups xmmword [ecx], xmm0
push str.Lua.log
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002b80
call fcn.10001390
add esp, 0x20
push 0
push 0
push 0
push 0x10002930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x220], eax
push esi
push edi
test eax, eax
je 0x10002f80
xor eax, eax
mov dword [ebp - 0x218], 0
xor edx, edx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
pushal
mov eax, dword fs:[0x30]
mov dword [ebp - 0x218], eax
popal
mov eax, dword [ebp - 0x218]
xor edi, edi
mov ecx, dword [eax + 0xc]
xor eax, eax
mov dword [ebp - 0x224], ecx
sub eax, 0
je 0x10002e7a
sub eax, 1
je 0x10002e5e
sub eax, 1
jne 0x10002e93
lea ebx, [ecx + 0x1c]
mov ecx, 0x10
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x10002e9f
lea ebx, [ecx + 0x14]
mov ecx, 8
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x10002e9f
lea ebx, [ecx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x10002e9f
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
mov esi, dword [ebx]
mov ebx, dword [ebp - 0x210]
cmp esi, ebx
je 0x10002f48
nop
mov edx, esi
mov dword [ebp - 0x20c], esi
sub edx, ecx
xor eax, eax
movzx ecx, word [edx + 0x24]
test ecx, 0xfffffffe
jbe 0x10002ee7
cmp eax, 0x200
jge 0x10002eec
mov ecx, dword [edx + 0x28]
mov cl, byte [ecx + eax*2]
mov byte [ebp + eax - 0x204], cl
inc eax
movzx ecx, word [edx + 0x24]
shr ecx, 1
cmp eax, ecx
jl 0x10002ec8
cmp eax, 0x200
jae 0x10002f91
push dword [ebp - 0x220]
mov byte [ebp + eax - 0x204], 0
lea eax, [ebp - 0x204]
push eax
call fcn.10004560
add esp, 8
test eax, eax
je 0x10002f36
test edi, edi
jne 0x10002f27
mov eax, esi
sub eax, dword [ebp - 0x208]
mov dword [ebp - 0x214], eax
mov edi, eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov esi, eax
mov ecx, dword [ebp - 0x208]
cmp eax, ebx
jne 0x10002eb0
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x21c], eax
cmp eax, 3
jge 0x10002f65
mov ecx, dword [ebp - 0x224]
jmp 0x10002e33
mov edx, dword [ebp - 0x214]
test edx, edx
je 0x10002f80
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0x3c]
mov dword [ecx], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x40]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003232
mov esp, ebp
pop ebp
ret
call fcn.100033c8
int3
Function at 0x10002fa0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10003135
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10003135
movzx eax, word [eax + ecx + 0x14]
test ax, ax
je 0x10003135
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], 0
push ebx
push esi
mov eax, dword [eax + 0xc]
push edi
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x10], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0xc], ecx
cmp ecx, esi
je 0x10003054
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10003054
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x1000304d
nop dword [eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10003030
cmp esi, 0x820621f3
je 0x10003058
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10003017
mov eax, dword [eax]
jmp 0x10002ff2
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
mov esi, dword [ebp - 0x18]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + edx]
movzx ebx, cx
add eax, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
push ecx
push 0x40
push ebx
push esi
call eax
push ebx
push 0
push esi
call fcn.10004a90
mov eax, dword fs:[0x30]
add esp, 0xc
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x10], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp ecx, edx
je 0x10003104
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10003104
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x811c9dc5
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x100030fd
nop dword [eax + eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x100030e0
cmp esi, 0x820621f3
je 0x10003108
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x100030c6
mov eax, dword [eax]
jmp 0x100030a1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
add eax, edx
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003232
mov esp, ebp
pop ebp
ret
Function at 0x10006ab2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001ace0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1000c422
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10006af4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10006c50
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001ac30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100250f0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000c77d
mov ecx, dword [esi*4 + 0x100250f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10006c49
cmp eax, dword [ecx + edi + 0x24]
jne 0x10006c49
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006c49
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000c77d
add esp, 0x14
test edx, edx
jl 0x10006c49
jg 0x10006bbf
test eax, eax
jb 0x10006c49
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10006c49
jl 0x10006bd9
cmp dword [ebp - 0x1008], eax
ja 0x10006c49
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10006bf7
test ebx, ebx
je 0x10006c30
cmp ecx, edi
jae 0x10006c30
mov al, byte [ecx]
cmp al, 0xd
jne 0x10006c11
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10006c1d
cmp byte [ecx + 1], 0xa
jne 0x10006c1d
inc ecx
jmp 0x10006c1d
movzx eax, al
movsx eax, byte [eax + 0x10024208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10006bf7
cmp edx, ebx
jne 0x10006bf7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10006c4e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10003232
leave
ret
Function at 0x1000a2ec
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1000a32f
call fcn.1000daea
mov dword [eax], 0xf
call fcn.1000dafd
mov dword [eax], 0xd
call fcn.1000ac3b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003232
leave
ret
test eax, eax
jne 0x1000a336
inc eax
jmp 0x1000a323
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 0x1000a321
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1000a323

Function at 0x1000b110
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000b14f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000b14f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000b14f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000b14f
cmp dword [ecx + 0x74], 0xe
jbe 0x1000b14f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000ceee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100250f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000cf2e
cmp byte [ebx], 0xa
jne 0x1000cf2e
or byte [edi + eax + 0x28], 4
jmp 0x1000cf33
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1000d032
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000d015
inc eax
cmp dl, 0xd
je 0x1000cf5f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000cf85
cmp eax, ecx
jae 0x1000cf93
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000cf47
jmp 0x1000d032
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d010
cmp dword [ebp - 0x10], 0
je 0x1000d010
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100250f0]
test byte [eax + edi + 0x28], 0x48
je 0x1000cfea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000cfd5
mov byte [esi], dl
jmp 0x1000cfe6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100250f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000d032
cmp byte [ebp - 1], 0xa
jne 0x1000cff9
cmp esi, ebx
jne 0x1000cff9
mov byte [esi], 0xa
jmp 0x1000d031
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000c79b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000d032
mov byte [esi], 0xd
jmp 0x1000d031
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100250f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000d02f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000d032
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000d03b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100250f0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000d081
cmp word [ebx], dx
jne 0x1000d081
or byte [eax + edi + 0x28], 4
jmp 0x1000d086
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1000d1e9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1000d1c9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000d0c7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000d0fd
cmp eax, edx
jae 0x1000d10b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1000d0a2
jmp 0x1000d1e9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d1c4
cmp dword [ebp - 0x18], 0
je 0x1000d1c4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100250f0]
test byte [eax + edi + 0x28], 0x48
je 0x1000d19a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1000d15e
mov word [esi], cx
jmp 0x1000d195
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100250f0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100250f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100250f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000d1e9
pop eax
cmp word [ebp - 4], ax
jne 0x1000d1aa
cmp esi, ebx
jne 0x1000d1aa
mov word [esi], ax
jmp 0x1000d1e6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000c79b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000d1e9
push 0xd
pop eax
jmp 0x1000d1a5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100250f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000d1e3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000d1e9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret