joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4206d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4206fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4206fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x7003197
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x70031a6
pop dword [ebp - 0x40]
mov eax, 0x3efb2eec
sub eax, 0x37fafd46
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x8c61a6fa
sub dword [ebp - 0x50], 0x3e0f61af
mov dword [ebp - 0x4c], 0x5266c9e6
sub dword [ebp - 0x4c], 0x20337da1
mov dword [ebp - 0x48], 0xc477688
add dword [ebp - 0x48], 0x4004cda6
mov dword [ebp - 0x44], 0xbae8aa58
sub dword [ebp - 0x44], 0xbae8aa58
lea eax, [ebp - 0x50]
push eax
mov eax, 0x385a46b1
add eax, 0xcea6e97f
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x4761498c
add dword [ebp - 0x50], 0x2d111fca
mov dword [ebp - 0x4c], 0xd49033e7
add dword [ebp - 0x4c], 0x6cdc2d8e
mov dword [ebp - 0x48], 0x9b8bbd71
sub dword [ebp - 0x48], 0x381c5105
mov dword [ebp - 0x44], 0xab98e344
add dword [ebp - 0x44], 0x54671cbc
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xee4bdbcd
add eax, 0x18b55467
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3deff
push 0
call eax
mov ecx, 0x3e5d1e6
add ecx, 0xfc1a836b
mov edx, eax
mov ebx, 0x5dd880f4
add ebx, 0xa929810c
add ebx, dword [ebp - 0x40]
mov esi, 0xfbd0ba3d
add esi, 0x9860461c
add dword [ebp - 0x20], eax
mov edi, dword [ebx]
mov dword [ebp - 0x14], 0x7c5f5861
add edi, esi
xor dword [ebp - 0x20], edi
mov dword [edx], edi
xor dword [ebp - 0x10], 0xcee007d9
add edx, 0x7af8e90e
add edx, 0x850716f6
add ebx, 0x31a613b9
add ebx, 0xce59ec4b
loop 0x70032c8
add eax, 0xd8dc41e9
sub eax, 0xd8daf9d2
mov ebx, eax
add eax, 0xa7ed9122
add eax, 0x58126ee3
mov ecx, 0x7000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003197
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003197
int3
Function at 0x700de90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700def4
cmp byte [esi + 0x10], 0
je 0x700deb2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esi + 0xc]
pop ecx
mov byte [esi + 0x10], 0
push edi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700dee2
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
pop ecx
test eax, eax
je 0x700defb
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700def6
xor eax, eax
pop esi
pop ebp
ret 8
push str.stream_read_error
push 0
call fcn.07003197
int3

Function at 0x700e170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
jne 0x700e1c3
cmp dword [esi + 0xc], 0
je 0x700e1be
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700e1b1
push str.stream_write_error
jmp 0x700e1c8
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
push str.Attempt_to_write_read_only_stream
push 0
call fcn.07003197
int3
Function at 0x4180cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4223dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e3d5
and dword [ebp - 0x14], 0
cmp dword [0x81fdb4], 0
mov dword [ebp - 0x18], eax
jne 0x41817e
push 0x404000
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418226
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ff4
push ebx
call edi
test eax, eax
je 0x418226
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fe4
push ebx
mov dword [0x81fdb4], eax
call edi
push eax
call esi
push 0x403fd0
push ebx
mov dword [0x81fdb8], eax
call edi
push eax
call esi
push 0x403fb4
push ebx
mov dword [0x81fdbc], eax
call edi
push eax
call esi
mov dword [0x81fdc4], eax
test eax, eax
je 0x41817e
push 0x403f9c
push ebx
call edi
push eax
call esi
mov dword [0x81fdc0], eax
mov eax, dword [0x81fdc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4181d7
cmp dword [0x81fdc4], ecx
je 0x4181d7
push eax
call esi
push dword [0x81fdc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4181d7
test ebx, ebx
je 0x4181d7
call edi
test eax, eax
je 0x4181ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4181ce
test byte [ebp - 8], 1
jne 0x4181d7
or dword [ebp + 0x10], 0x200000
jmp 0x41820a
mov eax, dword [0x81fdb8]
cmp eax, dword [ebp - 0x18]
je 0x41820a
push eax
call esi
test eax, eax
je 0x41820a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41820a
mov eax, dword [0x81fdbc]
cmp eax, dword [ebp - 0x18]
je 0x41820a
push eax
call esi
test eax, eax
je 0x41820a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81fdb4]
call esi
test eax, eax
je 0x418226
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418228
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b59e
leave
ret
Function at 0x41d350
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x22ac
call fcn.00418990
cmp dword [0xcca20c], 0x37
jne 0x41d4e9
push 0
lea eax, [esp + 0x16ac]
push eax
push 0
push 0x4041e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea edx, [esp + 0x6ac]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push 0x404220
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
xor eax, eax
push eax
lea edx, [esp + 0xeac]
push edx
push 0x404234
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
mov word [esp + 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea edx, [esp + 0x2ac]
push edx
push 0x404250
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x1aac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x188]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0x404264
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x40429c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0x4042c0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0040a970
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0xccc970]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0xcc8a04]
mov byte [eax + esi], dl
add esp, 0x22ac
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x6a2313f3
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7e111f8d
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10043d9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x1004476
cmp eax, esi
jae 0x1004476
push 0xffffffffffffffff
push 0x1001380
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x1004476
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x1004476
push 0x100136c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x100446f
push edi
push edi
push 1
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006ce8
leave
ret

Function at 0x1004a70
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push 0x1001c60
push SysReAllocString
mov dword [ebp - 8], 6
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004aa6
mov eax, 0x8000ffff
jmp 0x1004ad1
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x1001c38
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1004ac6
mov esi, 0x8000ffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1004ad9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push 0x1001c60
push SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004b3f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1001c38
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 4]
jne 0x1004b39
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x1004b47
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01004a70
push 6
pop eax
pop esi
leave
ret
Function at 0x1005356
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 8]
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100511a
test eax, eax
jl 0x1005421
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10053ad
sub eax, edx
sar eax, 1
je 0x10053de
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x10053de
push 0x1001cd0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01005154
test eax, eax
jl 0x1005421
push dword [0x100e038]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01005154
test eax, eax
jl 0x1005421
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100541f
lea eax, [ebp - 0x20c]
push eax
call fcn.01008788
test al, al
pop ecx
jne 0x100541f
mov eax, 0x80004005
jmp 0x1005421
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01006ce8
leave
ret

Function at 0x1006ce8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e1b0]
jne 0x1006cf2
repz ret
jmp fcn.01006d6c

Function at 0x1006d6c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x100e8d0], eax
mov dword [0x100e8cc], ecx
mov dword [0x100e8c8], edx
mov dword [0x100e8c4], ebx
mov dword [0x100e8c0], esi
mov dword [0x100e8bc], edi
mov word [0x100e8e8], ss
mov word [0x100e8dc], cs
mov word [0x100e8b8], ds
mov word [0x100e8b4], es
mov word [0x100e8b0], fs
mov word [0x100e8ac], gs
pushfd
pop dword [0x100e8e0]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x100e8e4], ecx
mov dword [0x100e8d8], eax
mov dword [0x100e820], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x100e7dc], eax
mov eax, dword [0x100e1b0]
xor edi, edi
mov dword [0x100e8d4], ecx
mov dword [0x100e7d0], 0xc0000409
inc edi
mov dword [0x100e7d4], edi
mov dword [ebp - 4], eax
mov eax, dword [0x100e1b4]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1002228
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x1007168
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100c7b0
call fcn.01007358
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100fb90
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1006f01
cmp eax, esi
jne 0x1006ef4
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1006f04
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006edb
xor esi, esi
inc esi
mov eax, dword [0x100fb8c]
cmp eax, esi
jne 0x1006f17
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x1006f46
mov eax, dword [0x100fb8c]
test eax, eax
jne 0x1006f40
mov dword [0x100fb8c], esi
push 0x1001314
push 0x1001308
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x1006f46
jmp 0x100706e
mov dword [0x100eb08], esi
mov eax, dword [0x100fb8c]
cmp eax, esi
jne 0x1006f6a
push 0x1001304
push 0x10012e8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x100fb8c], 2
test ebx, ebx
jne 0x1006f76
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100fb9c], 0
je 0x1006f9a
push 0x100fb9c
call fcn.01007660
pop ecx
test eax, eax
je 0x1006f9a
push 0
push 2
push 0
call dword [0x100fb9c]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1006ff6
test al, al
je 0x1006fb4
cmp dword [ebp - 0x1c], 0
jne 0x1006ff6
mov al, byte [esi]
test al, al
je 0x1006fc4
cmp al, 0x20
ja 0x1006fc4
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006fb4
test byte [ebp - 0x3c], 1
je 0x1006fd0
movzx eax, word [ebp - 0x38]
jmp 0x1006fd3
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100eb04], eax
cmp dword [0x100eaf8], 0
jne 0x100704a
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x1007005
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x1007018
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1006fa1
cmp dword [0x100eb08], 0
jne 0x1007059
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100eb04]
jmp 0x100707a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100739d
ret
call fcn.01006cfc
jmp 0x1006ea1
Function at 0x1007b78
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x1007b90
mov eax, 0x80004003
jmp 0x1007bb5
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
movzx ecx, ah
mov ch, al
jae 0x1007bb9
cmp ecx, 0x500
jae 0x1007bc1
mov word [esi], di
mov eax, 0x80004005
pop edi
pop esi
leave
ret
cmp ecx, 0x45a
jb 0x1007bad
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1007bad
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x1007c0f
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1007c0f
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1007c0f
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1007c14
sub eax, edx
sar eax, 1
je 0x1007bad
xor eax, eax
jmp 0x1007bb5

Function at 0x1007e05
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x210]
push eax
push 0x1002290
push dword [esi + 0x7c]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], edi
call fcn.01009cc6
add esp, 0x10
test eax, eax
jne 0x1007ec1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1002270
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007e8f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1007ec1
push 0x1002264
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007ec1
push esi
mov dword [esi + 4], edi
call eax
test ebx, ebx
pop ecx
je 0x1007ebc
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x1007ec3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006ce8
leave
ret