joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802c47b
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.1802cca1
test al, al
je 0x1802c499
xor eax, eax
jmp 0x1802c546
call fcn.1802bcb2
mov esi, eax
mov ecx, esi
call fcn.1801864b
test esi, esi
jns 0x1802c4b2
mov eax, esi
jmp 0x1802c546
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1802c4de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1802c544
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1802c544
lea ecx, [ebp - 4]
call fcn.18060411
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1802c512
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 0x1802c52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1802c527
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1802c532
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800687d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1802c54b
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 edi, edi
mov ebx, ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x1802c581
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1802c5f0
movzx edi, di
or edi, 0x80070000
jmp 0x1802c5f0
lea ecx, [ebp - 8]
call fcn.18060411
lea ecx, [ebp - 4]
call fcn.1802cc3d
push edi
push edi
push str.RPCSS
push edi
push edi
push ebx
push 1
push 2
push 0x10
push 0xf01ff
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x1802c5d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1802c5d7
movzx edi, di
or edi, 0x80070000
jmp 0x1802c5d7
push eax
call ebx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.1800687d
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1802d184
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1820f00c]
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.18007133
push dword [eax + 4]
push dword [eax]
call fcn.1816922b
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 0x1802d1ea
push eax
call fcn.1816bd17
pop ecx
lea eax, [esi + 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1802d219
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.1814cf3d
leave
ret

Function at 0x1802d467
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, 0x18210df0
push edi
mov edi, ecx
cmp dword [0x18210df0], ebx
je 0x1802d49d
push ecx
mov ecx, esi
call fcn.18026e5b
mov ebx, eax
mov ecx, ebx
call fcn.1801864b
test ebx, ebx
js 0x1802d4e0
add esi, 0x24
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1802d47f
cmp byte [edi + 0x3c], 0
je 0x1802d50f
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1802d4d9
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1802d62c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802d4e4
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x80004005
jmp 0x1802d51b
mov eax, ebx
jmp 0x1802d522
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802d506
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 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 0x1802d517
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802d520
call fcn.1802d426
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1802d56a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, 0x18210ec0
push edi
mov edi, ecx
cmp dword [0x18210ec0], ebx
je 0x1802d5a0
push ecx
mov ecx, esi
call fcn.18026e5b
mov ebx, eax
mov ecx, ebx
call fcn.1801864b
test ebx, ebx
js 0x1802d5e3
add esi, 0x24
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1802d582
cmp byte [edi + 0x3c], 0
je 0x1802d612
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1802d5dc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1802d62c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802d5e7
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x80004005
jmp 0x1802d61e
mov eax, ebx
jmp 0x1802d625
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802d609
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 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 0x1802d61a
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802d623
call fcn.1802d529
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1802ffcd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x1c]
and dword [edi + 0x1c], 0
test ecx, ecx
je 0x1802ffe2
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 0x18]
and dword [edi + 0x18], 0
test esi, esi
je 0x1802fffe
mov ecx, esi
call fcn.1806316c
push 0x24
push esi
call fcn.1814d45b
pop ecx
pop ecx
mov ecx, dword [0x1821776c]
pop edi
pop esi
mov ecx, dword [ecx]
jmp fcn.18029129
Function at 0x1803238f
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.18012694
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push edi
call fcn.18006d98
mov bl, byte [ebp + 8]
mov eax, str.MicrosoftEdgeComRegisterShellARM64.exe
test bl, bl
jne 0x180323c2
mov eax, str.MicrosoftEdgeUpdateComRegisterShell64.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.1800da27
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x180323de
call fcn.18017850
mov ebx, eax
jmp 0x180324c7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180323f3
mov ebx, 0x80070002
jmp 0x180324c7
lea ecx, [ebp - 0xc]
call fcn.18009c8e
mov eax, 0x181b72bc
mov edx, eax
test bh, bh
jne 0x1803240b
mov edx, str._unregister
cmp byte [ebp - 5], 0
mov ecx, eax
jne 0x18032418
mov ecx, str._user
test bl, bl
je 0x18032421
mov eax, str._arm64
push edx
push ecx
push eax
lea eax, [ebp - 0xc]
push str._s__s__s
push eax
call fcn.18013d2c
add esp, 0x10
lea ecx, [ebp - 0x4c]
push esi
call fcn.180143d8
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
push 0
push 0
push dword [ebp - 0xc]
call dword [eax + 8]
mov ebx, eax
test ebx, ebx
jns 0x18032494
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x180324b4
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.18008988
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.18006aa4
add esp, 0xc
jmp 0x180324b4
push 0x7530
lea ecx, [ebp - 0x4c]
call fcn.1801462b
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x4c]
call fcn.180144d8
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800687d
lea ecx, [esi - 0x10]
call fcn.1800687d
lea ecx, [edi - 0x10]
call fcn.1800687d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18033783
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.1803219b
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x180337b2
cmp dword [edi], ebx
je 0x180337b2
push ecx
mov ecx, edi
call fcn.18026e5b
test eax, eax
js 0x18033834
add edi, 0x24
jne 0x18033799
cmp byte [esi + 0x3c], bl
je 0x1803381f
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x180337ed
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x18035e16
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x180337f4
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], ebx
mov edi, 0x80004005
jmp 0x1803382b
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x18033816
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 0x18033827
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x18033832
mov ecx, esi
call fcn.180322a9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18036da4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x18036dc0
mov eax, 0x80070057
jmp 0x18036e29
lea ecx, [ebp - 4]
call fcn.18009c8e
push dword [edi]
lea eax, [ebp - 4]
push str._s_last.dmp
push eax
call fcn.18013d2c
lea eax, [ebp - 4]
push eax
lea edx, [ebx + 4]
lea ecx, [ebp + 0xc]
call fcn.180138ce
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp dword [eax - 0xc], esi
jne 0x18036df9
mov esi, 0x80040709
jmp 0x18036e14
mov ecx, dword [ebp + 8]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18036e11
call fcn.18017850
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800687d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x18036e30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1820f00c]
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.1800e780
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x18036e83
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
jmp 0x18036f89
call fcn.1800fb26
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 0x18036f87
xor edi, edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov esi, dword [esi + ebx*4]
mov ecx, esi
call fcn.1800e733
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 0x18036ee1
call fcn.18017850
mov edi, eax
jmp 0x18036f02
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x18036efb
call fcn.18017850
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18036f71
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.1816ba06
fcomp qword [0x182034a8]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x18036f71
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 0x18036ea3
xor ebx, ebx
test esi, esi
je 0x18036fb6
cmp esi, edi
je 0x18036fa5
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1800687d
add esi, 4
cmp esi, edi
jne 0x18036f91
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
sub ecx, esi
and ecx, 0xfffffffc
push ecx
push esi
call fcn.1800a00f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
Function at 0x18044e95
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 0x18044fe8
mov edx, 0x10000000
cmp eax, 0x7c
je 0x18044fe8
cmp eax, 0x29
jne 0x18044ece
cmp dword [esi + 0x10], 0
jne 0x18044fe8
test dword [esi + 0x50], edx
je 0x18044fee
cmp eax, 0x2e
jne 0x18044ee9
push 5
lea ecx, [esi + 0x24]
call fcn.180450b1
mov ecx, esi
call fcn.18044e6c
jmp 0x18044fd2
cmp eax, 0x5c
jne 0x18044f3e
mov ecx, esi
call fcn.18044e6c
test byte [esi + 0x50], 0x80
je 0x18044f32
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x18044f1a
push 4
lea ecx, [esi + 0x24]
call fcn.180450b1
mov ecx, esi
call fcn.18044e6c
jmp 0x18044fd9
cmp eax, 0x42
jne 0x18044f32
push 4
lea ecx, [esi + 0x24]
call fcn.180450b1
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x18044f0e
mov ecx, esi
call fcn.18045cd1
jmp 0x18044fd2
cmp eax, 0x5b
jne 0x18044f5e
mov ecx, esi
call fcn.18044e6c
mov ecx, esi
call fcn.18045c85
cmp dword [esi + 0x4c], 0x5d
je 0x18044edd
push 4
jmp 0x18044ff0
cmp eax, 0x28
jne 0x18044f7b
mov ecx, esi
call fcn.18044e6c
mov ecx, esi
call fcn.18045da2
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x18044fee
jmp 0x18044fc7
cmp eax, 0x5e
jne 0x18044f84
push 2
jmp 0x18044f06
cmp eax, 0x24
jne 0x18044f90
push 3
jmp 0x18044f06
cmp eax, 0x2a
je 0x18044fe4
cmp eax, 0x2b
je 0x18044fe4
cmp eax, 0x3f
je 0x18044fe4
cmp eax, 0x7b
je 0x18044fe4
cmp eax, 0x7d
jne 0x18044fae
test dword [esi + 0x50], edx
je 0x18044fe0
cmp eax, 0x5d
jne 0x18044fb8
test dword [esi + 0x50], edx
je 0x18044f57
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.18045f0b
mov bl, 1
mov ecx, esi
call fcn.18044e6c
test bl, bl
je 0x18044fd9
mov ecx, esi
call fcn.18045e23
mov cl, 1
jmp 0x18044e9c
push 6
jmp 0x18044ff0
push 0xa
jmp 0x18044ff0
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.180443ad
int3
Function at 0x1804cbf4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x1820f00c]
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.181620e0
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
push 0x181dc180
call fcn.18009a51
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.1800687d
cmp esi, 0xffffffff
jne 0x1804cc94
call fcn.18017850
mov edi, eax
mov ebx, edi
cmp esi, 0xffffffff
je 0x1804cc7d
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.1814cf3d
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x1804cd3e
sub eax, 1
je 0x1804ccde
sub eax, 1
jne 0x1804cda6
cmp dword [esp + 0x30], 0x80
je 0x1804ccc5
test byte [esp + 0x30], 0x10
jne 0x1804cd9e
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
call fcn.1804cb4b
pop ecx
mov edi, eax
jmp 0x1804cd9e
test byte [esp + 0x30], 0x10
je 0x1804cd9e
lea ecx, [esp + 0x30]
call fcn.1804cb0e
test al, al
jne 0x1804cd9e
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18006d98
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.180138ce
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.1800687d
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 2
pop edx
call fcn.1804cbf4
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x1804cd94
test byte [esp + 0x30], 0x10
je 0x1804cd9e
lea ecx, [esp + 0x30]
call fcn.1804cb0e
test al, al
jne 0x1804cd9e
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.18006d98
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.180138ce
pop ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.1800687d
push dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x28]
inc edx
call fcn.1804cbf4
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.1800687d
test edi, edi
js 0x1804cc6f
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1804cc96
jmp 0x1804cc76
Function at 0x18050375
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 - 8], ebx
call fcn.18009c8e
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18009e91
xor ebx, ebx
inc ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], esi
cmp dword [esi - 4], ebx
jle 0x180503c5
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.180070a1
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x18050461
cmp dword [ebp - 4], ebx
jl 0x1805045a
mov eax, dword [edi]
mov dword [ebp + 8], eax
test eax, eax
jne 0x180503ec
xor ecx, ecx
jmp 0x180503f8
push eax
call fcn.18165959
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.18006e93
cmp dword [ebp - 4], ebx
jle 0x1805045a
mov esi, dword [ebp - 8]
push dword [edi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006d98
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0xc]
je 0x18050439
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18009e91
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
add dword [esi + 8], 4
jmp 0x18050446
lea ecx, [ebp + 8]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.18009f5f
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x1805040a
mov esi, dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.1800687d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x180505b7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x180505d6
test eax, eax
je 0x180505d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x28]
mov edi, dword [ebp + 0xc]
cmp eax, edi
je 0x180505ee
test eax, eax
je 0x180505eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], edi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
je 0x180505ff
lock inc dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
test ecx, ecx
je 0x18050613
call fcn.1801998f
test esi, esi
je 0x1805061d
mov eax, dword [esi]
push esi
call dword [eax + 4]
push ebx
xor edi, edi
push edi
push edi
push esi
push 0x18050913
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x34]
mov ebx, eax
cmp ecx, ebx
je 0x18050649
test ecx, ecx
je 0x18050644
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], ebx
mov ecx, ebx
pop ebx
test ecx, ecx
jne 0x1805065f
call fcn.18017850
mov edi, eax
test esi, esi
je 0x1805065f
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x18050748
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.18186520
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10014], eax
mov esi, dword [eax + 0x28]
test esi, esi
je 0x18050881
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
push ecx
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x1000c], ecx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
mov ebx, ecx
jmp 0x180507db
test ecx, ecx
je 0x180507df
mov ecx, 0x10000
cmp ebx, ecx
je 0x180507df
and dword [ebp - 0x1000c], 0
lea eax, [ebp - 0x1000c]
push 0
push eax
sub ecx, ebx
lea eax, [ebp - 0x10008]
push ecx
add eax, ebx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
add ebx, ecx
test eax, eax
jne 0x180507a7
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0xf
push eax
push ebx
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [ebp - 0x10014]
mov edi, eax
add ecx, 0x38
push ecx
lea ecx, [ebp - 0x10010]
call fcn.18012e1c
test edi, edi
je 0x18050848
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.18165959
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.18006e93
jmp 0x1805086d
cmp ebx, 0x10002
jae 0x1805088e
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800f13e
mov ecx, dword [ebp - 0x10010]
mov eax, dword [ecx]
call dword [eax + 8]
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.1814cf3d
leave
ret
call fcn.1814d97b
int3