joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801b1ac
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x181ce008]
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.1800454a
push dword [eax + 4]
push dword [eax]
call fcn.181528ac
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 0x1801b212
push eax
call fcn.1815494a
pop ecx
lea eax, [esi + 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1801b241
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.18145efd
leave
ret

Function at 0x1801b472
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x181cfd90], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x181cfd90
je 0x1801b4aa
push ecx
mov ecx, ebx
call fcn.18014e5e
mov esi, eax
mov ecx, esi
call fcn.18014c58
test esi, esi
js 0x1801b527
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1801b489
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1801b548
jne 0x1801b545
cmp byte [edi + 0x3c], 0
je 0x1801b532
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1801b52b
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1801b6b2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1801b4fc
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1801b52b
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b51e
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 0x1801b53a
xor ebx, ebx
jmp 0x1801b4ae
mov esi, 0x80004005
jmp 0x1801b53e
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b548
call fcn.1801b630
jmp 0x1801b548
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1801b551
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x181cfe50], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x181cfe50
je 0x1801b589
push ecx
mov ecx, ebx
call fcn.18014e5e
mov esi, eax
mov ecx, esi
call fcn.18014c58
test esi, esi
js 0x1801b606
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1801b568
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1801b627
jne 0x1801b624
cmp byte [edi + 0x3c], 0
je 0x1801b611
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1801b60a
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1801b6b2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1801b5db
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1801b60a
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b5fd
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 0x1801b619
xor ebx, ebx
jmp 0x1801b58d
mov esi, 0x80004005
jmp 0x1801b61d
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b627
call fcn.1801b671
jmp 0x1801b627
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1801e0aa
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 0x1801e0be
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
lea ecx, [esi + 0x18]
call fcn.1801f0e2
mov ecx, dword [0x181d4de8]
pop esi
mov ecx, dword [ecx]
jmp fcn.180172bd
Function at 0x180220fc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
xor edi, edi
mov bl, dl
mov bh, cl
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.180a51de
test eax, eax
je 0x18022216
cmp dword [ebp - 4], edi
je 0x18022216
push esi
lea ecx, [ebp - 0xc]
call fcn.1800e7fd
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.18006e44
push str.GoogleUpdateComRegisterShell64.exe
lea ecx, [ebp - 8]
call fcn.18009e3d
mov esi, dword [ebp - 8]
test eax, eax
jne 0x18022162
call fcn.18013e1e
mov ebx, eax
jmp 0x180221fe
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18022177
mov ebx, 0x80070002
jmp 0x180221fe
call fcn.180040b1
push eax
lea ecx, [ebp - 8]
call fcn.1800717c
mov eax, 0x18181c4c
mov ecx, eax
test bl, bl
jne 0x18022195
mov ecx, str._unregister
test bh, bh
jne 0x1802219e
mov eax, str._user
push ecx
push eax
lea eax, [ebp - 8]
push 0x181ad97c
push eax
call fcn.1800f2dc
add esp, 0xc
lea ecx, [ebp - 0x38]
push esi
call fcn.1800f5e1
push edi
push edi
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x38]
push edi
call fcn.1800f755
mov ebx, eax
test ebx, ebx
js 0x180221ee
push 0x7530
lea ecx, [ebp - 0x38]
call fcn.1800f839
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x38]
call fcn.1800f6fc
lea ecx, [edi - 0x10]
call fcn.18004715
lea ecx, [esi - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, ebx
pop esi
jmp 0x18022218
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x1802358b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.18021ee8
mov ebx, eax
test ebx, ebx
je 0x180235bb
cmp dword [ebx], 0
je 0x180235bb
push ecx
mov ecx, ebx
call fcn.18014e5e
mov esi, eax
test esi, esi
js 0x18023638
add ebx, 0x24
jne 0x1802359f
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1802365b
jne 0x18023658
cmp byte [edi + 0x3c], 0
je 0x18023643
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1802363c
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x18025a1a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802360d
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x30], ebx
test ebx, ebx
je 0x1802363c
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802362f
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 0x1802364b
xor ebx, ebx
jmp 0x180235bf
mov esi, 0x80004005
jmp 0x1802364f
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1802365b
mov ecx, edi
call fcn.18022014
jmp 0x1802365b
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x18026085
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x210]
push 0x208
push esi
mov ebx, 0x181a9b94
mov dword [ebp - 0x220], esi
push eax
mov edi, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
call fcn.18148a10
lea ecx, [ebp - 0x224]
mov dword [esp], 0x20008
call fcn.18007f9f
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x220]
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1802612c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.18006e44
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.18008574
mov ecx, dword [ebp - 0x214]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004715
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
call fcn.18007fd8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret
Function at 0x18026ea7
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 0x18026ec3
mov eax, 0x80070057
jmp 0x18026f2f
call fcn.180040b1
push eax
lea ecx, [ebp + 0xc]
call fcn.1800717c
push dword [esi]
lea eax, [ebp + 0xc]
push str._s_last.dmp
push eax
call fcn.1800f2dc
lea eax, [ebp + 0xc]
push eax
lea edx, [ebx + 4]
lea ecx, [ebp - 4]
call fcn.1800eeae
mov esi, dword [ebp - 4]
add esp, 0x10
cmp dword [esi - 0xc], edi
jne 0x18026f02
mov edi, 0x80040709
jmp 0x18026f1a
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18026f1a
call fcn.18013e1e
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.18004715
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.18004715
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x18026f36
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x181ce008]
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.1800aa6f
mov esi, eax
pop ecx
test esi, esi
js 0x18027084
call fcn.1800be1f
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 0x18027082
sar edi, 2
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
mov esi, dword [eax + ebx*4]
mov ecx, esi
call fcn.18008227
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 0x18026fe4
call fcn.18013e1e
jmp 0x18027007
push eax
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x18026ffd
call fcn.18013e1e
mov dword [ebp - 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
test eax, eax
js 0x18027076
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.18154b12
fcomp qword [0x181c8f00]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x18027076
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 0x18026fa1
xor esi, esi
lea ecx, [ebp - 0x70]
call fcn.1800b4cd
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret
Function at 0x18033081
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 0x180331d4
mov edx, 0x10000000
cmp eax, 0x7c
je 0x180331d4
cmp eax, 0x29
jne 0x180330ba
cmp dword [esi + 0x10], 0
jne 0x180331d4
test dword [esi + 0x50], edx
je 0x180331da
cmp eax, 0x2e
jne 0x180330d5
push 5
lea ecx, [esi + 0x24]
call fcn.180332ad
mov ecx, esi
call fcn.18033058
jmp 0x180331be
cmp eax, 0x5c
jne 0x1803312a
mov ecx, esi
call fcn.18033058
test byte [esi + 0x50], 0x80
je 0x1803311e
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x18033106
push 4
lea ecx, [esi + 0x24]
call fcn.180332ad
mov ecx, esi
call fcn.18033058
jmp 0x180331c5
cmp eax, 0x42
jne 0x1803311e
push 4
lea ecx, [esi + 0x24]
call fcn.180332ad
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x180330fa
mov ecx, esi
call fcn.1803411b
jmp 0x180331be
cmp eax, 0x5b
jne 0x1803314a
mov ecx, esi
call fcn.18033058
mov ecx, esi
call fcn.180340cf
cmp dword [esi + 0x4c], 0x5d
je 0x180330c9
push 4
jmp 0x180331dc
cmp eax, 0x28
jne 0x18033167
mov ecx, esi
call fcn.18033058
mov ecx, esi
call fcn.180341f4
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x180331da
jmp 0x180331b3
cmp eax, 0x5e
jne 0x18033170
push 2
jmp 0x180330f2
cmp eax, 0x24
jne 0x1803317c
push 3
jmp 0x180330f2
cmp eax, 0x2a
je 0x180331d0
cmp eax, 0x2b
je 0x180331d0
cmp eax, 0x3f
je 0x180331d0
cmp eax, 0x7b
je 0x180331d0
cmp eax, 0x7d
jne 0x1803319a
test dword [esi + 0x50], edx
je 0x180331cc
cmp eax, 0x5d
jne 0x180331a4
test dword [esi + 0x50], edx
je 0x18033143
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.180343bd
mov bl, 1
mov ecx, esi
call fcn.18033058
test bl, bl
je 0x180331c5
mov ecx, esi
call fcn.180342e3
mov cl, 1
jmp 0x18033088
push 6
jmp 0x180331dc
push 0xa
jmp 0x180331dc
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.180324ba
int3
Function at 0x1803a661
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x181ce008]
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.18148a10
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
push 0x181a99c4
call fcn.18006cae
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.18004715
cmp esi, 0xffffffff
jne 0x1803a701
call fcn.18013e1e
mov edi, eax
mov ebx, edi
cmp esi, 0xffffffff
je 0x1803a6ea
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.18145efd
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x1803a7ab
sub eax, 1
je 0x1803a74b
sub eax, 1
jne 0x1803a80b
cmp dword [esp + 0x30], 0x80
je 0x1803a732
test byte [esp + 0x30], 0x10
jne 0x1803a80b
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
call fcn.1803a5b2
pop ecx
mov edi, eax
jmp 0x1803a80b
test byte [esp + 0x30], 0x10
je 0x1803a80b
lea ecx, [esp + 0x30]
call fcn.1803a575
test al, al
jne 0x1803a80b
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18006e44
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.1800eeae
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18004715
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 2
pop edx
call fcn.1803a661
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x1803a801
test byte [esp + 0x30], 0x10
je 0x1803a80b
lea ecx, [esp + 0x30]
call fcn.1803a575
test al, al
jne 0x1803a80b
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.18006e44
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.1800eeae
pop ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.18004715
push dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x28]
inc edx
call fcn.1803a661
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.18004715
test edi, edi
js 0x1803a6dc
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1803a703
jmp 0x1803a6de
Function at 0x1803aa71
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
push esi
mov ebx, ecx
mov ecx, 0x181cf9e8
push edi
mov dword [ebp - 0x10], ebx
call fcn.18016f53
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.1800ebfa
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.180071f9
add eax, 0x10
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], eax
xor edi, edi
mov dword [ebp - 8], ecx
mov ebx, ecx
cmp dword [eax - 0xc], edi
je 0x1803aaf1
mov ecx, dword [esi + 4]
sub ecx, 0x10
call fcn.180071f9
push 3
pop ebx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], edi
mov edi, dword [ebp + 8]
je 0x1803aaf7
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.180071f9
add eax, 0x10
xor ecx, ecx
push 7
pop ebx
cmp dword [eax - 0xc], ecx
je 0x1803aafa
mov byte [ebp - 8], cl
jmp 0x1803aafa
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
test bl, 4
je 0x1803ab07
lea ecx, [eax - 0x10]
call fcn.18004715
test bl, 2
je 0x1803ab14
lea ecx, [esi - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18004715
cmp byte [ebp - 8], 0
je 0x1803ab2c
mov ebx, 0x80070057
jmp 0x1803aba8
call fcn.180040b1
push eax
lea ecx, [ebp + 8]
call fcn.1800717c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push edi
call fcn.1803b047
mov esi, eax
test esi, esi
js 0x1803ab9b
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1800ef4f
mov ecx, dword [eax]
call fcn.1800519e
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18004715
test esi, esi
js 0x1803ab9b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
call fcn.1803a82c
mov esi, eax
test esi, esi
js 0x1803ab9b
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.1803b17f
mov esi, eax
test esi, esi
jns 0x1803abb9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.18004715
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
mov ecx, 0x181cfa08
call fcn.18016f53
xor ebx, ebx
jmp 0x1803ab9d
Function at 0x1803f881
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x1803f8c4
push str.GOOGLEUPDATEAPPLICATIONCOMMANDS
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1803f8c4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
jne 0x1803f8f2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1803f8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1803f8f7
movzx edi, di
or edi, 0x80070000
jmp 0x1803f8f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1803f8ed
mov edi, 0x80070006
jmp 0x1803f8f7
cmp dword [eax], 1
je 0x1803f8f7
mov edi, 0x8000ffff
test esi, esi
je 0x1803f902
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1804035d
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.180040b1
push eax
mov ecx, ebx
call fcn.1800717c
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.180071f9
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 0x180403ba
push dword [edi - 0xc]
lea ecx, [ebp + 8]
call fcn.1800736c
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, 0x18004b16
je 0x18040415
cmp dword [ebp - 4], ebx
jl 0x18040415
push dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.18006e76
cmp dword [ebp - 4], ebx
jle 0x18040419
mov edi, dword [ebp - 0x10]
push dword [esi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006e44
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.18009ef8
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18004715
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x180403e9
mov edi, dword [ebp - 8]
jmp 0x18040419
test esi, esi
je 0x18040420
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18004715
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18040573
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 0x18040593
test eax, eax
je 0x18040590
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 0x180405ab
test eax, eax
je 0x180405a8
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 0x180405bc
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 0x180405d0
call fcn.1801d584
test edi, edi
je 0x180405da
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1804092b
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 0x18040609
test esi, esi
je 0x18040604
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, 0x18004b16
jne 0x1804061c
call fcn.18013e1e
mov ebx, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x1804062c
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x18040760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.1816d5c0
mov eax, dword [0x181ce008]
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 0x18040899
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 0x180407f3
test ecx, ecx
je 0x180407f7
mov ecx, 0x10000
cmp ebx, ecx
je 0x180407f7
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 0x180407bf
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.1800ebfa
test edi, edi
je 0x18040860
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.1814c973
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.180070ff
jmp 0x18040885
cmp ebx, 0x10002
jae 0x180408a6
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800c369
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.18145efd
leave
ret
call fcn.18146771
int3