joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0950
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x58
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp + 0x38], 0x511aa4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x4b09f5
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x20], 1
mov dword [esp], eax
call sym._fileno
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._read
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4b09e0
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x14]
add esp, 0x58
pop ebp
ret 8
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x4b09c3
jmp 0x4b0984
Function at 0x50f650
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp], esi
mov dword [esp + 0x38], 0x511a64
call dbg._Unwind_SjLj_Register
mov ebp, dword [0x51d18c]
test ebp, ebp
jne 0x50f823
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x51d4f8], 0
mov dword [0x51d4fc], 0
mov dword [0x51d500], 0
call sym._getenv
mov dword [esp + 0x58], 8
mov dword [esp + 0x5c], str.obj_size
mov ebx, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 9
mov dword [esp + 0x68], str.obj_count
mov dword [esp + 0x6c], 0x40
test eax, eax
je 0x50f7f2
lea esi, [esi]
xor eax, eax
cmp byte [ebx], 0x3a
mov dword [esp + 8], 0xf
sete al
mov dword [esp], str.glibcxx.eh_pool
add ebx, eax
mov dword [esp + 4], ebx
call sym._memcmp
test eax, eax
jne 0x50f714
cmp byte [ebx + 0xf], 0x2e
je 0x50f77d
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sym._strchr
mov ebx, eax
test eax, eax
jne 0x50f6e8
mov eax, dword [esp + 0x6c]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x60]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x51d500], ebx
test ebx, ebx
jne 0x50f801
mov dword [esp], sym.___tcf_0
call sym._atexit
mov dword [esp], esi
call sym.__Unwind_SjLj_Unregister
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [ebx + 0x10]
mov dword [esp + 8], 8
mov dword [esp + 4], ebp
mov dword [esp], str.obj_size
call sym._memcmp
test eax, eax
jne 0x50f7a6
cmp byte [ebx + 0x18], 0x3d
je 0x50f83a
mov edi, dword [esp + 0x64]
test edi, edi
jne 0x50f7b5
mov ebx, ebp
jmp 0x50f714
mov eax, 9
mov dword [esp + 4], ebp
cmp edi, eax
mov dword [esp], str.obj_count
cmovbe eax, edi
mov dword [esp + 8], eax
call sym._memcmp
test eax, eax
jne 0x50f7ae
cmp edi, 8
jbe 0x50f7ae
cmp byte [ebx + 0x19], 0x3d
mov eax, 9
lea edi, [esp + 0x64]
je 0x50f843
mov ebx, ebp
jmp 0x50f714
mov dword [0x51d500], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sym._malloc
mov dword [0x51d4fc], eax
test eax, eax
je 0x50f881
xor edx, edx
mov dword [0x51d4f8], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x50f761
mov dword [esp], 0x51d4e0
xor edi, edi
mov dword [esp + 0x20], edi
call dbg.__gthr_win32_mutex_init_function
jmp 0x50f681
mov eax, 8
lea edi, [esp + 0x58]
lea edx, [esp + 0x54]
xor ebx, ebx
lea eax, [ebp + eax + 1]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strtoul
mov ebx, dword [esp + 0x54]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x50f871
test dl, dl
jne 0x50f714
test eax, eax
js 0x50f714
mov dword [edi + 8], eax
jmp 0x50f714
xor ecx, ecx
mov dword [0x51d500], ecx
jmp 0x50f761
Function at 0x100018d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
push eax
mov esi, ecx
call fcn.100239d0
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10001975
mov ecx, dword [ebp - 0x1fc]
lea edx, [ebp - 0x200]
push edx
lea eax, [ebp - 0x1f8]
push eax
push ebx
push ebx
push edi
push ecx
call esi
test eax, eax
jne 0x10001975
push 0x1f4
push eax
lea edx, [ebp - 0x1f8]
push edx
call fcn.100239d0
mov eax, dword [ebp - 0x1fc]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x1f8]
push edx
push 0
push 0
push edi
push eax
call esi
test eax, eax
jne 0x100019cc
push 0x1f4
push eax
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.100239d0
mov edx, dword [ebp - 0x1fc]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x100019e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
push ecx
push 1
push 0
push eax
push connect
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
lea eax, [ebp - 0x108]
jne 0x10001a53
lea edx, [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x10001a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
push ecx
push 1
push 0
push eax
push connect
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
lea eax, [ebp - 0x108]
jne 0x10001ae3
lea edx, [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10002a10
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10002a20
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x10002a2c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10002a36
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10002a40
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x10002a4a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10002a54
or eax, 4
shr ecx, 1
test cl, 1
je 0x10002a5e
or eax, 2
test cl, 2
je 0x10002a66
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10002b20
test al, 1
je 0x10002b2d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10002b20
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10002a14
pop edi
pop ebx
ret

Function at 0x10002b50
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax]
or esi, 0xffffffff
mov dword [ebp - 0x408], edi
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.1002211a
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x10002bc0
jmp 0x10002ba0
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x10002ba0
mov edi, dword [ebp - 0x408]
cmp eax, 0x400
je 0x10002b74
push edi
call fcn.10022567
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
not eax
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret 8
Function at 0x10002bf0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10040890
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.1002185b
add esp, 0xc
test eax, eax
je 0x10002c21
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.10020db2
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10002c4d
mov edx, dword [ebp - 4]
push edx
call fcn.10022567
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.1002211a
add esp, 0x10
test eax, eax
je 0x10002caa
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10002c91
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10002c70
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.1002211a
add esp, 0x10
test eax, eax
jne 0x10002c66
pop ebx
push edi
call fcn.10020bc3
mov edx, dword [ebp - 4]
push edx
call fcn.10022567
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x10002cd0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10040888
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.10020127
add esp, 0xc
test eax, eax
je 0x10002d01
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.10020db2
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10002d2d
mov edx, dword [ebp - 4]
push edx
call fcn.10022567
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.1002211a
add esp, 0x10
test eax, eax
je 0x10002d8a
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10002d71
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10002d50
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.1002211a
add esp, 0x10
test eax, eax
jne 0x10002d46
pop ebx
push edi
call fcn.10020bc3
mov edx, dword [ebp - 4]
push edx
call fcn.10022567
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10003700
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x10003765
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.100034b0
mov ecx, esi
call fcn.10003560
mov ecx, esi
call fcn.10003640
cmp dword [ebp + 0x1c], 0x10
jb 0x10003791
mov eax, dword [ebp + 8]
push eax
call fcn.1002004f
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x100039a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call fcn.10023130
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003b00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
push esi
push 0xc3
push edi
call fcn.100239d0
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003bf0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov ecx, 0xd6
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x1004089c]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10003c10
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f688d43
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.1001ad20
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f4]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0x2f0]
push edx
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
push eax
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x10003cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0xdd
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x100408bc]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x16
jb 0x10003d20
mov byte [ebp - 0x10a], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.1002029d
add esp, 0xc
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.100239d0
add esp, 0xc
jmp dword [pe_dos_header]
Function at 0x10003da0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c3d6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov ecx, 0xc8
xor eax, eax
jmp 0x10003df0
mov dl, byte [eax + 0x100408d4]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x134], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x10003df0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov edx, eax
push edx
mov byte [ebp - 0x124], bl
call fcn.1002029d
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
call fcn.10021635
add esp, 4
lea ecx, [ebp - 0x1e0]
push ecx
call fcn.10013ce0
push 0x12
lea ecx, [ebp - 0x118]
lea esi, [ebp - 0x1dc]
mov dword [ebp - 4], ebx
call fcn.100156c0
test eax, eax
jne 0x10003e84
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10003ea5
or eax, 4
jmp 0x10003ea5
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1a8]
lea ecx, [ebp + ecx - 0x1e0]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
push eax
call fcn.10001580
mov dword [ebp - 0x120], 0x6f727245
mov dword [ebp - 0x11c], 0x203a72
push edi
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x1e0]
push edx
mov byte [ebp - 4], 1
call fcn.1001add0
add esp, 0xc
push eax
call fcn.1001add0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.100130a0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x10003f17
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10003f17
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x10003f36
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x10003f2f
or eax, 4
push ebx
push eax
call fcn.10001580
xor eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
call fcn.10015760
test eax, eax
jne 0x10003f7f
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10003f78
or eax, 4
push ebx
push eax
call fcn.10001580
call fcn.10003cf0
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0xffffffff
call fcn.10013f60
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1001f15d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10003ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x101abc40
call fcn.100239d0
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x101abc40
mov dl, byte [ecx + eax + 0x101abc40]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x101abc40], dl
inc eax
cmp eax, 0x100
jl 0x10004012
mov eax, 0x101abc40
pop ebp
ret
Function at 0x10004040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bec6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x100408ec]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x100408e8]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10004264
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x100040c0
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10004175
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004103
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10016dc0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004130
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10015340
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004194
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x10004175
mov ecx, dword [ebp - 0x63c]
push ecx
call fcn.1002004f
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x10004175
cmp word [ebx], di
je 0x10004264
mov esi, dword [ebp - 0x660]
jmp 0x100040c0
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100041b6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10016dc0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100041e0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.100151b0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x10004220
mov ecx, dword [ebp - 0x658]
push ecx
call fcn.1002004f
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x10004234
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call fcn.10022497
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10004260
mov eax, dword [ebp - 0x63c]
push eax
call fcn.1002004f
add esp, 4
mov al, 1
jmp 0x10004266
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret