joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1804819c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x14], 0
push ebx
push esi
mov byte [ebp - 0x41], cl
mov bh, dl
push edi
lea ecx, [ebp - 0x14]
call fcn.18014e45
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
and dword [ebp - 0x10], 0
push edi
call fcn.1800759a
mov bl, byte [ebp + 8]
mov eax, str.MicrosoftEdgeComRegisterShellARM64.exe
test bl, bl
jne 0x180481e1
mov eax, str.MicrosoftEdgeUpdateComRegisterShell64.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.1800f8cb
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x180481fd
call fcn.1801ba7c
mov ebx, eax
jmp 0x180482ff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18048212
mov ebx, 0x80070002
jmp 0x180482ff
and dword [ebp - 0xc], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
mov eax, 0x1816cb7c
mov edx, eax
test bh, bh
jne 0x18048234
mov edx, str._unregister
cmp byte [ebp - 0x41], 0
mov ecx, eax
jne 0x18048241
mov ecx, str._user
test bl, bl
je 0x1804824a
mov eax, str._arm64
push edx
push ecx
push eax
lea eax, [ebp - 0xc]
push str._s__s__s
push eax
call fcn.18016b7d
add esp, 0x14
lea eax, [ebp - 0x40]
push 0x2c
push 0
push eax
call fcn.1812d590
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.180177f4
push 0
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
call fcn.18017960
mov ebx, eax
test ebx, ebx
jns 0x180482cc
movzx ecx, byte [0x181cd106]
neg ecx
sbb ecx, ecx
and ecx, 0x181cd000
je 0x180482ec
push 7
pop edx
push 0xfffffffffffffffe
pop eax
lfence
push eax
push edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
call fcn.18008bfd
push ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push str._Failed_to_start_COM_register_process__0x_x_
push eax
call fcn.180072d0
add esp, 0xc
jmp 0x180482ec
push 0x7530
lea ecx, [ebp - 0x40]
call fcn.18017ab4
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x40]
call fcn.18017918
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea ecx, [esi - 0x10]
call fcn.18007012
lea ecx, [edi - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181188e8
leave
ret
Function at 0x180499ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.18047f70
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x180499f0
cmp dword [edi], ebx
je 0x180499f0
push ecx
mov ecx, edi
call fcn.1803a889
test eax, eax
js 0x18049a5d
add edi, 0x24
jne 0x180499db
lfence
cmp byte [esi + 0x3c], bl
je 0x18049a69
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x18049a62
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1804c4a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x18049a32
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], ebx
test ebx, ebx
je 0x18049a62
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x18049a54
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18049a71
lfence
jmp 0x18049a7e
mov edi, 0x80004005
jmp 0x18049a75
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x18049a7c
mov ecx, esi
call fcn.1804808d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181188e8
leave
ret 4
Function at 0x1804d63c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x10], ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x1804d668
mov eax, 0x80070057
jmp 0x1804d6dd
mov dword [ebp - 0xc], esi
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
push dword [edi]
lea eax, [ebp - 0xc]
push str._s_last.dmp
push eax
call fcn.18016b7d
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
add edx, 4
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.180164dc
mov eax, dword [ebp - 8]
add esp, 0x10
cmp dword [eax - 0xc], esi
jne 0x1804d6b0
mov esi, 0x80040709
jmp 0x1804d6c8
push esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1804d6c5
call fcn.1801ba7c
mov esi, eax
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18007012
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181188e8
leave
ret 8
Function at 0x1804d6ee
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x60]
push 0x14
pop ecx
mov esi, str.____________________________________.dmp
lea edx, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [eax + 4]
movsw word es:[edi], word [esi]
xor esi, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.180109a4
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x1804d741
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
jmp 0x1804d847
call fcn.18011fde
mov edi, dword [ebp - 0x68]
mov ebx, esi
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov eax, edi
sub eax, esi
mov dword [ebp - 0x7c], edx
cmp eax, 4
jb 0x1804d845
xor edi, edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov esi, dword [esi + ebx*4]
mov ecx, esi
call fcn.18010903
movzx eax, al
neg eax
push edi
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push edi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1804d79f
call fcn.1801ba7c
mov edi, eax
jmp 0x1804d7c0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1804d7b9
call fcn.1801ba7c
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1804d82f
mov eax, dword [ebp - 0x78]
xor ecx, ecx
or ecx, dword [ebp - 0x74]
sub eax, ecx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x88], eax
sbb ecx, dword [ebp - 0x70]
and dword [ebp - 0x90], 0
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x84], ecx
fild qword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
push ecx
push ecx
fild qword [ebp - 0x90]
fchs
faddp st(1)
fstp qword [esp]
call fcn.1813acf6
fcomp qword [0x181be030]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x1804d82f
mov eax, dword [ebp - 0x6c]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x68]
inc ebx
mov esi, dword [ebp - 0x6c]
mov eax, edi
sub eax, esi
sar eax, 2
cmp ebx, eax
jne 0x1804d761
xor ebx, ebx
test esi, esi
je 0x1804d874
cmp esi, edi
je 0x1804d863
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18007012
add esi, 4
cmp esi, edi
jne 0x1804d84f
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
sub ecx, esi
and ecx, 0xfffffffc
push ecx
push esi
call fcn.1800a288
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181188e8
leave
ret
Function at 0x1804de55
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x181c700c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x1e], 0
mov dword [edi], 0x18195be8
je 0x1804de7f
call fcn.1804e463
and dword [esp + 0x14], 0
lea ecx, [edi + 4]
and dword [esp + 0x18], 0
mov eax, dword [ecx]
xchg dword [ecx], eax
add eax, 4
lea ecx, [esp + 0x14]
push eax
call fcn.180157dd
lea edx, [edi + 0x3c]
xor ebx, ebx
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1804dee1
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804ded2
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815c3d4]
mov ecx, dword [esp + 0x14]
call esi
lea edx, [edi + 0x3c]
mov eax, dword [edx + 4]
inc ebx
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1804deb0
lea edx, [edi + 0x48]
xor ebx, ebx
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1804df25
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804df16
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815c3d4]
mov ecx, dword [esp + 0x14]
call esi
lea edx, [edi + 0x48]
mov eax, dword [edx + 4]
inc ebx
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1804def4
mov ebx, dword [edi + 0x38]
and dword [edi + 0x38], 0
test ebx, ebx
je 0x1804df42
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815c3d4]
mov ecx, ebx
call esi
lea eax, [edi + 4]
mov ecx, dword [eax]
xchg dword [eax], ecx
call fcn.180661d4
lea ecx, [esp + 0x14]
call fcn.18015808
mov ecx, dword [edi + 0x98]
sub ecx, 0x10
call fcn.18007012
lea ecx, [edi + 0x88]
mov esi, 0x181953f8
mov dword [ecx], esi
call fcn.1800bc30
lea ecx, [edi + 0x78]
mov dword [ecx], esi
call fcn.1800bc30
lea ecx, [edi + 0x68]
mov dword [ecx], esi
call fcn.1800bc30
lea ecx, [edi + 0x58]
mov dword [ecx], esi
call fcn.1800bc30
lea ecx, [edi + 0x54]
call fcn.1803f669
lea ecx, [edi + 0x48]
call fcn.1800fd51
lea ecx, [edi + 0x3c]
call fcn.1800fd51
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x1804dfc6
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815c3d4]
mov ecx, ebx
call esi
mov ecx, dword [edi + 0x30]
push 0x10
pop ebx
sub ecx, ebx
call fcn.18007012
mov ecx, dword [edi + 0x2c]
sub ecx, ebx
call fcn.18007012
mov ecx, dword [edi + 0x28]
sub ecx, ebx
call fcn.18007012
mov ecx, dword [edi + 0x18]
sub ecx, ebx
call fcn.18007012
mov ecx, dword [edi + 0x14]
sub ecx, ebx
call fcn.18007012
mov ecx, dword [edi + 0x10]
sub ecx, ebx
call fcn.18007012
lea ecx, [edi + 8]
call fcn.18050ba1
lea ecx, [edi + 4]
call fcn.1804dc9e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181188e8
mov esp, ebp
pop ebp
ret
Function at 0x18060abb
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x18060c17
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x18060c17
cmp ecx, 0x29
jne 0x18060afb
cmp dword [esi + 0x10], 0
jne 0x18060c17
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x18060c1b
jmp 0x18060bd5
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x18060b19
push 5
lea ecx, [esi + 0x24]
call fcn.18060ceb
mov ecx, esi
call fcn.18060a92
jmp 0x18060c05
cmp ecx, 0x5c
jne 0x18060b6f
mov ecx, esi
call fcn.18060a92
test byte [edi], 0x80
je 0x18060b63
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x18060b4b
push 4
lea ecx, [esi + 0x24]
call fcn.18060ceb
mov ecx, esi
call fcn.18060a92
jmp 0x18060c0c
cmp ecx, 0x42
jne 0x18060b63
push 4
lea ecx, [esi + 0x24]
call fcn.18060ceb
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x18060b3f
mov ecx, esi
call fcn.1806162f
jmp 0x18060c05
cmp ecx, 0x5b
jne 0x18060b8f
mov ecx, esi
call fcn.18060a92
mov ecx, esi
call fcn.180615e3
cmp dword [esi + 0x4c], 0x5d
je 0x18060b0d
push 4
jmp 0x18060c1d
cmp ecx, 0x28
jne 0x18060bac
mov ecx, esi
call fcn.18060a92
mov ecx, esi
call fcn.18061700
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x18060c1b
jmp 0x18060bfa
cmp ecx, 0x5e
jne 0x18060bb5
push 2
jmp 0x18060b37
cmp ecx, 0x24
jne 0x18060bc1
push 3
jmp 0x18060b37
cmp ecx, 0x2a
je 0x18060c13
cmp ecx, 0x2b
je 0x18060c13
cmp ecx, 0x3f
je 0x18060c13
cmp ecx, 0x7b
je 0x18060c13
cmp ecx, 0x7d
jne 0x18060be2
test dword [edi], edx
jne 0x18060beb
push 6
jmp 0x18060c1d
cmp ecx, 0x5d
jne 0x18060beb
test dword [edi], edx
je 0x18060b88
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.18061867
mov bl, 1
mov ecx, esi
call fcn.18060a92
test bl, bl
je 0x18060c0c
mov ecx, esi
call fcn.18061785
mov al, 1
jmp 0x18060ac2
push 0xa
jmp 0x18060c1d
pop edi
pop esi
pop ebx
ret
push 5
call fcn.1806018f
int3
Function at 0x18069c40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x181c700c]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x14], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x18], ebx
call fcn.1812d590
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, ebx
push 0x18199090
call fcn.18009d3c
pop ecx
lea ecx, [esp + 0x28]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x20]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18007012
cmp esi, 0xffffffff
jne 0x18069ce0
call fcn.1801ba7c
mov ebx, eax
mov edi, ebx
cmp esi, 0xffffffff
je 0x18069cc9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x27c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181188e8
mov esp, ebp
pop ebp
ret
mov ebx, edi
mov eax, dword [esp + 0x1c]
sub eax, edi
je 0x18069d80
sub eax, 1
je 0x18069d2a
sub eax, 1
jne 0x18069dec
cmp dword [esp + 0x28], 0x80
je 0x18069d11
test byte [esp + 0x28], 0x10
jne 0x18069de4
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
call fcn.18069b7b
pop ecx
mov ebx, eax
jmp 0x18069de4
test byte [esp + 0x28], 0x10
je 0x18069de4
lea ecx, [esp + 0x28]
call fcn.18069b3e
test al, al
jne 0x18069de4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x18]
call fcn.1800759a
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.180164dc
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18007012
push dword [esp + 0x10]
push 2
pop edx
jmp 0x18069dcc
test byte [esp + 0x28], 0x10
je 0x18069de4
lea ecx, [esp + 0x28]
call fcn.18069b3e
test al, al
jne 0x18069de4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x1c]
call fcn.1800759a
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.180164dc
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18007012
push dword [esp + 0x10]
xor edx, edx
inc edx
lea ecx, [esp + 0x28]
call fcn.18069c40
pop ecx
mov ecx, dword [esp + 0x24]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18007012
test ebx, ebx
js 0x18069cbb
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18069ce2
jmp 0x18069cc2
Function at 0x1806a922
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
lea eax, [edi + 0x14]
push eax
call fcn.180157dd
mov ecx, esi
call fcn.1800c129
mov ecx, eax
mov dword [ebp - 0x27c], eax
or ecx, edx
mov dword [ebp - 0x278], edx
jne 0x1806a977
mov edi, 0x80070057
jmp 0x1806ab68
and dword [ebp - 0xc], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
call fcn.1800703b
push eax
lea ecx, [ebp - 0x26c]
call fcn.1800774f
call fcn.1800703b
push eax
lea ecx, [ebp - 8]
call fcn.1800774f
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.1806ad99
mov ecx, dword [ebp - 8]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.18007012
test edi, edi
js 0x1806ab5d
push 0x250
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.1812d590
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x274]
push 0x18199090
call fcn.18009d3c
pop ecx
lea ecx, [ebp - 0x268]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x274]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18007012
cmp esi, 0xffffffff
jne 0x1806aa3c
call fcn.1801ba7c
mov edi, eax
jmp 0x1806ab5d
lea ecx, [ebp - 0x268]
call fcn.18069b3e
test al, al
jne 0x1806ab3e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.1800759a
lea ecx, [ebp - 0x26c]
call fcn.1800c129
mov ecx, dword [ebp - 0x26c]
mov ebx, eax
add ecx, 0xfffffff0
mov edi, edx
call fcn.18007012
mov ecx, ebx
or ecx, edi
je 0x1806ab3e
cmp edi, dword [ebp - 0x278]
ja 0x1806ab3e
jb 0x1806aaa2
cmp ebx, dword [ebp - 0x27c]
jae 0x1806ab3e
and dword [ebp - 8], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x270]
call fcn.1800759a
lea eax, [ebp - 0x270]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.180164dc
pop ecx
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 8]
call fcn.1800d153
movzx ecx, byte [0x181cd106]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181cd000
je 0x1806ab33
push 7
pop ebx
push 3
pop eax
push eax
push ebx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], eax
call fcn.18008bfd
push edi
push dword [ebp - 8]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x28c]
push str._Purge_version___s__0x_x_
push eax
call fcn.180072d0
add esp, 0x10
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806aa3c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea ecx, [ebp - 0x14]
call fcn.18015808
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181188e8
leave
ret 8
Function at 0x1806dccf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
call fcn.1800703b
push eax
mov ecx, ebx
call fcn.1800774f
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 8], ecx
mov ecx, dword [esi]
sub ecx, 0x10
mov dword [ebp - 0x14], eax
call fcn.1800a175
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 0xc], edi
cmp dword [edi - 4], ebx
jle 0x1806dd30
push dword [edi - 0xc]
lea ecx, [ebp - 0xc]
call fcn.180078fc
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x1806ddcb
cmp dword [ebp - 8], ebx
jl 0x1806ddc4
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1806dd57
xor ecx, ecx
jmp 0x1806dd63
push eax
call fcn.181315f0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.1800768d
cmp dword [ebp - 8], ebx
jle 0x1806ddc4
mov edi, dword [ebp - 0x14]
push dword [esi + ebx*4]
lea ecx, [ebp - 0x10]
call fcn.1800759a
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 8]
je 0x1806dda4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800a175
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x1806ddb0
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
call fcn.1800a1e2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18007012
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x1806dd75
mov edi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.181188e8
leave
ret 4
Function at 0x1806df6d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x1806df90
test eax, eax
je 0x1806df8d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov eax, dword [edi + 0x28]
mov esi, dword [ebp + 0xc]
cmp eax, esi
je 0x1806dfa8
test eax, eax
je 0x1806dfa5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x1806dfb3
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x1806dfca
call fcn.1801e81f
test edi, edi
je 0x1806dfde
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1815c3d4]
call esi
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1806e350
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi + 0x34]
mov esi, eax
cmp ecx, esi
je 0x1806e009
test ecx, ecx
je 0x1806e004
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x34], esi
mov ecx, esi
test ecx, ecx
jne 0x1806e028
call fcn.1801ba7c
mov ebx, eax
test edi, edi
je 0x1806e028
mov ecx, dword [edi]
push edi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1815c3d4]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1806e14f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.181543a0
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10018], eax
mov esi, dword [eax + 0x28]
test esi, esi
je 0x1806e296
push ebx
push edi
xor ecx, ecx
mov edi, 0x10000
push ecx
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x1000c]
push eax
push edi
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x1000c], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1000c]
mov ebx, ecx
jmp 0x1806e1e2
test ecx, ecx
je 0x1806e1e6
cmp ebx, edi
je 0x1806e1e6
and dword [ebp - 0x1000c], 0
lea eax, [ebp - 0x1000c]
push 0
push eax
mov eax, edi
sub eax, ebx
push eax
lea eax, [ebp - 0x10008]
add eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1000c]
add ebx, ecx
test eax, eax
jne 0x1806e1ad
lea eax, [ebp - 0x10014]
mov dword [ebp - 0x10014], 0xf
push eax
push ebx
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [ebp - 0x10018]
mov edi, eax
and dword [ebp - 0x10010], 0
add ecx, 0x38
and dword [ebp - 0x1000c], 0
push ecx
lea ecx, [ebp - 0x10010]
call fcn.180157dd
test edi, edi
je 0x1806e25d
mov edi, dword [ebp - 0x10018]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.181315f0
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.1800768d
jmp 0x1806e282
cmp ebx, 0x10002
jae 0x1806e2a3
mov ecx, dword [ebp - 0x10018]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1801152e
lea ecx, [ebp - 0x10010]
call fcn.18015808
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.181188e8
leave
ret
call fcn.18119348
int3