joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18025f0c
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 8], eax
call fcn.1802675d
test al, al
je 0x18025f2a
xor eax, eax
jmp 0x18025fd7
call fcn.180256be
mov esi, eax
mov ecx, esi
call fcn.18016ce6
test esi, esi
jns 0x18025f43
mov eax, esi
jmp 0x18025fd7
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18025f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18025fd5
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18025fd5
lea ecx, [ebp - 4]
call fcn.18056609
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18025fa3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push 1
push 3
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18025fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18025fb8
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x18025fc3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18006a60
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18026257
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 8], eax
call fcn.180268e9
test al, al
je 0x18026275
xor eax, eax
jmp 0x18026322
call fcn.180259e0
mov esi, eax
mov ecx, esi
call fcn.18016ce6
test esi, esi
jns 0x1802628e
mov eax, esi
jmp 0x18026322
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x180262ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18026320
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18026320
lea ecx, [ebp - 4]
call fcn.18056576
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180262ee
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18026303
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18026303
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1802630e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18006a60
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18026327
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x1802635d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x180263cc
movzx ebx, bx
or ebx, 0x80070000
jmp 0x180263cc
lea ecx, [ebp - 4]
call fcn.18056576
lea ecx, [ebp - 8]
call fcn.18026879
push ebx
push ebx
push str.RPCSS
push ebx
push ebx
push edi
mov edi, dword [ebp - 8]
push 1
push 2
push 0x10
push 0xf01ff
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x180263ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x180263b2
movzx ebx, bx
or ebx, 0x80070000
jmp 0x180263b2
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.18006a60
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18006a60
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x18026dcc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
xor edi, edi
lea eax, [ebp - 0x204]
push edi
push dword [ebp + 0xc]
push 0xff
push 0x100
push eax
call fcn.1800737c
push dword [eax + 4]
push dword [eax]
call fcn.180d485d
xor eax, eax
add esp, 0x20
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x260], edi
jne 0x18026e32
push eax
call fcn.180d72e7
pop ecx
lea eax, [esi + 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x18026e61
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.180b1200
leave
ret
Function at 0x180270d3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x18273c80], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x18273c80
je 0x1802710b
push ecx
mov ecx, ebx
call fcn.18020edc
mov esi, eax
mov ecx, esi
call fcn.18016ce6
test esi, esi
js 0x18027188
add ebx, 0x24
cmp dword [ebx], 0
jne 0x180270ea
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x180271a9
jne 0x180271a6
cmp byte [edi + 0x3c], 0
je 0x18027193
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1802718c
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x180272d2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802715d
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1802718c
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802717f
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1802719b
xor ebx, ebx
jmp 0x1802710f
mov esi, 0x80004005
jmp 0x1802719f
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x180271a9
call fcn.18027092
jmp 0x180271a9
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x180271f3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x18273d10], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x18273d10
je 0x1802722b
push ecx
mov ecx, ebx
call fcn.18020edc
mov esi, eax
mov ecx, esi
call fcn.18016ce6
test esi, esi
js 0x180272a8
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1802720a
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x180272c9
jne 0x180272c6
cmp byte [edi + 0x3c], 0
je 0x180272b3
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x180272ac
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x180272d2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802727d
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180272ac
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802729f
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180272bb
xor ebx, ebx
jmp 0x1802722f
mov esi, 0x80004005
jmp 0x180272bf
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x180272c9
call fcn.180271b2
jmp 0x180272c9
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x18028017
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
and dword [esi + 0x1c], 0
test ecx, ecx
je 0x1802802b
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
lea ecx, [esi + 0x18]
call fcn.180290a5
mov ecx, dword [0x1827df0c]
pop esi
mov ecx, dword [ecx]
jmp fcn.1802315b

Function at 0x1802a72a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov byte [ebp - 5], cl
mov bh, dl
push edi
lea ecx, [ebp - 0x10]
call fcn.18011691
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.18006fb5
mov bl, byte [ebp + 8]
mov eax, str.MicrosoftEdgeComRegisterShellARM64.exe
test bl, bl
jne 0x1802a75c
mov eax, str.MicrosoftEdgeUpdateComRegisterShell64.exe
push eax
lea ecx, [ebp - 0xc]
call fcn.1800cd5b
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x1802a778
call fcn.18016093
mov ebx, eax
jmp 0x1802a864
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1802a78d
mov ebx, 0x80070002
jmp 0x1802a864
call fcn.18006a78
push eax
lea ecx, [ebp + 8]
call fcn.18007187
mov eax, 0x18218228
mov edx, eax
test bh, bh
jne 0x1802a7ab
mov edx, str._unregister
cmp byte [ebp - 5], 0
mov ecx, eax
jne 0x1802a7b8
mov ecx, str._user
test bl, bl
je 0x1802a7c1
mov eax, str._arm64
push edx
push ecx
push eax
lea eax, [ebp + 8]
push str._s__s__s
push eax
call fcn.18012ab4
add esp, 0x10
lea ecx, [ebp - 0x4c]
push esi
call fcn.1801317a
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
push 0
push 0
push edi
call fcn.180132ee
mov ebx, eax
test ebx, ebx
jns 0x1802a834
movzx ecx, byte [0x1827e6e4]
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x1802a854
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
call fcn.18008c56
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._Failed_to_start_COM_register_process__0x_x_
push eax
call fcn.18006ca0
add esp, 0xc
jmp 0x1802a854
push 0x7530
lea ecx, [ebp - 0x4c]
call fcn.180133dc
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x4c]
call fcn.18013295
lea ecx, [edi - 0x10]
call fcn.18006a60
lea ecx, [esi - 0x10]
call fcn.18006a60
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006a60
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1802b103
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.1802a518
mov ebx, eax
test ebx, ebx
je 0x1802b133
cmp dword [ebx], 0
je 0x1802b133
push ecx
mov ecx, ebx
call fcn.18020edc
mov esi, eax
test esi, esi
js 0x1802b1b0
add ebx, 0x24
jne 0x1802b117
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1802b1d3
jne 0x1802b1d0
cmp byte [edi + 0x3c], 0
je 0x1802b1bb
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1802b1b4
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x1802d137
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802b185
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x30], ebx
test ebx, ebx
je 0x1802b1b4
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802b1a7
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1802b1c3
xor ebx, ebx
jmp 0x1802b137
mov esi, 0x80004005
jmp 0x1802b1c7
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802b1d3
mov ecx, edi
call fcn.1802a644
jmp 0x1802b1d3
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1802db24
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x1802db40
mov eax, 0x80070057
jmp 0x1802dbac
call fcn.18006a78
push eax
lea ecx, [ebp + 0xc]
call fcn.18007187
push dword [esi]
lea eax, [ebp + 0xc]
push str._s_last.dmp
push eax
call fcn.18012ab4
lea eax, [ebp + 0xc]
push eax
lea edx, [ebx + 4]
lea ecx, [ebp - 4]
call fcn.1801266d
mov esi, dword [ebp - 4]
add esp, 0x10
cmp dword [esi - 0xc], edi
jne 0x1802db7f
mov edi, 0x80040709
jmp 0x1802db97
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1802db97
call fcn.18016093
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.18006a60
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.18006a60
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1802dbb3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1826b00c]
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 - 0x70]
xor ebx, ebx
push ecx
mov ecx, dword [eax + 4]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.1800dabb
mov esi, eax
pop ecx
test esi, esi
js 0x1802dd01
call fcn.1800ece9
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
sub edi, eax
mov dword [ebp - 0x80], edx
cmp edi, 4
jb 0x1802dcff
sar edi, 2
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
mov esi, dword [eax + ebx*4]
mov ecx, esi
call fcn.1800da6e
movzx eax, al
neg eax
push 0
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push 0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x64], eax
cmp esi, 0xffffffff
jne 0x1802dc61
call fcn.18016093
jmp 0x1802dc84
push eax
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1802dc7a
call fcn.18016093
mov dword [ebp - 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
test eax, eax
js 0x1802dcf3
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
or ecx, dword [ebp - 0x78]
sub eax, ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
sbb ecx, dword [ebp - 0x74]
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.180d6fd6
fcomp qword [0x1824d618]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x1802dcf3
mov eax, dword [ebp - 0x70]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x70]
inc ebx
cmp ebx, edi
jne 0x1802dc1e
xor esi, esi
lea ecx, [ebp - 0x70]
call fcn.18009ef6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret
Function at 0x1803b329
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1803b47c
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1803b47c
cmp eax, 0x29
jne 0x1803b362
cmp dword [esi + 0x10], 0
jne 0x1803b47c
test dword [esi + 0x50], edx
je 0x1803b482
cmp eax, 0x2e
jne 0x1803b37d
push 5
lea ecx, [esi + 0x24]
call fcn.1803b545
mov ecx, esi
call fcn.1803b300
jmp 0x1803b466
cmp eax, 0x5c
jne 0x1803b3d2
mov ecx, esi
call fcn.1803b300
test byte [esi + 0x50], 0x80
je 0x1803b3c6
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1803b3ae
push 4
lea ecx, [esi + 0x24]
call fcn.1803b545
mov ecx, esi
call fcn.1803b300
jmp 0x1803b46d
cmp eax, 0x42
jne 0x1803b3c6
push 4
lea ecx, [esi + 0x24]
call fcn.1803b545
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1803b3a2
mov ecx, esi
call fcn.1803c0e8
jmp 0x1803b466
cmp eax, 0x5b
jne 0x1803b3f2
mov ecx, esi
call fcn.1803b300
mov ecx, esi
call fcn.1803c09c
cmp dword [esi + 0x4c], 0x5d
je 0x1803b371
push 4
jmp 0x1803b484
cmp eax, 0x28
jne 0x1803b40f
mov ecx, esi
call fcn.1803b300
mov ecx, esi
call fcn.1803c1b9
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1803b482
jmp 0x1803b45b
cmp eax, 0x5e
jne 0x1803b418
push 2
jmp 0x1803b39a
cmp eax, 0x24
jne 0x1803b424
push 3
jmp 0x1803b39a
cmp eax, 0x2a
je 0x1803b478
cmp eax, 0x2b
je 0x1803b478
cmp eax, 0x3f
je 0x1803b478
cmp eax, 0x7b
je 0x1803b478
cmp eax, 0x7d
jne 0x1803b442
test dword [esi + 0x50], edx
je 0x1803b474
cmp eax, 0x5d
jne 0x1803b44c
test dword [esi + 0x50], edx
je 0x1803b3eb
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1803c322
mov bl, 1
mov ecx, esi
call fcn.1803b300
test bl, bl
je 0x1803b46d
mov ecx, esi
call fcn.1803c23a
mov cl, 1
jmp 0x1803b330
push 6
jmp 0x1803b484
push 0xa
jmp 0x1803b484
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.1803a80e
int3
Function at 0x18042421
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x1826b00c]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x18], eax
xor ebx, ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], edx
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x1c], esi
call fcn.180c7aa0
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
push 0x18232b38
call fcn.18009b89
pop ecx
lea ecx, [esp + 0x30]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x28]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006a60
cmp esi, 0xffffffff
jne 0x180424c1
call fcn.18016093
mov edi, eax
mov ebx, edi
cmp esi, 0xffffffff
je 0x180424aa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x284]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180b1200
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x1804256b
sub eax, 1
je 0x1804250b
sub eax, 1
jne 0x180425cb
cmp dword [esp + 0x30], 0x80
je 0x180424f2
test byte [esp + 0x30], 0x10
jne 0x180425cb
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
call fcn.18042372
pop ecx
mov edi, eax
jmp 0x180425cb
test byte [esp + 0x30], 0x10
je 0x180425cb
lea ecx, [esp + 0x30]
call fcn.18042335
test al, al
jne 0x180425cb
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18006fb5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.1801266d
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006a60
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 2
pop edx
call fcn.18042421
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x180425c1
test byte [esp + 0x30], 0x10
je 0x180425cb
lea ecx, [esp + 0x30]
call fcn.18042335
test al, al
jne 0x180425cb
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.18006fb5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.1801266d
pop ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.18006a60
push dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x28]
inc edx
call fcn.18042421
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.18006a60
test edi, edi
js 0x1804249c
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180424c3
jmp 0x1804249e
Function at 0x180481a3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.18006a78
push eax
mov ecx, ebx
call fcn.18007187
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18009fcf
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp + 8], edi
cmp dword [edi - 4], ebx
jle 0x18048200
push dword [edi - 0xc]
lea ecx, [ebp + 8]
call fcn.18007307
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edi
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
neg eax
sbb eax, eax
and eax, sym.msedgeupdate_unsigned.dll_public_virtual:_void___thiscall_Microsoft::Applications::Events::DebugEventDispatcher::destructor_void_
je 0x1804825b
cmp dword [ebp - 4], ebx
jl 0x1804825b
push dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.18006fe7
cmp dword [ebp - 4], ebx
jle 0x1804825f
mov edi, dword [ebp - 0x10]
push dword [esi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006fb5
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.18009b08
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18006a60
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x1804822f
mov edi, dword [ebp - 8]
jmp 0x1804825f
test esi, esi
je 0x18048266
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18006a60
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180483c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x180483e4
test eax, eax
je 0x180483e1
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 0x180483fc
test eax, eax
je 0x180483f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
je 0x1804840d
lock inc dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x18048421
call fcn.18016d01
test edi, edi
je 0x1804842b
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1804877c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [edi + 0x34]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x1804845a
test esi, esi
je 0x18048455
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov esi, eax
neg esi
sbb esi, esi
and esi, sym.msedgeupdate_unsigned.dll_public_virtual:_void___thiscall_Microsoft::Applications::Events::DebugEventDispatcher::destructor_void_
jne 0x1804846d
call fcn.18016093
mov ebx, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x1804847d
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc