joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001329
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001364
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001360
lea ebx, [ebx]
cmp esi, eax
jae 0x10001364
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001350
cmp esi, eax
jb 0x1000136a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x100023f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10002422
call esi
push eax
push str.OpenProcessToken:_d_n
call fcn.10017b9e
add esp, 8
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10002448
call esi
push eax
push str.LookupPrivilegeValue:_d_n
call fcn.10017b9e
add esp, 8
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10002484
call esi
push eax
push str.AdjustTokenPrivilege:_d_n
call fcn.10017b9e
add esp, 8
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100024a3
call esi
push eax
push str.CloseHandle:_d_n
call fcn.10017b9e
add esp, 8
pop esi
add esp, 0x18
ret
Function at 0x100067d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1002dd0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10039aec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1002cc6c
push 4
mov dword [esp + 0x20], 0
call fcn.1000c349
mov edi, eax
add esp, 4
test edi, edi
je 0x1000684e
call fcn.1002ca01
mov dword [edi], eax
call fcn.1002c82f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.1002cb51
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10006843
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.1002cb79
jmp 0x10006850
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x10008f50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1002e3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10039aec]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov eax, dword [0x10039aec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10008f98
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.10006490
push 0x100332c8
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], ebx
call fcn.100042a0
mov byte [esp + 0x50], 1
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x10008fd2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.10009bf0
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.10017ffc
add esp, 8
cmp eax, ebx
jne 0x10008ff4
or eax, 0xffffffff
jmp 0x10008ffa
sub eax, dword [esp + 0x14]
sar eax, 1
lea edi, [esp + 0x18]
lea ebx, [esp + 0x14]
call fcn.10009ca0
push eax
mov ecx, ebx
mov byte [esp + 0x54], 2
call fcn.10009ed0
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.1000a160
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.10008ed0
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x100090ae
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.1000a160
add esp, 4
lea ecx, [esp + 0x1c]
lea esi, [eax + 0x10]
push ecx
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100090ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100090d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], 0x10
jb 0x100090e6
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1000c383
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1001732a
add esp, 0x44
ret
Function at 0x10009110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002e188
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10039aec]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push edi
mov eax, dword [0x10039aec]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x10], esi
mov byte [esi + 4], bl
lea eax, [esp + 0x30]
mov dword [esp + 0xbc], ebx
push eax
mov dword [esp + 0x10], 1
call fcn.1001826e
lea eax, [esp + 0x34]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10009183
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.10006490
push esi
mov ecx, 0x100332cc
lea edi, [esp + 0x18]
call fcn.1000a4d0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0xc8], 1
call fcn.100052f0
mov byte [esp + 0xbc], bl
cmp dword [esp + 0x2c], 0x10
jb 0x100091dc
mov edx, dword [esp + 0x18]
push edx
call fcn.1000c383
add esp, 4
lea eax, [esp + 0x30]
push eax
call fcn.100181af
push esi
lea ecx, [esp + 0x38]
lea edi, [esp + 0x1c]
call fcn.1000a4d0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0xc8], 2
call fcn.100052f0
cmp dword [esp + 0x2c], 0x10
jb 0x10009221
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1000c383
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.1001732a
add esp, 0xb4
ret
Function at 0x10009a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x1002e848
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10039aec]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10039aec]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1003dfcc]
add ecx, 0x3e8
cmp eax, ecx
jbe 0x10009b48
lea esi, [esp + 0x14]
call fcn.10009110
xor ebx, ebx
push eax
mov ecx, str._r_n_r_nCurrent_time:
lea edi, [esp + 0x34]
mov dword [esp + 0x78], ebx
call fcn.1000a4d0
push eax
mov edi, 0x100332ec
lea esi, [esp + 0x54]
mov byte [esp + 0x7c], 1
call fcn.1000a6d0
add esp, 8
mov edi, 0x10
cmp dword [esp + 0x48], edi
jb 0x10009abd
mov edx, dword [esp + 0x34]
push edx
call fcn.1000c383
add esp, 4
mov esi, 0xf
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x74], 4
cmp dword [esp + 0x2c], edi
jb 0x10009ae6
mov eax, dword [esp + 0x18]
push eax
call fcn.1000c383
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov dword [0x1003dfcc], eax
call fcn.10009650
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10009b35
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], edi
jae 0x10009b1a
lea ecx, [esp + 0x50]
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10009b35
push ebx
push ecx
push eax
call fcn.100183a5
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.10017fa0
add esp, 0x10
cmp dword [esp + 0x64], edi
jb 0x10009b48
mov edx, dword [esp + 0x50]
push edx
call fcn.1000c383
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1001732a
add esp, 0x64
ret
Function at 0x1000a880
Capabilities:
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1002e49b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x10039aec]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
push esi
mov eax, dword [0x10039aec]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov esi, ecx
push 2
mov dword [esp + 0x20], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000aa4d
lea eax, [esp + 0x64]
push eax
push ebp
mov dword [esp + 0x6c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000aa42
jmp 0x1000a8f6
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x1000a91a
lea ecx, [esp + 0x88]
push ecx
mov eax, esi
call fcn.10004a20
push eax
call fcn.1001752e
add esp, 8
test eax, eax
jne 0x1000aa2f
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], edx
xor edx, edx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x88]
mov word [esp + 0x4c], dx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000a985
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x8c]
lea esi, [esp + 0x4c]
call fcn.10004970
mov dword [esp + 0x2a0], ebx
mov eax, dword [edi + 0xc]
cmp eax, ebx
jne 0x1000a9b7
xor ecx, ecx
jmp 0x1000a9bf
mov ecx, dword [edi + 0x14]
sub ecx, eax
sar ecx, 6
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, eax
sar edx, 6
cmp edx, ecx
jae 0x1000a9f2
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 1
push esi
lea ecx, [esp + 0x34]
call fcn.1000bd30
add esp, 0x10
add esi, 0x40
mov dword [edi + 0x10], esi
jmp 0x1000aa10
cmp eax, esi
jbe 0x1000a9fb
call fcn.10017b8e
mov eax, dword [edi]
push esi
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, edi
call fcn.1000b2f0
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x60], 8
jb 0x1000aa2f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.1000c383
add esp, 4
lea edx, [esp + 0x64]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000a8f2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1000aa4f
xor al, al
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.1001732a
add esp, 0x294
ret

Function at 0x1001732a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10039aec]
jne 0x10017334
repz ret
jmp fcn.1001bbdb
Function at 0x10028baf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001d910
and dword [ebp - 4], 0
cmp dword [0x1003db50], 0
mov ebx, eax
jne 0x10028c60
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10028d11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10032c48
push edi
call esi
test eax, eax
je 0x10028d11
push eax
call fcn.1001d89e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003db50], eax
call esi
push eax
call fcn.1001d89e
mov dword [esp], 0x10032c24
push edi
mov dword [0x1003db54], eax
call esi
push eax
call fcn.1001d89e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1003db58], eax
call esi
push eax
call fcn.1001d89e
pop ecx
mov dword [0x1003db60], eax
test eax, eax
je 0x10028c60
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001d89e
pop ecx
mov dword [0x1003db5c], eax
mov eax, dword [0x1003db5c]
cmp eax, ebx
je 0x10028cb8
cmp dword [0x1003db60], ebx
je 0x10028cb8
push eax
call fcn.1001d919
push dword [0x1003db60]
mov esi, eax
call fcn.1001d919
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10028cb8
test edi, edi
je 0x10028cb8
call esi
test eax, eax
je 0x10028caf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10028caf
test byte [ebp - 0xc], 1
jne 0x10028cb8
or dword [ebp + 0x10], 0x200000
jmp 0x10028cf1
mov eax, dword [0x1003db54]
cmp eax, ebx
je 0x10028cf1
push eax
call fcn.1001d919
pop ecx
test eax, eax
je 0x10028cf1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10028cf1
mov eax, dword [0x1003db58]
cmp eax, ebx
je 0x10028cf1
push eax
call fcn.1001d919
pop ecx
test eax, eax
je 0x10028cf1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003db50]
call fcn.1001d919
pop ecx
test eax, eax
je 0x10028d11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10028d13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100020c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x1000cbec
call fcn.1000284a
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10002174
test esi, esi
jne 0x10002174
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10002158
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10002152
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002152
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x10002141
cmp esi, eax
jae 0x10002145
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10002133
cmp esi, eax
jb 0x10002149
xor eax, eax
jmp 0x10002152
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x1000217d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x1000cbec
call fcn.1000284a
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x100020e5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002278
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100022aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100022a6
cmp esi, eax
jae 0x100022aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10002298
cmp esi, eax
jb 0x100022b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x100022e0
Capabilities:
Enumerate files on windows

Disassembly:
push 4
call fcn.10002b82
add esp, 4
test eax, eax
je 0x100022fe
mov dword [eax], 0
mov dword [0x1000d8f0], eax
jmp fcn.10001000
xor eax, eax
mov dword [0x1000d8f0], eax
jmp fcn.10001000

Function at 0x10002310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 4
call fcn.10002b82
add esp, 4
test eax, eax
je 0x10002332
mov dword [eax], 0
mov dword [0x1000d8f0], eax
pop ebp
jmp fcn.100014f0
xor eax, eax
mov dword [0x1000d8f0], eax
pop ebp
jmp fcn.100014f0

Function at 0x100028f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000c070]
jne 0x100028fc
repz ret
jmp fcn.1000307a
Function at 0x10003910
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000394b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10003932
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10003943
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1000394d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10003928
xor eax, eax
pop edi
pop esi
ret

Function at 0x10003b31
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
stosb byte es:[edi], al
pop eax
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
aam 0xc6
inc ebp
mov dl, 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100038d0
movsd dword es:[edi], dword [esi]
dec ebp
aam 0x9a
lea eax, [ebp - 0x58]
push eax
call fcn.100038e0
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10003895
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10003bbe
call dword [ecx - 1]
ror byte [ebx - 0x727407bb], 1
push esp
invalid
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100038d0
jo 0x10003b96
lcall 0xe850, 0xc0458dc6
invalid
Function at 0x10003c6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.100038e0
push eax
push esi
push dword [ebp + 8]
call fcn.10003895
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100038e0
push eax
push esi
push dword [ebp + 8]
call fcn.10003895
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x10003d6b

Function at 0x10003d83
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
invalid
inc ebp
Function at 0x10003f33
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10003f84
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x10003f7f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10003f69
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10003f71
cmp edx, ebx
jne 0x100040bf
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10003f40
add eax, dword [eax + 4]
jmp 0x10003f2d
mov dword [ebp + 0xc], ebx
jmp 0x10003f8f
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10003fa7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10003fc5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10004023
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000400a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10004013
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000401d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10003fff
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10003f89
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10004070
dec eax
je 0x10004067
sub eax, 3
je 0x1000405e
mov dword [ebp - 4], 0x40
jmp 0x1000408d
mov dword [ebp - 4], 4
jmp 0x10004073
mov dword [ebp - 4], 0x20
jmp 0x10004073
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esp
invalid
invalid
invalid
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100040bf
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000403f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100038d0
sbb ebx, ebx
retf
Function at 0x100014d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001528
cmp byte [esi + ebx - 1], 0xa
je 0x100014fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10006084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret