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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov edi, 0xf01ff
mov dword [ebp - 8], ebx
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000ee44
lea eax, [ebp - 0x10]
push eax
push 1
push 1
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000ee44
push str.Kernel32.dll
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1000ed8f
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000ed88
call eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1000ee44
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Wtsapi32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1000ee6b
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000eddb
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push dword [ebp - 0x14]
call eax
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
push dword [ebp - 0xc]
test eax, eax
jne 0x1000edd9
call esi
jmp 0x1000ee44
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.100191c0
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.100191c0
add esp, 0x18
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], str.WinSta0Default
mov dword [ebp - 0x3c], 1
push 5
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 4]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000ee44
cmp dword [ebp - 4], ebx
je 0x1000ee42
push dword [ebp - 4]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000ee53
cmp eax, 0xffffffff
je 0x1000ee53
push eax
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1000ee62
cmp ecx, 0xffffffff
je 0x1000ee62
push ecx
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x1000eddb
push dword [ebp - 8]
jmp 0x1000edd5
Function at 0x1000ee88
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x1007345e
call fcn.1003d449
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000ef84
push eax
lea ecx, [ebp - 0x40]
call fcn.10001540
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1000dfe8
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.100191c0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ef75
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1000ef6a
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x1000ef14
mov eax, ebx
jmp 0x1000ef21
lea eax, [ebp - 0x248]
push eax
call fcn.10020feb
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.100016a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1000dfe8
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e2c0
test eax, eax
je 0x1000ef8a
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.100015e0
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000eef7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.100015e0
mov eax, esi
call fcn.1003d404
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.100015e0
jmp 0x1000ef77
Function at 0x1000fae1
Capabilities:
Check if file exists

Disassembly:
push 0x258
mov eax, 0x100735fb
call fcn.1003d449
mov esi, ecx
lea eax, [esi + 4]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x230]
call fcn.10003150
xor edi, edi
mov byte [ebp - 4], 3
cmp dword [ebp + 8], edi
je 0x1000fb29
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x230]
cmp ecx, eax
je 0x1000fb29
push 0xffffffffffffffff
push edi
push eax
call fcn.100018c0
push 8
pop esi
cmp dword [ebp + 0x50], esi
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000fb49
xor esi, esi
inc esi
jmp 0x1000fcc9
lea eax, [ebp + 0xc]
push eax
call fcn.1000dfe8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1000db68
add esp, 0xc
cmp dword [ebp - 0x21c], esi
lea edx, [ebp - 0x230]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 0x24]
cmovae edx, dword [ebp - 0x230]
lea eax, [ebp - 0x248]
cmp dword [ebp + 0x38], esi
push edx
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp - 0x234], esi
push ecx
cmovae eax, dword [ebp - 0x248]
push 0x10077424
push eax
mov byte [ebp - 4], 4
call ebx
cmp dword [ebp - 0x21c], esi
lea edx, [ebp - 0x230]
lea ecx, [ebp + 0x3c]
cmovae edx, dword [ebp - 0x230]
lea eax, [ebp - 0x248]
cmp dword [ebp + 0x50], esi
push edx
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp - 0x234], esi
push ecx
cmovae eax, dword [ebp - 0x248]
push str.File
push eax
call ebx
cmp dword [ebp + 0x50], esi
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10001540
lea eax, [ebp - 0x260]
push eax
call fcn.10012105
add esp, 0x1c
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x248]
cmovae edx, dword [ebp - 0x230]
cmp dword [ebp - 0x24c], esi
push edx
cmovae ecx, dword [ebp - 0x260]
cmp dword [ebp - 0x234], esi
push ecx
cmovae eax, dword [ebp - 0x248]
push str.LastMD5
push eax
call ebx
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.100191c0
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
push edi
cmovae esi, dword [ebp - 0x230]
call fcn.10028ef9
add esp, 0x10
lea edi, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae edi, dword [ebp - 0x248]
push esi
push 0xa
lea ecx, [ebp - 0x218]
push ecx
push edx
push eax
call fcn.100291cb
add esp, 0x10
push eax
push str.CacheTime
push edi
call ebx
xor edi, edi
lea ecx, [ebp - 0x260]
xor esi, esi
push edi
inc esi
push esi
call fcn.100015e0
push edi
push esi
lea ecx, [ebp - 0x248]
call fcn.100015e0
push edi
push esi
lea ecx, [ebp - 0x230]
call fcn.100015e0
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.100015e0
push edi
push esi
lea ecx, [ebp + 0x24]
call fcn.100015e0
push edi
push esi
lea ecx, [ebp + 0x3c]
call fcn.100015e0
call fcn.1003d404
ret 0x4c
Function at 0x100110b0
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x100738a5
call fcn.1003d449
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100111b0
cmp byte [ebx + 0x3d], 0
je 0x100111b0
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x100110ea
xor al, al
jmp 0x100111b2
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.10010c51
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10011148
sub eax, 1
je 0x1001114c
dec eax
sub eax, 1
je 0x1001119e
xor bl, bl
jmp 0x100111a0
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x10011184
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10029f02
add esp, 0x10
cmp esi, eax
jne 0x10011144
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x1001119e
test esi, esi
jne 0x1001110e
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000d17c
jmp 0x10011108
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10005480
mov al, bl
jmp 0x100111b2
mov al, 1
call fcn.1003d404
ret

Function at 0x10011532
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x10012017
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x18
mov eax, 0x100739a1
call fcn.1003d480
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
xor esi, esi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov edi, esi
mov dword [ebp - 4], esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100120f2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push esi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
push esi
cmp ebx, 0xffffffff
jne 0x10012085
push 1
lea ecx, [ebp + 8]
call fcn.100015e0
xor eax, eax
jmp 0x100120ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.1000a39b
pop ecx
mov edi, eax
jmp 0x100120b0
test edi, edi
jne 0x100120bf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x100120f2
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push esi
push edi
call fcn.100191c0
add esp, 0xc
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100120f2
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push esi
push 1
lea ecx, [ebp + 8]
call fcn.100015e0
mov eax, edi
call fcn.1003d3ef
ret
Function at 0x10012105
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x100739dc
call fcn.1003d449
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x1008a228
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.100016a0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.100110a4
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10012279
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100121a3
push 0x1008a228
mov ecx, esi
call fcn.10001540
jmp 0x10012284
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.1000a39b
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100121e2
push 0x1008a228
mov ecx, esi
call fcn.10001540
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.100015e0
push ebx
jmp 0x10012290
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.100191c0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.10011d0b
push ebx
call fcn.1000a3a4
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10011559
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.1000df32
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.10005480
cmp dword [ebp - 0x30], ebx
jbe 0x1001226e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.100018c0
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.100015e0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10003770
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.100015e0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.100015e0
mov eax, esi
call fcn.1003d404
ret
Function at 0x100135f5
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0x858
mov eax, 0x10073e7b
call fcn.1003d449
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x830]
mov esi, dword [ebp + 0xc]
mov ebx, 0x208
and dword [ebp - 0x864], 0
push ebx
push 0
push eax
call fcn.100191c0
lea eax, [ebp - 0x860]
push esi
push eax
call fcn.1000df32
xor esi, esi
lea eax, [ebp - 0x860]
cmp dword [ebp - 0x84c], 8
mov dword [ebp - 4], esi
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.100122e3
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push 0x1008a220
push eax
call fcn.10008820
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100191c0
push ebx
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.100191c0
add esp, 0x40
lea eax, [ebp - 0x420]
push ebx
push esi
push eax
call fcn.100191c0
add esp, 0xc
lea eax, [ebp - 0x420]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100288af
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002883e
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013721
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.10001540
push 0
push 1
lea ecx, [ebp - 0x848]
call fcn.100015e0
push 0
push 1
lea ecx, [ebp - 0x860]
call fcn.100015e0
mov eax, edi
call fcn.1003d404
ret 8
Function at 0x10014101
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x10073fdb
call fcn.1003d449
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x1001412d
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x1001428e
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001415b
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001415b
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x1001428e
cmp dword [esi + 0x4c], 0
je 0x1001428c
mov ecx, esi
call fcn.10013ee9
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x1001418b
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.10012897
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x1001428c
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.10010c51
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x10014280
cmp eax, 1
jg 0x10014265
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x10014236
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.10029f02
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x10014280
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x10014260
test edx, edx
jne 0x100141b6
cmp dword [ebp - 0x18], 0x20
jae 0x10014280
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.1000d17c
jmp 0x100141b3
mov ebx, dword [ebp + 8]
jmp 0x10014280
cmp eax, 3
jne 0x10014280
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.10012897
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10005480
mov eax, ebx
call fcn.1003d404
ret 4
Function at 0x10014b1a
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x100740ab
call fcn.1003d449
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10014b39
xor eax, eax
jmp 0x10014cc1
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.100191c0
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.10020e60
push edi
xor esi, esi
call fcn.10020f60
mov edi, eax
mov dword [ebp - 0x214], 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x228], ax
push 0x100
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ecx
push eax
call fcn.100191c0
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x10014ba8
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x10014caf
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x10014bc8
push 2
pop eax
jmp 0x10014c9f
cmp al, 0x5c
jne 0x10014c9c
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10018c40
add esp, 0xc
cmp esi, 0x100
jae 0x10014cdd
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.100048e0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.10015230
push eax
lea ecx, [ebp - 0x228]
call fcn.100030b0
push 0
push 1
lea ecx, [ebp - 0x258]
call fcn.100015e0
push 0
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.10005480
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x4a8]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x10014c9c
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10014cc9
xor eax, eax
inc eax
add esi, eax
cmp byte [ebp + esi - 0x110], 0
jne 0x10014bb5
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.100015e0
xor eax, eax
inc eax
call fcn.1003d404
ret 4
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.100015e0
jmp 0x10014b32
call fcn.1000af2e
int3

Function at 0x10015202
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x10015214
cmp edx, 1
jne 0x1001522f
xor eax, eax
push eax
push eax
push ecx
push 0x10014fa0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x10016a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10090014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x10016ab5
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x10016a65
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.10018c40
push esi
push esi
push dword [ebp - 0x14]
call fcn.10015d06
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x10016a8e
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.10018c40
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x10016a5c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret

Function at 0x1002ff2d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002fbed

Function at 0x10032cbe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10032b3d

Function at 0x1003e420
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10090014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1003e470
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1003e46a
shr eax, 8
cmp al, 2
jne 0x1003e46a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret