joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403380
Capabilities:
Get common file path
Get session user name
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
mov dword [ebp - 4], 0x32
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x318], 0
push 0x32
push 0
lea eax, [ebp - 0x314]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Drivers
lea edx, [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x314]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x10000000
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004014c0
add esp, 0xc
push 0x10000000
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call fcn.004014c0
add esp, 0xc
push 0x64
lea eax, [ebp - 0x1d4]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x2dc]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10c]
push ecx
push 1
push 0
lea edx, [ebp - 0x1d4]
push edx
push 0
call sub.NETAPI32.dll_NetUserGetLocalGroups
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x40357b
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
je 0x40357b
mov dword [ebp - 0x384], 0
jmp 0x4034f6
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
cmp edx, dword [ebp - 0x2dc]
jae 0x40357b
cmp dword [ebp - 0x380], 0
jne 0x40350f
jmp 0x40357b
push 0
push 0
push 0x64
lea eax, [ebp - 0x37c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x380]
mov edx, dword [ecx]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10000000
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.004014c0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x37c]
push edx
lea eax, [ebp - 0x2d8]
push eax
call fcn.004014c0
add esp, 0xc
mov ecx, dword [ebp - 0x380]
add ecx, 4
mov dword [ebp - 0x380], ecx
jmp 0x4034e7
cmp dword [ebp - 0x10c], 0
je 0x403590
mov edx, dword [ebp - 0x10c]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x416ef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f08
mov eax, 1
add ebx, ebx
jne 0x416f2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f20
jne 0x416f3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f20
xor ecx, ecx
sub eax, 3
jb 0x416f50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416fc2
mov ebp, eax
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416f8c
inc ecx
add ebx, ebx
jne 0x416f78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f6d
jne 0x416f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416f9d
jmp 0x416f0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fac
add edi, ecx
jmp 0x416f0e
pop esi
mov edi, esi
mov ecx, 0x70a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416fca
cmp byte [edi], 0x12
jne 0x416fca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x416fcf
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41703e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416ffc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417038
mov dword [ebx], eax
add ebx, 4
jmp 0x417019
call dword [esi + 0x17084]
mov ebp, dword [esi + 0x17080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x417072
sub esp, 0xffffff80
jmp 0x407c42
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x5f3820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ac000]
push edi
jmp 0x5f383a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5f3841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f3830
mov eax, 1
add ebx, ebx
jne 0x5f3853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5f3864
jne 0x5f3883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f3883
dec eax
add ebx, ebx
jne 0x5f3870
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5f3848
add ebx, ebx
jne 0x5f387f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5f38d5
xor ecx, ecx
sub eax, 3
jb 0x5f389b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5f390a
sar eax, 1
mov ebp, eax
jmp 0x5f38a6
add ebx, ebx
jne 0x5f38a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f3874
inc ecx
add ebx, ebx
jne 0x5f38b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f3874
add ebx, ebx
jne 0x5f38c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5f38b6
jne 0x5f38d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5f38b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5f38f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5f38e6
jmp 0x5f3836
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5f38f4
add edi, ecx
jmp 0x5f3836
pop esi
mov edi, esi
mov ecx, 0x108e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f3912
cmp byte [edi], 8
jne 0x5f3912
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x5f3917
lea edi, [esi + 0x1f1000]
mov eax, dword [edi]
or eax, eax
je 0x5f398f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f3be0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f3c1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5f3944
mov ecx, edi
jns 0x5f3973
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f3c24]
or eax, eax
je 0x5f3989
mov dword [ebx], eax
add ebx, 4
jmp 0x5f3961
call dword [esi + 0x1f3c20]
mov ebp, dword [esi + 0x1f3c28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x5f39c3
sub esp, 0xffffff80
jmp 0x404d10
Function at 0x407204
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421060]
jne 0x40720e
repz ret
jmp fcn.00408536

Function at 0x40f01e
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.0040a39c
and dword [ebp - 4], 0
cmp dword [0x423014], 0
mov ebx, eax
jne 0x40f0cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f180
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f180
push eax
call fcn.0040a32a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423014], eax
call esi
push eax
call fcn.0040a32a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423018], eax
call esi
push eax
call fcn.0040a32a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42301c], eax
call esi
push eax
call fcn.0040a32a
pop ecx
mov dword [0x423024], eax
test eax, eax
je 0x40f0cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a32a
pop ecx
mov dword [0x423020], eax
mov eax, dword [0x423020]
cmp eax, ebx
je 0x40f127
cmp dword [0x423024], ebx
je 0x40f127
push eax
call fcn.0040a3a5
push dword [0x423024]
mov esi, eax
call fcn.0040a3a5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f127
test edi, edi
je 0x40f127
call esi
test eax, eax
je 0x40f11e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f11e
test byte [ebp - 0xc], 1
jne 0x40f127
or dword [ebp + 0x10], 0x200000
jmp 0x40f160
mov eax, dword [0x423018]
cmp eax, ebx
je 0x40f160
push eax
call fcn.0040a3a5
pop ecx
test eax, eax
je 0x40f160
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f160
mov eax, dword [0x42301c]
cmp eax, ebx
je 0x40f160
push eax
call fcn.0040a3a5
pop ecx
test eax, eax
je 0x40f160
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423014]
call fcn.0040a3a5
pop ecx
test eax, eax
je 0x40f180
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f182
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa
Function at 0x100017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
push esi
call fcn.10001ac0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10001960
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
shl eax, 2
test eax, eax
jne 0x100017e7
mov byte [ebp - 0xc], al
jmp 0x10001801
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
cmp byte [ebp - 0xc], 0
je 0x10001823
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
push esi
call fcn.10001ac0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10001960
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
xor eax, eax
cmp byte [ebp + 0x14], al
cmovne eax, dword [ebp + 0x10]
test eax, eax
jne 0x10001869
mov byte [ebp - 0xc], al
jmp 0x10001883
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10004780
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x100018af
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x10001a27
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007648
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1001f300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10017eb0
push esi
call fcn.1000b25a
pop ecx
pop ecx
test eax, eax
jne 0x10007676
xor al, al
jmp 0x100076f3
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.10007389
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100076b0
push dword [ebp - 0x210]
call fcn.10008884
xor al, al
jmp 0x100076f1
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100076b6
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100076d6
push edx
call fcn.1000757f
pop ecx
test al, al
je 0x100076a1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100076e4
mov bl, 1
push dword [ebp - 0x210]
call fcn.10008884
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100020b6
leave
ret

Function at 0x10007b26
Capabilities:
Parse pe header

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

Function at 0x1000b75b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018c58
push 0x10018c50
push str.FlsAlloc
push 0x1f
call fcn.1000b61a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b78f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001714c]
call esi
jmp 0x1000b795
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b7d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018c68
push 0x10018c60
push str.FlsGetValue
push 0x21
call fcn.1000b61a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b810
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001714c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b818
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018c70
push 0x10018c68
push str.FlsSetValue
push 0x22
call fcn.1000b61a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b852
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001714c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d10b
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 0x1000d1a8
push ebx
push esi
call fcn.1000d0d4
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.1000d068
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d155
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d1a7
push edi
push eax
call fcn.10009831
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d175
call fcn.100097f7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d1a6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d068
add esp, 0x20
test eax, eax
jne 0x1000d194
push edi
call fcn.100097f7
jmp 0x1000d19c
push ebx
call fcn.100097f7
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 0x1000d1ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1000d1bc
pop esi
ret
push ebx
push edi
push esi
call fcn.1000d0d4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10009831
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1000d1e4
push ebx
push esi
push edi
call fcn.10004780
add esp, 0xc
push 0
call fcn.100097f7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1000d5b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000d1f9

Function at 0x1001069c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001f300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x100106df
call fcn.100097d1
mov dword [eax], 0xf
call fcn.100097e4
mov dword [eax], 0xd
call fcn.1000504c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100020b6
leave
ret
test eax, eax
jne 0x100106e6
inc eax
jmp 0x100106d3
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 0x100106d1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x100106d3
Function at 0x10015bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10015bdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10015bdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret