joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18021fca
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.180a1a3f
test eax, eax
je 0x180220e4
cmp dword [ebp - 4], edi
je 0x180220e4
push esi
lea ecx, [ebp - 0xc]
call fcn.1800e69e
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.18006abf
push str.GoogleUpdateComRegisterShell64.exe
lea ecx, [ebp - 8]
call fcn.18009baa
mov esi, dword [ebp - 8]
test eax, eax
jne 0x18022030
call fcn.18013c6a
mov ebx, eax
jmp 0x180220cc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18022045
mov ebx, 0x80070002
jmp 0x180220cc
call fcn.18003fd3
push eax
lea ecx, [ebp - 8]
call fcn.18006df7
mov eax, 0x1817cc0c
mov ecx, eax
test bl, bl
jne 0x18022063
mov ecx, str._unregister
test bh, bh
jne 0x1802206c
mov eax, str._user
push ecx
push eax
lea eax, [ebp - 8]
push 0x181a6d18
push eax
call fcn.1800f1a9
add esp, 0xc
lea ecx, [ebp - 0x38]
push esi
call fcn.1800f4a2
push edi
push edi
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x38]
push edi
call fcn.1800f616
mov ebx, eax
test ebx, ebx
js 0x180220bc
push 0x7530
lea ecx, [ebp - 0x38]
call fcn.1800f6fa
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x38]
call fcn.1800f5bd
lea ecx, [edi - 0x10]
call fcn.18004637
lea ecx, [esi - 0x10]
call fcn.18004637
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18004637
mov eax, ebx
pop esi
jmp 0x180220e6
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x1802340c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.18021db6
mov ebx, eax
test ebx, ebx
je 0x1802343c
cmp dword [ebx], 0
je 0x1802343c
push ecx
mov ecx, ebx
call fcn.18014caa
mov esi, eax
test esi, esi
js 0x180234b9
add ebx, 0x24
jne 0x18023420
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x180234dc
jne 0x180234d9
cmp byte [edi + 0x3c], 0
je 0x180234c4
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x180234bd
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x1802589b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1802348e
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x30], ebx
test ebx, ebx
je 0x180234bd
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x180234b0
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 0x180234cc
xor ebx, ebx
jmp 0x18023440
mov esi, 0x80004005
jmp 0x180234d0
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x180234dc
mov ecx, edi
call fcn.18021ee2
jmp 0x180234dc
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x18025f06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x181c7008]
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, 0x181a2f84
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.18144340
lea ecx, [ebp - 0x224]
mov dword [esp], 0x20008
call fcn.1800e571
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 0x18025fad
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.18006abf
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.18008052
mov ecx, dword [ebp - 0x214]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004637
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
call fcn.18007bed
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18141824
leave
ret
Function at 0x18026cdf
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 0x18026cfb
mov eax, 0x80070057
jmp 0x18026d67
call fcn.18003fd3
push eax
lea ecx, [ebp + 0xc]
call fcn.18006df7
push dword [esi]
lea eax, [ebp + 0xc]
push str._s_last.dmp
push eax
call fcn.1800f1a9
lea eax, [ebp + 0xc]
push eax
lea edx, [ebx + 4]
lea ecx, [ebp - 4]
call fcn.1800ed4f
mov esi, dword [ebp - 4]
add esp, 0x10
cmp dword [esi - 0xc], edi
jne 0x18026d3a
mov edi, 0x80040709
jmp 0x18026d52
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18026d52
call fcn.18013c6a
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.18004637
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.18004637
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x18026d6e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x181c7008]
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.1800a99e
mov esi, eax
pop ecx
test esi, esi
js 0x18026ebc
call fcn.1800bd4e
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 0x18026eba
sar edi, 2
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
mov esi, dword [eax + ebx*4]
mov ecx, esi
call fcn.1800a951
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 0x18026e1c
call fcn.18013c6a
jmp 0x18026e3f
push eax
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x18026e35
call fcn.18013c6a
mov dword [ebp - 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
test eax, eax
js 0x18026eae
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.181503da
fcomp qword [0x181c1b68]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x18026eae
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 0x18026dd9
xor esi, esi
lea ecx, [ebp - 0x70]
call fcn.1800b3fc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18141824
leave
ret
Function at 0x18032ebb
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 0x1803300e
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1803300e
cmp eax, 0x29
jne 0x18032ef4
cmp dword [esi + 0x10], 0
jne 0x1803300e
test dword [esi + 0x50], edx
je 0x18033014
cmp eax, 0x2e
jne 0x18032f0f
push 5
lea ecx, [esi + 0x24]
call fcn.180330e7
mov ecx, esi
call fcn.18032e92
jmp 0x18032ff8
cmp eax, 0x5c
jne 0x18032f64
mov ecx, esi
call fcn.18032e92
test byte [esi + 0x50], 0x80
je 0x18032f58
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x18032f40
push 4
lea ecx, [esi + 0x24]
call fcn.180330e7
mov ecx, esi
call fcn.18032e92
jmp 0x18032fff
cmp eax, 0x42
jne 0x18032f58
push 4
lea ecx, [esi + 0x24]
call fcn.180330e7
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x18032f34
mov ecx, esi
call fcn.18033f55
jmp 0x18032ff8
cmp eax, 0x5b
jne 0x18032f84
mov ecx, esi
call fcn.18032e92
mov ecx, esi
call fcn.18033f09
cmp dword [esi + 0x4c], 0x5d
je 0x18032f03
push 4
jmp 0x18033016
cmp eax, 0x28
jne 0x18032fa1
mov ecx, esi
call fcn.18032e92
mov ecx, esi
call fcn.1803402e
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x18033014
jmp 0x18032fed
cmp eax, 0x5e
jne 0x18032faa
push 2
jmp 0x18032f2c
cmp eax, 0x24
jne 0x18032fb6
push 3
jmp 0x18032f2c
cmp eax, 0x2a
je 0x1803300a
cmp eax, 0x2b
je 0x1803300a
cmp eax, 0x3f
je 0x1803300a
cmp eax, 0x7b
je 0x1803300a
cmp eax, 0x7d
jne 0x18032fd4
test dword [esi + 0x50], edx
je 0x18033006
cmp eax, 0x5d
jne 0x18032fde
test dword [esi + 0x50], edx
je 0x18032f7d
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.180341f7
mov bl, 1
mov ecx, esi
call fcn.18032e92
test bl, bl
je 0x18032fff
mov ecx, esi
call fcn.1803411d
mov cl, 1
jmp 0x18032ec2
push 6
jmp 0x18033016
push 0xa
jmp 0x18033016
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.180322f4
int3
Function at 0x1803a49b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x181c7008]
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.18144340
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
push 0x181a2dbc
call fcn.18006a00
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.18004637
cmp esi, 0xffffffff
jne 0x1803a53b
call fcn.18013c6a
mov edi, eax
mov ebx, edi
cmp esi, 0xffffffff
je 0x1803a524
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.18141824
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x1803a5e5
sub eax, 1
je 0x1803a585
sub eax, 1
jne 0x1803a645
cmp dword [esp + 0x30], 0x80
je 0x1803a56c
test byte [esp + 0x30], 0x10
jne 0x1803a645
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
call fcn.1803a3ec
pop ecx
mov edi, eax
jmp 0x1803a645
test byte [esp + 0x30], 0x10
je 0x1803a645
lea ecx, [esp + 0x30]
call fcn.1803a3af
test al, al
jne 0x1803a645
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18006abf
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.1800ed4f
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18004637
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 2
pop edx
call fcn.1803a49b
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x1803a63b
test byte [esp + 0x30], 0x10
je 0x1803a645
lea ecx, [esp + 0x30]
call fcn.1803a3af
test al, al
jne 0x1803a645
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.18006abf
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.1800ed4f
pop ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.18004637
push dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x28]
inc edx
call fcn.1803a49b
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.18004637
test edi, edi
js 0x1803a516
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1803a53d
jmp 0x1803a518
Function at 0x1803a8ab
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, 0x181c89b8
push edi
mov dword [ebp - 0x10], ebx
call fcn.18016d9f
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.1800ea9b
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18006e74
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 0x1803a92b
mov ecx, dword [esi + 4]
sub ecx, 0x10
call fcn.18006e74
push 3
pop ebx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], edi
mov edi, dword [ebp + 8]
je 0x1803a931
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.18006e74
add eax, 0x10
xor ecx, ecx
push 7
pop ebx
cmp dword [eax - 0xc], ecx
je 0x1803a934
mov byte [ebp - 8], cl
jmp 0x1803a934
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
test bl, 4
je 0x1803a941
lea ecx, [eax - 0x10]
call fcn.18004637
test bl, 2
je 0x1803a94e
lea ecx, [esi - 0x10]
call fcn.18004637
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18004637
cmp byte [ebp - 8], 0
je 0x1803a966
mov ebx, 0x80070057
jmp 0x1803a9e2
call fcn.18003fd3
push eax
lea ecx, [ebp + 8]
call fcn.18006df7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push edi
call fcn.1803ae81
mov esi, eax
test esi, esi
js 0x1803a9d5
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1800edf0
mov ecx, dword [eax]
call fcn.1800881c
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18004637
test esi, esi
js 0x1803a9d5
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
call fcn.1803a666
mov esi, eax
test esi, esi
js 0x1803a9d5
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.1803afb9
mov esi, eax
test esi, esi
jns 0x1803a9f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.18004637
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, 0x181c89d8
call fcn.18016d9f
xor ebx, ebx
jmp 0x1803a9d7
Function at 0x1803f6bb
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 0x1803f6fe
push str.GOOGLEUPDATEAPPLICATIONCOMMANDS
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1803f6fe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
jne 0x1803f72c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1803f715
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1803f731
movzx edi, di
or edi, 0x80070000
jmp 0x1803f731
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1803f727
mov edi, 0x80070006
jmp 0x1803f731
cmp dword [eax], 1
je 0x1803f731
mov edi, 0x8000ffff
test esi, esi
je 0x1803f73c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x18040192
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.18003fd3
push eax
mov ecx, ebx
call fcn.18006df7
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.18006e74
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 0x180401ef
push dword [edi - 0xc]
lea ecx, [ebp + 8]
call fcn.18006f85
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, 0x18004a03
je 0x1804024a
cmp dword [ebp - 4], ebx
jl 0x1804024a
push dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.18006af1
cmp dword [ebp - 4], ebx
jle 0x1804024e
mov edi, dword [ebp - 0x10]
push dword [esi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006abf
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.18009c65
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18004637
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x1804021e
mov edi, dword [ebp - 8]
jmp 0x1804024e
test esi, esi
je 0x18040255
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18004637
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180403a8
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 0x180403c8
test eax, eax
je 0x180403c5
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 0x180403e0
test eax, eax
je 0x180403dd
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 0x180403f1
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 0x18040405
call fcn.1801d3e1
test edi, edi
je 0x1804040f
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
push edi
push 0x18040760
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 0x1804043e
test esi, esi
je 0x18040439
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, 0x18004a03
jne 0x18040451
call fcn.18013c6a
mov ebx, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x18040461
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 0x18040595
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.18168e80
mov eax, dword [0x181c7008]
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 0x180406ce
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 0x18040628
test ecx, ecx
je 0x1804062c
mov ecx, 0x10000
cmp ebx, ecx
je 0x1804062c
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 0x180405f4
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.1800ea9b
test edi, edi
je 0x18040695
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.181482a3
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.18006d7a
jmp 0x180406ba
cmp ebx, 0x10002
jae 0x180406db
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800c298
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.18141824
leave
ret
call fcn.18142098
int3
Function at 0x18046440
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x180464f8
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x18046508
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x18046501
cmp eax, 0x7fffffff
ja 0x18046501
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x180464e8
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x180464e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x180464f6
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1804650b
call fcn.18013c6a
mov edi, eax
jmp 0x18046515
mov edi, 0x80004005
jmp 0x18046515
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 8]
mov ecx, esi
or esi, 0xffffffff
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x18046521
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18048c79
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov edi, ecx
mov edx, dword [eax]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push str.gupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18048cd5
call fcn.18013c6a
jmp 0x18048cf9
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.18047038
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x18048d9a
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.1800ea9b
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18049223
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18048d54
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18049259
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.18049259
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x34]
call fcn.180491a1
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.180490fa
jmp 0x18048d91
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.180490d5
mov ecx, eax
call fcn.18006a67
push ebx
lea ecx, [edi + 0x34]
call fcn.1804917c
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x18048d82
push dword [ebp - 0x20]
mov ecx, eax
push esi
call fcn.180492e6
push ebx
lea ecx, [edi + 0x40]
call fcn.180490d5
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
pop ebx
lea ecx, [ebp - 0x24]
call fcn.1800b3d9
pop edi
pop esi
leave
ret 0xc