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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x181c900c]
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 0x18048481
mov eax, str.MicrosoftEdgeUpdateComRegisterShell64.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.1800f8cb
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x1804849d
call fcn.1801ba7c
mov ebx, eax
jmp 0x1804859f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180484b2
mov ebx, 0x80070002
jmp 0x1804859f
and dword [ebp - 0xc], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
mov eax, 0x1816db7c
mov edx, eax
test bh, bh
jne 0x180484d4
mov edx, str._unregister
cmp byte [ebp - 0x41], 0
mov ecx, eax
jne 0x180484e1
mov ecx, str._user
test bl, bl
je 0x180484ea
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.1812da70
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 0x1804856c
movzx ecx, byte [0x181cf106]
neg ecx
sbb ecx, ecx
and ecx, 0x181cf000
je 0x1804858c
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 0x1804858c
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.18118dc8
leave
ret
Function at 0x18049cea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.18048210
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x18049d20
cmp dword [edi], ebx
je 0x18049d20
push ecx
mov ecx, edi
call fcn.1803ab19
test eax, eax
js 0x18049d8d
add edi, 0x24
jne 0x18049d0b
lfence
cmp byte [esi + 0x3c], bl
je 0x18049d99
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x18049d92
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1804c7d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x18049d62
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], ebx
test ebx, ebx
je 0x18049d92
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x18049d84
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 0x18049da1
lfence
jmp 0x18049dae
mov edi, 0x80004005
jmp 0x18049da5
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x18049dac
mov ecx, esi
call fcn.1804832d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18118dc8
leave
ret 4
Function at 0x1804d96c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181c900c]
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 0x1804d998
mov eax, 0x80070057
jmp 0x1804da0d
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 0x1804d9e0
mov esi, 0x80040709
jmp 0x1804d9f8
push esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1804d9f5
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.18118dc8
leave
ret 8
Function at 0x1804da1e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x181c900c]
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 0x1804da71
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
jmp 0x1804db77
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 0x1804db75
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 0x1804dacf
call fcn.1801ba7c
mov edi, eax
jmp 0x1804daf0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1804dae9
call fcn.1801ba7c
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1804db5f
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.1813b1c6
fcomp qword [0x181bfbe0]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x1804db5f
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 0x1804da91
xor ebx, ebx
test esi, esi
je 0x1804dba4
cmp esi, edi
je 0x1804db93
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18007012
add esi, 4
cmp esi, edi
jne 0x1804db7f
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.18118dc8
leave
ret
Function at 0x1804e185
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x181c900c]
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], 0x18197568
je 0x1804e1af
call fcn.1804e793
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 0x1804e211
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804e202
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815d3d4]
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 0x1804e1e0
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 0x1804e255
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804e246
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815d3d4]
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 0x1804e224
mov ebx, dword [edi + 0x38]
and dword [edi + 0x38], 0
test ebx, ebx
je 0x1804e272
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815d3d4]
mov ecx, ebx
call esi
lea eax, [edi + 4]
mov ecx, dword [eax]
xchg dword [eax], ecx
call fcn.18066514
lea ecx, [esp + 0x14]
call fcn.18015808
mov ecx, dword [edi + 0x98]
sub ecx, 0x10
call fcn.18007012
lea ecx, [edi + 0x88]
mov esi, 0x18196d68
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.1803f909
lea ecx, [edi + 0x48]
call fcn.1800fd51
lea ecx, [edi + 0x3c]
call fcn.1800fd51
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x1804e2f6
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1815d3d4]
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.18050ed1
lea ecx, [edi + 4]
call fcn.1804dfce
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18118dc8
mov esp, ebp
pop ebp
ret
Function at 0x18060dfb
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 0x18060f57
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x18060f57
cmp ecx, 0x29
jne 0x18060e3b
cmp dword [esi + 0x10], 0
jne 0x18060f57
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x18060f5b
jmp 0x18060f15
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x18060e59
push 5
lea ecx, [esi + 0x24]
call fcn.1806102b
mov ecx, esi
call fcn.18060dd2
jmp 0x18060f45
cmp ecx, 0x5c
jne 0x18060eaf
mov ecx, esi
call fcn.18060dd2
test byte [edi], 0x80
je 0x18060ea3
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x18060e8b
push 4
lea ecx, [esi + 0x24]
call fcn.1806102b
mov ecx, esi
call fcn.18060dd2
jmp 0x18060f4c
cmp ecx, 0x42
jne 0x18060ea3
push 4
lea ecx, [esi + 0x24]
call fcn.1806102b
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x18060e7f
mov ecx, esi
call fcn.1806196f
jmp 0x18060f45
cmp ecx, 0x5b
jne 0x18060ecf
mov ecx, esi
call fcn.18060dd2
mov ecx, esi
call fcn.18061923
cmp dword [esi + 0x4c], 0x5d
je 0x18060e4d
push 4
jmp 0x18060f5d
cmp ecx, 0x28
jne 0x18060eec
mov ecx, esi
call fcn.18060dd2
mov ecx, esi
call fcn.18061a40
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x18060f5b
jmp 0x18060f3a
cmp ecx, 0x5e
jne 0x18060ef5
push 2
jmp 0x18060e77
cmp ecx, 0x24
jne 0x18060f01
push 3
jmp 0x18060e77
cmp ecx, 0x2a
je 0x18060f53
cmp ecx, 0x2b
je 0x18060f53
cmp ecx, 0x3f
je 0x18060f53
cmp ecx, 0x7b
je 0x18060f53
cmp ecx, 0x7d
jne 0x18060f22
test dword [edi], edx
jne 0x18060f2b
push 6
jmp 0x18060f5d
cmp ecx, 0x5d
jne 0x18060f2b
test dword [edi], edx
je 0x18060ec8
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.18061ba7
mov bl, 1
mov ecx, esi
call fcn.18060dd2
test bl, bl
je 0x18060f4c
mov ecx, esi
call fcn.18061ac5
mov al, 1
jmp 0x18060e02
push 0xa
jmp 0x18060f5d
pop edi
pop esi
pop ebx
ret
push 5
call fcn.180604cf
int3
Function at 0x18069f80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x181c900c]
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.1812da70
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, ebx
push 0x1819aa10
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 0x1806a020
call fcn.1801ba7c
mov ebx, eax
mov edi, ebx
cmp esi, 0xffffffff
je 0x1806a009
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.18118dc8
mov esp, ebp
pop ebp
ret
mov ebx, edi
mov eax, dword [esp + 0x1c]
sub eax, edi
je 0x1806a0c0
sub eax, 1
je 0x1806a06a
sub eax, 1
jne 0x1806a12c
cmp dword [esp + 0x28], 0x80
je 0x1806a051
test byte [esp + 0x28], 0x10
jne 0x1806a124
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
call fcn.18069ebb
pop ecx
mov ebx, eax
jmp 0x1806a124
test byte [esp + 0x28], 0x10
je 0x1806a124
lea ecx, [esp + 0x28]
call fcn.18069e7e
test al, al
jne 0x1806a124
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 0x1806a10c
test byte [esp + 0x28], 0x10
je 0x1806a124
lea ecx, [esp + 0x28]
call fcn.18069e7e
test al, al
jne 0x1806a124
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.18069f80
pop ecx
mov ecx, dword [esp + 0x24]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18007012
test ebx, ebx
js 0x18069ffb
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806a022
jmp 0x1806a002
Function at 0x1806ac62
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x181c900c]
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 0x1806acb7
mov edi, 0x80070057
jmp 0x1806aea8
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.1806b0d9
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 0x1806ae9d
push 0x250
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.1812da70
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x274]
push 0x1819aa10
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 0x1806ad7c
call fcn.1801ba7c
mov edi, eax
jmp 0x1806ae9d
lea ecx, [ebp - 0x268]
call fcn.18069e7e
test al, al
jne 0x1806ae7e
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 0x1806ae7e
cmp edi, dword [ebp - 0x278]
ja 0x1806ae7e
jb 0x1806ade2
cmp ebx, dword [ebp - 0x27c]
jae 0x1806ae7e
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 [0x181cf106]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181cf000
je 0x1806ae73
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 0x1806ad7c
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.18118dc8
leave
ret 8
Function at 0x1806e00f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181c900c]
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 0x1806e070
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 0x1806e10b
cmp dword [ebp - 8], ebx
jl 0x1806e104
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1806e097
xor ecx, ecx
jmp 0x1806e0a3
push eax
call fcn.18131ac0
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 0x1806e104
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 0x1806e0e4
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 0x1806e0f0
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 0x1806e0b5
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.18118dc8
leave
ret 4
Function at 0x1806e2ac
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 0x1806e2cf
test eax, eax
je 0x1806e2cc
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 0x1806e2e7
test eax, eax
je 0x1806e2e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x1806e2f2
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 0x1806e309
call fcn.1801e81f
test edi, edi
je 0x1806e31d
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1815d3d4]
call esi
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1806e690
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi + 0x34]
mov esi, eax
cmp ecx, esi
je 0x1806e348
test ecx, ecx
je 0x1806e343
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x34], esi
mov ecx, esi
test ecx, ecx
jne 0x1806e367
call fcn.1801ba7c
mov ebx, eax
test edi, edi
je 0x1806e367
mov ecx, dword [edi]
push edi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1815d3d4]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1806e48e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.18154880
mov eax, dword [0x181c900c]
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 0x1806e5d5
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 0x1806e521
test ecx, ecx
je 0x1806e525
cmp ebx, edi
je 0x1806e525
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 0x1806e4ec
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 0x1806e59c
mov edi, dword [ebp - 0x10018]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.18131ac0
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.1800768d
jmp 0x1806e5c1
cmp ebx, 0x10002
jae 0x1806e5e2
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.18118dc8
leave
ret
call fcn.18119828
int3