joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d5ac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13a000]
push edi
jmp 0x5d5ada
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d5ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d5ad0
mov eax, 1
add ebx, ebx
jne 0x5d5af3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d5ae8
jne 0x5d5b04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d5ae8
xor ecx, ecx
sub eax, 3
jb 0x5d5b18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d5b8a
mov ebp, eax
add ebx, ebx
jne 0x5d5b23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5d5b30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5d5b54
inc ecx
add ebx, ebx
jne 0x5d5b40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d5b35
jne 0x5d5b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d5b35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d5b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d5b65
jmp 0x5d5ad6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d5b74
add edi, ecx
jmp 0x5d5ad6
pop esi
mov edi, esi
mov ecx, 0x40
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d5b92
cmp byte [edi], 1
jne 0x5d5b92
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 0x5d5b97
lea edi, [esi + 0x1d3000]
mov eax, dword [edi]
or eax, eax
je 0x5d5c06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d5980]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d59d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d5bc4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d59e0]
or eax, eax
je 0x5d5c00
mov dword [ebx], eax
add ebx, 4
jmp 0x5d5be1
call dword [esi + 0x1d59dc]
mov ebp, dword [esi + 0x1d59e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x5d5c3a
sub esp, 0xffffff80
jmp 0x401b8f
Function at 0x912d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38d000]
lea eax, [edi + 0x4bdd6c]
push dword [eax]
mov dword [eax], 0x50e5fe90
push eax
push edi
jmp 0x912dba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x912dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x912db0
mov eax, 1
add ebx, ebx
jne 0x912dd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x912de4
jne 0x912e03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x912e03
dec eax
add ebx, ebx
jne 0x912df0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x912dc8
add ebx, ebx
jne 0x912dff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x912e55
xor ecx, ecx
sub eax, 3
jb 0x912e1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x912e8a
sar eax, 1
mov ebp, eax
jmp 0x912e26
add ebx, ebx
jne 0x912e26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x912df4
inc ecx
add ebx, ebx
jne 0x912e34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x912df4
add ebx, ebx
jne 0x912e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x912e36
jne 0x912e52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x912e36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x912e74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x912e66
jmp 0x912db6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x912e74
add edi, ecx
jmp 0x912db6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x12524
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x912e96
cmp byte [edi], 0x2f
jne 0x912e96
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 0x912e9b
lea edi, [esi + 0x4fa000]
mov eax, dword [edi]
or eax, eax
je 0x912f13
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x523e14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x523fa4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x912ec8
mov ecx, edi
jns 0x912ef7
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 + 0x523fac]
or eax, eax
je 0x912f0d
mov dword [ebx], eax
add ebx, 4
jmp 0x912ee5
call dword [esi + 0x523fa8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x912f44
cmp al, 0xef
ja 0x912f37
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x912f19
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x912f26
mov ebp, dword [esi + 0x523fb0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x912f78
sub esp, 0xffffff80
jmp 0x7446ca
Function at 0x1003a05
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a028]
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [entry0]
test eax, eax
je 0x1003a65
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003a6c
xor eax, eax
jmp 0x1003b22
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003b21
push esi
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.0100390c
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1003afe
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003b20
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.0100390c
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1003b05
push 8
call fcn.010035e6
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005d91
leave
ret 0xc
Function at 0x401658
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c1b4c]
sub esp, 0x800
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x4c1aa4]
test esi, esi
je 0x4016a6
cmp eax, 0x959
jne 0x401692
push 0
lea eax, [ebp - 0x800]
push eax
push str.Subasosu_nigukole_padisekadapoyi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040146e
add edi, 8
dec esi
je 0x4016a6
mov eax, dword [0x4c1b4c]
jmp 0x401677
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d82f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004051d5
mov dword [ebp - 0x14], eax
cmp dword [0x458ac4], esi
jne 0x40d922
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d8af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40da02
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40da02
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da02
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x458ac4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x458ac8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x458acc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458ad4], eax
test eax, eax
je 0x40d91f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458ad0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d947
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d93a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d95c
push 4
pop eax
jmp 0x40da04
cmp dword [ebp - 0x14], esi
je 0x40d95c
push dword [0x458ac4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d941
mov eax, dword [0x458ad0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d9ba
cmp dword [0x458ad4], edi
je 0x40d9ba
push eax
call ebx
push dword [0x458ad4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d9ba
test eax, eax
je 0x40d9ba
call ecx
test eax, eax
je 0x40d9af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d9af
test byte [ebp - 8], 1
jne 0x40d9ba
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d9ea
mov eax, dword [0x458ac8]
cmp eax, edi
je 0x40d9e7
push eax
call ebx
test eax, eax
je 0x40d9e7
call eax
mov esi, eax
test esi, esi
je 0x40d9e7
mov eax, dword [0x458acc]
cmp eax, edi
je 0x40d9e7
push eax
call ebx
test eax, eax
je 0x40d9e7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x458ac4]
call ebx
test eax, eax
je 0x40da02
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40da04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044af
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x232e4562
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x22aa54ef
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10003690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push ecx
call fcn.100038f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
or eax, 0xf003f
push eax
push 0
push str.SOFTWAREIntelIRSTVolumeFlushPolicies
push 0x80000002
call esi
test eax, eax
je 0x100036f3
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREIntelIRSTVolumeFlushPolicies
push 0x80000002
call esi
test eax, eax
je 0x100036f3
lea eax, [ebp - 4]
push eax
push str.SOFTWAREIntelIRSTVolumeFlushPolicies
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10003715
push 4
push dword [ebp + 0x10]
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003720
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
push ecx
call fcn.100038f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
or eax, 0xf003f
push eax
push 0
push str.SOFTWAREIntelIRSTVolumeFlushPolicies
push 0x80000002
call esi
test eax, eax
je 0x1000376d
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREIntelIRSTVolumeFlushPolicies
push 0x80000002
call esi
test eax, eax
jne 0x10003786
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push ecx
mov esi, edx
call fcn.100038f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
or eax, 0x20019
push eax
push 0
push esi
push 0x80000002
call edi
test eax, eax
je 0x100037e4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push esi
push 0x80000002
call edi
test eax, eax
jne 0x100038e2
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [ebp + 0x14]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
test eax, eax
je 0x10003825
cmp dword [ebx], esi
jae 0x10003825
push dword [ebp - 8]
mov edi, 0xea
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x100038d7
test eax, eax
je 0x100038d5
push dword [ebx]
push edi
push eax
call fcn.1004c670
add esp, 0xc
inc esi
mov dword [ebp - 4], esi
push esi
call fcn.1004a249
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
test edi, edi
je 0x100038be
push esi
push 0
push edi
call fcn.1004c670
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x100038a1
push dword [ebx]
push eax
push dword [ebp + 0x10]
call fcn.1004c670
mov esi, dword [ebp - 4]
add esp, 0xc
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.1004c020
add esp, 0xc
mov dword [ebx], esi
push dword [ebp - 0xc]
call fcn.1004a2db
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov edi, 0x7a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100493d0
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, dword [0x10078830]
test cl, 1
jne 0x100493ee
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
or ecx, 1
mov dword [0x10078830], ecx
mov dword [0x10078834], eax
test cl, 2
jne 0x10049406
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
or ecx, 2
mov dword [0x10078830], ecx
mov dword [0x10078838], eax
test cl, 4
jne 0x1004941e
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
or ecx, 4
mov dword [0x10078830], ecx
mov dword [0x1007883c], eax
cmp byte [0x10078437], 0
jne 0x10049527
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.IoctlLog.dll
call esi
mov dword [0x10078840], eax
test eax, eax
jne 0x10049466
push str.IoctlNet.dll
call esi
mov dword [0x10078840], eax
test eax, eax
jne 0x10049466
push str.IoctlSim.dll
call esi
mov dword [0x10078840], eax
test eax, eax
je 0x1004951e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ismInit
push eax
call esi
push str.ismExit
push dword [0x10078840]
mov dword [0x1007881c], eax
call esi
push str.deviceIoControlSimEx
push dword [0x10078840]
mov dword [0x10078818], eax
call esi
push str.CreateFileASimEx
push dword [0x10078840]
mov dword [0x10078834], eax
call esi
push str.CloseHandleSimEx
push dword [0x10078840]
mov dword [0x10078838], eax
call esi
mov ecx, dword [0x1007881c]
mov dword [0x1007883c], eax
test ecx, ecx
je 0x1004951e
cmp dword [0x10078818], 0
je 0x1004951e
cmp dword [0x10078834], 0
je 0x1004951e
cmp dword [0x10078838], 0
je 0x1004951e
test eax, eax
je 0x1004951e
call ecx
mov eax, dword [0x1007881c]
mov dword [0x10078718], eax
mov eax, dword [0x10078818]
mov dword [0x1007871c], eax
mov eax, dword [0x10078838]
mov dword [0x100787e0], eax
mov eax, dword [0x1007883c]
mov dword [0x100787e4], eax
mov eax, dword [0x10078834]
mov dword [0x100787dc], eax
mov byte [0x10078437], 1
pop esi
ret
mov byte [0x10078437], 1
ret
Function at 0x401000
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
test eax, eax
je 0x401090
cmp dword [ebp + 8], edi
je 0x401090
test ebx, ebx
je 0x401090
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401086
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40105f
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
je 0x40105f
mov edi, 1
mov dword [ebp + 8], 0
test esi, esi
je 0x401086
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x401086
test byte [ebp + 8], 2
jne 0x401086
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4010a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
xor ebx, ebx
push edi
test eax, eax
je 0x40118a
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x40118a
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401163
lea edi, [ebx + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401160
push edi
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x401160
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push esi
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x401160
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push esi
push eax
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapValidate]
test eax, eax
je 0x40115e
push esi
push 0
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor esi, esi
mov edi, dword [ebp - 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x40118a
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x40118a
test byte [ebp - 8], 2
jne 0x40118a
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x4011ab
push 4
push edi
call dword [sym.imp.kernel32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4011ad
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4011c0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x401c30
mov dword [ebp - 0x1c], 0
call dword [sym.imp.kernel32.dll_VirtualQuery]
mov edx, dword [ebp - 0x18]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
je 0x401290
push esi
lea ecx, [ebp - 0x328]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push 0
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.kernel32.dll_MoveFileExA]
push 1
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x224]
push edx
call esi
test eax, eax
je 0x40128f
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x40128f
push 4
push eax
lea edx, [ebp - 0x120]
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4013c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call sub.msvcrt.dll_memset
push 0x103
xor eax, eax
lea ecx, [ebp - 0x163]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x164], bl
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 8]
add esp, 0x18
push 0x104
push edx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x40149f
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.kernel32.dll_GetHandleInformation]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x40146d
lea ecx, [ebp + 8]
push ecx
push eax
call edi
test eax, eax
je 0x40146d
test byte [ebp + 8], 2
jne 0x40146d
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401491
lea edx, [ebp + 8]
push edx
push eax
call edi
test eax, eax
je 0x401491
test byte [ebp + 8], 2
jne 0x401491
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4