joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008b3b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008b3f6
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.DisableTaskOffload
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1008b5a0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1008bef0
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008b606
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x1008b63a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 4
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100d82ec
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x1008b652
push 4
push esi
push 4
push 0
push 0x100d82f0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
Function at 0x1008b680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008b6a8
xor al, al
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push esi
push edi
je 0x1008b737
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push eax
push 0
push 0x100d8324
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008b6e9
mov eax, dword [edi]
add eax, 4
push eax
call fcn.100a2557
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x1008b6fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x100d832c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x1008b768
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
call fcn.1009c7c6
add esp, 4
mov dword [esi], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
cmp edx, 4
jbe 0x1008b747
shr edx, 2
dec edx
jmp 0x1008b749
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [eax], edx
push dword [esi]
push dword [ecx]
push 3
push 0
push str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008b780
Capabilities:
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
push edi
push 0x100d81c8
mov dword [ebp - 0x434], eax
xor esi, esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x43c], 0
push 0x104
push eax
call fcn.1008bf30
mov eax, dword [ebp - 0x434]
add esp, 0x10
push edi
test eax, eax
je 0x1008b7f1
push eax
push str._S_S.sys
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1008bf30
add esp, 0x14
jmp 0x1008b80a
push str.system32drivers_S.sys
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1008bf30
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x434], eax
test eax, eax
jne 0x1008b837
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x43c]
push ecx
push 0x100d8214
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 1
push 1
push 0xf01ff
lea ecx, [ebp - 0x414]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x10104e9c], 8
mov dword [ebp - 0x438], eax
je 0x1008b8a6
test eax, eax
je 0x1008b88b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x1008b95f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x1008b95f
mov bl, 1
jmp 0x1008b95f
test eax, eax
je 0x1008b8dc
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x438]
mov esi, eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call eax
jmp 0x1008b95f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x1008b95f
push 0x14
push edi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x438], esi
test esi, esi
je 0x1008b956
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1008b926
cmp dword [ebp - 0x42c], 4
jne 0x1008b926
mov bl, 1
jmp 0x1008b93e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov edx, 1
cmovne ebx, edx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push dword [ebp - 0x438]
mov esi, eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call eax
jmp 0x1008b95f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push edi
call fcn.1008bb40
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
movzx eax, bl
xor ecx, ebp
pop esi
dec eax
pop ebx
call fcn.1008f445
mov esp, ebp
pop ebp
ret
Function at 0x1008ba20
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.NDIS]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [0x100d8228]
mov byte [ebp - 8], al
mov eax, dword [str.tcpip]
mov dword [ebp - 0x14], eax
mov ax, word [0x100d8230]
push ecx
mov word [ebp - 0x10], ax
movzx eax, byte [0x100d8232]
push 0x100d823c
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x120]
push 0x104
push eax
mov dword [ebp - 0x1c], 0x5f504e50
mov dword [ebp - 0x18], 0x494454
call fcn.1008bef0
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 3
push 0
lea eax, [ebp - 0x120]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008babd
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
push esi
je 0x1008bafa
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0xc]
push 5
push eax
push 1
push 0
push 0x100d8264
push dword [ebp - 0x124]
call esi
push 7
lea eax, [ebp - 0x14]
push eax
push 7
push 0
push str.DependOnService
push dword [ebp - 0x124]
call esi
jmp 0x1008bb15
push 8
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.Group
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x124]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
Function at 0x1008d3d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1008d3ae
pop esi
leave
ret 8

Function at 0x100ae3cf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100dd4b4
push 0x100dd4ac
push str.FlsAlloc
push 0x1e
call fcn.100ae1fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ae403
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d53c8]
call esi
jmp 0x100ae409
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100ae44d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100dd4c4
push 0x100dd4bc
push str.FlsGetValue
push 0x20
call fcn.100ae1fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ae484
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d53c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100b1387
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100909c0
mov eax, dword [0x100fd230]
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.100afaa5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b13c9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b1525
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100bf160
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 + 0x10105db8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100b17ad
mov ecx, dword [esi*4 + 0x10105db8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100b151e
cmp eax, dword [edi + ecx + 0x24]
jne 0x100b151e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b151e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b17ad
add esp, 0x14
test edx, edx
jl 0x100b151e
jg 0x100b1494
test eax, eax
jb 0x100b151e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100b151e
jl 0x100b14ae
cmp dword [ebp - 0x1008], eax
ja 0x100b151e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100b14cc
test ebx, ebx
je 0x100b1505
cmp ecx, edi
jae 0x100b1505
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b14e6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b14f2
cmp byte [ecx + 1], 0xa
jne 0x100b14f2
inc ecx
jmp 0x100b14f2
movzx eax, al
movsx eax, byte [eax + 0x100fd680]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b14cc
cmp edx, ebx
jne 0x100b14cc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100b1523
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1008f445
leave
ret
Function at 0x100b1829
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10105db8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b1869
cmp byte [ebx], 0xa
jne 0x100b1869
or byte [eax + edi + 0x28], 4
jmp 0x100b186e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100b196c
mov al, byte [edx]
cmp al, 0x1a
je 0x100b194e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100b189d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100b18c2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100b18cc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100b187f
jmp 0x100b196c
push 0
lea eax, [ebp - 0xc]
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 0x100b1949
cmp dword [ebp - 0xc], 0
je 0x100b1949
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10105db8]
test byte [eax + edi + 0x28], 0x48
je 0x100b1923
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100b190e
mov byte [esi], dl
jmp 0x100b191f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10105db8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100b196c
cmp byte [ebp - 1], 0xa
jne 0x100b1932
cmp esi, ebx
jne 0x100b1932
mov byte [esi], 0xa
jmp 0x100b196b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b17cb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100b196c
mov byte [esi], 0xd
jmp 0x100b196b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10105db8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b1968
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b196c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b1975
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10105db8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b19b8
cmp word [esi], dx
jne 0x100b19b8
or byte [edi + eax + 0x28], 4
jmp 0x100b19bd
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100b1b10
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100b1af0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100b19ff
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100b1a35
cmp eax, edx
jae 0x100b1a41
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100b19d7
jmp 0x100b1b10
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b1aec
cmp dword [ebp - 0x14], 0
je 0x100b1aec
mov eax, dword [ebx*4 + 0x10105db8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100b1ac4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100b1a8d
mov word [esi], cx
jmp 0x100b1ac0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10105db8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10105db8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10105db8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100b1b10
pop ebx
cmp word [ebp - 4], bx
jne 0x100b1ad5
cmp esi, dword [ebp + 0xc]
jne 0x100b1ad5
mov word [esi], bx
jmp 0x100b1b0d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100b17cb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100b1b10
push 0xd
jmp 0x100b1b09
mov ecx, dword [ebx*4 + 0x10105db8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b1b07
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b1b10
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b2500
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b21a2

Function at 0x100b250b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b2331
Function at 0x100b7353
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 0x100b73f0
push ebx
push esi
call fcn.100b731c
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.100af5f8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b739d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b73ef
push edi
push eax
call fcn.100af52e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100b73bd
call fcn.100af4f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b73ee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100af5f8
add esp, 0x20
test eax, eax
jne 0x100b73dc
push edi
call fcn.100af4f4
jmp 0x100b73e4
push ebx
call fcn.100af4f4
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 0x100b73f3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100b7404
pop esi
ret
push ebx
push edi
push esi
call fcn.100b731c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100af52e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100b742c
push ebx
push esi
push edi
call fcn.100917c0
add esp, 0xc
push 0
call fcn.100af4f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100b77f0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b7441
Function at 0x100be581
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100be4fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100be6f9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100be6f9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100be6a8
jg 0x100be5da
test eax, eax
je 0x100be69e
push 1
push 0x1000
call fcn.100af76b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100be600
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100be695
push 0x8000
push ebx
call fcn.100be42e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100be62c
jg 0x100be627
cmp ecx, 0x1000
jb 0x100be62c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100b0723
add esp, 0x10
cmp eax, 0xffffffff
je 0x100be671
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100be627
jl 0x100be658
test ecx, ecx
jne 0x100be619
push dword [ebp - 0xc]
push ebx
call fcn.100be42e
push esi
call fcn.100af4f4
add esp, 0xc
xor edi, edi
jmp 0x100be70a
cmp byte [edi + 0x24], 0
je 0x100be688
cmp dword [edi + 0x20], 5
jne 0x100be688
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100be693
mov edi, dword [edi + 0x18]
jmp 0x100be695
xor edi, edi
push esi
call fcn.100af4f4
pop ecx
jmp 0x100be70a
test ecx, ecx
jg 0x100be66a
jl 0x100be6a8
test eax, eax
jae 0x100be66a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b17cb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100be6cb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100be66a
jmp 0x100be702
push ebx
call fcn.100ba462
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100be66a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100be70a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100be707
mov edi, dword [edi + 0x18]
jmp 0x100be70a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100b17cb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100bf120
Capabilities:
Parse pe header

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