joyce8/EMBER2024-capa huggingface dataset:
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.1006e5b5
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.1006e5b5
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.1006e5b5
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.1006e5b5
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.1006e5b5
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x10024a8e
push dword [ebp - 0x1c]
call fcn.1006e5b5
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.1006e5b5
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 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.1006e5b5
mov ecx, dword [esi + 0x298]
push ebx
call fcn.1006e5b5
push 0x318
mov dword [esi + 0x2bc], edi
call fcn.1006e5b5
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.1006e5b5
pop ecx
jmp 0x1003973d
push 0
push ebx
call fcn.1006e5b5
test eax, eax
je 0x100397ea
mov ecx, edi
jmp 0x100397c9
push 0xc
call fcn.1006e5b5
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.1006e5b5
jmp 0x1003982a
call fcn.1006e5b5
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.1006e5b5
mov eax, dword [esi + 0x278]
test eax, eax
je 0x1003986d
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.1006e5b5
push edi
mov ecx, esi
call fcn.1006e5b5
mov ecx, edi
call fcn.1007b2ed
mov ecx, edi
call fcn.1007b102
push edi
call fcn.1006e5b5
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.1006e5b5
mov edi, dword [esi + 0x4cc]
test edi, edi
je 0x100398d5
mov ecx, edi
call fcn.10024b14
push edi
call fcn.1006e5b5
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.1006e5b5
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.1006e5b5
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.1006e5b5
mov dword [0x100a0e2c], eax
call fcn.1006e5b5
test eax, eax
jns 0x1006329f
call fcn.1006800e
jmp 0x1006326e
call fcn.1006e5b5
test eax, eax
js 0x100632c8
call fcn.10068b3f
test eax, eax
js 0x100632c8
push 0
call fcn.1006e5b5
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.1006e5b5
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.1006e5b5
pop ecx
jmp 0x1006325e
cmp eax, 3
jne 0x10063398
push edi
call fcn.1006e5b5
pop ecx
xor eax, eax
inc eax
call fcn.10068fca
ret 0xc

Function at 0x10063f36
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100a0f50], eax
mov dword [0x100a0f4c], ecx
mov dword [0x100a0f48], edx
mov dword [0x100a0f44], ebx
mov dword [0x100a0f40], esi
mov dword [0x100a0f3c], edi
mov word [0x100a0f68], ss
mov word [0x100a0f5c], cs
mov word [0x100a0f38], ds
mov word [0x100a0f34], es
mov word [0x100a0f30], fs
mov word [0x100a0f2c], gs
pushfd
pop dword [0x100a0f60]
mov eax, dword [ebp]
mov dword [0x100a0f54], eax
mov eax, dword [ebp + 4]
mov dword [0x100a0f58], eax
lea eax, [ebp + 8]
mov dword [0x100a0f64], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100a0ea0], 0x10001
mov eax, dword [0x100a0f58]
mov dword [0x100a0e54], eax
mov dword [0x100a0e48], 0xc0000409
mov dword [0x100a0e4c], 1
mov eax, dword [0x1009e4f8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1009e4fc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100a0e98], eax
push 1
call fcn.100693d8
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10006b5c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100a0e98], 0
jne 0x100638a0
push 1
call fcn.100693d8
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
cmp ecx, dword [0x1009e4f8]
jne 0x100637b4
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.1006e5b5
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.1006e5b5
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.1006e5b5
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.1006e5b5
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 0x404837
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429b10
call fcn.00428650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f1f
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40490d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404873
mov eax, ebx
add eax, eax
push eax
call fcn.00405733
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404906
cmp ebx, dword [ebp - 0x18]
ja 0x404906
lea ecx, [ebp - 0x2c]
call fcn.00402679
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x4048ee
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4048e3
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401d25
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4048b1
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402153
push esi
call fcn.00402153
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40490f
push esi
call fcn.00402153
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405733
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x405742
pop dword [ebp - 0x10]
mov eax, 0x405742
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x36616
push 0
mov eax, 0xc75a248
sub eax, 0xc32e21c
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x3c6a
xor edi, edi
add edi, eax
mov esi, 0x43b800
add esi, dword [ebp - 0x10]
mov ebx, 0x76340e2
add ebx, 0x910d210d
xor dword [ebp - 8], esi
mov edx, dword [esi]
add dword [ebp - 4], eax
xor edx, ebx
xor dword [ebp - 4], 0x7c93627
mov dword [edi], edx
add edi, 4
add esi, 0xf1a4cffa
add esi, 0xe5b300a
loop 0x405792
add eax, 0xe47b
xor ebx, ebx
add ebx, eax
add eax, 0x374da74f
sub eax, 0x374da74a
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1003092e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1003093d
pop dword [ebp - 0x1c]
mov eax, 0x1003093d
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x416b9
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x43fc
xor ebx, ebx
add ebx, eax
mov edi, 0x5f352d71
sub edi, 0x4f1cd171
add edi, dword [ebp - 0x1c]
mov edx, 0x11a97a27
sub edx, 0x2668caa
sub dword [ebp - 0x18], ebx
mov esi, dword [edi]
add dword [ebp - 4], 0x9eb6907a
add esi, edx
add dword [ebp - 0x18], esi
mov dword [ebx], esi
xor dword [ebp - 0x18], 0xa19d46ed
add ebx, 4
add edi, 4
loop 0x1003098e
add eax, 0xcbae1dfe
add eax, 0x3452e4c5
mov ebx, eax
add eax, 0x8eaa9f13
add eax, 0x715560f2
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x100696fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x10069780
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1006974a
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1006974a
cmp edi, ebx
jge 0x1006974a
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1006977a
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1006977a
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x10069792
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x10069a28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100b1980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x1016c088], al
je 0x10069a5f
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10069ac3
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1003092e
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1003092e
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.1003092e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e864
leave
ret 0x10
Function at 0x10069ad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b1980]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1016c088], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10069b00
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10069b31
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10069b2f
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1003092e
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10069b31
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006e864
leave
ret 8

Function at 0x10069bcc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b1980]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1016c088], 0
mov eax, dword [ebp + 8]
je 0x10069bf4
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10069c0e
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1003092e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1006e864
leave
ret 4

Function at 0x1006e864
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b1980]
jne 0x1006e86e
repz ret
jmp fcn.1006ef63