joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013570
Capabilities:
Encode data using xor
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x1001d018]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
lea ecx, [eax + 0xf8]
push esi
add eax, 0x198
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [eax], 0
je 0x1001369a
lea esi, [esp + 0x20]
call fcn.10003e70
mov edx, dword [esp + 0x14]
push 0x1001a49c
push edx
lea eax, [esp + 0x18]
push eax
or esi, 0xffffffff
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x100136dc
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
push ecx
test edi, edi
je 0x100136d3
push 0x400
push 1
push edi
call ebx
add esp, 0x10
test eax, eax
je 0x10013656
mov ecx, edi
test eax, eax
je 0x10013640
movzx ebx, byte [ecx]
mov edx, esi
and edx, 0xff
xor edx, ebx
shr esi, 8
xor esi, dword [esp + edx*4 + 0x20]
inc ecx
dec eax
jne 0x10013622
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
mov eax, dword [esp + 0x10]
push eax
push 0x400
push 1
push edi
call ebx
add esp, 0x10
test eax, eax
jne 0x1001361c
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
mov edx, dword [esp + 0x20]
not esi
add esp, 8
cmp dword [edx], esi
jne 0x100136f1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10013706
push 0x1001aa28
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001369a
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x20
inc ecx
add eax, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
cmp ecx, 5
jl 0x100135b1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10018a8d
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push str._Error__CheckPluginFile_1:_Failed_to_calculate_CRC_for_a_plugin_file.
call fcn.10018080
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._Error__CheckPluginFile_2:_Plugin_file_CRC_does_not_match.
call fcn.10018080
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._Error__CheckPluginFile_3:_Failed_to_load_a_plugin_file.
call fcn.10018080
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10014050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
call fcn.10015090
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x50]
mov dword [0x1015e648], edx
mov dword [0x1015e63c], eax
mov eax, dword [esi + 0x54]
mov dword [0x1015e64c], eax
mov dword [0x1015e644], ecx
mov ecx, dword [esi + 0x58]
mov dword [0x1015e650], ecx
mov edx, dword [esi + 0x5c]
mov dword [0x1015e654], edx
mov eax, dword [esi + 0x60]
mov dword [0x1015e658], eax
mov ecx, dword [esi + 0x64]
mov dword [0x1015e65c], ecx
mov edx, dword [esi + 0x68]
mov dword [0x1015e660], edx
mov eax, dword [esi + 0x6c]
mov dword [0x1015e664], eax
mov ecx, dword [esi + 0x70]
mov dword [0x1015e6a0], ecx
mov edx, dword [esi + 0x74]
mov dword [0x1015e6a4], edx
mov eax, dword [esi + 0x78]
mov dword [0x1015e6a8], eax
mov ecx, dword [esi + 0x7c]
mov dword [0x1015e6ac], ecx
mov edx, dword [esi + 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x1015e6b0], edx
mov eax, dword [0x7bc4f04]
xor ecx, ecx
mov word [eax + 0x7e], cx
mov edx, dword [0x7bc4f04]
mov byte [edx + 0x30c], cl
mov eax, dword [0x8128ac8]
movzx ecx, byte [eax + 0xb]
lea edx, [ebp - 4]
push edx
push 0x40
push 1
and ecx, 7
mov bl, byte [ecx + 0x100b95ec]
push 0x556c38
call esi
lea eax, [ebp - 4]
push eax
mov byte [0x556c38], bl
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x556c38
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx edx, word [eax + 4]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0xe], dx
movzx edx, word [eax + 6]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x74], dx
movzx edx, word [eax + 0x10]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x18], dx
movzx edx, word [eax + 0x12]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x1a], dx
movzx edx, word [eax + 0x14]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x1c], dx
movzx edx, word [eax + 0x16]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x1e], dx
movzx edx, word [eax + 0x18]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x20], dx
movzx edx, word [eax + 0x1a]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x22], dx
movzx edx, word [eax + 0x1c]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x26], dx
movzx edx, word [eax + 0x1e]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x24], dx
movzx edx, word [eax + 0x20]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x28], dx
movzx edx, word [eax + 0x22]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x40], dx
movzx edx, word [eax + 0x24]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x42], dx
movzx edx, word [eax + 0x26]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x2a], dx
movzx edx, word [eax + 0x28]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x2c], dx
movzx edx, word [eax + 0x2a]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x4c], dx
movzx edx, word [eax + 0x2c]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x4e], dx
movzx edx, word [eax + 0x2e]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x50], dx
movzx edx, word [eax + 0x30]
mov ecx, dword [0x8128ac8]
mov word [ecx + 0x52], dx
mov ecx, dword [0x8128ac8]
mov edx, dword [eax + 8]
mov dword [ecx + 0x10], edx
mov ecx, dword [0x8128ac8]
mov edx, dword [eax + 0xc]
mov dword [ecx + 0x14], edx
mov ecx, dword [eax + 0x70]
mov dword [0x87935e0], ecx
mov edx, dword [eax + 0x74]
mov dword [0x87935e4], edx
mov ecx, dword [eax + 0x78]
mov dword [0x87935e8], ecx
mov edx, dword [eax + 0x7c]
mov dword [0x87935ec], edx
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
mov dword [0x1015e63c], ecx
mov ecx, dword [eax + 0x3c]
mov dword [0x1015e648], ecx
mov dword [0x1015e644], edx
mov edx, dword [eax + 0x40]
mov dword [0x1015e64c], edx
mov ecx, dword [eax + 0x44]
mov dword [0x1015e650], ecx
mov edx, dword [eax + 0x48]
mov dword [0x1015e654], edx
mov ecx, dword [eax + 0x4c]
mov dword [0x1015e658], ecx
mov edx, dword [eax + 0x50]
mov dword [0x1015e65c], edx
mov ecx, dword [eax + 0x54]
mov dword [0x1015e660], ecx
mov edx, dword [eax + 0x58]
mov dword [0x1015e664], edx
mov ecx, dword [eax + 0x5c]
mov dword [0x1015e6a0], ecx
mov edx, dword [eax + 0x60]
mov dword [0x1015e6a4], edx
mov ecx, dword [eax + 0x64]
mov dword [0x1015e6a8], ecx
mov edx, dword [eax + 0x68]
mov dword [0x1015e6ac], edx
mov ecx, dword [eax + 0x6c]
mov dword [0x1015e6b0], ecx
mov edx, dword [eax + 8]
mov dword [0x1015e688], edx
mov ecx, dword [eax + 0xc]
mov dword [0x1015e68c], ecx
mov edx, dword [eax + 0x70]
mov dword [0x1015e690], edx
mov ecx, dword [eax + 0x74]
mov dword [0x1015e694], ecx
mov edx, dword [eax + 0x78]
mov dword [0x1015e698], edx
mov eax, dword [eax + 0x7c]
mov dword [0x1015e69c], eax
ret
Function at 0x10014850
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [0x101551cc], 0
je 0x10001184
cmp dword [0x1015e9ec], 0
jne 0x10001184
push esi
push 1
mov eax, 0x635fd0
call eax
fld dword [0x1001abe4]
mov esi, dword [sym.imp.OPENGL32.dll_glColor4f]
fstp dword [esp]
fldz
sub esp, 0xc
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call esi
fld dword [0x1001ad8c]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1001ad00]
mov ecx, 0x6378a0
fstp dword [esp + 8]
fld dword [0x1001ad88]
fstp dword [esp + 4]
fldz
fstp dword [esp]
call ecx
fld1
fst dword [esp + 0xc]
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call esi
push 0xde1
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0
mov edx, 0x635fd0
call edx
push 1
mov eax, 0x635fd0
call eax
mov ecx, dword [0xe8c590]
add esp, 8
push ecx
mov edx, 0x41fe10
call edx
mov edx, 0x420120
mov ecx, eax
call edx
push 0
push 0
push 0
push 0
mov eax, 0x41fe10
call eax
mov edx, 0x4200b0
mov ecx, eax
call edx
push 0xff
push 0x28
push 0xd2
push 0xff
mov eax, 0x41fe10
call eax
mov edx, 0x420040
mov ecx, eax
call edx
push 0
push 8
push 0
push 0
push 0
call fcn.10008350
push eax
push 0x55
push 0x140
mov eax, 0x41fe10
call eax
mov edx, 0x420150
mov ecx, eax
call edx
mov eax, 0x635f50
pop esi
jmp eax
ret
mov eax, 0x80f8e0
call eax
cmp dword [0xe609e8], 5
jne 0x1001490e
call fcn.100183d0
cmp dword [0x1015e744], 1
je 0x10014877
jmp 0x10001060
push esi
call fcn.10014910
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1015e750]
cmp eax, dword [0x1015e758]
jbe 0x100148d6
mov dword [0x1015e744], 2
mov dword [0x1015e748], 0
call esi
mov dword [0x1015e74c], eax
call esi
mov dword [0x1015e750], eax
mov dword [0x1015e754], 0
mov dword [0x1015e758], 0
mov edx, 0x63a180
mov ecx, 0x8793750
pop esi
jmp edx
call esi
sub eax, dword [0x1015e74c]
cmp eax, dword [0x1015e754]
jb 0x1001490d
mov eax, dword [0x1015e748]
sub eax, 0
je 0x10014901
dec eax
jne 0x10014906
call fcn.10014ba0
call esi
mov dword [0x1015e74c], eax
pop esi
ret
call fcn.10014b40
call esi
mov dword [0x1015e74c], eax
pop esi
ret

Function at 0x10015010
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1015e748], 2
jne 0x1001508b
mov edx, dword [0x1015cbcc]
mov eax, dword [0x1015cbc8]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov ax, word [0x1015cbd0]
lea edx, [ebp - 0x10]
push esi
mov ecx, 0xe
push edx
mov dword [ebp - 0x10], 0x3f30ec1
mov word [ebp - 4], ax
call fcn.10014680
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
mov dword [0x1015e744], 1
mov dword [0x1015e748], 3
call esi
mov dword [0x1015e74c], eax
call esi
mov dword [0x1015e750], eax
mov eax, 0x7530
mov dword [0x1015e754], eax
mov dword [0x1015e758], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015090
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
cmp dword [0x1015e748], 3
push esi
jne 0x100150c4
cmp dword [0x1015e760], ebx
je 0x100150c4
lea eax, [ebp - 8]
lea ecx, [ebx + 5]
push eax
mov dword [ebp - 8], 0x51bf05c1
mov byte [ebp - 4], bl
call fcn.10014680
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1015e744], ebx
mov dword [0x1015e748], ebx
call esi
mov dword [0x1015e74c], eax
call esi
pop esi
mov dword [0x1015e754], ebx
mov dword [0x1015e758], ebx
mov dword [0x1015e75c], ebx
mov dword [0x1015e760], ebx
mov dword [0x1015e750], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100153a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x4d128f
call esi
lea ecx, [ebp - 4]
push ecx
mov byte [0x4d128f], 0x1d
mov edx, dword [ebp - 4]
push edx
push 1
push 0x4d128f
call esi
push 0x10015420
push 0x4d13c2
mov bl, 0xe9
call fcn.10017e50
push 0x10015580
push 0x4d2782
call fcn.10017e50
push 0x10015650
push 0x830c3a
call fcn.10017e50
push 0x5db490
push 0x5db3be
mov bl, 0xe8
call fcn.10017e50
add esp, 0x20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 8
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x1001772e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
fld qword [ebp + 8]
lea ecx, [ebp - 8]
fstp qword [esi]
push ecx
push edx
push 8
push esi
mov dword [ebp - 8], 0
call edi
test eax, eax
je 0x10017723
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10017760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x1015eacc]
push esi
test eax, eax
jne 0x1001778d
mov eax, dword [0xe8c578]
push 0x10017890
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x1015eacc], eax
test eax, eax
je 0x100177d8
mov ecx, dword [0xe8c578]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x100177be
mov edx, dword [0xe8c578]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov esi, 0x1015eac8
call fcn.100177e0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0xe8c578]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov esi, 0x1015eac8
call fcn.100177e0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10017bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [0x8128ac8]
sub esp, 0x34
mov dword [0x1015cc4c], eax
mov ecx, dword [0x7bc4f04]
push ebx
mov dword [0x1015cc50], ecx
mov eax, dword [0xe6172c]
push esi
xor ebx, ebx
push edi
cmp eax, 0xffffffff
je 0x10017c0d
push eax
mov edx, 0x402bc0
call edx
mov edx, 0x96a4c0
mov ecx, eax
call edx
mov dword [0x1015cc54], eax
mov byte [0x1015cc58], 1
jmp 0x10017c4a
mov eax, dword [0xe61730]
cmp eax, 0xffffffff
je 0x10017c36
push eax
mov eax, 0x402bc0
call eax
mov edx, 0x96a4c0
mov ecx, eax
call edx
mov dword [0x1015cc54], eax
mov byte [0x1015cc58], 2
jmp 0x10017c4a
cmp dword [0x1015cc54], ebx
je 0x10017c44
mov dword [0x1015cc54], ebx
mov byte [0x1015cc58], bl
mov eax, dword [0x879340c]
mov dword [0x1015cc60], eax
mov ecx, dword [0x8793410]
mov eax, dword [0x1015cc50]
mov dword [0x1015cc68], ecx
mov edx, dword [0xe61e18]
mov dword [0x1015cc5c], edx
mov ecx, dword [eax + 0xac]
mov dword [0x1015cc08], ecx
mov edx, dword [eax + 0xb0]
mov eax, dword [0x1015cc4c]
push eax
mov dword [0x1015cc0c], edx
movsx ecx, word [eax + 0xe]
push 0x1001a4e8
push 0x1015cc18
mov dword [0x1015cc10], ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov edx, dword [0x7bc4f04]
movzx eax, byte [edx + 0x32]
mov ecx, dword [0x8128ac8]
movzx eax, word [ecx + eax*2 + 0x78]
mov edx, 0x105
add esp, 0xc
cmp ax, dx
je 0x10017d12
mov ecx, 0x228
cmp ax, cx
je 0x10017d12
mov edx, 0x22b
cmp ax, dx
je 0x10017d12
fld qword [0x1001adc8]
sub esp, 8
mov esi, 0xd27c88
fstp qword [esp]
call fcn.10017700
fld qword [0x1001adc0]
mov esi, 0xd281c0
fstp qword [esp]
call fcn.10017700
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [0x1001adb8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x30]
fstp qword [esp + 0x38]
push eax
push 0x40
push 8
push 0xd27c88
mov dword [esp + 0x40], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10017d62
fld qword [esp + 0x38]
mov ecx, 0xd27c88
fstp qword [ecx]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push eax
push 8
push ecx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
jne 0x10017d64
call edi
fld qword [0x1001adb0]
lea ecx, [esp + 0x30]
push ecx
fstp qword [esp + 0x3c]
push 0x40
push 8
push 0xd281c0
mov dword [esp + 0x40], ebx
call esi
test eax, eax
je 0x10017da8
fld qword [esp + 0x38]
mov edx, 0xd281c0
fstp qword [edx]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push ecx
push 8
push edx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
jne 0x10017daa
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 0x40
push 1
push esi
call edi
mov eax, dword [ebp + 8]
mov cl, byte [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push eax
push 1
push esi
mov byte [esi], cl
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x10017df0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call edi
fld dword [ebp + 8]
mov edx, dword [ebp - 4]
fstp dword [esi]
lea ecx, [ebp - 4]
push ecx
push edx
push 4
push esi
call edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10017e20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 0x40
push 8
push esi
call edi
fld qword [ebp + 0xc]
mov edx, dword [ebp + 8]
fstp qword [esi]
lea ecx, [ebp + 8]
push ecx
push edx
push 8
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x10017e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call edi
cmp bl, 0xff
je 0x10017e71
mov byte [esi], bl
mov ecx, dword [ebp + 0xc]
sub ecx, esi
sub ecx, 5
lea edx, [ebp - 4]
push edx
mov dword [esi + 1], ecx
mov eax, dword [ebp - 4]
push eax
push 5
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10017e90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017f20
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x1015cb44]
push edi
push 0x1001aa9c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1001806f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xc
jb 0x1001806f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1001806f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10017f88
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edi
push ebx
cmp edx, dword [esi + 8]
jne 0x10017fff
mov eax, dword [esi]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
lea edx, [ecx*4 + 0xc]
cmp eax, edx
jb 0x1001806e
xor ebx, ebx
test ecx, ecx
je 0x10018064
lea esp, [esp]
mov edi, dword [esi + ebx*4 + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push eax
push 4
push edi
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc ebx
cmp ebx, dword [esi]
jb 0x10017fc0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
lea edx, [ecx*8 + 0xc]
cmp eax, edx
jb 0x1001806e
mov dword [ebp - 4], 0
test ecx, ecx
je 0x10018064
mov eax, dword [ebp - 4]
add eax, eax
add eax, eax
add eax, eax
mov edi, dword [eax + esi + 0x10]
mov ebx, dword [eax + esi + 0xc]
add edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 8]
push ecx
push edx
push 4
push ebx
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi]
jb 0x10018023
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100180f0
Capabilities:
Get common file path
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10018129
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018a8d
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10018119
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x10e]
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
and ecx, 0xf5fb
shl edx, 0x10
or ecx, edx
xor ecx, 0x15ca2020
push ecx
movzx ecx, word [ebp - 0x130]
shl ecx, 0xe
mov edx, eax
shr edx, 2
or ecx, edx
push ecx
mov ecx, dword [ebp - 0x11c]
shl ecx, 0x10
or ecx, eax
imul eax, eax
imul ecx, ecx, 0x14ce1989
push ecx
sub eax, 0x13b06451
push eax
push 0x12ba1074
push str._08X__08X__08X__08X__08X
push 0x1015ebec
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x1c
mov eax, 0x1015ebec
call fcn.10018a8d
mov esp, ebp
pop ebp
ret

Function at 0x100181e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 2
push 0x405b7c
call esi
lea ecx, [ebp - 4]
push ecx
mov word [0x405b7c], di
mov edx, dword [ebp - 4]
push edx
push 2
push 0x405b7c
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 2
push 0x40cc40
call esi
lea ecx, [ebp - 4]
push ecx
mov word [0x40cc40], di
mov edx, dword [ebp - 4]
push edx
push 2
push 0x40cc40
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x595275
call esi
mov cl, byte [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov byte [0x595275], cl
mov eax, dword [ebp - 4]
push eax
push 1
push 0x595275
call esi
lea ecx, [ebp - 4]
push ecx
push 0x40
push 1
push 0x81105c
call esi
mov dl, byte [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov byte [0x81105c], dl
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x81105c
call esi
lea edx, [ebp + 0xc]
push edx
push 0x40
push 2
push 0x5952aa
call esi
lea eax, [ebp + 0xc]
push eax
mov word [0x5952aa], bx
mov ecx, dword [ebp + 0xc]
push ecx
push 2
push 0x5952aa
call esi
lea edx, [ebp + 0xc]
push edx
push 0x40
push 2
push 0x81109d
call esi
mov word [0x81109d], bx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
push 2
push 0x81109d
call esi
mov edx, dword [ebp + 8]
mov dword [0x1015cc04], edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10018a8d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d018]
jne 0x10018a97
repz ret
jmp fcn.10018f49