joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180485b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.180f1290
mov eax, dword [0x1826b00c]
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 0x180486ea
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 0x18048644
test ecx, ecx
je 0x18048648
mov ecx, 0x10000
cmp ebx, ecx
je 0x18048648
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 0x18048610
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.18011e32
test edi, edi
je 0x180486b1
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.180d0fcb
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.180070d0
jmp 0x180486d6
cmp ebx, 0x10002
jae 0x180486f7
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800f206
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.180b1200
leave
ret
call fcn.180b1c3d
int3
Function at 0x1804fe4a
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 0x1804ff02
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x1804ff12
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1804ff0b
cmp eax, 0x7fffffff
ja 0x1804ff0b
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 0x1804fef2
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 0x1804feed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x1804ff00
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1804ff15
call fcn.18016093
mov edi, eax
jmp 0x1804ff1f
mov edi, 0x80004005
jmp 0x1804ff1f
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 8]
mov ecx, esi
or esi, 0xffffffff
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x1804ff2b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18053272
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
lea eax, [ebp - 4]
xor edx, edx
push edx
push eax
push edx
push edx
push esi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
jne 0x1805335b
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 8]
cmp eax, 5
jne 0x180532d5
mov eax, dword [ebp + 8]
test eax, eax
je 0x180532c0
push dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
dec eax
push eax
mov edx, esi
call fcn.18053272
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov esi, eax
jmp 0x180532c5
mov esi, 0x251d
push 1
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, esi
jmp 0x1805335b
xor esi, esi
inc esi
cmp eax, 0x1c
jne 0x18053317
movzx eax, word [ecx + 0x26]
push eax
movzx eax, word [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x22]
push eax
movzx eax, word [ecx + 0x20]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
push str._x:_x:_x:_x:_x:_x:_x:_x
push dword [ebp + 0xc]
call fcn.18051291
add esp, 0x28
jmp 0x18053340
cmp ax, si
jne 0x1805334e
movzx eax, byte [ecx + 0x1b]
push eax
movzx eax, byte [ecx + 0x1a]
push eax
movzx eax, byte [ecx + 0x19]
push eax
movzx eax, byte [ecx + 0x18]
push eax
push 0x18232ad4
push dword [ebp + 0xc]
call fcn.18051291
add esp, 0x18
push esi
push dword [ebp - 4]
call dword [sym.imp.DNSAPI.dll_DnsFree]
xor eax, eax
jmp 0x1805335b
push esi
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, 0x251d
pop esi
leave
ret
Function at 0x180539a4
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.edgeupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18053a00
call fcn.18016093
jmp 0x18053a24
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.18050b55
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x18053ac8
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.18011e32
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18053f51
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18053a7f
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18053f87
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.18053f87
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x34]
call fcn.18053ecf
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.18053e28
jmp 0x18053abf
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.18053e03
mov ecx, eax
call fcn.18009d7d
push ebx
lea ecx, [edi + 0x34]
call fcn.18053eaa
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x18053ab0
push dword [ebp + 8]
mov ecx, eax
push dword [ebp - 0x20]
push esi
call fcn.18054014
push ebx
lea ecx, [edi + 0x40]
call fcn.18053e03
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.1800e398
pop edi
pop esi
leave
ret 0xc
Function at 0x180591b7
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x180591ee
call fcn.18016093
mov ebx, eax
jmp 0x180592c6
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180592ad
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1805924d
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180592b4
cmp eax, 3
je 0x18059250
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.180c7aa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180592ad
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180592b4
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
je 0x180592b4
call edi
sub eax, dword [ebp - 0x24]
cmp eax, 0x1f40
jae 0x1805929e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.180c7aa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x18059266
jmp 0x180592a1
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180592b4
mov ebx, 0x800705b4
jmp 0x180592b4
call fcn.18016093
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x180592c1
push esi
call edi
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret

Function at 0x18059322
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x18059397
push esi
push edi
push 4
push str.Schedule
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18059385
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18059383
cmp dword [ebp - 0x1c], 4
je 0x18059381
cmp dword [ebp - 0x1c], 2
jne 0x18059383
mov bl, 1
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x18059390
push esi
call edi
push dword [ebp - 0x24]
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret
Function at 0x180597b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
push 0x18059833
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18059816
mov eax, dword [esi + 0x30]
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], eax
cmp edi, eax
je 0x18059815
sub eax, edi
sar eax, 2
cmp eax, dword [esi + 0x38]
ja 0x18059815
mov eax, dword [edi]
lea ecx, [esi + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.18059e35
add edi, 4
cmp edi, dword [ebp - 8]
jne 0x180597fa
xor ebx, ebx
pop edi
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x1805982b
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x1805982d
cmp dword [esi + 0x38], ebx
jbe 0x1805982d
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x18059bb7
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.180597b8
test al, al
jne 0x18059bf0
mov eax, dword [esi + 0x20]
push esi
push 0x18059b70
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18059be9
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x18059bf0
xor eax, eax
jmp 0x18059c84
mov eax, dword [esi + 0x24]
xor ebx, ebx
mov edi, dword [esi + 0x20]
inc ebx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x18059c82
mov eax, dword [edi]
push 0
push 0xf060
push 0x112
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x18059c67
push 0xfffffffffffffff0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1d
test al, 1
je 0x18059c3d
push 8
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x18059c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x40], 0
je 0x18059c60
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_FlashWindow]
mov al, bl
mov byte [ebp - 1], al
jmp 0x18059c6a
mov al, byte [ebp - 1]
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x18059c04
test al, al
je 0x18059c82
push dword [ebp + 8]
mov ecx, esi
call fcn.1805948f
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18059d12
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 4
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
jne 0x18059d45
xor al, al
jmp 0x18059dbe
xor eax, eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x18059db2
mov eax, dword [ebp - 0x24]
mov esi, dword [esi + 0x10]
cmp esi, dword [eax + 0x14]
je 0x18059d9d
mov ebx, eax
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x18059d92
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.18013ffa
add esi, 4
cmp esi, dword [ebx + 0x14]
jne 0x18059d7a
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x18059d6d
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret 4

Function at 0x18059dcf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov edi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x18059e2c
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18059e04
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x18059e07
mov dl, byte [ebp - 1]
mov eax, dword [esi + 8]
inc edi
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x18059def
test dl, dl
je 0x18059e2c
push dword [ebp + 8]
mov ecx, esi
call fcn.1805948f
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x18059f68
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, esi
je 0x18059f93
test eax, eax
je 0x18059f8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x18059fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x1805bd05
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x1805bd59
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1805bd52
call fcn.18016093
jmp 0x1805bd7f
mov eax, 0x8007000d
jmp 0x1805bd7f
push dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
add edx, esi
push edx
push esi
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.18050b55
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
leave
ret

Function at 0x1805c164
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x1805c179
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x1805c11f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x1805c1a7
xor al, al
jmp 0x1805c1b8
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
pop esi
pop ebp
ret 4
Function at 0x18065685
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x180656ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1801da29
jmp 0x18065761
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x180656ce
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x180656d0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x18065755
jg 0x180656e5
test esi, esi
je 0x18065755
test ecx, ecx
jl 0x1806572e
jg 0x180656ef
test eax, eax
je 0x1806572e
cmp edi, ecx
jg 0x18065703
jl 0x180656f9
cmp esi, eax
jae 0x18065703
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.180c7520
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x18065731
mov edx, dword [ebp + 8]
test edi, edi
jl 0x18065755
jg 0x1806573b
test esi, esi
je 0x18065755
cmp dword [ebx + 0x4c], 0
je 0x18065755
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.180f457e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1806576a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x18065791
jl 0x18065788
test esi, esi
jne 0x18065791
xor eax, eax
xor edx, edx
jmp 0x1806589e
cmp dword [edi + 0x38], 0
je 0x180657a6
push ebx
push esi
push dword [ebp + 8]
call fcn.1801db07
jmp 0x1806589e
mov eax, dword [edi + 0x1c]
mov edx, esi
mov dword [esp + 0x10], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x180657bc
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x180657be
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
test eax, eax
je 0x18065806
cmp eax, esi
jb 0x180657d4
mov eax, esi
mov dword [esp + 0xc], eax
push eax
push ecx
push dword [ebp + 8]
call fcn.180c7520
mov ecx, dword [esp + 0x18]
mov edx, esi
mov eax, dword [ebp + 8]
sub edx, ecx
add eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x14], edx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1806580d
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp dword [edi + 0x4c], 0
je 0x18065891
mov ecx, edi
call fcn.18066863
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, 0xfff
jbe 0x18065869
mov ecx, dword [esp + 0xc]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.180f4b74
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [esp + 0x10]
add ecx, eax
sub edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
cmp eax, 0xfff
jne 0x18065865
cmp edx, eax
ja 0x1806582d
jmp 0x1806586d
sub esi, edx
jmp 0x18065897
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
test eax, eax
je 0x18065895
push dword [edi + 0x4c]
push edx
push 1
push dword [esp + 0x18]
call fcn.180f4b74
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
jmp 0x18065895
mov ecx, dword [esp + 0x14]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x18065b0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x18065b2f
xor eax, eax
jmp 0x18065bf6
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x18065b5b
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x18065b5b
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x18065bee
cmp dword [esi + 0x4c], 0
je 0x18065bf2
mov ecx, esi
call fcn.18066863
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x18065b7b
push dword [esi + 0x4c]
push eax
jmp 0x18065bb5
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x18065bf2
cmp eax, 1
jle 0x18065bc5
cmp eax, 3
jne 0x18065bf2
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1805c4f7
pop ecx
pop ecx
test al, al
jne 0x18065bee
or ebx, 0xffffffff
jmp 0x18065bee
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x18065be2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.180f457e
add esp, 0x10
cmp edi, eax
jne 0x18065bf2
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x18065bf2
mov eax, ebx
jmp 0x18065bf5
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret 4

Function at 0x180668b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1806690a
cmp byte [esi + 0x3d], bl
je 0x1806690a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x18066943
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x1806691b
sub eax, 1
je 0x1806691e
dec eax
sub eax, 1
jne 0x18066943
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1806693b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.180f457e
add esp, 0x10
cmp edi, eax
jne 0x18066943
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1806690c
xor al, al
jmp 0x1806690c