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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x181d600c]
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.18014e05
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
and dword [ebp - 0x10], 0
push edi
call fcn.180074fa
mov bl, byte [ebp + 8]
mov eax, str.MicrosoftEdgeComRegisterShellARM64.exe
test bl, bl
jne 0x18049c61
mov eax, str.MicrosoftEdgeUpdateComRegisterShell64.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.1800f7f4
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x18049c7d
call fcn.1801ba25
mov ebx, eax
jmp 0x18049d7f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18049c92
mov ebx, 0x80070002
jmp 0x18049d7f
and dword [ebp - 0xc], 0
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
mov eax, 0x18176bdc
mov edx, eax
test bh, bh
jne 0x18049cb4
mov edx, str._unregister
cmp byte [ebp - 0x41], 0
mov ecx, eax
jne 0x18049cc1
mov ecx, str._user
test bl, bl
je 0x18049cca
mov eax, str._arm64
push edx
push ecx
push eax
lea eax, [ebp - 0xc]
push str._s__s__s
push eax
call fcn.18016a9d
add esp, 0x14
lea eax, [ebp - 0x40]
push 0x2c
push 0
push eax
call fcn.18136b80
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.18017712
push 0
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
call fcn.18017880
mov ebx, eax
test ebx, ebx
jns 0x18049d4c
movzx ecx, byte [0x181dc05a]
neg ecx
sbb ecx, ecx
and ecx, 0x181dbf50
je 0x18049d6c
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.18008b5d
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.18007230
add esp, 0xc
jmp 0x18049d6c
push 0x7530
lea ecx, [ebp - 0x40]
call fcn.180179d4
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x40]
call fcn.18017838
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [esi - 0x10]
call fcn.18006f72
lea ecx, [edi - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x1804b4ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.180499f0
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x1804b500
cmp dword [edi], ebx
je 0x1804b500
push ecx
mov ecx, edi
call fcn.1803c486
test eax, eax
js 0x1804b56d
add edi, 0x24
jne 0x1804b4eb
lfence
cmp byte [esi + 0x3c], bl
je 0x1804b579
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x1804b572
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1804dfb0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1804b542
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], ebx
test ebx, ebx
je 0x1804b572
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x1804b564
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 0x1804b581
lfence
jmp 0x1804b58e
mov edi, 0x80004005
jmp 0x1804b585
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x1804b58c
mov ecx, esi
call fcn.18049b0d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret 4
Function at 0x1804f14c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d600c]
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 0x1804f178
mov eax, 0x80070057
jmp 0x1804f1ed
mov dword [ebp - 0xc], esi
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
push dword [edi]
lea eax, [ebp - 0xc]
push str._s_last.dmp
push eax
call fcn.18016a9d
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.180163fc
mov eax, dword [ebp - 8]
add esp, 0x10
cmp dword [eax - 0xc], esi
jne 0x1804f1c0
mov esi, 0x80040709
jmp 0x1804f1d8
push esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1804f1d5
call fcn.1801ba25
mov esi, eax
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18006f72
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret 8
Function at 0x1804f1fe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x181d600c]
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.18010903
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x1804f251
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
jmp 0x1804f31e
call fcn.18011f9e
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 0x1804f31c
push ecx
xor edi, edi
lea edx, [ebp - 0x74]
push ecx
mov ecx, dword [esi + ebx*4]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call fcn.18010eea
pop ecx
pop ecx
test eax, eax
js 0x1804f306
mov edx, dword [ebp - 0x70]
xor ecx, ecx
or ecx, dword [ebp - 0x74]
or edx, edi
mov eax, dword [ebp - 0x78]
sub eax, ecx
mov dword [ebp - 0x90], edi
mov ecx, dword [ebp - 0x7c]
sbb ecx, edx
mov dword [ebp - 0x88], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [ebp - 0x84], ecx
and eax, 0x80000000
fild qword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
push ecx
push ecx
fild qword [ebp - 0x90]
fchs
faddp st(1)
fstp qword [ebp - 0x98]
fld qword [ebp - 0x98]
fstp qword [esp]
call fcn.181442d6
fcomp qword [0x181cd0b8]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x1804f306
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 0x1804f271
xor ebx, ebx
test esi, esi
je 0x1804f34b
cmp esi, edi
je 0x1804f33a
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18006f72
add esi, 4
cmp esi, edi
jne 0x1804f326
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
sub ecx, esi
and ecx, 0xfffffffc
push ecx
push esi
call fcn.1800a1ed
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x1804f925
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x181d600c]
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], 0x181a212c
je 0x1804f94f
call fcn.1804ff4f
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.1801579d
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 0x1804f9b1
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804f9a2
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181663e8]
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 0x1804f980
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 0x1804f9f5
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804f9e6
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181663e8]
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 0x1804f9c4
mov ebx, dword [edi + 0x38]
and dword [edi + 0x38], 0
test ebx, ebx
je 0x1804fa12
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181663e8]
mov ecx, ebx
call esi
lea eax, [edi + 4]
mov ecx, dword [eax]
xchg dword [eax], ecx
call fcn.18067e94
lea ecx, [esp + 0x14]
call fcn.180157c8
mov ecx, dword [edi + 0x98]
sub ecx, 0x10
call fcn.18006f72
lea ecx, [edi + 0x88]
mov esi, 0x181a1918
mov dword [ecx], esi
call fcn.1800bba0
lea ecx, [edi + 0x78]
mov dword [ecx], esi
call fcn.1800bba0
lea ecx, [edi + 0x68]
mov dword [ecx], esi
call fcn.1800bba0
lea ecx, [edi + 0x58]
mov dword [ecx], esi
call fcn.1800bba0
lea ecx, [edi + 0x54]
call fcn.180412d9
lea ecx, [edi + 0x48]
call fcn.1800fcb0
lea ecx, [edi + 0x3c]
call fcn.1800fcb0
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x1804fa96
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181663e8]
mov ecx, ebx
call esi
mov ecx, dword [edi + 0x30]
push 0x10
pop ebx
sub ecx, ebx
call fcn.18006f72
mov ecx, dword [edi + 0x2c]
sub ecx, ebx
call fcn.18006f72
mov ecx, dword [edi + 0x28]
sub ecx, ebx
call fcn.18006f72
mov ecx, dword [edi + 0x18]
sub ecx, ebx
call fcn.18006f72
mov ecx, dword [edi + 0x14]
sub ecx, ebx
call fcn.18006f72
mov ecx, dword [edi + 0x10]
sub ecx, ebx
call fcn.18006f72
lea ecx, [edi + 8]
call fcn.18052681
lea ecx, [edi + 4]
call fcn.1804f76e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18121ed8
mov esp, ebp
pop ebp
ret
Function at 0x180627ab
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 0x18062907
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x18062907
cmp ecx, 0x29
jne 0x180627eb
cmp dword [esi + 0x10], 0
jne 0x18062907
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x1806290b
jmp 0x180628c5
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x18062809
push 5
lea ecx, [esi + 0x24]
call fcn.180629db
mov ecx, esi
call fcn.18062782
jmp 0x180628f5
cmp ecx, 0x5c
jne 0x1806285f
mov ecx, esi
call fcn.18062782
test byte [edi], 0x80
je 0x18062853
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x1806283b
push 4
lea ecx, [esi + 0x24]
call fcn.180629db
mov ecx, esi
call fcn.18062782
jmp 0x180628fc
cmp ecx, 0x42
jne 0x18062853
push 4
lea ecx, [esi + 0x24]
call fcn.180629db
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1806282f
mov ecx, esi
call fcn.1806331f
jmp 0x180628f5
cmp ecx, 0x5b
jne 0x1806287f
mov ecx, esi
call fcn.18062782
mov ecx, esi
call fcn.180632d3
cmp dword [esi + 0x4c], 0x5d
je 0x180627fd
push 4
jmp 0x1806290d
cmp ecx, 0x28
jne 0x1806289c
mov ecx, esi
call fcn.18062782
mov ecx, esi
call fcn.180633f0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1806290b
jmp 0x180628ea
cmp ecx, 0x5e
jne 0x180628a5
push 2
jmp 0x18062827
cmp ecx, 0x24
jne 0x180628b1
push 3
jmp 0x18062827
cmp ecx, 0x2a
je 0x18062903
cmp ecx, 0x2b
je 0x18062903
cmp ecx, 0x3f
je 0x18062903
cmp ecx, 0x7b
je 0x18062903
cmp ecx, 0x7d
jne 0x180628d2
test dword [edi], edx
jne 0x180628db
push 6
jmp 0x1806290d
cmp ecx, 0x5d
jne 0x180628db
test dword [edi], edx
je 0x18062878
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.18063557
mov bl, 1
mov ecx, esi
call fcn.18062782
test bl, bl
je 0x180628fc
mov ecx, esi
call fcn.18063475
mov al, 1
jmp 0x180627b2
push 0xa
jmp 0x1806290d
pop edi
pop esi
pop ebx
ret
push 5
call fcn.18061e7f
int3
Function at 0x1806b950
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x181d600c]
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.18136b80
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, ebx
push 0x181a5608
call fcn.18009ca1
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.18006f72
cmp esi, 0xffffffff
jne 0x1806b9f0
call fcn.1801ba25
mov ebx, eax
mov edi, ebx
cmp esi, 0xffffffff
je 0x1806b9d9
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.18121ed8
mov esp, ebp
pop ebp
ret
mov ebx, edi
mov eax, dword [esp + 0x1c]
sub eax, edi
je 0x1806ba90
sub eax, 1
je 0x1806ba3a
sub eax, 1
jne 0x1806bafc
cmp dword [esp + 0x28], 0x80
je 0x1806ba21
test byte [esp + 0x28], 0x10
jne 0x1806baf4
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
call fcn.1806b88b
pop ecx
mov ebx, eax
jmp 0x1806baf4
test byte [esp + 0x28], 0x10
je 0x1806baf4
lea ecx, [esp + 0x28]
call fcn.1806b84e
test al, al
jne 0x1806baf4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x18]
call fcn.180074fa
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.180163fc
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f72
push dword [esp + 0x10]
push 2
pop edx
jmp 0x1806badc
test byte [esp + 0x28], 0x10
je 0x1806baf4
lea ecx, [esp + 0x28]
call fcn.1806b84e
test al, al
jne 0x1806baf4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x1c]
call fcn.180074fa
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.180163fc
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f72
push dword [esp + 0x10]
xor edx, edx
inc edx
lea ecx, [esp + 0x28]
call fcn.1806b950
pop ecx
mov ecx, dword [esp + 0x24]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18006f72
test ebx, ebx
js 0x1806b9cb
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806b9f2
jmp 0x1806b9d2
Function at 0x1806c632
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x181d600c]
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.1801579d
mov ecx, esi
call fcn.1800c099
mov ecx, eax
mov dword [ebp - 0x27c], eax
or ecx, edx
mov dword [ebp - 0x278], edx
jne 0x1806c687
mov edi, 0x80070057
jmp 0x1806c878
and dword [ebp - 0xc], 0
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
call fcn.18006f9c
push eax
lea ecx, [ebp - 0x26c]
call fcn.180076af
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
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.1806caa9
mov ecx, dword [ebp - 8]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.18006f72
test edi, edi
js 0x1806c86d
push 0x250
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.18136b80
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x274]
push 0x181a5608
call fcn.18009ca1
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.18006f72
cmp esi, 0xffffffff
jne 0x1806c74c
call fcn.1801ba25
mov edi, eax
jmp 0x1806c86d
lea ecx, [ebp - 0x268]
call fcn.1806b84e
test al, al
jne 0x1806c84e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.180074fa
lea ecx, [ebp - 0x26c]
call fcn.1800c099
mov ecx, dword [ebp - 0x26c]
mov ebx, eax
add ecx, 0xfffffff0
mov edi, edx
call fcn.18006f72
mov ecx, ebx
or ecx, edi
je 0x1806c84e
cmp edi, dword [ebp - 0x278]
ja 0x1806c84e
jb 0x1806c7b2
cmp ebx, dword [ebp - 0x27c]
jae 0x1806c84e
and dword [ebp - 8], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x270]
call fcn.180074fa
lea eax, [ebp - 0x270]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.180163fc
pop ecx
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 8]
call fcn.1800d0cf
movzx ecx, byte [0x181dc05a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181dbf50
je 0x1806c843
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.18008b5d
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.18007230
add esp, 0x10
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806c74c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [ebp - 0x14]
call fcn.180157c8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret 8
Function at 0x1806f9d3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d600c]
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.18006f9c
push eax
mov ecx, ebx
call fcn.180076af
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.1800a0da
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 0xc], edi
cmp dword [edi - 4], ebx
jle 0x1806fa34
push dword [edi - 0xc]
lea ecx, [ebp - 0xc]
call fcn.1800785c
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 0x1806facf
cmp dword [ebp - 8], ebx
jl 0x1806fac8
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1806fa5b
xor ecx, ecx
jmp 0x1806fa67
push eax
call fcn.1813abd0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.180075ed
cmp dword [ebp - 8], ebx
jle 0x1806fac8
mov edi, dword [ebp - 0x14]
push dword [esi + ebx*4]
lea ecx, [ebp - 0x10]
call fcn.180074fa
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 8]
je 0x1806faa8
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800a0da
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x1806fab4
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
call fcn.1800a147
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f72
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x1806fa79
mov edi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.18121ed8
leave
ret 4

Function at 0x1806fc70
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 0x1806fc93
test eax, eax
je 0x1806fc90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.18018735
mov eax, dword [ebx + 4]
test eax, eax
je 0x1806fca9
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 0x1806fcc0
call fcn.1801e454
test edi, edi
je 0x1806fcd4
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x181663e8]
call esi
xor ebx, ebx
push ebx
push ebx
push edi
push 0x18070030
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
lea ecx, [edi + 0x34]
call fcn.18018735
cmp dword [edi + 0x34], ebx
jne 0x1806fd0c
call fcn.1801ba25
mov ecx, dword [edi]
mov ebx, eax
push edi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x181663e8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1806fe33
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.1815d980
mov eax, dword [0x181d600c]
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 0x1806ff7a
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 0x1806fec6
test ecx, ecx
je 0x1806feca
cmp ebx, edi
je 0x1806feca
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 0x1806fe91
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.1801579d
test edi, edi
je 0x1806ff41
mov edi, dword [ebp - 0x10018]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.1813abd0
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.180075ed
jmp 0x1806ff66
cmp ebx, 0x10002
jae 0x1806ff87
mov ecx, dword [ebp - 0x10018]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.180114e6
lea ecx, [ebp - 0x10010]
call fcn.180157c8
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.18121ed8
leave
ret
call fcn.18122938
int3