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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x1008df61
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x1008df61
mov ecx, dword [ecx + eax + 0x88]
test ecx, ecx
je 0x1008df61
add eax, ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
call fcn.10091700
add esp, 0xc
test eax, eax
je 0x1008df61
mov edx, dword [ebp + 8]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008df32
sub eax, esi
sar eax, 1
add eax, eax
push eax
mov eax, dword [ebp - 8]
push edx
add eax, 0xfffffffc
push eax
push dword [ebp - 4]
call fcn.10091750
add esp, 0x10
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1008e010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x5a4d
cmp ax, word [ebx]
jne 0x1008e05e
mov ecx, dword [ebx + 0x3c]
cmp dword [ecx + ebx], 0x4550
jne 0x1008e05e
mov eax, dword [ecx + ebx + 0xd8]
mov ecx, dword [ecx + ebx + 0xdc]
add eax, ebx
add ecx, eax
cmp eax, ecx
jae 0x1008e05e
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x1008e06f
add eax, 4
cmp eax, ecx
jb 0x1008e053
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0xa], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0xc], ax
je 0x1008e0da
push esi
push edi
mov edi, dword [ebp + 0x10]
add edi, 0xfffffffa
cmp edi, ebx
jb 0x1008e0c5
mov esi, edi
lea eax, [ebp - 0xc]
sub esi, eax
xor eax, eax
lea ecx, [ebp - 0xc]
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [esi + ecx]
je 0x1008e0a6
cmp dl, 0x11
jne 0x1008e0bf
inc eax
cmp eax, 6
jl 0x1008e095
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
dec edi
dec esi
cmp edi, ebx
jae 0x1008e093
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push ebx
push 6
push eax
call fcn.1008e930
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop ebx
call fcn.100ac280
mov esp, ebp
pop ebp
ret
Function at 0x1008e160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x1008e1ad
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x1008e1ad
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x1008e1ad
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x1008e1bd
add eax, 4
cmp eax, ecx
jb 0x1008e1a2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp + 0x1c]
test cl, cl
je 0x1008e1cd
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], cl
jmp 0x1008e1d3
mov word [ebp - 0xc], 0x15ff
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0xa], eax
je 0x1008e23a
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
add edi, 0xfffffffa
cmp edi, ebx
jb 0x1008e225
mov esi, edi
lea eax, [ebp - 0xc]
sub esi, eax
xor eax, eax
lea ecx, [ebp - 0xc]
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [esi + ecx]
je 0x1008e206
cmp dl, 0x11
jne 0x1008e21f
inc eax
cmp eax, 6
jl 0x1008e1f5
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
dec edi
dec esi
cmp edi, ebx
jae 0x1008e1f3
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push 6
push eax
call fcn.1008e930
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret

Function at 0x1008e260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, 0x5a4d
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
cmp ax, word [edx]
jne 0x1008e2bb
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x1008e2bb
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x1008e2bb
mov edx, dword [ebp + 0xc]
nop dword [eax]
cmp dword [eax], edx
je 0x1008e2e0
add eax, 4
cmp eax, ecx
jb 0x1008e2b0
mov dword [esi], 0
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x1008e2f0
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], cl
jmp 0x1008e2f6
mov word [ebp - 0xc], 0x15ff
push dword [ebp + 0x18]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 6
push eax
push esi
call fcn.1008dd10
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100ac280
mov esp, ebp
pop ebp
ret
Function at 0x1008ea10
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xcccc
push dword [ebp + 8]
call fcn.1008e960
add esp, 0x18
test eax, eax
je 0x1008ea39
inc eax
cmp byte [eax], 0xcc
je 0x1008ea33
pop ebp
ret

Function at 0x1008ec40
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xcccc
push dword [ebp + 8]
call fcn.1008eb80
add esp, 0x18
test eax, eax
je 0x1008ec69
inc eax
cmp byte [eax], 0xcc
je 0x1008ec63
pop ebp
ret

Function at 0x10091d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10091ef0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10091e0d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100e9f30]
jb 0x10091d8a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100e9f34]
ja 0x10091d8a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10091d5a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10091db0
jmp 0x10091e0d
cmp dword [ebp - 0x14], 0x10000
jne 0x10091df3
cmp dword [ebp - 0x18], 0x10000
jb 0x10091df3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10091de6
mov eax, dword [ebp - 8]
jmp 0x10091e0f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10091e08
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10091ef0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10091d5a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10091e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10091f20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10091ee5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100e9f30]
jb 0x10091e65
mov eax, dword [ebp - 4]
cmp eax, dword [0x100e9f34]
ja 0x10091e65
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10091e35
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10091e8b
jmp 0x10091ee5
cmp dword [ebp - 0x14], 0x10000
jne 0x10091ece
cmp dword [ebp - 0x18], 0x10000
jb 0x10091ece
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10091ec1
mov eax, dword [ebp - 8]
jmp 0x10091ee7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10091ee0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10091f20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10091e35
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100ad4a0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.100ad3d0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x100ad4ca
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x100ad4d6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x100ad4e0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.100ad3d0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x100ad50a
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x100ad770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x100ad797
mov ecx, 5
int 0x29
push 2
call fcn.100acd1d
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x100ad8a2
test esi, esi
jne 0x100ad8a2
push 2
call fcn.100acd1d
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100ac280
mov esp, ebp
pop ebp
ret
Function at 0x100b7990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.1001d720
mov esi, dword [ebp + 8]
test al, al
je 0x100b79ae
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.100b79c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100bbe20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100bbe4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100bbe4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x413a17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x413a26
pop dword [ebp - 4]
mov eax, 0x413a26
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xa79adf28
add dword [ebp - 0x14], 0xa6b76623
mov dword [ebp - 0x10], 0x847dd621
sub dword [ebp - 0x10], 0x524a89dc
mov dword [ebp - 0xc], 0xbdae1ff5
sub dword [ebp - 0xc], 0x7161dbc7
mov dword [ebp - 8], 0x53f70d10
add dword [ebp - 8], 0xac08f2f0
lea eax, [ebp - 0x14]
push eax
mov eax, 0x5bebe57f
add eax, 0xa4557b19
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xc0f8ca6d
sub dword [ebp - 0x14], 0x4c866117
mov dword [ebp - 0x10], 0xb17d36cf
sub dword [ebp - 0x10], 0x7010d55a
mov dword [ebp - 0xc], 0x47ca95d7
sub dword [ebp - 0xc], 0xe45b296b
mov dword [ebp - 8], 0xc3ca1fae
add dword [ebp - 8], 0x3c35e052
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x69986755
sub eax, 0x695706e1
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3d72b
push 0
call eax
mov ecx, 0xd73ef268
add ecx, 0x28c15f49
xor edi, edi
add edi, eax
mov esi, 0xe4807bd1
add esi, 0x1bc22a2f
add esi, dword [ebp - 4]
mov ebx, 0x78f9475d
mov edx, dword [esi]
xor edx, ebx
mov dword [edi], edx
add edi, 0x79941ec3
sub edi, 0x79941ebf
add esi, 0x7b2c81b9
sub esi, 0x7b2c81b5
loop 0x413b3f
add eax, 0x8c5e9c9e
add eax, 0x73a29cf9
xor ebx, ebx
add ebx, eax
add eax, 0x46ace536
add eax, 0xb9531acf
mov ecx, 0xaf84de92
add ecx, 0x50bb216e
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x405a12
pop dword [ebp - 0x50]
mov eax, 0xf6206430
sub eax, 0xf5e00a1e
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xbbd3e09f
sub dword [ebp - 0x60], 0x6d819b54
mov dword [ebp - 0x5c], 0x5271c884
sub dword [ebp - 0x5c], 0x203e7c3f
mov dword [ebp - 0x58], 0xad477144
add dword [ebp - 0x58], 0x9f04d2ea
mov dword [ebp - 0x54], 0xc2711d22
add dword [ebp - 0x54], 0x3d8ee2de
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x3904aa2
sub dword [ebp - 0x60], 0x8f1de14c
mov dword [ebp - 0x5c], 0x2b28f9fb
sub dword [ebp - 0x5c], 0xe9bc9886
mov dword [ebp - 0x58], 0x98730ff6
add dword [ebp - 0x58], 0xcafc5c76
mov dword [ebp - 0x54], 0x576e0cfb
add dword [ebp - 0x54], 0xa891f305
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2d8
push 0
call eax
mov ecx, 0x26551786
add ecx, 0xd9ab3d44
mov edx, eax
mov esi, 0xe9891a77
add esi, 0x16bdc989
add esi, dword [ebp - 0x50]
mov ebx, 0xfac6e905
add dword [ebp - 0x34], 0x37131c6c
mov edi, dword [esi]
add dword [ebp - 0x40], edi
add edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x4c], esi
add edx, 0x2677a2e0
add edx, 0xd9885d24
add esi, 0xbaf3e9b2
add esi, 0x450c1652
loop 0x405b24
add eax, 0xcd133dbe
sub eax, 0xcd11f7c3
mov ebx, eax
add eax, 0x28776e0a
add eax, 0xd78891fb
mov ecx, 0xb6faa762
add ecx, 0x4945589e
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x30014ae6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x3001dec8
call fcn.3001696e
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x30014951
push 0x12
call fcn.3001489f
pop ecx
jmp 0x30014adb
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x3001496f
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x30014adb
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x300149a1
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x30021824], esi
mov dword [0x3002182c], eax
mov dword [0x30021830], ecx
mov dword [0x30021834], edx
mov dword [0x30021828], edi
call fcn.300148c5
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.30016914
pop ecx
test eax, eax
jne 0x300149e9
push 0x1c
call fcn.3001489f
pop ecx
call fcn.30016735
test eax, eax
jne 0x300149fa
push 0x10
call fcn.3001489f
pop ecx
call fcn.3001633a
mov dword [ebp - 4], ebx
call fcn.300160fa
test eax, eax
jge 0x30014a13
push 0x1b
call fcn.300155eb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x300232f8], eax
call fcn.30015fc5
mov dword [0x3002180c], eax
call fcn.30015f0c
test eax, eax
jge 0x30014a39
push 8
call fcn.300155eb
pop ecx
call fcn.30015c99
test eax, eax
jge 0x30014a4a
push 9
call fcn.300155eb
pop ecx
push ebx
call fcn.30015707
pop ecx
test eax, eax
je 0x30014a5c
push eax
call fcn.300155eb
pop ecx
call fcn.30015c3c
test byte [ebp - 0x44], bl
je 0x30014a6c
movzx ecx, word [ebp - 0x40]
jmp 0x30014a6f
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x30000000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x30014a8c
push eax
call fcn.30015867
call fcn.30015889
jmp 0x30014ac1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x30014ae0
mov eax, 0xff
call fcn.300169b3
ret
call 0x3014a000
jmp 0x30014906
Function at 0x40c2e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x497a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048c905
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c362
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048a817
mov eax, dword [eax]
push 0x8c7c68
push eax
call fcn.0047ca54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048cb90
test bl, bl
je 0x40c362
push 0x8c7c68
lea ecx, [esp + 0xc]
call fcn.0048cf20
push 0x8c7c74
lea ecx, [esp + 0xc]
call fcn.0048cf20
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c39e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048cb90
jmp 0x40c469
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c422
lea edx, [esp + 0x7c]
push 0x8c7c70
push edx
call fcn.0047ca54
add esp, 8
test eax, eax
je 0x40c422
lea eax, [esp + 0x7c]
push 0x8c7c6c
push eax
call fcn.0047ca54
add esp, 8
test eax, eax
je 0x40c422
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c3b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048cb90
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40cc70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ccd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc