joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b67
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
jne 0x1004b8d
mov eax, 0x80070057
jmp 0x1004c91
push esi
push edi
push dword [0x1010070]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.010032e8
mov edi, eax
cmp edi, ebx
jl 0x1004c84
push 0x10015bc
push esi
lea eax, [ebp - 0x110]
push eax
call fcn.01003a97
mov edi, eax
cmp edi, ebx
jl 0x1004c84
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.01003a97
mov edi, eax
cmp edi, ebx
jl 0x1004c84
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
push 0x1001680
call fcn.01004423
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x1004c22
lea eax, [ebp - 0xc]
push eax
push 0xff
push dword [ebp + 0xc]
call fcn.01003a56
mov edi, eax
cmp edi, ebx
jl 0x1004c84
jmp 0x1004c25
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
push eax
push 2
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
je 0x1004c5e
push esi
call fcn.01003f7b
cmp esi, ebx
jle 0x1004c5a
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
jmp 0x1004c84
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0x1004c79
jmp 0x1004c44
push 0x1001650
call fcn.01004423
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0100708e
leave
ret 8

Function at 0x1004ca1
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [ebp - 0x107], 0x3a
jne 0x1004d1d
cmp byte [ebp - 0x106], 0x5c
jne 0x1004d1d
push esi
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push eax
push eax
push eax
mov byte [ebp - 0x105], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1004d1d
lea eax, [ebp - 0x20c]
push eax
push 0x10016c4
call fcn.01004423
test eax, eax
pop ecx
pop ecx
jl 0x1004d1d
xor eax, eax
inc eax
jmp 0x1004d1f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0100708e
leave
ret
Function at 0x1004d2d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x100e6e4
call fcn.01007000
sub esp, 0x230
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1004f60
cmp dword [ebp + 0xc], ebx
je 0x1004f60
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
push 0x10017bc
call fcn.01004423
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
jne 0x1004d84
mov eax, dword [0x1010074]
jmp 0x1004d93
cmp dword [ebp + 0x10], 2
jne 0x1004f30
mov eax, dword [0x1010078]
mov dword [ebp - 0x20], eax
push dword [0x101007c]
mov edi, 0x100
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.010032e8
mov esi, eax
cmp esi, ebx
jl 0x1004f3d
push dword [ebp + 8]
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.01003a97
mov esi, eax
cmp esi, ebx
jl 0x1004f3d
push 0x104
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, eax
test ebx, ebx
jne 0x1004df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jmp 0x1004ee3
lea eax, [ebp - 0x1c]
push eax
push 0xff
push dword [ebp + 0xc]
call fcn.01003a35
mov esi, eax
test esi, esi
jl 0x1004f3d
mov eax, dword [ebp - 0x1c]
lea ebx, [ebx + eax + 4]
mov dword [ebp - 0x228], ebx
and dword [ebp - 4], 0
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.01007020
mov dword [ebp - 0x10], esp
mov edi, esp
mov dword [ebp - 0x22c], edi
or dword [ebp - 4], 0xffffffff
push 0x10017b8
push ebx
push edi
call fcn.0100399f
mov esi, eax
test esi, esi
jl 0x1004f3d
lea eax, [ebp - 0x224]
push eax
push ebx
push edi
call fcn.01004064
mov esi, eax
test esi, esi
jl 0x1004f3d
push 0x10017b4
push ebx
push edi
call fcn.01004064
mov esi, eax
test esi, esi
jl 0x1004f3d
push dword [ebp + 0xc]
push ebx
push edi
call fcn.01004064
mov esi, eax
test esi, esi
jl 0x1004f3d
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x20]
push edi
push 0x1001784
call fcn.01004423
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push 2
push 0
push dword [ebp - 0x20]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004ee3
push ebx
push edi
push 1
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1004f3d
mov esi, eax
jle 0x1004ef3
and esi, 0xffff
or esi, 0x80070000
push eax
call fcn.01003f7b
jmp 0x1004f3d
mov esi, 0x80070057
jmp 0x1004f3d
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jl 0x1004f51
push 0x100171c
jmp 0x1004f56
push 0x10016ec
call fcn.01004423
pop ecx
mov eax, esi
jmp 0x1004f65
mov eax, 0x80070057
lea esp, [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0100708e
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10059ba
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10059d2
mov eax, 0x80070057
jmp 0x1005b71
push ebx
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x60]
push esi
push eax
xor ebx, ebx
mov dword [ebp - 4], esi
call fcn.01006a70
or dword [ebp - 0x34], 1
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], edi
mov word [ebp - 0x30], si
call fcn.01006a70
push dword [ebp + 8]
push 0x1001d40
call fcn.01004423
add esp, 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x8000000
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1005b42
mov edi, dword [ebp + 0xc]
cmp edi, esi
jne 0x1005b39
call fcn.010052ad
xor ecx, ecx
test eax, eax
setne cl
push 0xffffffffffffffff
push esi
inc ecx
mov eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x1010c90]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jne 0x1005ac2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1005b27
push dword [ebp - 4]
push 0x1001d24
call fcn.01004423
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
jne 0x1005ab4
push esi
push 0x1001d18
push 0x208
push dword [ebp + 8]
call fcn.01003ef9
test eax, eax
je 0x1005ab4
mov ebx, 0x8000ffff
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x1005b27
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x1005b27
cmp eax, 1
jne 0x1005b27
cmp dword [0x1010c84], esi
je 0x1005ae7
push 0x1001ce4
call fcn.01004423
mov dword [ebp - 4], 0x55
mov ebx, 0x80000055
jmp 0x1005b1a
cmp dword [0x1010c88], esi
je 0x1005b07
push 0x1001cb0
call fcn.01004423
mov dword [ebp - 4], 0x56
mov ebx, 0x80000056
jmp 0x1005b1a
push 0x1001c88
call fcn.01004423
or dword [ebp - 4], 0xffffffff
mov ebx, 0x80004005
pop ecx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
jmp 0x1005b6d
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x1005b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
mov ebx, edi
jle 0x1005b5c
and ebx, 0xffff
or ebx, 0x80070000
push 0x1001c60
call fcn.01004423
pop ecx
push edi
call fcn.01003f7b
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 0xc
Function at 0x100709c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01007020
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007131
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1010cdc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1007131
cmp eax, 1
je 0x1007149
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007131
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1007106
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100712d
xor eax, eax
inc eax
jmp 0x1007165
cmp esi, ebx
jae 0x1007135
xor eax, eax
jmp 0x1007165
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1010cdc]
jmp 0x100714b
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007648
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1010108]
je 0x1007675
inc eax
cmp eax, 0x12
jb 0x1007666
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1010108]
jne 0x10077a9
mov eax, dword [0x1010cd4]
cmp eax, 1
je 0x1007784
cmp eax, edx
jne 0x10076a5
cmp dword [0x10100c8], 1
je 0x1007784
cmp ecx, 0xfc
je 0x10077a9
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10076de
lea eax, [ebp - 0x10c]
push 0x100262c
push eax
call fcn.0100ac70
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0100aea0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007720
lea eax, [ebp - 0x10c]
push eax
call fcn.0100aea0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x1002628
push edi
call fcn.0100ad70
add esp, 0x10
push edi
call fcn.0100aea0
push dword [esi + 0x101010c]
mov ebx, eax
call fcn.0100aea0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.01007020
mov ebx, esp
push 0x100260c
push ebx
call fcn.0100ac70
push edi
push ebx
call fcn.0100ac80
push 0x1002608
push ebx
call fcn.0100ac80
push dword [esi + 0x101010c]
push ebx
call fcn.0100ac80
push 0x12010
push 0x10025e0
push ebx
call fcn.0100ab6f
add esp, 0x2c
jmp 0x10077a9
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x101010c]
push dword [esi]
call fcn.0100aea0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0100708e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009234
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
Function at 0x1009d52
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add ebx, esp
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.010088de
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x1009d7a
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x1009dc3
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x1009d6d
call fcn.0100896d
pop ebp
xor edx, dword [ecx + ecx*2]
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0100896d
call 0x868db4bc
aam 0xf8
invalid
Function at 0x100c7dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x100c805
xor eax, eax
jmp 0x100c973
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10123c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100c838
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0100e0a0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100c90a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x100c945
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x100c893
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100c884
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x100c867
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c8d3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x100c8dc
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100c858
jmp 0x100c8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x100c96e
cmp dword [ebp - 8], edi
je 0x100c945
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x100c937
call fcn.0100a7d4
mov dword [eax], 9
call fcn.0100a7dd
mov dword [eax], esi
jmp 0x100c940
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c92c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x100c8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100c8de
push dword [ebp - 8]
call fcn.0100a7e6
pop ecx
or eax, 0xffffffff
jmp 0x100c971
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100c95a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x100c95a
xor eax, eax
jmp 0x100c971
call fcn.0100a7d4
mov dword [eax], 0x1c
call fcn.0100a7dd
mov dword [eax], edi
jmp 0x100c940
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0100708e
leave
ret
Function at 0x100d405
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x100d5cb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10123c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100d5cb
test cl, 0x48
je 0x100d46b
mov al, byte [eax + 5]
cmp al, 0xa
je 0x100d46b
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100d4bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100d4a5
call fcn.0100a7d4
mov dword [eax], 9
call fcn.0100a7dd
mov dword [eax], esi
jmp 0x100d4b5
cmp eax, 0x6d
je 0x100d5cb
push eax
call fcn.0100a7e6
pop ecx
or eax, 0xffffffff
jmp 0x100d5cd
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100d5c6
test edx, edx
je 0x100d4e0
cmp byte [ebx], 0xa
jne 0x100d4e0
or al, 4
jmp 0x100d4e2
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x100d5c0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100d5b0
cmp al, 0xd
je 0x100d516
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100d5a2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100d530
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100d52b
add dword [ebp + 0x10], 2
jmp 0x100d584
mov dword [ebp + 0x10], eax
jmp 0x100d59e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100d558
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d59e
cmp dword [ebp - 0xc], 0
je 0x100d59e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100d579
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100d584
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100d5a1
cmp ebx, dword [ebp + 0xc]
jne 0x100d589
cmp byte [ebp - 1], 0xa
jne 0x100d589
mov byte [ebx], 0xa
jmp 0x100d5a1
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0100c6bd
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100d5a2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100d4fa
jmp 0x100d5c0
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x100d5c0
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100d5cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e2d3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.01007020
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0100c6bd
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100e3fd
push 2
push esi
push dword [ebp + 8]
call fcn.0100c6bd
add esp, 0xc
cmp eax, ebx
je 0x100e3fd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x100e3a0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.01006a70
push 0x8000
push dword [ebp + 8]
call fcn.0100e4ee
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x100e359
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0100c7dc
add esp, 0xc
cmp eax, 0xffffffff
je 0x100e379
sub edi, eax
test edi, edi
jg 0x100e351
jmp 0x100e391
call fcn.0100a7dd
cmp dword [eax], 5
jne 0x100e38e
call fcn.0100a7d4
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0100e4ee
pop ecx
pop ecx
jmp 0x100e3e8
jge 0x100e3e8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100c6bd
push dword [ebp + 8]
call fcn.0100d08b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100e3e8
call fcn.0100a7d4
mov dword [eax], 0xd
call fcn.0100a7dd
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0100c6bd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100e3ff
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0100708e
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4ef23ea2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1935352b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100021f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d56b
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x10052198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x470], 0
mov dword [ebp - 0x46c], 4
mov dword [ebp - 0x468], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x18], xmm0
lea eax, [edi + 0x294]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x428]
push 0x1f4
push eax
call fcn.10034f80
lea eax, [edi + 0x258]
push eax
lea eax, [ebp - 0x464]
push 0x3c
push eax
call fcn.10035020
mov eax, dword [esi + 0x10]
xor ecx, ecx
movups xmm0, xmmword [edi + 0x68]
inc eax
mov edx, 2
mul edx
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [edi + 0x78]
movups xmmword [ebp - 0x30], xmm0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100336ed
add esp, 0x1c
mov ecx, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20], ecx
jb 0x100022c3
mov esi, dword [esi]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100022c3
push 0
lea eax, [ebp - 0x474]
push eax
push 0x460
lea eax, [ebp - 0x470]
push eax
push dword [0x100549bc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100336f6
mov esp, ebp
pop ebp
ret 8

Function at 0x10002320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10052198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov byte [ebp - 0x464], 0
mov dword [ebp - 0x460], 3
mov dword [ebp - 0x45c], 0
lea eax, [esi + 0x294]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x41c]
movlpd qword [ebp - 0xc], xmm0
push 0x1f4
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.10034f80
lea eax, [esi + 0x258]
push eax
lea eax, [ebp - 0x458]
push 0x3c
push eax
call fcn.10035020
movups xmm0, xmmword [esi + 0x68]
add esp, 0x18
lea eax, [ebp - 0x468]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [esi + 0x78]
push 0
push eax
push 0x460
lea eax, [ebp - 0x464]
push eax
push dword [0x100549bc]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100336f6
mov esp, ebp
pop ebp
ret 4