joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c073
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482c20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c0b3
cmp byte [ebx], 0xa
jne 0x41c0b3
or byte [eax + edi + 0x28], 4
jmp 0x41c0b8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c1b6
mov al, byte [edx]
cmp al, 0x1a
je 0x41c198
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c0e7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c10c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c116
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c0c9
jmp 0x41c1b6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c193
cmp dword [ebp - 0xc], 0
je 0x41c193
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482c20]
test byte [eax + edi + 0x28], 0x48
je 0x41c16d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c158
mov byte [esi], dl
jmp 0x41c169
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482c20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c1b6
cmp byte [ebp - 1], 0xa
jne 0x41c17c
cmp esi, ebx
jne 0x41c17c
mov byte [esi], 0xa
jmp 0x41c1b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cbf3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c1b6
mov byte [esi], 0xd
jmp 0x41c1b5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c1b2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c1b6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c1bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482c20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c202
cmp word [esi], dx
jne 0x41c202
or byte [edi + eax + 0x28], 4
jmp 0x41c207
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c35a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c33a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c249
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c27f
cmp eax, edx
jae 0x41c28b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c221
jmp 0x41c35a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c336
cmp dword [ebp - 0x14], 0
je 0x41c336
mov eax, dword [ebx*4 + 0x482c20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c30e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c2d7
mov word [esi], cx
jmp 0x41c30a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482c20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482c20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482c20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c35a
pop ebx
cmp word [ebp - 4], bx
jne 0x41c31f
cmp esi, dword [ebp + 0xc]
jne 0x41c31f
mov word [esi], bx
jmp 0x41c357
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cbf3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c35a
push 0xd
jmp 0x41c353
mov ecx, dword [ebx*4 + 0x482c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c351
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c35a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f66d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x480c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41f6b8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041f80c
test al, al
jne 0x41f6b2
sub edx, 2
cmp edx, edi
jne 0x41f698
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41f6da
lea eax, [edi + 2]
cmp edx, eax
je 0x41f6da
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041f5b9
add esp, 0x10
jmp 0x41f7d4
push esi
lea ecx, [ebp - 0x255]
call fcn.0041f80c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f71d
push dword [ebp - 0x25c]
jmp 0x41f6ca
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41f75a
cmp word [ebp - 0x226], 0
je 0x41f77b
cmp word [ebp - 0x226], ax
jne 0x41f75a
cmp word [ebp - 0x224], 0
je 0x41f77b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041f5b9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41f7c7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41f734
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41f7af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41f7d4
push 0x41f3e9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00425900
add esp, 0x10
jmp 0x41f7a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab49
leave
ret

Function at 0x427250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42727d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42727d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1009c49
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1009c7c
push 0x80004005
push 0
push 0x1001728
lea ecx, [ebp - 0x60]
call fcn.010393b6
push 0x1058b28
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll__CxxThrowException
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
leave
ret 0xc

Function at 0x1009ca7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
jne 0x1009cde
push 0x80004005
push edi
push 0x1001728
lea ecx, [ebp - 0x60]
call fcn.010393b6
push 0x1058b28
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll__CxxThrowException
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1009cde
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100a659
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetControlPrint
push 0x80000002
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x100a759
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineHostReuse
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x100a6c0
cmp dword [ebp - 4], ebx
jne 0x100a6c0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x40], bl
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineHostTimeout
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100a6ee
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100a6ee
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineDebugLog
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100a71c
cmp dword [ebp - 4], ebx
je 0x100a71c
seta al
mov byte [0x1064dd4], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineBufferSize
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
pop edi
pop esi
test eax, eax
jne 0x100a74b
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100a74b
mov dword [0x1064030], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
pop ebx
jle 0x100a766
and eax, 0xffff
or eax, 0x80070000
leave
ret

Function at 0x100aa46
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10641d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01009bea
mov edi, eax
cmp edi, esi
je 0x100aab8
lea ecx, [ebp - 0x214]
call fcn.01009b77
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100d2b8
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100aad6
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0100aa46
cmp eax, esi
jne 0x100ab21
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x100aac0
lea ecx, [ebp - 0x214]
call fcn.01009b77
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01009af1
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01009b77
mov eax, esi
jmp 0x100aaa8
Function at 0x100ae1f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x10641d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.010398b2
cmp byte [0x1064dd4], 0
mov esi, dword [eax]
je 0x100ae82
test esi, esi
je 0x100ae82
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x100ae5b
cmp byte [0x7ffe02d4], al
je 0x100ae82
push esi
push 0x1001a0c
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.0100a8f5
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100d2b8
leave
ret

Function at 0x100ae94
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x100aeb5
xor eax, eax
jmp 0x100aedb
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100a76d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x100aed8
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100c3f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x105147d
call fcn.0100d3b9
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100c44c
call fcn.010399b4
mov esi, eax
jmp 0x100c555
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100c465
call fcn.010399b4
jmp 0x100c547
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100c45b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100c4cb
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100c4b1
lea ecx, [ebp - 0x418]
call fcn.0100a499
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100a38e
mov eax, esi
call fcn.0100d424
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100b22c
mov dword [ebp - 4], 1
jmp 0x100c4f9
cmp dword [ebp - 0x418], esi
jne 0x100c508
mov esi, 0x8007000e
jmp 0x100c549
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100c45b
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100c119
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100c4b6
lea ecx, [ebp - 0x418]
call fcn.0100a499
jmp 0x100c4b6

Function at 0x100ccbe
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10641d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100cc53
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100cd31
cmp dword [ebp - 0x94], 5
jb 0x100cd52
jmp 0x100cd4e
cmp dword [ebp - 0x88], 1
jne 0x100cd52
cmp dword [ebp - 0x94], 4
ja 0x100cd4e
jne 0x100cd52
cmp dword [ebp - 0x90], 0
jbe 0x100cd52
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001ba8
call fcn.010098ec
test eax, eax
jge 0x100cd73
mov byte [0x1064da8], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100d2b8
leave
ret
Function at 0x100d0b2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1058f00
call fcn.0100d230
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10656ac
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100ce6a
cmp eax, esi
jne 0x100ce5d
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100ce6d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100ce44
xor esi, esi
inc esi
mov eax, dword [0x10656a8]
cmp eax, esi
jne 0x100ce80
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100ceaf
mov eax, dword [0x10656a8]
test eax, eax
jne 0x100cea9
mov dword [0x10656a8], esi
push 0x10013dc
push 0x10013d0
call fcn.0100cda6
pop ecx
pop ecx
test eax, eax
je 0x100ceaf
jmp 0x100cfd3
mov dword [0x1064f40], esi
mov eax, dword [0x10656a8]
cmp eax, esi
jne 0x100ced3
push 0x10013cc
push 0x1001398
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10656a8], 2
cmp dword [ebp - 0x20], ebx
jne 0x100cee0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10656b8], ebx
je 0x100cf01
push 0x10656b8
call fcn.0100d6f9
pop ecx
test eax, eax
je 0x100cf01
push ebx
push 2
push ebx
call dword [0x10656b8]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100cfd3
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100cf6b
cmp cx, bx
je 0x100cf26
cmp dword [ebp - 0x1c], ebx
jne 0x100cf6b
movzx ecx, word [eax]
cmp cx, bx
je 0x100cf3b
cmp cx, 0x20
ja 0x100cf3b
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100cf26
test byte [ebp - 0x40], 1
je 0x100cf47
movzx ecx, word [ebp - 0x3c]
jmp 0x100cf4a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1064f3c], eax
cmp dword [0x1064f30], ebx
jne 0x100cfb0
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100cf7c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100cf10
cmp dword [0x1064f40], ebx
jne 0x100cfbe
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1064f3c]
jmp 0x100cfdf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100d275
ret
call fcn.0100d83e
jmp 0x100ce07
Function at 0x100f08f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x470
mov eax, 0x105181b
call fcn.0100d3b9
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x470], edi
mov byte [ebp - 4], 1
call fcn.0100ef0b
lea ecx, [ebp - 0x470]
mov esi, eax
call fcn.0100e464
push str..TMP
push 0x10642c4
push esi
mov dword [ebp - 0x470], esi
push 0x1001f68
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0100a954
add esp, 0x18
cmp eax, edi
jge 0x100f0fa
push edi
push 0x1001728
push eax
call fcn.01038ed2
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100f161
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x21c]
push 0x1001f5c
push esi
push eax
call fcn.0100a954
add esp, 0x14
test eax, eax
jl 0x100f148
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100f115
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x470]
call fcn.0100e464
call fcn.0100d424
ret
Function at 0x1015174
Capabilities:
Print debug messages

Disassembly:
push 0xdc
mov eax, 0x105266f
call fcn.0100d37e
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0xd9], 1
mov dword [ebp - 0xe0], ebx
mov esi, dword [sym.imp.ole32.dll_CoGetObjectContext]
mov edi, 0x1001cbc
jmp 0x1015259
mov eax, dword [ebp - 0xe0]
or dword [ebp - 0xe4], 0xffffffff
mov ecx, dword [eax]
lea edx, [ebp - 0xe4]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x101526e
cmp dword [ebp - 0xe4], 1
je 0x101526e
cmp byte [ebp - 0xd9], bl
je 0x1015241
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x10151f4
cmp byte [0x7ffe02d4], bl
je 0x1015241
push 0x10029a0
mov byte [ebp - 0xd9], bl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0xe8]
lea eax, [ebp - 0xd8]
push dword [ebp - 0xe8]
push 0x1002948
push 0xc8
push eax
call fcn.0100a8f5
add esp, 0x14
test eax, eax
jl 0x1015241
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0xe0]
push eax
call fcn.010232f6
mov dword [ebp - 0xe0], ebx
lea eax, [ebp - 0xe0]
push eax
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jge 0x10151ab
lea eax, [ebp - 0xe0]
push eax
call fcn.010232f6
call fcn.0100d410
ret 4

Function at 0x1020b39
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov eax, dword [edi]
mov dword [esi], 0x10042e0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1020b5f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.01037c6c
pop edi
mov ecx, esi
pop esi
jmp fcn.010399f6

Function at 0x1020b3b
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov eax, dword [edi]
mov dword [esi], 0x10042e0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1020b5f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.01037c6c
pop edi
mov ecx, esi
pop esi
jmp fcn.010399f6

Function at 0x10316c7
Capabilities:
Write file on windows

Disassembly:
push 0xc8
mov eax, 0x1055aa1
call fcn.0100d37e
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
lea ebx, [ebp - 0x74]
push ebx
push edx
push ecx
mov dword [ebp - 0x74], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1031750
push eax
push 0x1001728
lea ecx, [ebp - 0x70]
call fcn.01039385
and dword [ebp - 4], 0
call fcn.0103d1f1
push eax
lea ecx, [ebp - 0x70]
call fcn.01039483
lea eax, [ebp - 0x70]
push 0x10055c4
push eax
call fcn.0103940f
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0100dcd2
push 0x10590d8
lea eax, [ebp - 0xd4]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x74]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
test edi, edi
je 0x1031760
mov dword [edi], eax
call fcn.0100d410
ret 0xc
Function at 0x1032274
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
jne 0x10322a9
mov ecx, dword [esi + 0x30]
call fcn.01031212
cmp edx, dword [esi + 0x3c]
ja 0x10322a9
jb 0x1032296
cmp eax, dword [esi + 0x38]
jae 0x10322a9
push edi
mov edi, dword [esi + 0x30]
lea ecx, [edi + 0x14]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp byte [edi + 0x50], 0
pop edi
je 0x10322ec
mov esi, dword [esi + 0x10]
mov eax, esi
inc eax
neg eax
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10322ec
mov eax, dword [0x1064004]
cmp eax, 0x1064004
je 0x10322e4
test byte [eax + 0x1c], 2
je 0x10322e4
push 0x1005580
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100daef
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
ret 4