joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b5f
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1001228
call fcn.01002d20
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b9a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002bb2
cmp eax, 0x20b
je 0x1002b9f
mov dword [ebp - 0x1c], edi
jmp 0x1002bc6
cmp dword [ecx + 0x84], 0xe
jbe 0x1002b9a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002bc0
cmp dword [ecx + 0x74], 0xe
jbe 0x1002b9a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004580], 0xffffffff
or dword [0x1004584], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10040cc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10040c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004588], eax
call fcn.01002d18
cmp dword [0x100407c], edi
jne 0x1002c21
push fcn.01002d18
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002d01
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10040c4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10040c0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002441
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002c98
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002ccd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002d5b
ret

Function at 0x1002d95
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0xa
pop esi
jmp 0x1002dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2747
jne 0x1002dd6
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esi + esi*4]
shl esi, 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002da8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10
Function at 0x1014349
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp esi, edi
jne 0x1014366
push 0x57
pop eax
jmp 0x10143e7
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [esi], edi
call fcn.01033f85
test eax, eax
je 0x101437d
mov eax, 0x65b
jmp 0x10143e7
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x1014389
mov dword [esi], eax
jmp 0x10143e5
cmp dword [ebp - 0xc], 2
jne 0x10143e5
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001cd8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10143e5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x1001ca8
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10143d5
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x10143e5
mov dword [esi], edi
xor eax, eax
pop edi
leave
ret

Function at 0x10144da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1014533
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1014525
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1014521
cmp esi, eax
jae 0x1014525
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1014513
cmp esi, eax
jb 0x1014529
xor eax, eax
jmp 0x1014532
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1014631
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20008
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10146f9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 1
push dword [ebp - 0x10]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10146f8
push dword [ebp - 0x14]
call fcn.01021488
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10146f8
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x10146f8
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10146f8
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [ebp - 0x1c], ecx
pop esi
cmp dword [ebp - 0x18], ebx
je 0x1014707
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebx
je 0x1014712
push edi
call fcn.010213a1
pop ecx
cmp dword [ebp - 0x10], ebx
pop edi
pop ebx
je 0x1014722
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.01021557
leave
ret
Function at 0x1014c9f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x1014e2f
cmp dword [ebp + 0xc], esi
je 0x1014e2f
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
jne 0x1014cda
mov edi, 0x65b
jmp 0x1014e17
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x1014cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1014de7
lea eax, [ebp - 0x14]
push eax
push SysReAllocString
push dword [ebx]
call fcn.01014c35
test eax, eax
jl 0x1014e28
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc esi
lea eax, [esi + esi]
push eax
push 0x40
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1014d88
push dword [ebx]
push esi
push eax
call fcn.01014ba1
test eax, eax
jl 0x1014e28
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
jle 0x1014dd5
xor esi, esi
cmp dword [ebp - 4], ebx
jle 0x1014d79
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push SysReAllocString
push dword [eax + ebx*4]
call fcn.01014c35
test eax, eax
jl 0x1014e28
inc dword [ebp - 0x14]
add esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x1014d51
lea eax, [esi + esi]
push eax
push 0x40
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x1014d8d
push 8
pop edi
jmp 0x1014de7
mov ecx, dword [ebp - 0xc]
push dword [ecx + 4]
push esi
push eax
call fcn.01014ba1
test eax, eax
jl 0x1014e28
push 2
pop edi
cmp dword [ebp - 4], edi
jle 0x1014dd5
push 0x1001d58
push esi
push dword [ebp - 8]
call fcn.01014bdb
test eax, eax
jl 0x1014e28
mov eax, dword [ebp - 0xc]
push dword [eax + edi*4]
push esi
push dword [ebp - 8]
call fcn.01014bdb
test eax, eax
jl 0x1014e28
inc edi
cmp edi, dword [ebp - 4]
jl 0x1014daa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
cmp dword [ebp - 0xc], 0
pop ebx
je 0x1014df7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x1014e23
cmp dword [ebp - 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1014e0c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 8], 0
je 0x1014e17
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
jmp 0x1014e32
mov edi, 0x65b
jmp 0x1014de7
push 0x57
pop eax
pop esi
leave
ret 8
Function at 0x1014e3c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
xor esi, esi
push 0x3c
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.010219e0
push 0x30
pop edi
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.010219e0
mov eax, dword [0x1064708]
mov dword [ebp - 0x28], eax
add esp, 0x18
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x3c]
mov edi, 0x1001d88
push eax
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x10143ef
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor ecx, ecx
cmp cx, ax
je 0x1014f7d
push esi
push dword [0x1064708]
mov eax, SysReAllocString
push esi
push esi
push esi
push esi
push eax
push eax
push eax
push 0x1001d68
push edi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
cmp edi, esi
je 0x1014f7d
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.01014c9f
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1014f86
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
push 0xffffffffffffffff
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x4040
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 0x1001d5c
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], 5
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1014f7d
cmp dword [ebp - 0x40], esi
jne 0x1014f55
mov dword [ebp - 4], 0x65b
jmp 0x1014f94
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1014f6c
cmp eax, 0xffffffff
jmp 0x1014f7b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1014f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x40], esi
je 0x1014f94
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], esi
je 0x1014fa4
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], esi
je 0x1014fae
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x101533e
Capabilities:
Set current directory

Disassembly:
push 0x10
mov eax, 0x105475f
call fcn.01021eb9
and dword [ebp - 4], 0
mov esi, 0x1064ba8
push esi
lea ecx, [ebp - 0x14]
call fcn.01015076
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01015076
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.01015076
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.01036032
test al, al
jne 0x10153c5
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.010147cd
xor eax, eax
call fcn.01021fa5
ret 8
push 0
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.010150a5
call fcn.01036735
test eax, eax
jne 0x101538f
cmp dword [ebp + 0xc], eax
je 0x1015427
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1015427
xor esi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.010147cd
mov eax, esi
jmp 0x10153bd
xor esi, esi
inc esi
jmp 0x10153f7

Function at 0x101664b
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x1054920
call fcn.01021eb9
mov esi, 0x1064ba8
push esi
lea ecx, [ebp - 0x10]
call fcn.01015076
and dword [ebp - 4], 0
mov edi, 0x105
push edi
lea ecx, [ebp - 0x10]
call fcn.010158a3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x101670e
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.01015023
push esi
lea ecx, [ebp - 0x14]
call fcn.01015076
push dword [0x106312c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.010161a7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.010360f6
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov bl, al
mov byte [ebp - 4], 1
call fcn.010147cd
test bl, bl
je 0x1016703
push dword [ebp - 0x14]
mov ecx, 0x1064714
call fcn.0101fe9c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov esi, eax
call fcn.010147cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
mov eax, esi
call fcn.01021fa5
ret
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010147cd
xor esi, esi
jmp 0x10166f0
Function at 0x1017165
Capabilities:
Identify system language via api

Disassembly:
push 4
mov eax, 0x1054b98
call fcn.01021eb9
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
cmp ax, di
jne 0x101723c
call fcn.0101a853
test eax, eax
je 0x10172c2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
push esi
call fcn.0101b74a
test eax, eax
movzx eax, si
push eax
je 0x10171b1
push 0x1002c1c
push 1
jmp 0x10172ba
cmp dword [ebp + 0xc], ebx
je 0x10171bd
push 0x1002ba0
jmp 0x10171aa
push 0x1002b28
push 3
call fcn.010168f9
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x1017230
mov esi, 0x1064ba8
push esi
lea ecx, [ebp + 8]
call fcn.01015076
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.01015076
lea eax, [ebp + 8]
push eax
push 0x1388
mov byte [ebp - 4], 1
call fcn.010208e1
lea eax, [ebp + 0xc]
push eax
push 0x13c7
call fcn.010208e1
push 0x30
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.010147cd
mov dword [ebp - 0x10], 0x717
jmp 0x10172c2
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
call esi
cmp ax, di
je 0x10172c2
push 1
push 0x10
push edi
call fcn.01020728
test eax, eax
jne 0x10172af
movzx ebx, di
push ebx
push 0x1002af0
push 1
call fcn.010168f9
add esp, 0xc
call fcn.0101a853
test eax, eax
je 0x10172c2
push edi
call fcn.0101b864
test eax, eax
je 0x10172a7
call esi
cmp ax, di
jne 0x101728f
push ebx
push 0x1002a78
jmp 0x10171aa
call esi
movzx eax, ax
push eax
push ebx
push 0x1002960
push 1
call fcn.010168f9
add esp, 0x10
jmp 0x10172c2
push ebx
push 0x10028d8
jmp 0x10172b8
movzx eax, di
push eax
push 0x1002860
push 2
call fcn.010168f9
add esp, 0xc
mov eax, dword [ebp - 0x10]
call fcn.01021fa5
ret 8
Function at 0x101b864
Capabilities:
Identify system language via api

Disassembly:
push 0x28
mov eax, 0x1055235
call fcn.01021eb9
xor edi, edi
cmp dword [0x106484c], edi
jne 0x101b881
xor eax, eax
jmp 0x101b9a5
lea eax, [ebp - 0x14]
mov ebx, 0x1064850
push eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.0101aa95
mov ax, word [ebp + 8]
cmp ax, di
jne 0x101b8a3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov esi, 0x1064ba8
push esi
lea ecx, [ebp - 0x18]
mov word [0x1064840], ax
call fcn.01015076
push 0xa
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.0101c247
lea eax, [ebp - 0x34]
push eax
push edi
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x106484c
mov byte [ebp - 4], 1
call fcn.0101ab33
call fcn.0101b6d9
push esi
lea ecx, [ebp - 0x10]
call fcn.01015076
mov eax, dword [ebp - 0x34]
xor esi, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x101b985
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0105038c
push eax
lea ecx, [ebp + 8]
call fcn.0101ab33
lea eax, [ebp - 0x10]
push eax
push edi
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.0101ab33
call fcn.0101b2a8
cmp eax, edi
je 0x101b970
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x101b970
push 0x10022f0
push 0x10045d0
lea ecx, [ebp - 0x10]
call fcn.0101ae36
push dword [ebp - 0x10]
call fcn.01035167
movzx ecx, word [0x1064840]
cmp eax, ecx
jne 0x101b970
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0101aa95
xor esi, esi
inc esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0101ab14
cmp dword [ebp - 0x14], edi
jne 0x101b8ff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
lea ecx, [ebp - 0x34]
call fcn.0101aa40
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010147cd
mov eax, esi
call fcn.01021fa5
ret 4
Function at 0x101c48e
Capabilities:
Encode data using xor

Disassembly:
push 0x18
mov eax, 0x10555c3
call fcn.01021eb9
mov edi, dword [ebp + 0xc]
or dword [ebp - 0x10], 0xffffffff
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
pop ecx
stosd dword es:[edi], eax
xor ebx, ebx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
stosd dword es:[edi], eax
call fcn.01021488
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x101c4d8
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x101c4d1
call fcn.0101a986
xor eax, eax
jmp 0x101c60a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x101c5d8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
add ecx, 8
call fcn.0105038c
push eax
lea ecx, [ebp - 0x20]
call fcn.0101c334
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0xc]
push ebx
push ebx
push 3
push ebx
push 1
mov byte [ebp - 4], 1
push SysReAllocString
cmp dword [eax - 0xc], ebx
jne 0x101c51f
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x101c568
mov ecx, edi
xor esi, esi
mov byte [ebp - 4], bl
call fcn.0101a986
jmp 0x101c5db
cmp eax, 0x7a
jne 0x101c52e
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, ebx
je 0x101c568
push dword [ebp - 0x18]
push esi
call fcn.01021fe6
pop ecx
pop ecx
cmp eax, ebx
je 0x101c52e
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, ebx
je 0x101c53f
lea eax, [edi + 0x10]
push eax
push dword [ebp - 0x18]
push esi
call fcn.0103626e
test eax, eax
je 0x101c52e
push 0x14
pop eax
cmp dword [ebp - 0x14], eax
jbe 0x101c59f
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jbe 0x101c5b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x101c5ac
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x10], 0xffffffff
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0101a986
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x24], ebx
jne 0x101c4e9
xor esi, esi
inc esi
cmp dword [ebp - 0x1c], ebx
je 0x101c5e9
push dword [ebp - 0x1c]
call fcn.010213a1
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
je 0x101c5f8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x101c608
call fcn.0101a986
mov eax, esi
call fcn.01021fa5
ret 8
Function at 0x101d120
Capabilities:
Set file attributes

Disassembly:
push 0xc
mov eax, 0x1055750
call fcn.01021eb9
mov esi, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.01014fc6
mov eax, dword [esi]
mov edi, 0x1004a9c
push edi
push eax
call fcn.01022de6
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x101d188
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esi]
push edi
push esi
call fcn.01022de6
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x101d188
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x101d181
call fcn.0101a986
xor eax, eax
jmp 0x101d22e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x101d212
mov ebx, 0x1004b70
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
add ecx, 8
call fcn.0105038c
push eax
lea ecx, [ebp - 0x14]
call fcn.0101c334
mov edi, dword [ebp - 0x14]
push dword [edi + 0x10]
lea esi, [edi + 0xc]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
push ebx
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
jne 0x101d1d5
call fcn.01022c72
add esp, 0xc
jmp 0x101d1fd
call fcn.01022c72
push dword [esi]
push 0x1004a8c
push dword [ebp - 0x10]
call fcn.01022c72
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add esp, 0x18
cmp dword [eax - 0xc], 0
jne 0x101d1fd
push esi
call fcn.01015aaf
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0101a986
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jne 0x101d19a
push dword [ebp - 0x10]
call fcn.01022bf1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x101d22b
call fcn.0101a986
xor eax, eax
inc eax
call fcn.01021fa5
ret 8