joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015936
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [0x10055b04], edi
jne 0x10015a81
call fcn.10015854
test eax, eax
jne 0x10015986
push 0x10046428
push 0x10044508
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x10015a81
push esi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x39c], ax
lea eax, [ebp + 0x39e]
push edi
push eax
call fcn.1001a410
xor eax, eax
push esi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push edi
push eax
call fcn.1001a410
add esp, 0x18
lea eax, [ebp + 0x194]
push eax
mov ecx, ebx
call fcn.10015156
test eax, eax
je 0x10015a80
push 0x10046158
lea eax, [ebp + 0x194]
push eax
push 0x10046414
lea eax, [ebp + 0x39c]
push 0x104
push eax
call fcn.1000551f
add esp, 0x14
push edi
push edi
push 0x2001f
push edi
push edi
push 0x10044508
push 0x80000002
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.1000509d
test eax, eax
jne 0x10015a78
push esi
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.1001a410
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
mov esi, 0x10046428
push esi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
call fcn.10005138
test eax, eax
jne 0x10015a66
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.1001bc93
pop ecx
pop ecx
test eax, eax
je 0x10015a78
push 1
lea eax, [ebp + 0x39c]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.100051c1
lea ecx, [ebp - 0x7c]
call fcn.10005082
pop esi
mov ecx, dword [ebp + 0x5a4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001a870
add ebp, 0x5a8
leave
ret

Function at 0x10015a98
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.1001a410
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.100152c7
pop esi
test eax, eax
je 0x10015b01
push 0x10046170
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a870
leave
ret
Function at 0x10015e98
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov dword [ebp - 0x80], ecx
call fcn.10015854
test eax, eax
je 0x10016037
push ebx
push esi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x18c], ax
xor ebx, ebx
lea eax, [ebp + 0x18e]
push ebx
push eax
call fcn.1001a410
mov ecx, dword [ebp - 0x80]
add esp, 0xc
lea eax, [ebp + 0x18c]
push eax
call fcn.10015156
test eax, eax
je 0x10016035
push edi
xor eax, eax
push esi
mov word [ebp + 0x59c], ax
lea eax, [ebp + 0x59e]
push ebx
push eax
call fcn.1001a410
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x10046158
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x59c]
push eax
call edi
cmp dword [ebp + 0x7b0], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x10015f52
lea eax, [ebp + 0x59c]
push eax
call ebx
test eax, eax
jne 0x10016008
xor eax, eax
push esi
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.1001a410
add esp, 0xc
push 0x10046400
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
call edi
xor eax, eax
push esi
push eax
mov word [ebp + 0x394], ax
lea eax, [ebp + 0x396]
push eax
call fcn.1001a410
add esp, 0xc
push 0x100464ac
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x394]
push eax
call edi
lea eax, [ebp - 0x7c]
push eax
call ebx
test eax, eax
je 0x10015fc8
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.10014789
test eax, eax
jne 0x10015fcc
xor eax, eax
jmp 0x10016034
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x59c]
push eax
call fcn.100150b4
cmp eax, 1
jne 0x1001600d
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp + 0x59c]
push eax
call fcn.10014674
cmp eax, 1
jne 0x1001600d
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x10016034
lea eax, [ebp + 0x59c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x59c]
push eax
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7a4]
xor ecx, ebp
call fcn.1001a870
add ebp, 0x7a8
leave
ret 4
Function at 0x10016192
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x14c
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x24
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.1001a410
add esp, 0xc
push 0x10043900
push 0x100438f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100161e0
lea ecx, [ebp - 0xd4]
push ecx
call eax
jmp 0x100161ed
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0xd4], 9
je 0x10016201
cmp word [ebp - 0xd4], 6
jne 0x1001620b
mov dword [0x10055b04], 1
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.1001a410
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10016255
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
je 0x1001627a
cmp dword [ebp - 0x98], 2
je 0x10016262
xor eax, eax
jmp 0x100162d2
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
movzx edi, word [ebp + 0x6c]
jmp 0x100162be
and dword [ebp - 0xac], edi
and dword [ebp - 0xb0], edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x1004663c
call fcn.1001611b
add esp, 0xc
test eax, eax
je 0x100162cf
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
movzx edx, word [ebp - 0xac]
shr eax, 0x10
shr ecx, 0x10
cmp eax, 5
jb 0x1001625e
jne 0x100162ed
test edx, edx
jne 0x100162e3
cmp di, 4
jb 0x1001625e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.1001a870
add ebp, 0x78
leave
ret
cmp edx, 2
jne 0x100162cf
jmp 0x1001625e
cmp eax, 6
jne 0x100162cf
test edx, edx
jne 0x10016313
cmp ecx, 0x1770
je 0x100162cf
cmp ecx, 0x1771
je 0x100162cf
cmp ecx, 0x1772
je 0x100162cf
jmp 0x1001625e
cmp edx, 1
jne 0x100162cf
cmp ecx, 0x1b58
je 0x100162cf
cmp ecx, 0x1bbc
je 0x100162cf
cmp ecx, 0x1db0
je 0x100162cf
cmp ecx, 0x1db1
jmp 0x1001630c
Function at 0x100164ac
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
mov dword [ebp - 0x80], 0x10046710
mov dword [ebp - 0x7c], 0x100466ec
mov dword [ebp - 0x78], 0x100466c0
call fcn.1001a410
add esp, 0xc
xor esi, esi
push 0x208
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001a410
add esp, 0xc
push dword [ebp + esi*4 - 0x80]
lea eax, [ebp - 0x74]
push 0x1005562c
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10016563
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016563
push dword [0x10055a50]
lea eax, [ebp - 0x74]
push eax
call fcn.10005cbb
pop ecx
pop ecx
test eax, eax
je 0x10016563
inc esi
cmp esi, 3
jb 0x100164f7
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.1001a870
add ebp, 0x198
leave
ret
xor eax, eax
jmp 0x1001654d

Function at 0x100167fd
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push 0x10044508
mov edi, 0x80000002
push edi
call esi
push str.n_H7w
push edi
call esi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.1001a410
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10044470
push esi
lea eax, [ebp + 0x190]
push eax
call fcn.1000793d
xor eax, eax
push edi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.1001a410
add esp, 0xc
mov dword [ebp - 0x80], 0x100444e4
mov dword [ebp - 0x7c], 0x100444b8
xor esi, esi
push 0x208
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.1001a410
add esp, 0xc
push dword [ebp + esi*4 - 0x80]
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 2
jl 0x1001689d
mov ecx, dword [ebp + 0x398]
pop edi
xor ecx, ebp
pop esi
call fcn.1001a870
add ebp, 0x39c
leave
ret
Function at 0x10016a73
Capabilities:
Check if file exists

Disassembly:
push 0x260
mov eax, 0x10041206
call fcn.1001a8e8
mov esi, ecx
call fcn.1001647f
test eax, eax
je 0x10016ba0
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x60], ax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x28
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
xor ebx, ebx
call fcn.10016338
test eax, eax
je 0x10016ad7
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10004567
pop ecx
pop ecx
test eax, eax
jne 0x10016afb
push 0x28
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.10016398
test eax, eax
je 0x10016afe
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10004567
pop ecx
pop ecx
test eax, eax
je 0x10016afe
xor ebx, ebx
inc ebx
xor eax, eax
push 0x206
mov word [ebp - 0x268], ax
xor edi, edi
lea eax, [ebp - 0x266]
push edi
push eax
call fcn.1001a410
add esp, 0xc
push 0x10046184
push 0x1005562c
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp ebx, edi
jne 0x10016b4a
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016ba0
lea ecx, [ebp - 0x269]
call fcn.10013b69
push edi
lea ecx, [ebp - 0x269]
mov dword [ebp - 4], edi
call fcn.100154c8
lea ecx, [ebp - 0x269]
call fcn.10014efb
cmp ebx, edi
je 0x10016b91
lea eax, [ebp - 0x38]
push eax
push 0x28
lea eax, [esi + 8]
push eax
call fcn.10003a5d
lea eax, [ebp - 0x60]
push eax
push 0x28
add esi, 0x30
push esi
call fcn.10003a5d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x269]
call int.1003a7b3
call fcn.1001a96b
ret
Function at 0x10016ba6
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x39c], ax
xor ebx, ebx
lea eax, [ebp + 0x39e]
push ebx
push eax
call fcn.1001a410
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10044470
push edi
lea eax, [ebp + 0x39c]
push eax
call fcn.1000793d
xor eax, eax
push esi
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.1001a410
xor eax, eax
push esi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push ebx
push eax
call fcn.1001a410
lea edi, [esi + 2]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x18
mov dword [ebp - 0x80], 0x100444e4
mov dword [ebp - 0x7c], 0x100444b8
mov dword [ebp - 0x78], ebx
jmp 0x10016c53
xor ebx, ebx
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.1001a410
push edi
lea eax, [ebp + 0x194]
push ebx
push eax
call fcn.1001a410
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x80]
add esp, 0x18
push ebx
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x74]
push eax
call esi
push ebx
push 0x1005562c
lea eax, [ebp + 0x194]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
jne 0x10016cb0
lea eax, [ebp + 0x194]
push eax
call ebx
test eax, eax
je 0x10016cd4
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 2
jl 0x10016c51
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a870
add ebp, 0x5a8
leave
ret
xor eax, eax
jmp 0x10016cbc

Function at 0x100171eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
jle 0x10017219
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
mov eax, esi
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [ecx]
xor al, bl
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
mov bl, al
jl 0x100171f9
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x10018094
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, esi
je 0x100180a5
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x100180ae
mov dword [eax], esi
cmp dword [ebp + 8], esi
je 0x10018159
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10018159
push esi
push esi
push 3
push esi
push 3
push 0x120089
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10018154
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x41]
cmp eax, 0x63fffbe
ja 0x1001814a
push ebx
push edi
call fcn.1001a311
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x10018149
push esi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018142
cmp dword [ebp + 8], edi
jne 0x10018142
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10018130
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10018139
mov dword [eax], edi
mov dword [ebp - 8], 1
jmp 0x10018149
push ebx
call fcn.1001a3f8
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 8]
jmp 0x1001815b
xor eax, eax
pop esi
leave
ret

Function at 0x1001815e
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [eax + 0x3c]
push esi
mov esi, 0x5a4d
cmp word [eax], si
lea edx, [ecx + eax]
pop esi
jne 0x1001819e
cmp ecx, dword [esp + 4]
ja 0x1001819e
cmp dword [edx], 0x4550
jne 0x1001819e
cmp word [edx + 0x5c], 1
jne 0x1001819e
push 0x40
add eax, 0x40
push 0x10052900
push eax
call fcn.1001bfe2
add esp, 0xc
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x100192fc
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x10040e7c
call fcn.1001a87f
mov esi, ecx
mov ecx, dword [0x10055a50]
xor ebx, ebx
cmp ecx, ebx
je 0x100193ad
mov dword [ebp - 0x10], ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x100435d4
mov dword [ebp - 4], ebx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1001939f
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 0xd
mov eax, dword [ebp - 0x10]
jb 0x1001939f
mov ecx, dword [eax]
push 1
push 0x100435c4
mov edi, 0x10046ce8
push edi
push eax
call dword [ecx + 0xe4]
push ebx
push 0x100461f0
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xe4]
push ebx
push 0x100461e8
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x100461dc
push eax
call dword [ecx + 0xe4]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x100193ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100193ec
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x100193ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push 0x100435c4
mov edi, 0x10046ce8
push edi
call ebx
push dword [ebp + 8]
mov dword [esi + 0x1c], eax
push 0
push 0x100461f0
push edi
call ebx
push dword [ebp + 8]
mov dword [esi + 0x20], eax
push 0
push 0x100461e8
push 0x100461dc
call ebx
mov dword [esi + 0x24], eax
call fcn.1001a957
ret 4
Function at 0x10019d32
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x100415a7
call fcn.1001a8b2
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10019ea7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10019ea7
lea ecx, [ebp - 0x14]
call fcn.10001000
push esi
push esi
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.10001147
lea ecx, [ebp - 0x14]
test eax, eax
je 0x10019e9e
call fcn.10001006
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.10001009
mov esi, eax
mov dword [ebp - 0x18], esi
test ebx, ebx
je 0x10019e9b
test esi, esi
je 0x10019e9b
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x44], eax
cmp dword [ebx + 0xc], 0x3e8
jne 0x10019e9b
cmp dword [ebx + 0x14], 0x10
jb 0x10019e9b
cmp dword [esi], 0x10
jb 0x10019e9b
mov ebx, dword [esi + 8]
imul ebx, dword [esi + 0xc]
lea ecx, [ebp - 0x14]
cmp ebx, dword [esi + 4]
jne 0x10019e9e
call fcn.10001014
mov ecx, dword [esi]
add ecx, ebx
cmp eax, ecx
jb 0x10019e9b
cmp dword [esi + 8], 0x7c
jb 0x10019e9b
lea eax, [edi + 0x28]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 8
mov ecx, edi
call fcn.10019945
mov ebx, dword [esi]
push dword [esi + 0xc]
mov ecx, edi
add ebx, esi
mov byte [ebp - 4], 2
call fcn.10019cfc
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xc]
jae 0x10019e81
push 0x1f
pop ecx
mov esi, ebx
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
push eax
add ecx, 8
call fcn.1001949b
push 0x1f
mov edi, eax
pop ecx
lea esi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 4]
jbe 0x10019e6e
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
add ebx, dword [eax + 8]
inc dword [ebp + 8]
mov esi, eax
jmp 0x10019e32
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001137
xor eax, eax
inc eax
jmp 0x10019ea9
lea ecx, [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.10001137
xor eax, eax
call fcn.1001a957
ret 4
Function at 0x1001a16b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10055b4c], 0
push esi
jne 0x1001a0de
call fcn.1001a004
test eax, eax
je 0x1001a121
mov eax, dword [0x10055b4c]
cmp eax, 1
jne 0x1001a0ff
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1001a121
pop esi
ret
push eax
call dword [0x10055b54]
test eax, eax
jne 0x1001a169
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001a125
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10055b4c]
call dword [0x10055b54]
mov edi, eax
test edi, edi
je 0x1001a14a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001a166
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10055b4c]
call dword [0x10055b50]
add edi, 0x10
cmp edi, esi
jb 0x1001a152
mov eax, edi
pop edi
pop esi
ret
jmp 0x1001a0cb

Function at 0x10021846
Capabilities:
Encode data using xor

Disassembly:
rcl esp, 0x11
rcl byte [edx], cl
inc eax
jge 0x100218ca
fild qword [edi + 0x50]
push eax
cld
jecxz 0x10021843
jp 0x1002184d
invalid
mov al, byte [0x8210b57e]
and esp, ebp
push 0x55
sbb edx, edi
invalid
Function at 0x4158b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x73b843
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004446e0
mov cl, byte [esp + 7]
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x2c], cl
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
or eax, 0x40000000
mov byte [esp + 0x14], 1
mov dword [esi], 0x765da8
mov dword [esi + 4], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4167f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
test eax, eax
jle 0x416805
mov eax, dword [esi]
call dword [eax]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push edi
push ebx
mov dword [esp + 0x24], 0
call ebp
cmp dword [edi], 0
jle 0x4168e1
lea edx, [esp + 0x10]
push 0
lea eax, [esi + 0x18]
push edx
push 4
push eax
push ebx
call ebp
lea ecx, [esp + 0x10]
push 0
lea eax, [esi + 0x20]
push ecx
push 4
push eax
push ebx
call ebp
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [edi]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004166d0
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4168a3
mov ecx, dword [esi + 0x24]
push eax
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
lea eax, [eax + eax*2]
shl eax, 2
push eax
push ecx
push ebx
call ebp
mov edi, dword [edi]
mov esi, dword [esi + 0x24]
lea edx, [edi + edi*2]
pop edi
mov ecx, dword [esi + edx*4 - 0xc]
lea eax, [esi + edx*4]
pop esi
pop ebp
mov dword [eax], ecx
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov ecx, dword [eax - 4]
mov dword [eax + 8], ecx
mov al, 1
pop ebx
pop ecx
ret 4
cmp eax, 1
jne 0x4168e1
mov eax, dword [edi]
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x10]
push 0
shl eax, 4
push edx
push eax
push ecx
push ebx
call ebp
mov edx, dword [edi]
mov esi, dword [esi + 0x24]
shl edx, 4
lea eax, [edx + esi]
lea ecx, [eax - 0x10]
mov edx, dword [eax - 0x10]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4