joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100081c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.1000e3d0
mov eax, dword [0x10033068]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100083ce
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], 0
push 0
push eax
mov dword [ebp - 0x2008], 0
call fcn.10010540
push edi
push esi
lea eax, [ebp - 0x2004]
push str.__s___s
push eax
call fcn.10001980
push str.EXPLORER.EXE
call fcn.100085e0
add esp, 0x20
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000838b
lea eax, [ebp - 0x2010]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000838b
lea eax, [ebp - 0x2008]
push eax
push 1
push 1
push 0
push 0xf01ff
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000838b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100082d8
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100082d1
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1000838b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
lea eax, [ebp - 0x2068]
push 0
push eax
call fcn.10010540
add esp, 0xc
mov dword [ebp - 0x2068], 0x44
mov eax, 5
mov dword [ebp - 0x2060], str.WinSta0Default
mov word [ebp - 0x2038], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x203c], 1
push 0
push dword [ebp - 0x2008]
movups xmmword [ebp - 0x2024], xmm0
push eax
mov dword [ebp - 0x200c], 0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1000838b
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2068]
push eax
push 0
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push 0x430
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000838b
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x1000838b
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x2008]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100083a3
cmp eax, 0xffffffff
je 0x100083a3
push eax
call esi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x100083b5
cmp eax, 0xffffffff
je 0x100083b5
push eax
call esi
test edi, edi
jne 0x100083bc
push edi
call esi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e3bf
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push esi
call fcn.10007fb0
mov ecx, dword [ebp - 4]
add esp, 0x10
test eax, eax
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.1000e3bf
mov esp, ebp
pop ebp
ret
Function at 0x100085e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023160
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10033068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000874b
push eax
lea ecx, [ebp - 0x40]
call fcn.100019b0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.1000a1b0
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.10010540
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10008732
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000872b
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
je 0x100086b5
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100086a6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001760
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1000a1b0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp esi, 8
mov ebx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, ebx
push eax
call fcn.10001460
add esp, 0x14
test eax, eax
je 0x10008767
mov byte [ebp - 4], 0
cmp esi, 8
jb 0x10008716
lea eax, [esi + 1]
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10001860
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10008680
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x10008749
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.10001860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e3bf
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.100011b0
jmp 0x10008734
Function at 0x100088a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100231a0
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x10033068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.10010540
xor eax, eax
mov dword [ebp - 0x2c], 7
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
cmp word [esi], ax
jne 0x10008901
xor ecx, ecx
jmp 0x10008915
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008906
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.10001760
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.1000a1b0
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x1000894d
xor ebx, ebx
jmp 0x10008a41
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10008a35
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
je 0x100089a5
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008996
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001760
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1000a1b0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
add esp, 4
mov esi, edi
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
jne 0x10008a74
xor eax, eax
test eax, eax
jne 0x10008a00
cmp ebx, edi
jb 0x10008a00
jbe 0x10008a9b
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x10008a19
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001860
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10008970
xor ebx, ebx
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x10008a56
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.10001860
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e3bf
mov esp, ebp
pop ebp
ret
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x10008a8a
add edx, 2
add ecx, 2
sub esi, 1
jmp 0x100089ea
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x100089f2
lea ecx, [ebp - 0x28]
mov ebx, 1
call fcn.100011b0
jmp 0x10008a35
Function at 0x100095b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0x80000003
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call esi
test eax, eax
jne 0x100096e2
lea eax, [ebp - 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000961d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x10009657
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x10009690
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100096a0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100096f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push 0x80000001
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100097de
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x10009761
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x10009795
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100097a0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023762
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10033068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x50]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x1000c8c6
mov eax, dword [ecx]
jmp 0x1000c8c8
mov eax, ecx
xor edx, edx
mov word [eax], dx
mov dword [esi + 0x7c], 7
mov dword [esi + 0x78], edx
cmp dword [esi + 0x7c], 8
mov dword [ebp - 4], edx
jb 0x1000c8e5
mov eax, dword [esi + 0x68]
jmp 0x1000c8e8
lea eax, [esi + 0x68]
xor edx, edx
mov word [eax], dx
lea ebx, [esi + 0x80]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edx
cmp dword [ebx + 0x14], 8
jb 0x1000c907
mov eax, dword [ebx]
jmp 0x1000c909
mov eax, ebx
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0x98]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x1000c926
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
push edx
push 0x10024340
mov byte [ebp - 4], 3
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
call fcn.10001760
push 0
push 0x10024340
lea ecx, [esi + 0x68]
call fcn.10001760
push 0
push 0x10024340
mov ecx, ebx
call fcn.10001760
push 0
push 0x10024340
lea ecx, [esi + 0x98]
call fcn.10001760
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e22d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001deed

Function at 0x4011de
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x402018]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x844]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
xor esi, esi
mov edx, 0x82
lea edi, [ebp - 0x888]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x210], si
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x41c], si
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
mov word [ebp - 0x830], si
mov ecx, 0x104
lea edi, [ebp - 0x82e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x888], 0x44
mov dword [ebp - 0x884], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x40130f
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x401285
mov word [eax], si
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x4010fc
push eax
call edi
add esp, 0xc
call fcn.004011a9
test eax, eax
je 0x4012ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x41c]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x830]
push 0x4010d0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x888]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40135c
push esi
push esi
lea eax, [ebp - 0x834]
push eax
push 0x400
mov dword [ebp - 0x834], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x401372
push 0x10
push 0x4010bc
push dword [ebp - 0x834]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401372
push dword [ebp - 0x844]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x840]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.004013f8
leave
ret
Function at 0x10013074
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10013083
pop dword [ebp - 0x1c]
mov eax, 0x10013083
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x7a736e24
sub dword [ebp - 0x2c], 0x2c2128d9
mov dword [ebp - 0x28], 0xf7e91a3f
add dword [ebp - 0x28], 0x3a4a3206
mov dword [ebp - 0x24], 0x2a9d133a
sub dword [ebp - 0x24], 0xde50cf0c
mov dword [ebp - 0x20], 0xcd60bb5a
add dword [ebp - 0x20], 0x329f44a6
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x55603a3a
sub dword [ebp - 0x2c], 0xe0edd0e4
mov dword [ebp - 0x28], 0xce027474
add dword [ebp - 0x28], 0x7369ed01
mov dword [ebp - 0x24], 0x7ff27345
add dword [ebp - 0x24], 0xe37cf927
mov dword [ebp - 0x20], 0x24fd8d5b
add dword [ebp - 0x20], 0xdb0272a5
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b288
push 0
call eax
mov ecx, 0x5216
mov edx, eax
mov ebx, 0x6426b841
sub ebx, 0x54229c41
add ebx, dword [ebp - 0x1c]
mov edi, 0x2d0d82c8
sub dword [ebp - 0x18], 0xd7f9b11f
mov esi, dword [ebx]
add dword [ebp - 0x10], esi
xor esi, edi
xor dword [ebp - 4], 0xd0a697dc
mov dword [edx], esi
add dword [ebp - 0x10], edx
add edx, 0x3e252d1b
sub edx, 0x3e252d17
add ebx, 4
loop 0x1001318a
add eax, 0x2277e8ce
sub eax, 0x2276ada3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4ba6f3c4
sub ecx, 0x3ba6f3c4
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
test eax, eax
jne 0x401369
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push 2
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push esi
push dword [ebp + 8]
push str.Cant_open_file__s:__s_n
push eax
call fcn.00401b30
add esp, 0x18
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
pop ebp
ret
Function at 0x401600
Capabilities:
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x41a04c], 0
je 0x401612
pop ebp
jmp fcn.004013a0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 0xc
pop ebp
ret
Function at 0x401630
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040e3e0
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x410220
push ebx
mov dword [ebp - 0x200c], ebx
mov dword [ebp - 0x2014], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x401821
push 0x410220
push esi
mov dword [ebp - 0x2010], 0
call fcn.00401320
mov esi, eax
push edi
mov dword [ebp - 0x2008], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 0xc
test eax, eax
jne 0x4017e3
nop dword [eax]
nop dword [eax + eax]
mov si, word [0x410224]
lea eax, [ebp - 0x1001]
mov bl, byte [0x410226]
push 0xffd
push 0
push eax
mov word [ebp - 0x1004], si
mov byte [ebp - 0x1002], bl
call sub.VCRUNTIME140.dll_memset
push 0xffd
lea eax, [ebp - 0x2001]
mov word [ebp - 0x2004], si
push 0
push eax
mov byte [ebp - 0x2002], bl
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 0x18
cmp byte [ebp - 0x2004], 0x23
jne 0x401747
mov ebx, dword [ebp - 0x2008]
cmp byte [ebp - 0x2003], 0x6c
jne 0x401747
push ebx
call esi
add esp, 4
test eax, eax
jne 0x401747
push ebx
lea eax, [ebp - 0x2004]
push 0xfff
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
cmp byte [ebp - 0x2004], 0x23
je 0x401715
cmp byte [ebp - 0x1004], 0x23
jne 0x401782
cmp byte [ebp - 0x1003], 0x6c
jne 0x401782
push edi
call esi
add esp, 4
test eax, eax
jne 0x401782
push edi
lea eax, [ebp - 0x1004]
push 0xfff
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
cmp byte [ebp - 0x1004], 0x23
je 0x401750
lea eax, [ebp - 0x1004]
lea ecx, [ebp - 0x2004]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4017b0
test dl, dl
je 0x4017ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4017b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x401790
xor eax, eax
jmp 0x4017b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4017cd
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
je 0x4016b0
jmp 0x4017d7
mov dword [ebp - 0x2010], 1
mov ebx, dword [ebp - 0x200c]
mov esi, dword [ebp - 0x2008]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
push edi
call esi
add esp, 8
cmp dword [ebp - 0x2010], 0
jne 0x40181b
push dword [ebp - 0x2014]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e3c6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x2014]
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e3c6
mov esp, ebp
pop ebp
ret
Function at 0x40dfd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x4157a8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401b30
add esp, 0xc
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401645
lea eax, [ebp - 0x404]
push eax
call fcn.00401645
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x401645
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401654
pop dword [ebp - 0x2c]
mov eax, 0xfb61b491
add eax, 0x4de61c3
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x9f14faf2
sub dword [ebp - 0x3c], 0x50c2b5a7
mov dword [ebp - 0x38], 0x4aeb1d96
add dword [ebp - 0x38], 0xe7482eaf
mov dword [ebp - 0x34], 0x333dc39f
sub dword [ebp - 0x34], 0xe6f17f71
mov dword [ebp - 0x30], 0xb063c5ad
add dword [ebp - 0x30], 0x4f9c3a53
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x566c41a0
add eax, 0xa9d48eac
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xab2f2090
sub dword [ebp - 0x3c], 0x36bcb73a
mov dword [ebp - 0x38], 0xce8425e5
sub dword [ebp - 0x38], 0x8d17c470
mov dword [ebp - 0x34], 0x5a9cb897
sub dword [ebp - 0x34], 0xf72d4c2b
mov dword [ebp - 0x30], 0x20bbde67
add dword [ebp - 0x30], 0xdf442199
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x37145
push 0
call eax
mov ecx, 0x6c222e02
sub ecx, 0x6c21ef95
mov edx, eax
mov edi, 0xfa94df67
sub edi, 0xfa532f67
add edi, dword [ebp - 0x2c]
mov esi, 0x94479a24
mov ebx, dword [edi]
xor dword [ebp - 0x28], ecx
add ebx, esi
add dword [ebp - 0x1c], edi
mov dword [edx], ebx
add edx, 4
add edi, 0xb27916b0
sub edi, 0xb27916ac
loop 0x40176b
add eax, 0xc37e6c67
add eax, 0x3c828020
mov ebx, eax
add eax, 0xa523a2e9
sub eax, 0xa523a2e4
mov ecx, 0x3e277911
sub ecx, 0x3de77911
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d