joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001260
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [0x1001c024]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
push edi
mov dword [esp + 8], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov word [esp + 0x3c], cx
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
cmp dword [esp + 0x6c], eax
je 0x10001398
lea edx, [esp + 0xc]
push edx
call fcn.1000475c
lea eax, [esp + 0x10]
push eax
call fcn.10004735
push eax
push str._Y__m__d__H:_M:_S
lea ecx, [esp + 0x24]
push 0x14
push ecx
call fcn.10004b53
lea eax, [esp + 0x2c]
add esp, 0x18
lea edx, [eax + 2]
jmp 0x10001320
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001320
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x21c]
add eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x40]
push str._T:_08X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x10001370
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001370
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x21c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x10]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100013a0
sub eax, edx
sar eax, 1
lea edx, [eax - 1]
test edx, edx
jl 0x100013de
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + edx*2]
lea eax, [eax + edx*2]
mov edi, 0xd
cmp di, cx
je 0x100013d4
mov edi, 0xa
cmp di, cx
jne 0x100013de
xor ecx, ecx
sub edx, 1
mov word [eax], cx
jns 0x100013b6
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
push 0x10019ea0
push edx
push eax
call fcn.100047b8
mov edx, dword [esi + 0x10]
mov eax, edx
add esp, 0xc
lea edi, [eax + 2]
jmp 0x10001400
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001400
sub eax, edi
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x21c]
add eax, eax
push eax
push edx
push ecx
call ebx
mov edx, dword [esi + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x64]
pop edi
pop ebx
xor ecx, esp
call fcn.1000446e
add esp, 0x60
ret 4
Function at 0x10003f50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x244
mov eax, dword [0x1001c024]
xor eax, esp
mov dword [esp + 0x23c], eax
xor eax, eax
push esi
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x42]
push edx
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
mov word [esp + 0x44], cx
call fcn.100064e0
lea eax, [esp + 0x44]
add esp, 0xc
push eax
call fcn.10004080
mov esi, eax
movzx ecx, dx
xor eax, eax
add esp, 4
or eax, ecx
mov edi, edx
mov dword [esp + 0xc], edi
je 0x10003fd4
push edi
push esi
push 0x18
jmp 0x1000404b
lea ecx, [esp + 0x38]
push ecx
push 0x14
lea edx, [esp + 0x18]
push edx
push str.1.0.0.0
push str.Version
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
ja 0x10004011
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x1f0015
push edi
push esi
push 0x20
jmp 0x1000404b
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebx + 8]
push ecx
lea edx, [ebx + 4]
push edx
push ebx
lea eax, [esp + 0x20]
push str._d._d._d._d
push eax
call fcn.100055d8
add esp, 0x18
cmp eax, 4
je 0x1000405d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x26000e
push edi
push esi
push 0x27
push str..AppVersion.cpp
push str._S__d_nRet0x_016llX_n
call fcn.10004200
add esp, 0x14
mov ecx, dword [esp + 0x244]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000446e
add esp, 0x244
ret
Function at 0x10004290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push ecx
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x100042ee
push eax
push 0x19
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.10004200
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
add esi, edi
adc edi, 0x1a0013
push edi
push esi
push 0x1b
jmp 0x10004442
test eax, eax
je 0x10004322
push eax
push 0x20
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.10004200
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x210015
push edi
push esi
push 0x22
jmp 0x10004442
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100043c8
cmp dword [esp + 0x24], esi
je 0x100043c8
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x10004385
push eax
push 0x2b
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.10004200
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x2c0013
push edi
push esi
push 0x2d
jmp 0x10004442
test eax, eax
je 0x100043b9
push eax
push 0x32
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.10004200
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x330015
push edi
push esi
push 0x34
jmp 0x10004442
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [eax], edx
jmp 0x10004454
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x14]
push ebp
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x10004413
push eax
push 0x3f
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.10004200
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x400013
push edi
push esi
push 0x41
jmp 0x10004442
test eax, eax
je 0x10004454
push eax
push 0x46
push str..RegMisc.cpp
push str._S__d_dwErrNo0x_x_n
call fcn.10004200
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
add esi, edi
adc edi, 0x470015
push edi
push esi
push 0x48
push str..RegMisc.cpp
push str._S__d_nRet0x_016llX_n
call fcn.10004200
add esp, 0x14
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004463
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x1000446e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c024]
jne 0x10004478
repz ret
jmp fcn.100058f6
Function at 0x1000c8d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.1000bc0a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000bbbf
add esp, 0xc
mov dword [ebp - 0x33c], eax
cld
invalid
invalid
call fcn.1000bbfa
mov eax, 0x680bbc3a
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
push 0xfffffc
je 0x1000c8ee
cmp dword [ebp - 0x398], 0
je 0x1000cab8
cmp dword [ebp + 0xc], 1
je 0x1000cab8
cmp dword [ebp + 0xc], 8
jne 0x1000ca80
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.1000bc0a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000bbbf
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.1000bbfa
popfd
and eax, 0xb5ffe96c
push 0x8dfffff9
test dword [eax - 7], eax
invalid
call fcn.1000bbfa
scasd eax, dword es:[edi]
ror dword [edi + 0x3c], 1
and byte [ebp - 0x544], 0
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
Function at 0x1000f882
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.10007403
and dword [ebp - 4], 0
cmp dword [0x1001df58], 0
mov ebx, eax
jne 0x1000f933
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000f9e4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000f9e4
push eax
call fcn.10007391
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001df58], eax
call esi
push eax
call fcn.10007391
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001df5c], eax
call esi
push eax
call fcn.10007391
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001df60], eax
call esi
push eax
call fcn.10007391
pop ecx
mov dword [0x1001df68], eax
test eax, eax
je 0x1000f933
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10007391
pop ecx
mov dword [0x1001df64], eax
mov eax, dword [0x1001df64]
cmp eax, ebx
je 0x1000f98b
cmp dword [0x1001df68], ebx
je 0x1000f98b
push eax
call fcn.1000740c
push dword [0x1001df68]
mov esi, eax
call fcn.1000740c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000f98b
test edi, edi
je 0x1000f98b
call esi
test eax, eax
je 0x1000f982
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000f982
test byte [ebp - 0xc], 1
jne 0x1000f98b
or dword [ebp + 0x10], 0x200000
jmp 0x1000f9c4
mov eax, dword [0x1001df5c]
cmp eax, ebx
je 0x1000f9c4
push eax
call fcn.1000740c
pop ecx
test eax, eax
je 0x1000f9c4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f9c4
mov eax, dword [0x1001df60]
cmp eax, ebx
je 0x1000f9c4
push eax
call fcn.1000740c
pop ecx
test eax, eax
je 0x1000f9c4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001df58]
call fcn.1000740c
pop ecx
test eax, eax
je 0x1000f9e4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000f9e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x408ecc
nop
mov ecx, 0x3ec40f42
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x4eb534ff
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x100d99e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1014ac60
sub esp, 0x68
mov eax, dword [0x1036e400]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x8c]
push edi
mov edi, dword [esp + 0x7c]
push 0x54
xor ebx, ebx
lea edx, [esp + 0x24]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ecx
call fcn.100dc309
push 0x68
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x4000
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call fcn.100de77b
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x1014acff
push 0x17f6
push str..pdu.c
push 0x66
push 0x40003
call fcn.100de447
add esp, 0x10
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x66]
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100dba62
add esp, 0x68
ret
push 0x68
push ebx
push esi
call fcn.100dc309
mov dword [esi], edi
mov eax, dword [edi]
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0x27]
mov dl, byte [esp + 0x26]
mov byte [edi], cl
mov byte [edi + 2], ah
mov byte [edi + 3], al
mov eax, dword [esp + 0x20]
mov byte [edi + 1], dl
xor ecx, ecx
lea ebx, [esi + 4]
mov dword [ebx], ecx
mov dword [esi + 0x64], ecx
add dword [eax], 6
mov eax, dword [ebp]
add esp, 0xc
add edi, 6
cmp eax, ecx
jne 0x1014ad49
mov dword [ebp], esi
mov dword [esi + 0x60], ecx
jmp 0x1014ad5e
cmp dword [eax + 0x64], ecx
je 0x1014ad58
mov edi, edi
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x64], ecx
jne 0x1014ad50
mov dword [eax + 0x64], esi
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.100db1f7
movzx ebp, ax
mov ecx, 0x19a
add esp, 8
cmp bp, cx
jne 0x1014ad96
push 0x1816
push str..pdu.c
push str.DPParsePresDataItem.
push ecx
push 0x40003
call fcn.100dac0c
add esp, 0x14
mov ecx, dword [esi]
mov dl, byte [ecx + 5]
test dl, 1
je 0x1014ada6
lea eax, [esp + 0x20]
jmp 0x1014adb2
mov eax, dword [esp + 0x10]
test bp, bp
jne 0x1014adb2
lea eax, [esi + 0xc]
mov ebp, dword [ecx]
sub ebp, 2
cmp word [esp + 0x94], 0
je 0x1014ae31
test dl, 2
je 0x1014ae31
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x90]
push edx
add eax, 6
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebx
push edi
mov dword [esp + 0x30], 0
call fcn.100deb8b
movzx edi, ax
add esp, 0x20
test di, di
je 0x1014ae28
push 0x1832
push str..pdu.c
push edi
push 0x40003
call fcn.100de447
add esp, 0x10
mov ax, di
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100dba62
add esp, 0x68
ret
mov dword [esi + 8], 1
jmp 0x1014ae38
mov dword [esi + 8], 2
mov eax, dword [esp + 0x14]
add dword [eax], ebp
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100dba62
add esp, 0x68
ret
Function at 0x100dba62
Capabilities:
Terminate process

Disassembly:
jmp 0x1021a3b0
jmp fcn.1023a2b0
cmp ecx, dword [0x1036e400]
jne 0x1021a3ba
repz ret
jmp 0x100dc593
Function at 0x100ddd4e
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x10141380
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x18]
sub edx, dword [ecx]
shr eax, 0x10
add eax, 4
cmp eax, edx
jbe 0x101413cb
push 0x4a1
push str..pdu.c
push 0x68
push 0x40003
call fcn.100de447
add esp, 0x10
mov eax, 0x68
add esp, 8
ret
movzx eax, word [esp + 2]
movzx edx, byte [esp + 3]
mov byte [esp + 3], al
movzx eax, word [esp + 4]
mov byte [esp + 2], dl
movzx edx, byte [esp + 5]
mov byte [esp + 5], al
movzx eax, word [esp + 6]
mov byte [esp + 4], dl
movzx edx, byte [esp + 7]
mov byte [esp + 7], al
mov eax, dword [esp + 0x10]
mov byte [esp + 6], dl
mov edx, dword [esp]
mov dword [eax], edx
mov edx, dword [esp + 4]
mov dword [eax + 4], edx
add dword [ecx], 8
xor eax, eax
add esp, 8
ret

Function at 0x100de6f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x10138a00
sub esp, 0x7c
mov eax, dword [0x1036e400]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
push 0x54
xor ebp, ebp
lea ecx, [esp + 0x38]
push ebp
push ecx
mov dword [esp + 0x1c], eax
call fcn.100dc309
mov edi, 1
push edi
push ebp
push esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0x4000
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebp
call fcn.100db66b
lea edx, [esp + 0x4c]
push edx
mov ebx, eax
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.100dd939
add esp, 0x2c
test eax, eax
jl 0x10138b43
mov eax, 0xfffe
cmp word [esp + 0x1c], ax
jne 0x10138b43
mov ecx, 0xe000
cmp word [esp + 0x1e], cx
jne 0x10138b43
mov eax, dword [esp + 0x20]
cmp eax, ebp
jbe 0x10138ab0
push edi
push eax
push esi
call fcn.100db66b
add esp, 0xc
mov edi, edi
lea edx, [esp + 0x34]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.100dd939
add esp, 0x14
test eax, eax
jl 0x10138af5
mov eax, 0xfffe
cmp word [esp + 0x1c], ax
jne 0x10138af5
mov ax, word [esp + 0x1e]
mov ecx, 0xe000
cmp ax, cx
jne 0x10138af9
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x10138aa3
push 0
jmp 0x10138b44
mov edx, 0xe0dd
cmp ax, dx
jne 0x10138af5
cmp dword [esp + 0x20], ebp
je 0x10138b0e
mov ebp, 2
push edi
push 0
push esi
call fcn.100db66b
push 0
mov edi, eax
push ebx
push esi
sub edi, ebx
call fcn.100db66b
mov eax, dword [esp + 0x28]
add esp, 0x18
mov dword [eax], edi
pop edi
pop esi
mov ax, bp
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100dba62
add esp, 0x7c
ret
push ebp
push ebx
push esi
call fcn.100db66b
mov ecx, dword [esp + 0x94]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 2
call fcn.100dba62
add esp, 0x7c
ret
Function at 0x1012a330
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1036e400]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push str._s:_
lea edx, [ebp - 0x28]
push edx
call fcn.100dc809
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1012a37b
xor eax, eax
jmp 0x1012a4b7
cmp dword [ebp - 4], 1
jne 0x1012a38b
mov eax, 1
jmp 0x1012a4b7
cmp dword [ebp - 4], 3
jne 0x1012a3a3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x1012a428
cmp dword [ebp - 4], 2
jne 0x1012a3b8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 2
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x1012a428
cmp dword [ebp - 4], 4
jne 0x1012a3cd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x1012a428
cmp dword [ebp - 4], 5
jne 0x1012a3e2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 8
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x1012a428
cmp dword [ebp - 4], 6
jne 0x1012a3f7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 0x10
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x1012a428
mov ecx, dword [ebp - 4]
push ecx
push str.New_drive_type:__d
lea edx, [ebp - 0xa8]
push edx
call fcn.100dc809
add esp, 0xc
push 0x10000
push str.Drive_Type
lea eax, [ebp - 0xa8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x61
je 0x1012a454
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x62
je 0x1012a454
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
je 0x1012a454
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x42
jne 0x1012a466
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
or ecx, 0x100
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
jmp 0x1012a4b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
and ecx, 1
je 0x1012a481
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
or eax, 0x100
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x1012a4b5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
and eax, 8
jne 0x1012a4b5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
and edx, 2
jne 0x1012a4b5
lea eax, [ebp - 0x28]
push eax
call fcn.100dc72d
add esp, 4
test eax, eax
je 0x1012a4b5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 0x100
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100dba62
mov esp, ebp
pop ebp
ret