joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18032824
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [edi + 4]
xor ebx, ebx
push eax
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea esi, [edi + 0x10]
mov ecx, 0x180fa248
mov dword [edi], 0x180d0cf8
call fcn.18003dbf
push str.unknown
lea eax, [edi + 0x14]
call fcn.18003fba
lea esi, [edi + 0x18]
mov ecx, 0x180fa248
call fcn.18003dbf
mov al, byte [ebp + 8]
lea esi, [edi + 0x28]
mov ecx, 0x180fa248
mov byte [edi + 0x1c], al
mov byte [edi + 0x1d], bl
mov dword [edi + 0x20], 0xa
mov dword [edi + 0x24], ebx
call fcn.18003dbf
push 0x180c29a4
lea eax, [edi + 0x2c]
call fcn.18003fba
lea esi, [edi + 0x30]
mov ecx, 0x180fa248
call fcn.18003dbf
mov dword [edi + 0x34], ebx
lea esi, [edi + 0x3c]
mov dword [edi + 0x38], ebx
call fcn.18064a9e
lea esi, [edi + 0x54]
call fcn.18064a9e
push dword [ebp + 8]
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov eax, 0x180c37b4
mov dword [edi + 0x70], eax
lea ecx, [edi + 0x80]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
lea ecx, [edi + 0x90]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
lea ecx, [edi + 0xa0]
mov dword [ecx], eax
lea eax, [edi + 0xb0]
push eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
call fcn.1806eebc
pop ecx
pop ecx
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x18032958
push 3
push 4
pop esi
push esi
mov dword [ebp - 0x10], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x180d031c
push eax
mov dword [ebp - 8], 3
mov dword [ebp - 4], esi
call fcn.18001000
add esp, 0xc
push 8
call fcn.1809d904
pop ecx
cmp eax, ebx
je 0x18032971
mov dword [eax + 4], ebx
mov dword [eax], 0x180d0dd0
mov esi, eax
jmp 0x18032973
xor esi, esi
mov ecx, dword [edi + 0x6c]
cmp esi, ecx
je 0x18032987
cmp ecx, ebx
je 0x18032984
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x6c], esi
pop esi
mov eax, edi
pop ebx
leave
ret 8
Function at 0x1804452a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
xor esi, esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.18044479
mov edi, eax
add esp, 0x14
cmp edi, esi
jge 0x180445a6
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x1804462d
push 0xfffffffffffffffe
pop ebx
push ebx
push 4
pop esi
push esi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push edi
push str._0x_08x_
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._failed_to_create_CompletePingSender_
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.18001000
add esp, 0x10
xor esi, esi
jmp 0x1804462d
push esi
push esi
push dword [ebp - 4]
push 0x180446be
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
neg eax
sbb eax, eax
and eax, dword [fcn.1800232e]
cmp eax, esi
je 0x180445ce
mov dword [ebp - 4], esi
jmp 0x1804461f
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov edi, eax
je 0x18044615
push 0xfffffffffffffffe
pop ebx
push ebx
push 4
pop esi
push esi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._failed_to_start_wait_thread_for_app_command_process_exit__0x_08x_
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.18001000
add esp, 0xc
xor esi, esi
mov eax, dword [ebp - 4]
push edi
push esi
call fcn.1804463f
cmp dword [ebp - 8], esi
je 0x1804462d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1804463a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18048ff7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, eax
push esi
call fcn.1809d315
lea edx, [esi + eax*2]
pop ecx
mov ecx, esi
mov eax, 0x811c9dc5
cmp esi, edx
je 0x18049020
movzx esi, word [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
inc ecx
cmp ecx, edx
jne 0x1804900f
pop esi
ret
Function at 0x1804e22f
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebx], 0x180da460
call fcn.1804e3eb
and dword [ebx + 0x80], 0
cmp byte [ebx + 0x90], 0
jne 0x1804e2ba
mov eax, dword [ebx + 0x48]
cmp dword [eax - 0xc], 0
je 0x1804e2ba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1804e2ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1804e2ba
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x1804e2ba
mov esi, dword [ebx + 0x48]
push 0xffffffffffffffff
push 9
pop edi
push edi
mov dword [ebp - 0x10], ecx
call fcn.18001d8a
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
call fcn.1800fc86
push eax
push esi
lea eax, [ebp - 0x10]
push str._SimpleRequest__Failed_to_delete_file:__s__0x_08x_.
push eax
call fcn.18001000
add esp, 0x10
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x1804e2cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx + 0x88]
test edi, edi
je 0x1804e2da
call fcn.1804f9d6
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x1804e2e9
call fcn.1804f989
lea esi, [ebx + 0x64]
call fcn.180492cf
mov eax, dword [ebx + 0x60]
push 0x10
pop esi
sub eax, esi
call fcn.18004250
mov eax, dword [ebx + 0x58]
sub eax, esi
call fcn.18004250
mov eax, dword [ebx + 0x54]
sub eax, esi
call fcn.18004250
mov eax, dword [ebx + 0x48]
sub eax, esi
call fcn.18004250
mov eax, dword [ebx + 0x44]
sub eax, esi
call fcn.18004250
lea ecx, [ebx + 0x24]
call fcn.1800ac8b
lea ecx, [ebx + 4]
call fcn.1800ac8b
pop edi
pop esi
mov dword [ebx], 0x180da400
pop ebx
leave
ret
Function at 0x1804ed34
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x88]
xor edi, edi
xor ecx, ecx
cmp dword [eax + 0x3c], edi
mov eax, dword [esi + 0x48]
setne cl
push edi
push 0x80
lea ecx, [ecx + ecx + 2]
push ecx
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1804ed78
call fcn.1800fc86
jmp 0x1804ee1f
mov eax, dword [esi + 0x88]
cmp dword [eax + 0x3c], edi
je 0x1804ee14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1804ee04
cmp eax, 0x7fffffff
ja 0x1804ee04
mov ebp, dword [esi + 0x88]
cmp eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
setg al
cmp dword [esp + 0x10], ecx
push edi
setne dl
or al, dl
je 0x1804edeb
push 0x80
push 2
push edi
push edi
mov dword [ebp + 0x40], edi
mov esi, dword [esi + 0x48]
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp ebx, esi
je 0x1804ede4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
cmp ebx, 0xffffffff
jne 0x1804ee17
jmp 0x1804ed6e
push edi
xor eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1804ee17
call fcn.1800fc86
mov esi, eax
jmp 0x1804ee09
mov esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1804ee1f
mov dword [eax + 0x40], edi
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x18057781
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
movzx ecx, byte [0x180fb8d9]
sub esp, 0x24
neg ecx
push ebx
push esi
sbb ecx, ecx
and ecx, 0x180fbb80
push edi
mov esi, eax
je 0x180577d0
push 2
pop edi
xor ebx, ebx
push edi
inc ebx
push ebx
mov dword [esp + 0x18], ecx
call fcn.18001d8a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push str._ThreadPool::ThreadPool_
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.18001000
pop ecx
pop ecx
cmp dword [esi + 4], 0
je 0x18057860
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 4]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x18057860
jmp 0x18057817
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esi + 8]
call edi
xor ecx, ecx
cmp eax, dword [esp + 0xc]
jae 0x1805780d
or ecx, 0xffffffff
sub ecx, dword [esp + 0xc]
add ecx, eax
cmp ecx, ebx
jae 0x1805781f
mov eax, dword [esi]
test eax, eax
jne 0x180577f5
jmp 0x18057860
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x18057860
push 0xfffffffffffffffe
pop ebx
xor edi, edi
push ebx
inc edi
push edi
mov dword [esp + 0x28], ecx
call fcn.18001d8a
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push str._ThreadPool::ThreadPool__timeout_elapsed_
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call fcn.18001000
pop ecx
pop ecx
mov esi, dword [esi + 4]
test esi, esi
je 0x1805786e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18057c07
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x18057c6f
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x18057c68
push 0xfffffffffffffffe
pop ebx
push ebx
push 7
pop edi
push edi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
call fcn.1800fc86
push eax
lea eax, [ebp - 0x18]
push str._OpenSCManager_fail__0x_x_
push eax
call fcn.18001000
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push 4
mov esi, str.Schedule
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x18057cd4
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x18057cc9
push 0xfffffffffffffffe
pop ebx
push ebx
push 7
pop edi
push edi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
call fcn.1800fc86
push eax
push esi
lea eax, [ebp - 0x18]
push str._OpenService_failed___s__0x_x_
push eax
call fcn.18001000
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18057c68
push 6
mov dword [ebp - 0x34], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x18057d4f
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x18057d36
push 0xfffffffffffffffe
pop ebx
push ebx
push 7
pop edi
push edi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
call fcn.1800fc86
push eax
push esi
lea eax, [ebp - 0x18]
push str._QueryServiceStatus_failed___s__0x_x_
push eax
call fcn.18001000
add esp, 0x10
xor bl, bl
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 8]
call esi
mov al, bl
jmp 0x18057c6a
cmp dword [ebp - 0x30], 4
je 0x18057d38
cmp dword [ebp - 0x30], 2
je 0x18057d38
jmp 0x18057d36
Function at 0x1805a3a0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
mov edi, eax
xor eax, eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push str.gupdate
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x1805a3e8
call fcn.1800fc86
jmp 0x1805a429
mov eax, edi
call fcn.18006659
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + 0xc]
mov dword [ebp + 8], eax
add eax, ecx
lea esi, [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.180182eb
push dword [ebp + 8]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.1805a4c9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1805a42e
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
mov edi, eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x1805a483
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1805a47c
call fcn.1800fc86
jmp 0x1805a4c4
mov eax, 0x8007000d
jmp 0x1805a4c4
mov eax, edi
call fcn.18006659
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + 0xc]
mov dword [ebp + 8], eax
add eax, ecx
lea esi, [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.180182eb
push dword [ebp + 8]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.1805a4c9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1805d5f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0x2c
lea edi, [esi + 0x9c]
push 0
push edi
call fcn.1809d820
add esp, 0xc
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
push edi
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test bl, bl
je 0x1805d633
xor eax, eax
jmp 0x1805d639
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
test bl, bl
pop ebx
jne 0x1805d652
cmp eax, 0x3e5
je 0x1805d652
push 0xa
pop ecx
mov eax, esi
call fcn.1805d8ba
leave
ret
mov dword [esi + 0x80], 5
leave
ret

Function at 0x1805d95a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.1805d122
mov dword [ebp - 0x30], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push esi
lea eax, [ebp - 0x30]
call fcn.1805d8db
test al, al
jne 0x1805d9b6
cmp dword [ebp - 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1805d99c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], 0
je 0x1805d9a7
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], 0
je 0x1805d9b2
push dword [ebp - 8]
call esi
xor al, al
jmp 0x1805da07
and dword [ebp - 4], 0
push ebx
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test bl, bl
je 0x1805d9e2
xor eax, eax
jmp 0x1805d9e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x1805d9f7
cmp eax, 0x3e5
je 0x1805d9f7
xor al, al
jmp 0x1805da06
push dword [ebp + 8]
mov ebx, esi
call fcn.1805dac8
test al, al
setne al
pop ebx
pop esi
leave
ret 4
Function at 0x1805e3b1
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x69], 0
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x50], 0xf
call fcn.18003cac
push edi
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4c]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1805e44d
push 0xa
lea eax, [ebp - 0x4c]
push edi
push eax
mov byte [ebp - 0x69], 1
call fcn.1809e859
mov esi, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x7c], eax
cmp esi, eax
ja 0x1805e44d
cmp dword [ebp - 0x50], eax
je 0x1805e44d
push 1
push eax
lea ecx, [ebp - 0x68]
call fcn.18003b92
test al, al
je 0x1805e44b
push esi
lea ecx, [ebp - 0x68]
call fcn.18003cac
xor edi, edi
push edi
mov dword [ebp - 0x78], edi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
jmp 0x1805e4e1
cmp dword [ebp - 0x70], 0
jbe 0x1805e505
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0xa0]
call fcn.18054716
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x94]
jne 0x1805e488
call fcn.1809e0d9
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x94]
push dword [ebp - 0x74]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x1805e4fa
mov eax, dword [ebp - 0x80]
test eax, eax
jbe 0x1805e4fa
add dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x94]
jne 0x1805e4c1
call fcn.1809e0d9
push dword [ebp - 0x80]
lea eax, [ebp - 0x68]
push dword [ebp - 0x94]
call fcn.1805ed9d
lea esi, [ebp - 0xa0]
call fcn.180376b4
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call edi
mov ebx, eax
test ebx, ebx
jne 0x1805e45d
mov byte [ebp - 0x69], 0
jmp 0x1805e551
lea esi, [ebp - 0xa0]
call fcn.180376b4
test ebx, ebx
je 0x1805e4f4
cmp byte [ebp - 0x69], 0
je 0x1805e517
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x78], eax
jne 0x1805e4f4
cmp dword [ebp - 0x84], 0
mov byte [ebp - 0x69], 1
je 0x1805e551
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x68]
call fcn.1805eb71
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x84]
xor ebx, ebx
call fcn.18027161
push ebx
push 1
lea esi, [ebp - 0xa4]
call fcn.18027253
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.18003cc8
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x69]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809cca5
leave
ret
Function at 0x1805f8a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x28], edi
je 0x1805f9b7
cmp byte [edi + 0x41], 0
je 0x1805f9b7
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1805f8e3
xor al, al
jmp 0x1805f9b9
lea esi, [ebp - 0x20]
call fcn.1805f678
lea eax, [edi + 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.1805f6f4
mov esi, eax
call fcn.1805f9c8
mov ebx, eax
add ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
call fcn.1805f6f4
mov esi, eax
call fcn.1805f9c8
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x24]
push esi
push ebx
push eax
push dword [ebp - 0x2c]
call dword [edx + 0x18]
sub eax, 0
je 0x1805f94f
dec eax
je 0x1805f953
dec eax
dec eax
je 0x1805f9b3
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.18003cc8
mov al, bl
jmp 0x1805f9b9
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x20]
call fcn.1805f6f4
mov esi, eax
call fcn.1805f9c8
mov ebx, dword [ebp - 0x24]
sub ebx, eax
je 0x1805f991
push dword [edi + 0x4c]
lea eax, [ebp - 0x40]
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.1805f6f4
mov esi, eax
call fcn.1805f9c8
push eax
call fcn.180b55c5
add esp, 0x10
cmp ebx, eax
jne 0x1805f93d
cmp byte [edi + 0x41], 0
je 0x1805f9b3
test ebx, ebx
jne 0x1805f8f1
push ebx
push 8
pop ebx
lea edi, [ebp - 0x20]
call fcn.1805f6b0
mov edi, dword [ebp - 0x28]
jmp 0x1805f8f1
mov bl, 1
jmp 0x1805f93f
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809cca5
leave
ret
Function at 0x1806b93d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x224], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
call fcn.1809d820
mov eax, dword [esi]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1806ba0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov ebx, eax
je 0x1806b9eb
push 0xffffffffffffffff
push 4
pop edi
push edi
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
or dword [ebp - 0x218], 0xffffffff
push ebx
push dword [esi]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push str._Failed_to_read_environment_variable___s___d_
push eax
mov dword [ebp - 0x214], edi
call fcn.18001000
add esp, 0x10
test ebx, ebx
jle 0x1806b9fb
and ebx, 0xffff
or ebx, 0x80070000
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809cca5
leave
ret
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
push 4
pop edi
je 0x1806ba61
push 3
pop ebx
push ebx
push edi
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
lea eax, [ebp - 0x220]
push str._read_unique_event___s___s_
push eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], edi
call fcn.18001000
add esp, 0x10
lea eax, [ebp - 0x23c]
call fcn.180044b1
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea ebx, [ebp - 0x23c]
call fcn.18004984
pop ecx
pop ecx
push dword [ebp - 0x23c]
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
test eax, eax
jne 0x1806bb1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov esi, eax
je 0x1806baf9
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
or dword [ebp - 0x218], 0xffffffff
push esi
push dword [ebp - 0x23c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push str._::OpenEvent_failed___s___d_
push eax
mov dword [ebp - 0x214], edi
call fcn.18001000
add esp, 0x10
test esi, esi
jle 0x1806bb09
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
lea esi, [ebp - 0x23c]
call fcn.180044d7
mov eax, edi
jmp 0x1806b9fd
xor edi, edi
jmp 0x1806bb0b
Function at 0x1806bbce
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10818
call fcn.180a6c10
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebx]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x10814], esi
mov dword [ebp - 0x10810], edi
call fcn.1800c3b2
pop ecx
test al, al
jne 0x1806bc0d
mov eax, 0x80070002
jmp 0x1806bcf0
call fcn.1800c234
xor eax, eax
push 0xfffe
mov word [ebp - 0x10808], ax
xor edi, edi
lea eax, [ebp - 0x10806]
push edi
push eax
call fcn.1809d820
mov eax, dword [ebx]
mov ecx, dword [esi]
add esp, 0xc
push eax
push 0x8000
lea eax, [ebp - 0x10808]
push eax
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
call edi
xor esi, esi
mov dword [ebp - 0x10818], eax
test eax, eax
jbe 0x1806bcee
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp + esi*2 - 0x10808]
push eax
lea eax, [ebp - 0x1080c]
call fcn.18003fba
push dword [ebx]
lea eax, [ebp - 0x808]
push 0x400
push eax
mov eax, dword [ebp - 0x10814]
push 0
push dword [ebp - 0x1080c]
push dword [eax]
call edi
push dword [ebp - 0x10810]
lea eax, [ebp - 0x1080c]
call fcn.18026f3c
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1800422d
mov eax, dword [ebp - 0x1080c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff0
lea esi, [esi + ecx + 1]
call fcn.18004250
cmp esi, dword [ebp - 0x10818]
jb 0x1806bc5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1809cca5
leave
ret