joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a79f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x40a837
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40a834
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x40a834
lea eax, [esi - 1]
push eax
push dword [0x41ed4c]
call fcn.004163ee
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x40a836
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x40a82b
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x40a91e
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x40a811
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x40a8dd
push eax
call esi
test al, al
jns 0x40a8dd
push 0x11
call esi
test al, al
js 0x40a8dd
push 0x10
call esi
test al, al
js 0x40a8dd
push 0x12
call esi
test al, al
js 0x40a8dd
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x40a8dd
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x40a8b1
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40a8c8
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x40a928
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x40a928
test ebp, ebp
je 0x40a901
push 0x11
call esi
test al, al
js 0x40a8f9
push 0x10
call esi
test al, al
js 0x40a8f9
push 0x12
call esi
test al, al
jns 0x40a901
push 1
push ebp
call fcn.0040a934
test ebx, ebx
je 0x40a915
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x40a928
test edi, edi
je 0x40a928
mov eax, dword [edi + 8]
jmp 0x40a92a
and dword [esp + 0x14], 0
jmp 0x40a836
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x40cab0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40cae2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cadd
cmp dword [esp + 0xc], esi
je 0x40caf9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x40fd30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40fd6c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4110ea
Capabilities:
Hash data using sha384

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x419690
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], 0x30
add eax, 0x88
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret

Function at 0x4111f0
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
push 0x40
pop ecx
push ecx
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], ecx
add eax, 0x88
push 0x419650
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret
Function at 0x4148ac
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
push 0x20
pop ecx
push ecx
and dword [eax + 0x40], 0
and dword [eax + 0x44], 0
mov dword [eax + 0x68], ecx
add eax, 0x48
push 0x4197d0
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret
Function at 0x4160ec
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 3
jne 0x416153
lea ecx, [esi + edi]
mov eax, ecx
lea edi, [ebx + edx]
sub eax, esi
xor ebx, ebx
add eax, 3
shr eax, 2
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x41616b
sub edi, esi
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
inc ebx
mov dword [edi + esi], edx
lea esi, [esi + 4]
cmp ebx, ebp
jb 0x41612a
jmp 0x41616b
add edi, edx
cmp edx, edi
jae 0x41616b
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x41615b
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x416170
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x4161cb
lea ecx, [esi + edi]
mov eax, ecx
lea edi, [ebx + edx]
sub eax, esi
xor ebx, ebx
add eax, 7
shr eax, 3
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x4161e3
sub edi, esi
push dword [esi + 4]
push dword [esi]
call fcn.004160ac
inc ebx
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
lea esi, [esi + 8]
pop ecx
pop ecx
cmp ebx, ebp
jb 0x4161ae
jmp 0x4161e3
add edi, edx
cmp edx, edi
jae 0x4161e3
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x4161d3
pop edi
pop esi
pop ebp
pop ebx
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.1003a5fd
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.1003a5fd
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.1003a5fd
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.1003a5fd
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.1003a5fd
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x10024a8e
push dword [ebp - 0x1c]
call fcn.1003a5fd
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.1003a5fd
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.1003a5fd
mov ecx, dword [esi + 0x298]
push ebx
call fcn.1003a5fd
push 0x318
mov dword [esi + 0x2bc], edi
call fcn.1003a5fd
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.1003a5fd
pop ecx
jmp 0x1003973d
push 0
push ebx
call fcn.1003a5fd
test eax, eax
je 0x100397ea
mov ecx, edi
jmp 0x100397c9
push 0xc
call fcn.1003a5fd
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.1003a5fd
jmp 0x1003982a
call fcn.1003a5fd
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.1003a5fd
mov eax, dword [esi + 0x278]
test eax, eax
je 0x1003986d
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.1003a5fd
push edi
mov ecx, esi
call fcn.1003a5fd
mov ecx, edi
call fcn.1007b2ed
mov ecx, edi
call fcn.1007b102
push edi
call fcn.1003a5fd
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.1003a5fd
mov edi, dword [esi + 0x4cc]
test edi, edi
je 0x100398d5
mov ecx, edi
call fcn.10024b14
push edi
call fcn.1003a5fd
pop ecx
and dword [esi + 0x4cc], 0
xor eax, eax
inc eax
mov dword [esi + 0x294], eax
call fcn.1006401c
ret
Function at 0x1003a5fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1003a60c
pop dword [ebp - 0x2c]
mov eax, 0x1003a60c
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x542c2
push 0
mov eax, 0x88aaf2a9
sub eax, 0x78aae1d5
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x32b94b4e
sub ecx, 0x32b91033
mov esi, eax
mov edx, 0x100ebe00
add edx, dword [ebp - 0x2c]
mov edi, 0xc564fe
xor dword [ebp - 0x14], 0xa47a993c
mov ebx, dword [edx]
sub dword [ebp - 0x1c], 0x6fe68f66
sub ebx, edi
sub dword [ebp - 4], edi
mov dword [esi], ebx
add dword [ebp - 0x14], 0x39fe6806
add esi, 0x2eb27dfd
add esi, 0xd14d8207
add edx, 0xf648eaaa
add edx, 0x9b7155a
loop 0x1003a65a
add eax, 0xcee836b5
sub eax, 0xcee75776
mov ebx, eax
add eax, 0x1007c085
add eax, 0xeff83f80
mov ecx, 0x5e340ba1
sub ecx, 0x4e340ba1
add ecx, dword [ebp - 0x2c]
call ebx
leave
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.1003a5fd
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.1003a5fd
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.1003a5fd
mov dword [0x100a0e2c], eax
call fcn.1003a5fd
test eax, eax
jns 0x1006329f
call fcn.1006800e
jmp 0x1006326e
call fcn.1003a5fd
test eax, eax
js 0x100632c8
call fcn.10068b3f
test eax, eax
js 0x100632c8
push 0
call fcn.1003a5fd
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.1003a5fd
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.1003a5fd
pop ecx
jmp 0x1006325e
cmp eax, 3
jne 0x10063398
push edi
call fcn.1003a5fd
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.1003a5fd
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.1003a5fd
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.1003a5fd
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.1003a5fd
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