joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50f740
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00470830
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004ea110
mov ebx, eax
push ebx
push esi
call fcn.004e9ff0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x50f7c9
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x50f7a3
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004ea060
push esi
call fcn.004ea1b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x50f7c9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004ea110
mov ebx, eax
push ebx
push esi
call fcn.004e9ff0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x50f838
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x50f81e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004ea060
push esi
call fcn.004ea1b0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x50f7c1
push esi
call fcn.004ea1b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x535f50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x535f77
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x535f66
pop edi
movzx eax, dl
pop esi
ret
Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
jmp loc.0040a000

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x10004a40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push esi
push edi
add ebx, 4
cmp eax, 0x10
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
jb 0x10004a7a
mov eax, dword [ebx]
jmp 0x10004a7c
mov eax, ebx
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edi, ax
lea eax, [edi + edi]
push eax
call fcn.10008352
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ecx + 0x18]
add esp, 4
cmp eax, 0x10
jb 0x10004aab
mov ebx, dword [ebx]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
lea edx, [ebp - 0x4c]
mov ecx, 0xf
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x40], str.OPEN
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
push esi
jne 0x10004b0b
call fcn.100082dc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100082dc
mov ecx, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005190
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10012c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [0x100181f4]
push ebx
push esi
push edi
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xac]
push 1
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.10003eb0
mov edx, dword [esp + 0xbc]
push 1
push edx
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0xbc], 0
call fcn.10003eb0
mov ecx, dword [esp + 0x8c]
lea edx, [ecx + ecx + 6]
push edx
call fcn.1000878a
mov esi, eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x10014450
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x3c], eax
call fcn.100086c7
mov eax, dword [esp + 0x9c]
mov edi, 8
add esp, 0x24
cmp eax, edi
mov eax, dword [esp + 0x64]
jae 0x1000524e
lea eax, [esp + 0x64]
push eax
push esi
call fcn.1000869d
mov eax, dword [esp + 0x9c]
add esp, 8
cmp eax, edi
mov eax, dword [esp + 0x80]
jae 0x10005271
lea eax, [esp + 0x80]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov eax, dword [esp + 0xc]
push eax
setne bl
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
cmp dword [esp + 0x78], edi
jb 0x100052bb
mov edx, dword [esp + 0x64]
push edx
call fcn.10007aed
add esp, 4
cmp dword [esp + 0x94], edi
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], 0
jb 0x100052eb
mov eax, dword [esp + 0x80]
push eax
call fcn.10007aed
add esp, 4
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x90]
mov al, bl
pop ebx
call fcn.10008164
add esp, 0x9c
ret
Function at 0x10006860
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10012d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x100181f4]
push ebx
push esi
xor ebx, ebx
push 0x208
mov dword [esp + 0x48], eax
mov dword [esp + 0xc], ebx
call fcn.10008352
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x5c]
push esi
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x100068ce
mov esi, dword [esp + 0x58]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x1001448e
mov ecx, esi
mov byte [esi + 4], bl
call fcn.100019d0
jmp 0x1000696e
push esi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.100082c6
add esp, 4
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.100059b0
push esi
mov dword [esp + 0x54], ebx
call fcn.100082dc
push 1
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10003d50
add esp, 0x10
mov esi, dword [esp + 0x58]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esp + 0x5c], 1
mov byte [esi + 4], bl
call fcn.100017f0
cmp dword [esp + 0x24], 0x10
jb 0x1000694a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10007aed
add esp, 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
jb 0x1000696e
mov edx, dword [esp + 0x2c]
push edx
call fcn.10007aed
add esp, 4
mov ecx, dword [esp + 0x48]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40]
pop ebx
call fcn.10008164
add esp, 0x4c
ret
Function at 0x10008bb5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10008ca5
mov eax, 0x94
call fcn.1000cd10
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10008d1a
mov ecx, dword [esi + 0x10]
mov dword [0x10019064], ecx
mov eax, dword [esi + 4]
mov dword [0x10019070], eax
mov edx, dword [esi + 8]
mov dword [0x10019074], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10019068], esi
je 0x10008c20
or esi, 0x8000
mov dword [0x10019068], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001906c], eax
call fcn.1000a5bc
test eax, eax
pop ecx
je 0x10008d1a
call fcn.10009917
test eax, eax
jne 0x10008c4d
call fcn.1000a60d
jmp 0x10008d1a
call fcn.1000cc79
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001a89c], eax
call fcn.1000cb57
mov dword [0x10018ee8], eax
call fcn.1000c638
test eax, eax
jl 0x10008c9e
call fcn.1000cab5
test eax, eax
jl 0x10008c99
call fcn.1000c882
test eax, eax
jl 0x10008c99
push 0
call fcn.1000a3df
test eax, eax
pop ecx
jne 0x10008c99
inc dword [0x10018ee4]
jmp 0x10008d2b
call fcn.1000c836
call fcn.10009700
jmp 0x10008c43
test eax, eax
jne 0x10008cd5
cmp dword [0x10018ee4], eax
jle 0x10008d1a
dec dword [0x10018ee4]
cmp dword [0x100190a0], eax
jne 0x10008cc4
call fcn.1000a51d
call fcn.1000c836
call fcn.10009700
call fcn.1000a60d
jmp 0x10008d2b
cmp eax, 2
jne 0x10008d1e
push 0x8c
push 1
call fcn.1000c57d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10008d1a
push esi
push dword [0x10018218]
call dword [0x10018f00]
test eax, eax
push esi
je 0x10008d14
call fcn.1000971d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10008d2b
call fcn.100082e1
pop ecx
xor eax, eax
jmp 0x10008d2e
cmp eax, 3
jne 0x10008d2b
push 0
call fcn.100098e8
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000a449
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10014918
call fcn.10009e6c
push 8
call fcn.1000a114
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100190a4], esi
jne 0x1000a47d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100190a0], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001909c], al
cmp dword [ebp + 0xc], edi
jne 0x1000a4c7
cmp dword [0x1001a890], edi
je 0x1000a4b7
mov eax, dword [0x1001a88c]
sub eax, 4
mov dword [0x1001a88c], eax
cmp eax, dword [0x1001a890]
jb 0x1000a4b7
mov eax, dword [eax]
cmp eax, edi
je 0x1000a498
call eax
jmp 0x1000a498
push 0x10018050
mov eax, 0x10018048
call fcn.1000a3c7
pop ecx
push 0x1001805c
mov eax, 0x10018054
call fcn.1000a3c7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000a4f8
cmp dword [ebp + 0x10], edi
jne 0x1000a506
mov dword [0x100190a4], esi
push dword [ebp + 8]
call fcn.1000a385
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000a505
push 8
call fcn.1000a05f
pop ecx
ret
call fcn.10009ea7
ret
Function at 0x1000b33b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100181f4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1000b36c
xor eax, eax
jmp 0x1000b4f5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10019740]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000b3a8
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1000e653
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000b483
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000b4c1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1000b40c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000b3fd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1000b3dd
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b44c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000b455
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1000b3ce
jmp 0x1000b457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1000b4f0
cmp dword [ebp - 0x6c], edi
je 0x1000b4c1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000b4b6
call fcn.1000bde9
mov dword [eax], 9
call fcn.1000bdf2
mov dword [eax], esi
jmp 0x1000b4eb
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b4ab
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000b457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000b457
push dword [ebp - 0x6c]
call fcn.1000bdfb
pop ecx
jmp 0x1000b4eb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000b4d9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1000b4d9
xor eax, eax
jmp 0x1000b4f3
call fcn.1000bde9
mov dword [eax], 0x1c
call fcn.1000bdf2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000b4f3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10008164
add ebp, 0x3a0
leave
ret
Function at 0x1000cecc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100181f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100187e8]
je 0x1000cf01
inc eax
cmp eax, 0x13
jb 0x1000cef2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100187e8]
jne 0x1000d027
mov eax, dword [0x10018ef0]
cmp eax, 1
je 0x1000cfff
cmp eax, edx
jne 0x1000cf31
cmp dword [0x10018ef4], 1
je 0x1000cfff
cmp ecx, 0xfc
je 0x1000d027
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000cf67
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10009b30
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10009c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000cf9b
mov eax, edi
push eax
call fcn.10009c30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001471c
push edi
call fcn.1000e1d0
add esp, 0x10
push edi
call fcn.10009c30
push dword [esi + 0x100187ec]
mov ebx, eax
call fcn.10009c30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000cd10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10009b30
push edi
push ebx
call fcn.10009b40
push 0x10014718
push ebx
call fcn.10009b40
push dword [esi + 0x100187ec]
push ebx
call fcn.10009b40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000e0c9
add esp, 0x2c
jmp 0x1000d027
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100187ec]
push dword [esi]
call fcn.10009c30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10008164
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000e0c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100191d8], ebx
push esi
push edi
jne 0x1000e149
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000e184
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100191d8], eax
je 0x1000e184
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100191dc], eax
call esi
cmp dword [0x10019064], 2
mov dword [0x100191e0], eax
jne 0x1000e149
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100191e8], eax
je 0x1000e149
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100191e4], eax
mov eax, dword [0x100191e4]
test eax, eax
je 0x1000e18e
call eax
test eax, eax
je 0x1000e175
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100191e8]
test eax, eax
je 0x1000e175
test byte [ebp - 8], 1
jne 0x1000e18e
cmp dword [0x10019070], 4
jb 0x1000e188
or byte [ebp + 0x12], 0x20
jmp 0x1000e1ad
xor eax, eax
jmp 0x1000e1bd
or byte [ebp + 0x12], 4
jmp 0x1000e1ad
mov eax, dword [0x100191dc]
test eax, eax
je 0x1000e1ad
call eax
mov ebx, eax
test ebx, ebx
je 0x1000e1ad
mov eax, dword [0x100191e0]
test eax, eax
je 0x1000e1ad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100191d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000eb0e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1000ece2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10019740]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000ece2
test cl, 0x48
je 0x1000eb79
cmp byte [eax + 5], 0xa
je 0x1000eb79
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000ebcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000ebb3
call fcn.1000bde9
mov dword [eax], 9
call fcn.1000bdf2
mov dword [eax], esi
jmp 0x1000ebc3
cmp eax, 0x6d
je 0x1000ece2
push eax
call fcn.1000bdfb
pop ecx
or eax, 0xffffffff
jmp 0x1000ece4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1000ecdd
test eax, eax
je 0x1000ebf2
cmp byte [ebx], 0xa
jne 0x1000ebf2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1000ebfb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1000ecd7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000ecc7
cmp al, 0xd
je 0x1000ec2d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000ecb9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000ec47
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000ec42
add dword [ebp + 0x10], 2
jmp 0x1000ec9b
mov dword [ebp + 0x10], eax
jmp 0x1000ecb5
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000ec6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000ecb5
cmp dword [ebp - 0xc], 0
je 0x1000ecb5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000ec90
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000ec9b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000ecb8
cmp ebx, dword [ebp + 0xc]
jne 0x1000eca0
cmp byte [ebp - 1], 0xa
jne 0x1000eca0
mov byte [ebx], 0xa
jmp 0x1000ecb8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000be6e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000ecb9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000ec11
jmp 0x1000ecd7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1000ecd7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000ece4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010fc3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1000cd10
mov eax, dword [0x100181f4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1000be6e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100110f6
push 2
push esi
push dword [ebp + 8]
call fcn.1000be6e
add esp, 0xc
cmp eax, ebx
je 0x100110f6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10011096
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1000f100
push 0x8000
push dword [ebp + 8]
call fcn.1001174c
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1001104c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1000b33b
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001106c
sub edi, eax
test edi, edi
jg 0x10011044
jmp 0x10011084
call fcn.1000bdf2
cmp dword [eax], 5
jne 0x10011081
call fcn.1000bde9
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1001174c
pop ecx
pop ecx
jmp 0x100110de
jge 0x100110de
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000be6e
push dword [ebp + 8]
call fcn.1000e88f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100110de
call fcn.1000bde9
mov dword [eax], 0xd
call fcn.1000bdf2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1000be6e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100110f8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10008164
leave
ret