joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c4c8
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x1006d1fc]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x818]
lea eax, [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x81c]
mov ebp, 0x400
push edi
mov edi, dword [esp + 0x828]
push ebp
push 0
push eax
call fcn.10022500
push esi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.10008840
add esp, 0x1c
lea eax, [esp + 0x10]
neg edi
sbb edi, edi
push eax
push 0x20019
push 0
lea eax, [esp + 0x24]
add edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, eax
test ecx, ecx
je 0x1001c54d
xor eax, eax
cmp ecx, 2
sete al
jmp 0x1001c59b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
lea eax, [esp + 0x41c]
push eax
push 0x1005a366
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [esp + 0x10]
test eax, eax
je 0x1001c57f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1001c59b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x418]
push eax
push ebx
call fcn.10029a6e
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001efb2
add esp, 0x80c
ret

Function at 0x1001cf20
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x10045c39
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1006d1fc]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1005c404
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10031039
add esp, 0xc
test eax, eax
jne 0x1001d01c
push dword [ebp - 0x18]
call fcn.10023ed7
cmp dword [0x1006f1c4], 0
pop ecx
je 0x1001cf90
xor eax, eax
inc eax
jmp 0x1001d01e
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x1001d01c
test eax, eax
je 0x1001d01c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000c863
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.JavaDeployReg.log
mov dword [ebp - 4], ebx
call fcn.1000c863
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.100187bf
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x1001cfe5
call fcn.1000e502
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001cff5
mov ecx, esi
call fcn.1000d527
mov ebx, eax
push 0x1005c430
push ebx
push 0x1006f1c4
call fcn.1002a84f
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x1001d017
mov ecx, esi
call fcn.1000e502
lea eax, [edi + 1]
jmp 0x1001d01e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.1001efb2
add ebp, 0x108
leave
ret
Function at 0x1001d4cd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.1001d7d2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push dword [0x1006d1f0]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001d50c
xor eax, eax
jmp 0x1001d531
push edi
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001d526
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1001d535
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.1001f210
mov eax, dword [0x1006d1fc]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1028]
mov ebp, 0x800
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.10022500
push ebp
lea eax, [esp + 0x82c]
push esi
push eax
call fcn.10022500
push ebx
call fcn.10031062
add esp, 0x1c
test eax, eax
je 0x1001d5ce
push eax
push dword [esp + 0x1030]
push edi
call fcn.10024462
add esp, 0xc
test eax, eax
je 0x1001d745
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001efb2
add esp, 0x1010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x1006d1ec]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d5b3
lea eax, [esp + 0x102c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1001d729
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x1005dc74
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001d649
xor esi, esi
inc esi
jmp 0x1001d729
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d641
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001d641
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
call fcn.10029a6e
pop ecx
pop ecx
test eax, eax
js 0x1001d745
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001d641
push dword [esp + 0x10]
call ebp
call fcn.1001c899
test eax, eax
jne 0x1001d745
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x1006d1ec]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d5b3
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1001d736
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x1001d5b5
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.1001d4cd
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x1001d5b5
Function at 0x1001d74d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
xor esi, esi
inc edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call fcn.10031062
pop ecx
test eax, eax
je 0x1001d783
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10024462
add esp, 0xc
test eax, eax
jne 0x1001d7a2
mov eax, edi
jmp 0x1001d7ce
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [0x1006d1f0]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001d7a6
xor eax, eax
jmp 0x1001d7ce
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
cmove esi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1001e3c3
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1006d1fc]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10022500
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1000ec43
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1001e345
push 0x1005f424
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.100244bc
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10022500
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e468
sub ecx, edx
cmp ecx, 6
jbe 0x1001e48f
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.10029a6e
pop ecx
pop ecx
test eax, eax
jne 0x1001e48f
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001e496
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x1005ded6
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1000ec24
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10021f80
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e510
mov ax, word [0x1005f450]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001efb2
add esp, 0x824
ret
Function at 0x1002a6ca
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006d1fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10060640
push esi
call fcn.10035aa9
pop ecx
pop ecx
test eax, eax
jne 0x1002a6f8
xor al, al
jmp 0x1002a775
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.1002a40b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1002a732
push dword [ebp - 0x210]
call fcn.10023ed7
xor al, al
jmp 0x1002a773
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002a738
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1002a758
push edx
call fcn.1002a601
pop ecx
test al, al
je 0x1002a723
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1002a766
mov bl, 1
push dword [ebp - 0x210]
call fcn.10023ed7
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001efb2
leave
ret

Function at 0x10031d3f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10031d7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031d7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031d7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10031d7e
cmp dword [ecx + 0x74], 0xe
jbe 0x10031d7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1003385b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061e4c
push 0x10061e44
push str.FlsAlloc
push 0x1f
call fcn.1003371a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003388f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004649c]
call esi
jmp 0x10033895
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100338d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061e5c
push 0x10061e54
push str.FlsGetValue
push 0x21
call fcn.1003371a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033910
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004649c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10033918
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061e64
push 0x10061e5c
push str.FlsSetValue
push 0x22
call fcn.1003371a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033952
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004649c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10036e2d
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 + 0x1006f8c0]
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 0x10036e6d
cmp byte [ebx], 0xa
jne 0x10036e6d
or byte [edi + eax + 0x28], 4
jmp 0x10036e72
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 0x10036f71
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10036f54
inc eax
cmp dl, 0xd
je 0x10036e9e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10036ec4
cmp eax, ecx
jae 0x10036ed2
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 0x10036e86
jmp 0x10036f71
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 0x10036f4f
cmp dword [ebp - 0x10], 0
je 0x10036f4f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1006f8c0]
test byte [eax + edi + 0x28], 0x48
je 0x10036f29
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10036f14
mov byte [esi], dl
jmp 0x10036f25
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1006f8c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10036f71
cmp byte [ebp - 1], 0xa
jne 0x10036f38
cmp esi, ebx
jne 0x10036f38
mov byte [esi], 0xa
jmp 0x10036f70
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10037b4d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10036f71
mov byte [esi], 0xd
jmp 0x10036f70
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1006f8c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10036f6e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10036f71
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10036f7a
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 + 0x1006f8c0]
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 0x10036fc0
cmp word [ebx], dx
jne 0x10036fc0
or byte [eax + edi + 0x28], 4
jmp 0x10036fc5
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 0x10037128
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 0x10037108
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10037006
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003703c
cmp eax, edx
jae 0x1003704a
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 0x10036fe1
jmp 0x10037128
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 0x10037103
cmp dword [ebp - 0x18], 0
je 0x10037103
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1006f8c0]
test byte [eax + edi + 0x28], 0x48
je 0x100370d9
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 0x1003709d
mov word [esi], cx
jmp 0x100370d4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1006f8c0]
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 + 0x1006f8c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1006f8c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10037128
pop eax
cmp word [ebp - 4], ax
jne 0x100370e9
cmp esi, ebx
jne 0x100370e9
mov word [esi], ax
jmp 0x10037125
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10037b4d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10037128
push 0xd
pop eax
jmp 0x100370e4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1006f8c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10037122
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10037128
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 0x10037f17
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001f210
mov eax, dword [0x1006d1fc]
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.10034d4f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10037f59
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100380b5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10044370
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 + 0x1006f8c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10037b2f
mov ecx, dword [esi*4 + 0x1006f8c0]
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 0x100380ae
cmp eax, dword [ecx + edi + 0x24]
jne 0x100380ae
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 0x100380ae
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10037b2f
add esp, 0x14
test edx, edx
jl 0x100380ae
jg 0x10038024
test eax, eax
jb 0x100380ae
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100380ae
jl 0x1003803e
cmp dword [ebp - 0x1008], eax
ja 0x100380ae
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003805c
test ebx, ebx
je 0x10038095
cmp ecx, edi
jae 0x10038095
mov al, byte [ecx]
cmp al, 0xd
jne 0x10038076
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10038082
cmp byte [ecx + 1], 0xa
jne 0x10038082
inc ecx
jmp 0x10038082
movzx eax, al
movsx eax, byte [eax + 0x1006d420]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003805c
cmp edx, ebx
jne 0x1003805c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100380b3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001efb2
leave
ret
Function at 0x1003a019
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10039b34
Function at 0x1003cd0d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1003cdaa
push ebx
push esi
call fcn.1003ccd6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10039124
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003cd57
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003cda9
push edi
push eax
call fcn.100334c9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003cd77
call fcn.10032d3d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003cda8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10039124
add esp, 0x20
test eax, eax
jne 0x1003cd96
push edi
call fcn.10032d3d
jmp 0x1003cd9e
push ebx
call fcn.10032d3d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003cdad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003cdbe
pop esi
ret
push ebx
push edi
push esi
call fcn.1003ccd6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100334c9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003cde6
push ebx
push esi
push edi
call fcn.10021f80
add esp, 0xc
push 0
call fcn.10032d3d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1003f611
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006d1fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1003f654
call fcn.100242e9
mov dword [eax], 0xf
call fcn.100242fc
mov dword [eax], 0xd
call fcn.100241fe
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001efb2
leave
ret
test eax, eax
jne 0x1003f65b
inc eax
jmp 0x1003f648
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 0x1003f646
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1003f648