joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101433e0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x164
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
push 0x100
lea eax, [esp + 0x74]
push 0
push eax
call fcn.101f69f0
push 0x6d1
push 0
push 0x102f3872
call fcn.101f69f0
mov eax, 0x102f3912
lea ebx, [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], eax
mov esi, 0x20
sub ebx, 0x480
movsx edi, word [esi*2 + 0x102f35b8]
cmp edi, 0xffffffff
je 0x1014353d
cmp esi, 0x140
jb 0x101434da
cmp esi, 0x14e
ja 0x101434da
mov dword [esp + 0x14], 0x60
mov dword [esp + 0x18], 0x61
mov dword [esp + 0x1c], 0x62
mov dword [esp + 0x20], 0x63
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], 0x65
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x34], 0x68
mov dword [esp + 0x38], 0x69
mov dword [esp + 0x3c], 0x6e
mov dword [esp + 0x40], 0x6f
mov dword [esp + 0x44], 0x6a
mov dword [esp + 0x48], 0x6d
mov dword [esp + 0x4c], 0x6b
mov ebp, dword [ebx]
jmp 0x101434e5
push 1
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x10143516
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x10143539
push 0
push 0
push 5
push dword [esp + 0x1c]
lea eax, [esp + 0x60]
push 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x10]
inc esi
add eax, 5
add ebx, 4
mov dword [esp + 0x10], eax
cmp esi, 0x15c
jle 0x10143435
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101f469d
add esp, 0x164
ret
Function at 0x10143820
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0x18], eax
push 0x102f31a0
push 0x102f1ea0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x10143867
push 0x1027ec8c
push 0x10008
call fcn.10142cf0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101f469d
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
call ebx
mov dword [0x102f3f80], eax
test eax, eax
jne 0x101438a2
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.10142cf0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101f469d
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push eax
call edi
push str.ChangeWindowMessageFilterEx
push dword [0x102f3f80]
mov dword [0x102f3f84], eax
call edi
push str.EnableNonClientDpiScaling
push dword [0x102f3f80]
mov dword [0x102f3f88], eax
call edi
push str.SetProcessDpiAwarenessContext
push dword [0x102f3f80]
mov dword [0x102f3f8c], eax
call edi
push str.GetDpiForWindow
push dword [0x102f3f80]
mov dword [0x102f3f90], eax
call edi
push str.AdjustWindowRectExForDpi
push dword [0x102f3f80]
mov dword [0x102f3f94], eax
call edi
push str.GetSystemMetricsForDpi
push dword [0x102f3f80]
mov dword [0x102f3f98], eax
call edi
push str.dinput8.dll
mov dword [0x102f3f9c], eax
call ebx
mov dword [0x102f3f68], eax
test eax, eax
je 0x1014393f
push str.DirectInput8Create
push eax
call edi
mov dword [0x102f3f6c], eax
push esi
mov dword [esp + 0xc], str.xinput1_4.dll
xor esi, esi
mov dword [esp + 0x10], str.xinput1_3.dll
mov eax, str.xinput1_4.dll
mov dword [esp + 0x14], str.xinput9_1_0.dll
mov dword [esp + 0x18], str.xinput1_2.dll
mov dword [esp + 0x1c], str.xinput1_1.dll
mov dword [esp + 0x20], 0
push eax
call ebx
mov dword [0x102f3f74], eax
test eax, eax
jne 0x1014398e
mov eax, dword [esp + esi*4 + 0x10]
inc esi
test eax, eax
jne 0x10143977
jmp 0x101439ad
push str.XInputGetCapabilities
push eax
call edi
push str.XInputGetState
push dword [0x102f3f74]
mov dword [0x102f3f78], eax
call edi
mov dword [0x102f3f7c], eax
push str.dwmapi.dll
call ebx
mov dword [0x102f3fa0], eax
pop esi
test eax, eax
je 0x10143a01
push str.DwmIsCompositionEnabled
push eax
call edi
push str.DwmFlush
push dword [0x102f3fa0]
mov dword [0x102f3fa4], eax
call edi
push str.DwmEnableBlurBehindWindow
push dword [0x102f3fa0]
mov dword [0x102f3fa8], eax
call edi
push str.DwmGetColorizationColor
push dword [0x102f3fa0]
mov dword [0x102f3fac], eax
call edi
mov dword [0x102f3fb0], eax
push str.shcore.dll
call ebx
mov dword [0x102f3fb4], eax
test eax, eax
je 0x10143a30
push str.SetProcessDpiAwareness
push eax
call edi
push str.GetDpiForMonitor
push dword [0x102f3fb4]
mov dword [0x102f3fb8], eax
call edi
mov dword [0x102f3fbc], eax
push str.ntdll.dll
call ebx
mov dword [0x102f3fc0], eax
test eax, eax
je 0x10143a4d
push str.RtlVerifyVersionInfo
push eax
call edi
mov dword [0x102f3fc4], eax
mov ecx, dword [esp + 0x20]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.101f469d
add esp, 0x1c
ret
Function at 0x10145c10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x102f409c], 0
mov dword [esp], str.libOSMesa.dll
mov dword [esp + 4], str.OSMesa.dll
mov dword [esp + 8], 0
je 0x10145c52
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.101f469d
add esp, 0x10
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov eax, str.libOSMesa.dll
push eax
call edi
mov ecx, eax
mov dword [0x102f409c], ecx
test ecx, ecx
jne 0x10145ca2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x10145c61
test ecx, ecx
jne 0x10145ca2
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.1013e230
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.101f469d
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push ecx
call esi
push str.OSMesaCreateContextAttribs
push dword [0x102f409c]
mov dword [0x102f40a0], eax
call esi
push str.OSMesaDestroyContext
push dword [0x102f409c]
mov dword [0x102f40a4], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x102f409c]
mov dword [0x102f40a8], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x102f409c]
mov dword [0x102f40ac], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x102f409c]
mov dword [0x102f40b0], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x102f409c]
mov dword [0x102f40b4], eax
call esi
cmp dword [0x102f40a0], 0
mov dword [0x102f40b8], eax
je 0x10145d68
cmp dword [0x102f40a8], 0
je 0x10145d68
cmp dword [0x102f40ac], 0
je 0x10145d68
cmp dword [0x102f40b0], 0
je 0x10145d68
cmp dword [0x102f40b4], 0
je 0x10145d68
test eax, eax
je 0x10145d68
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.101f469d
add esp, 0x10
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.1013e230
mov eax, dword [0x102f409c]
add esp, 8
test eax, eax
je 0x10145d94
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x102f409c], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.101f469d
add esp, 0x10
ret
Function at 0x1014d4c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x1014d5b3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x1014d4d6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10171c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, word [esp + 0x30]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x2c]
mov dword [esp + 0x2c], eax
movsx eax, word [esp + 0x28]
mov dword [esp + 0x28], eax
movsx eax, word [esp + 0x24]
mov dword [esp + 0x24], eax
movsx eax, word [esp + 0x20]
mov dword [esp + 0x20], eax
movsx eax, word [esp + 0x1c]
mov dword [esp + 0x1c], eax
movsx eax, word [esp + 0x18]
mov dword [esp + 0x18], eax
movsx eax, word [esp + 0x14]
mov dword [esp + 0x14], eax
jmp sym.project.dll_pixman_image_composite32
Function at 0x1017ac80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x8c]
push edi
push ebx
mov dword [esp + 0x28], ebx
call fcn.10176750
mov eax, dword [ebx + 0x74]
add esp, 4
mov ecx, dword [ebx + 0x68]
movsx edx, word [esp + 0x84]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, ecx
sar ecx, 0x16
sar eax, 0x18
and ecx, 3
movzx ebx, al
shl ebx, cl
movsx ecx, word [esp + 0x88]
shl edx, 0x10
shl ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edi, edi
je 0x1017adb9
add esi, 0x14
push ebp
xor eax, eax
add ecx, dword [esi - 0xc]
push ebx
cmovns eax, ecx
mov dword [esp + 0x24], ecx
push eax
call sym.project.dll_pixman_sample_ceil_y
mov ecx, dword [esi]
mov ebp, eax
add ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, ecx
sar edx, 0x10
mov dword [esp + 0x1c], ecx
cmp edx, eax
jl 0x1017ad29
mov ecx, eax
shl ecx, 0x10
dec ecx
push ebx
push ecx
call sym.project.dll_pixman_sample_floor_y
add esp, 8
mov dword [esp + 0x24], eax
cmp eax, ebp
jl 0x1017ada8
push dword [esp + 0x1c]
mov ecx, dword [esi - 8]
lea eax, [esp + 0x58]
add ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x28]
mov ecx, dword [esi - 0x14]
add ecx, dword [esp + 0x20]
push ecx
push ebp
push ebx
push eax
call sym.project.dll_pixman_edge_init
mov eax, dword [esi]
add eax, dword [esp + 0x2c]
push eax
mov eax, dword [esi - 4]
add eax, dword [esp + 0x34]
push eax
mov eax, dword [esi - 0xc]
add eax, dword [esp + 0x34]
push eax
mov eax, dword [esi - 0x10]
add eax, dword [esp + 0x3c]
push eax
push ebp
lea eax, [esp + 0x5c]
push ebx
push eax
call sym.project.dll_pixman_edge_init
push dword [esp + 0x5c]
lea eax, [esp + 0x68]
push ebp
push eax
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x70]
call sym.project.dll_pixman_rasterize_edges
add esp, 0x4c
mov ecx, dword [esp + 0x10]
add esi, 0x18
sub edi, 1
jne 0x1017acf4
pop ebp
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101f469d
add esp, 0x70
ret
Function at 0x101ef6e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x101ef865
cmp dword [esi + 0x20], 0
je 0x101ef865
cmp dword [esi + 0x24], 0
je 0x101ef865
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x101ef865
cmp dword [eax], esi
jne 0x101ef865
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x101ef745
cmp eax, 0x39
je 0x101ef745
cmp eax, 0x45
je 0x101ef745
cmp eax, 0x49
je 0x101ef745
cmp eax, 0x5b
je 0x101ef745
cmp eax, 0x67
je 0x101ef745
cmp eax, 0x71
je 0x101ef745
cmp eax, 0x29a
jne 0x101ef865
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x101ef77e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x101ef7a0
call fcn.101f0510
jmp 0x101ef7a5
call fcn.101f0290
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.101f1840
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.101f69f0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x1028ef8a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x1028ef88]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x1028ef8c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x1028ef8e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x101fa5fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.101f4fb0
mov eax, dword [0x102d94c0]
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.10210d36
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101fa63c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101fa798
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101f5160
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 + 0x102f51c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10210f45
mov ecx, dword [esi*4 + 0x102f51c0]
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 0x101fa791
cmp eax, dword [ecx + edi + 0x24]
jne 0x101fa791
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 0x101fa791
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10210f45
add esp, 0x14
test edx, edx
jl 0x101fa791
jg 0x101fa707
test eax, eax
jb 0x101fa791
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101fa791
jl 0x101fa721
cmp dword [ebp - 0x1008], eax
ja 0x101fa791
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101fa73f
test ebx, ebx
je 0x101fa778
cmp ecx, edi
jae 0x101fa778
mov al, byte [ecx]
cmp al, 0xd
jne 0x101fa759
lea eax, [edi - 1]
cmp ecx, eax
jae 0x101fa765
cmp byte [ecx + 1], 0xa
jne 0x101fa765
inc ecx
jmp 0x101fa765
movzx eax, al
movsx eax, byte [eax + 0x102d9678]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101fa73f
cmp edx, ebx
jne 0x101fa73f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101fa796
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101f469d
leave
ret
Function at 0x1020be7c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102d94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x102956f0
push esi
call fcn.10218057
pop ecx
pop ecx
test eax, eax
jne 0x1020beaa
xor al, al
jmp 0x1020bf27
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1020bbbd
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1020bee4
push dword [ebp - 0x210]
call fcn.102067ed
xor al, al
jmp 0x1020bf25
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1020beea
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1020bf0a
push edx
call fcn.1020bdb3
pop ecx
test al, al
je 0x1020bed5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1020bf18
mov bl, 1
push dword [ebp - 0x210]
call fcn.102067ed
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101f469d
leave
ret

Function at 0x1020d53f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1020d57e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1020d57e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1020d57e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1020d57e
cmp dword [ecx + 0x74], 0xe
jbe 0x1020d57e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1020ec2c
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 + 0x102f51c0]
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 0x1020ec6c
cmp byte [ebx], 0xa
jne 0x1020ec6c
or byte [edi + eax + 0x28], 4
jmp 0x1020ec71
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 0x1020ed70
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1020ed53
inc eax
cmp dl, 0xd
je 0x1020ec9d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1020ecc3
cmp eax, ecx
jae 0x1020ecd1
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 0x1020ec85
jmp 0x1020ed70
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 0x1020ed4e
cmp dword [ebp - 0x10], 0
je 0x1020ed4e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x102f51c0]
test byte [eax + edi + 0x28], 0x48
je 0x1020ed28
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1020ed13
mov byte [esi], dl
jmp 0x1020ed24
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x102f51c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1020ed70
cmp byte [ebp - 1], 0xa
jne 0x1020ed37
cmp esi, ebx
jne 0x1020ed37
mov byte [esi], 0xa
jmp 0x1020ed6f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10210f63
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1020ed70
mov byte [esi], 0xd
jmp 0x1020ed6f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x102f51c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1020ed6d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1020ed70
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1020ed79
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 + 0x102f51c0]
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 0x1020edbf
cmp word [ebx], dx
jne 0x1020edbf
or byte [eax + edi + 0x28], 4
jmp 0x1020edc4
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 0x1020ef27
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 0x1020ef07
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1020ee05
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1020ee3b
cmp eax, edx
jae 0x1020ee49
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 0x1020ede0
jmp 0x1020ef27
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 0x1020ef02
cmp dword [ebp - 0x18], 0
je 0x1020ef02
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102f51c0]
test byte [eax + edi + 0x28], 0x48
je 0x1020eed8
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 0x1020ee9c
mov word [esi], cx
jmp 0x1020eed3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102f51c0]
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 + 0x102f51c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102f51c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1020ef27
pop eax
cmp word [ebp - 4], ax
jne 0x1020eee8
cmp esi, ebx
jne 0x1020eee8
mov word [esi], ax
jmp 0x1020ef24
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10210f63
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1020ef27
push 0xd
pop eax
jmp 0x1020eee3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102f51c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1020ef21
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1020ef27
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10213ab5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10296f00
push 0x10296ef8
push str.FlsAlloc
push 0x1f
call fcn.102138e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10213ae9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10232414]
call esi
jmp 0x10213aef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10213b33
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10296f10
push 0x10296f08
push str.FlsGetValue
push 0x21
call fcn.102138e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10213b6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10232414]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10213b72
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10296f18
push 0x10296f10
push str.FlsSetValue
push 0x22
call fcn.102138e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10213bac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10232414]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]