joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5981c8d4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x5981c98a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5981c908
call sub.user32.dll_EmptyClipboard
call sub.user32.dll_CloseClipboard
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5981c974
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
je 0x5981c96f
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, esi
pop ecx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
push ebx
call sub.kernel32.dll_GlobalUnlock
push ebx
push 0xd
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981c991
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x5981eb28
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x5981ecdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.5981ea5c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5981ecba
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x598579d8], 0
jne 0x5981ec8e
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.5981a2c0
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call sub.madBasic_.bpl__Madstrings_IntToHexExA_qqruiic
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x5981ecfc
call sub.rtl120.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x2c]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
test edi, edi
sete bl
test bl, bl
je 0x5981ec02
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call sub.madBasic_.bpl__Madstrings_IntToHexExA_qqruiic
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x5981ecfc
call sub.rtl120.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x34]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 4
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
jne 0x5981ec1d
xor esi, esi
push 0
push 0x5981ed14
push 0x5981ed20
push 0
call sub.user32.dll_MessageBoxA
jmp 0x5981ec7d
test bl, bl
je 0x5981ec64
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push 4
push 0x1000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [esi], ebx
mov eax, ebx
mov edx, 0x28
call fcn.59802018
mov eax, dword [esi]
mov dword [eax + 4], edi
add eax, 8
push eax
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x5981ec7d
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x5981ec8e
mov eax, esi
call sym.madExcept_.bpl__Madexcept_HideLeak_qqrpv
mov dword [0x598579d8], esi
cmp dword [0x598579d8], 0
je 0x5981eca4
mov eax, dword [0x598579d8]
mov eax, dword [eax]
inc dword [eax]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981ecc1
mov eax, dword [ebp - 8]
call fcn.5981eb14
ret
Function at 0x59822d30
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x59857a04], 0
jne 0x59822dc3
xor eax, eax
call sub.madBasic_.bpl__Madtools_MsgHandlerWindow_qqrui
mov dword [0x59857a04], eax
cmp dword [0x59857a04], 0
je 0x59822dc3
mov eax, 0x59822b94
xor ecx, ecx
xor edx, edx
call sub.madBasic_.bpl__Madtools_AddMsgHandler_qqrpqqrp6HWND__uiiiri_vuiui
mov dword [0x59857a08], eax
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x59857a18], eax
push 0x598579fc
push 4
push 0
push 0x59822bdc
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x59857a00], eax
cmp dword [0x59857a00], 0
je 0x59822dc3
mov edx, 0x59822dd0
mov eax, dword [0x598579fc]
call sym.madExcept_.bpl__Madexcept_NameThread_qqruix20System_UnicodeString
push 2
mov eax, dword [0x59857a00]
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [0x59857a00]
push eax
call sub.kernel32.dll_ResumeThread
ret

Function at 0x59822e0c
Capabilities:
Terminate thread

Disassembly:
push ebx
cmp dword [0x59857a04], 0
je 0x59822edd
mov ebx, dword [0x59857a18]
xor eax, eax
mov dword [0x59857a18], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [0x59857a14], 0
je 0x59822e55
mov ebx, dword [0x59857a14]
xor eax, eax
mov dword [0x59857a14], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [0x59857a10], 0xffffffff
mov eax, 0x59822b94
xor ecx, ecx
xor edx, edx
call sub.madBasic_.bpl__Madtools_DelMsgHandler_qqrpqqrp6HWND__uiiiri_vuiui
push 0x1f4
mov eax, dword [0x59857a00]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x59822ea2
push 0
mov eax, dword [0x59857a00]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x59857a1c], 0
je 0x59822ea2
mov eax, dword [0x59857a1c]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [0x59857a1c], eax
mov eax, dword [0x59857a00]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x598579fc]
call fcn.5981ad20
xor eax, eax
mov dword [0x59857a00], eax
xor eax, eax
mov dword [0x598579fc], eax
xor eax, eax
mov dword [0x59857a04], eax
pop ebx
ret
Function at 0x5982b094
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5982b0c0
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x5982b0c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5982ccbc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
or dword [ebp + 0xc], 0xc11c
cmp byte [sym.madExcept_.bpl__Madexcept_IgnoreSmtpCert], 0
je 0x5982cce2
or dword [ebp + 0xc], 0x80000
push 1
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 1
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 1
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0x11
lea eax, [ebp - 0x3c]
push eax
push 1
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.5982cc54
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
lea eax, [ebx + 0x44]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x18]
mov esi, eax
mov eax, esi
call sub.rtl120.bpl__Activex_Succeeded_qqrl
test al, al
jne 0x5982cd62
cmp esi, 0x80090318
jne 0x5982cd6a
test edi, edi
je 0x5982cd6a
mov byte [ebx + 0x5c], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x5982cd9a
cmp dword [ebp - 0x24], 0
je 0x5982cd9a
push 0
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x5982cd90
mov esi, 0x80090304
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5982cdae
cmp dword [ebp - 0x18], 0
je 0x5982cdae
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5982cdbc
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeac
mov edi, edx
mov ebx, eax
mov byte [esp], 0
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
test edi, edi
je 0x5982ce41
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [sym.madExcept_.bpl__Madexcept_SmtpTimeout]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x5982cf7b
push 0
mov eax, dword [ebx + 0x74]
sub eax, esi
push eax
mov eax, dword [ebx + 0x78]
add eax, esi
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_recv
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x5982cf7b
mov eax, dword [esp + 4]
add esi, eax
test esi, esi
sete al
neg al
sbb edi, edi
push 1
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x140], eax
xor eax, eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x140]
push eax
push 1
mov dword [esp + 0x150], esi
xor eax, eax
mov dword [esp + 0x154], eax
lea eax, [esp + 0x150]
push eax
push 1
mov dword [esp + 0x160], 2
xor eax, eax
mov dword [esp + 0x164], eax
lea eax, [esp + 0x160]
push eax
push 1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.5982cc54
push 0
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [ebx + 0x54]
xor ecx, ecx
mov eax, ebx
call fcn.5982ccbc
mov ebp, eax
sub ebp, 0x80090318
je 0x5982cf73
sub ebp, 0x7ff6fce8
je 0x5982cef0
sub ebp, 0x90312
je 0x5982cf38
sub ebp, 0xe
je 0x5982cf64
jmp 0x5982cf7b
cmp dword [esp + 0x30], 5
jne 0x5982cf32
mov eax, dword [esp + 0x2c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebx + 0x84], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 2
mov byte [esp], 1
jmp 0x5982cf7b
cmp dword [esp + 0x30], 5
jne 0x5982cf5d
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov esi, dword [esp + 0x2c]
jmp 0x5982cdd6
xor esi, esi
jmp 0x5982cdd6
or dword [esp + 8], 0x80
xor edi, edi
jmp 0x5982cdd6
or edi, 0xffffffff
jmp 0x5982cdd6
movzx eax, byte [esp]
add esp, 0x154
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5982cf8c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x5982d109
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
mov dword [ebp - 0x10], 0x400
cmp dword [ebx + 8], 0
je 0x5982d0e5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x68]
jbe 0x5982d0e5
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x10], eax
jmp 0x5982d0e5
cmp edi, dword [ebp - 0x10]
jbe 0x5982d002
mov esi, dword [ebp - 0x10]
jmp 0x5982d004
mov esi, edi
cmp dword [ebx + 8], 0
je 0x5982d0ca
mov edx, dword [ebx + 0x78]
add edx, dword [ebx + 0x60]
mov eax, dword [ebp - 0xc]
mov ecx, esi
call sub.rtl120.bpl__System_Move_qqrpxvpvi
push 3
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x78]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x78]
add eax, dword [ebx + 0x60]
add eax, esi
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push eax
push 3
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x6c]
push eax
push 3
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 6
xor eax, eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
push 3
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.5982cc54
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebx + 0x54]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x64]
test eax, eax
jne 0x5982d0bf
push 0
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x5982d0c3
xor eax, eax
jmp 0x5982d0c5
mov al, 1
mov byte [ebp - 5], al
jmp 0x5982d0e0
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
setg byte [ebp - 5]
add dword [ebp - 0xc], esi
sub edi, esi
cmp byte [ebp - 5], 0
je 0x5982d0f3
test edi, edi
ja 0x5982cff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5982d110
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5983045c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x59830583
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x598304a6
mov dword [ebp - 0x10], 0x600
jmp 0x598304ad
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call sub.rtl120.bpl__System__LStrSetLength_qqrv
test esi, esi
jbe 0x59830565
cmp esi, dword [ebp - 0x10]
jae 0x598304d3
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, esi
call sub.rtl120.bpl__System__LStrSetLength_qqrv
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5983050e
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp eax, dword [ebp - 0x14]
je 0x59830512
xor ebx, ebx
jmp 0x59830565
cmp byte [ebp + 8], 0
je 0x59830531
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call sub.madBasic_.bpl__Madcrypt_Encode_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.5982f7a0
mov ebx, eax
jmp 0x5983053d
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.5982f7a0
mov ebx, eax
test bl, bl
je 0x59830565
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, edi
call fcn.5982fd34
test esi, esi
ja 0x598304c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5983058a
lea eax, [ebp - 0x18]
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x598367b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x59836904
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call sub.madBasic_.bpl__Madstrings_ExtractFilePathW_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [ebp - 4], 0
je 0x598368da
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ebx, eax
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x5983682e
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call sub.rtl120.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5983687a
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x59836876
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.598367b0
pop ecx
test al, al
je 0x59836872
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x59836876
xor ebx, ebx
jmp 0x598368dc
mov bl, 1
jmp 0x598368dc
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x598368d6
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.598367b0
pop ecx
test al, al
je 0x598368d2
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x10]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x598368d6
xor ebx, ebx
jmp 0x598368dc
mov bl, 1
jmp 0x598368dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5983690b
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x59842a10
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x59857af0
push 0x59857aec
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x59842a68
push 0x59857ae4
push 0
push 0
push 0x59842994
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x59857ae8], eax
cmp dword [0x59857ae8], 0
je 0x59842a68
mov edx, 0x59842a78
mov eax, dword [0x59857ae4]
call sym.madExcept_.bpl__Madexcept_NameThread_qqruix20System_UnicodeString
push 2
mov eax, dword [0x59857ae8]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x59842abc
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffff6c
cmp dword [0x59857ae4], 0xffffffff
je 0x59842ba4
mov eax, dword [0x59857ae8]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.5981b560
test al, al
jne 0x59842b2c
lea eax, [esp + 4]
mov edx, 0x90
call fcn.59802018
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x59857af0]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [0x59857af0]
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
mov eax, dword [0x59857ae8]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x59842b37
mov eax, dword [0x59857af0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x59857aec]
push eax
call sub.kernel32.dll_CloseHandle
push 0x32
mov eax, dword [0x59857ae8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x59842b74
push 0
mov eax, dword [0x59857ae8]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x59857af4], 0
je 0x59842b74
mov eax, dword [0x59857af4]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [0x59857af4], eax
mov eax, dword [0x59857ae8]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x59857ae4]
call fcn.5981ad20
mov dword [0x59857ae4], 0xffffffff
add esp, 0x94
ret
Function at 0x59844050
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59844115
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x598440ba
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x598440fc
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x598440fc
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x598440fc
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x210]
mov eax, ebx
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5984411c
lea eax, [ebp - 0x210]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret

Function at 0x598444cc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x598445ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x598445d8
push 0x59844604
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.59801964
test eax, eax
je 0x59844513
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x59844539
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call sub.rtl120.bpl__System___lldiv_qqrv
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call sub.madBasic_.bpl__Madstrings_IntToStrExW_qqrjib
push dword [ebp - 0x64]
push 0x5984462c
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call sub.rtl120.bpl__System___lldiv_qqrv
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call sub.madBasic_.bpl__Madstrings_IntToStrExW_qqrjib
push dword [ebp - 0x68]
push 0x5984463c
mov eax, ebx
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598445d1
lea eax, [ebp - 0x68]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret