joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43082e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
xor edx, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x430876
mov dword [esp + 8], 0x91
mov dword [esp + 4], 0x4a4f94
mov dword [esp], 0x4a4faa
call dword [0x494088]
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x4308aa
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x43091e
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a4fe8
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
je 0x4308f6
xor ebx, ebx
mov dword [ebp - 0x20], ebx
jmp 0x43091e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x43092f
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x430940
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4309bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, 0x41
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
push ebx
sub esp, 0x16c
mov dword [ebp - 0x13c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x140], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov ecx, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x124], 0xffffffff
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x11c]
mov ecx, eax
mov ebx, eax
test ebx, ebx
je 0x430ad4
mov eax, dword [ebp - 0x13c]
cmp byte [eax + ebx], 0x5c
je 0x430a3a
dec ebx
jmp 0x430a23
cmp ebx, 0x103
ja 0x430bd0
mov eax, 0x104
inc ecx
mov esi, dword [ebp - 0x13c]
mov edi, edx
cmp ecx, eax
cmova ecx, eax
mov eax, dword [ebp - 0x13c]
rep movsb byte es:[edi], byte [esi]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x11c]
lea ecx, [eax + 1]
cmp ecx, 0x104
mov ecx, 0x103
cmovae eax, ecx
mov byte [ebp + eax - 0x11c], 0
lea eax, [ebp - 0x12c]
mov byte [ebp + ebx - 0x11c], 0
inc ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x430b69
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x430ba8
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a4f2d
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x430b17
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x430ba8
lea eax, [ebp - 0x128]
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4a500a
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x430ac7
lea eax, [ebp - 0x120]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x13c]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x430bbc
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x430bd0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x430e5f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov byte [edx], 0
mov dword [ebp - 0x1c], eax
mov dword [esp], ecx
mov dword [esp + 4], 2
call sub.msvcrt.dll_calloc
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
sub esp, 0xc
mov dword [ebp - 0x20], eax
call eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x430ef2
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
jne 0x430ef2
mov eax, dword [ebp - 0x20]
call eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x430efe
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
mov byte [edi + ebx - 1], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43c4c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
push ebx
sub esp, 0x16c
mov dword [ebp - 0x144], ecx
mov ecx, 0x41
mov dword [ebp - 0x140], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x124], 0xffffffff
mov dword [eax], ecx
mov dword [ebp - 0x120], 4
mov dword [esp], edx
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x11c]
mov ecx, eax
mov ebx, eax
test ebx, ebx
je 0x43c5dd
mov eax, dword [ebp - 0x13c]
cmp byte [eax + ebx], 0x5c
je 0x43c543
dec ebx
jmp 0x43c52c
cmp ebx, 0x103
ja 0x43c6dc
mov eax, 0x104
inc ecx
mov esi, dword [ebp - 0x13c]
mov edi, edx
cmp ecx, eax
cmova ecx, eax
mov eax, dword [ebp - 0x13c]
rep movsb byte es:[edi], byte [esi]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x11c]
lea ecx, [eax + 1]
cmp ecx, 0x104
mov ecx, 0x103
cmovae eax, ecx
mov byte [ebp + eax - 0x11c], 0
lea eax, [ebp - 0x12c]
mov byte [ebp + ebx - 0x11c], 0
inc ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x43c672
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x43c6b4
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a7d01
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x43c620
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x43c6b4
lea eax, [ebp - 0x128]
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4a7d0a
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x43c5d0
lea eax, [ebp - 0x120]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x13c]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x43c6c8
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x43c6dc
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43d61c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ebx, ebx
je 0x43d65c
xor edx, edx
mov dword [ebx + 8], eax
mov dword [ebx + 4], edx
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [ebx], eax
test eax, eax
jne 0x43d65c
mov dword [ebp + 8], str.Could_not_allocate_string_array
add esp, 0x14
pop ebx
pop ebp
jmp fcn.0043efa9
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x43e48f
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x525a6c]
test eax, eax
je 0x43e510
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], str.DisableLGP
call fcn.00427fbf
mov ebx, eax
test eax, eax
je 0x43e528
xor esi, esi
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], esi
call sub.msvcrt.dll_strtol
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
je 0x43e528
mov eax, dword [0x528740]
mov dword [esp + 8], str.LPG_handling_disabled__per_settings
jmp 0x43e566
lea ecx, [ebp - 0x20]
mov edx, str.DisableLGP
mov eax, 0x80000001
call fcn.0043c4c1
cmp dword [ebp - 0x20], 0
jmp 0x43e4ff
xor ecx, ecx
xor ebx, ebx
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0x43be99
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x43e5b7
mov eax, dword [0x528740]
mov dword [esp + 8], str.SetLGP:_Unable_to_start_thread
mov edx, 0xffc
sub edx, eax
add eax, 0x527740
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [0x52873b], 0
mov dword [esp], 0x527740
call sub.msvcrt.dll_strlen
lea edx, [eax + 2]
mov byte [eax + 0x527740], 0xd
mov dword [0x528740], edx
mov byte [eax + 0x527741], 0xa
mov byte [eax + 0x527742], 0
xor eax, eax
jmp 0x43e662
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edx
push edx
test eax, eax
je 0x43e645
mov eax, dword [0x528740]
mov edx, 0xffc
mov dword [esp + 8], str.SetLGP:_Killing_stuck_thread_
sub edx, eax
add eax, 0x527740
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [0x52873b], 0
mov dword [esp], 0x527740
call sub.msvcrt.dll_strlen
xor ecx, ecx
lea edx, [eax + 2]
mov byte [eax + 0x527740], 0xd
mov dword [0x528740], edx
mov byte [eax + 0x527741], 0xa
mov byte [eax + 0x527742], 0
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push esi
push esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
jmp 0x43e5b0
lea eax, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push edx
push edx
test eax, eax
je 0x43e5b0
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x43e890
Capabilities:
Get token membership

Disassembly:
push ebp
xor eax, eax
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystemEnableLUA
mov ebp, esp
push ebx
lea ebx, [ebp - 0x14]
mov ecx, ebx
sub esp, 0x54
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov eax, 0x80000002
mov dword [ebp - 0x1c], 0xffffffff
mov word [ebp - 0xa], 0x500
call fcn.0043c4c1
cmp dword [ebp - 0x14], 1
jne 0x43e96b
mov dword [esp], str.Note:_UAC_is_active
call fcn.0043efa9
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], 8
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x43e90f
call fcn.0043f53d
mov dword [esp], str.Could_not_get_current_process_token:__s
mov dword [esp + 4], eax
jmp 0x43e950
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x14
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
sub esp, 0x14
test eax, eax
jne 0x43e95a
call fcn.0043f53d
mov dword [esp], str.Could_not_get_token_information:__s
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x43e9f2
xor eax, eax
cmp dword [ebp - 0x18], 0
setne al
mov dword [ebp - 0x24], eax
jmp 0x43e9f2
mov dword [esp], str.Note:_UAC_is_either_disabled_or_not_available
call fcn.0043efa9
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xe]
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
je 0x43e9f2
lea eax, [ebp - 0x24]
xor ebx, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
test eax, eax
jne 0x43e9e5
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edx
mov eax, dword [ebp - 0x1c]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x43ea07
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x43efa9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp + 0xc]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffd
mov dword [esp + 8], eax
mov dword [esp], 0x528980
call fcn.00489280
test eax, eax
jns 0x43efdc
mov eax, 0xffd
mov esi, dword [sym.imp.msvcrt.dll_isspace]
lea ebx, [eax + 0x528980]
cmp ebx, 0x528980
ja 0x43f0a9
mov word [ebx], 0xa0d
mov eax, 0x528980
mov byte [ebx + 2], 0
call fcn.0043ee8a
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push esi
mov eax, dword [0x526d00]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x43f0c3
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xc], 0x7ffffffe
mov dword [esp + 8], 0x7ffffffe
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc2
mov eax, dword [0x526d00]
mov dword [esp], eax
call esi
xor edx, edx
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0xba
mov eax, dword [0x526d00]
mov dword [esp], eax
call esi
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xb6
mov eax, dword [0x526d00]
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x43f0c3
movzx eax, byte [ebx - 1]
mov dword [esp], eax
call esi
test eax, eax
je 0x43eff4
dec ebx
mov byte [ebx], 0
jmp 0x43efe8
mov dword [esp], ebx
call sub.msvcrt.dll_free
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x43f0d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
call fcn.0043ee8a
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push esi
mov eax, dword [0x526d00]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x43f182
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xc], 0x7ffffffe
mov dword [esp + 8], 0x7ffffffe
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc2
mov eax, dword [0x526d00]
mov dword [esp], eax
call esi
xor edx, edx
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0xba
mov eax, dword [0x526d00]
mov dword [esp], eax
call esi
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xb6
mov eax, dword [0x526d00]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [ebp + 8], ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp sub.msvcrt.dll_free
Function at 0x43f190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edx, 0x4a9057
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
call fcn.0043ef54
test eax, eax
jne 0x43f1c4
mov eax, dword [ebp + 8]
mov dword [esp], str.Error:_Cant_open_file__s
xor edi, edi
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x43f275
xor ecx, ecx
mov dword [esp + 8], 2
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], ebx
mov esi, eax
mov edi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
mov dword [esp], esi
call sub.msvcrt.dll_malloc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x43f224
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], str.Error:_Cant_allocate__d_bytes_buffer_for_file__s
mov dword [esp + 8], eax
call fcn.0043efa9
jmp 0x43f253
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, esi
je 0x43f255
mov eax, dword [ebp + 8]
mov dword [esp], str.Error:_Cant_read__s
mov dword [esp + 4], eax
call fcn.0043efa9
xor edi, edi
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
test edi, edi
jne 0x43f275
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43f27f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 0x4a90c1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0043ef54
test eax, eax
jne 0x43f2af
mov dword [esp + 4], esi
xor ebx, ebx
mov dword [esp], str.Error:_Cant_create__s
call fcn.0043efa9
jmp 0x43f2ee
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov ebx, eax
cmp dword [ebp + 0x10], eax
je 0x43f2e6
mov dword [esp + 4], esi
mov dword [esp], str.Error:_Cant_write__s
call fcn.0043efa9
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43ff91
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
call fcn.0043ee8a
xor ecx, ecx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x34], eax
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0x3e5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x43edbf
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
sub esp, 0x18
test eax, eax
je 0x440045
mov ebx, eax
mov eax, dword [ebp + 0x24]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edi
push edx
push edx
cmp eax, 0x102
jne 0x440039
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CancelSynchronousIo]
push ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call edi
push edi
push edi
mov dword [ebp - 0x1c], 0x102
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
jmp 0x44004e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x44005a
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x440072
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
test edi, edi
jne 0x440088
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
mov esi, eax
test eax, eax
jne 0x4400cb
call fcn.0043f53d
mov dword [esp], str.Warning:_Could_not_read_file_pointer__s
mov dword [esp + 4], eax
call fcn.0043efa9
test ebx, ebx
mov eax, 1
cmovne eax, ebx
mov ebx, 1
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub esp, 0x14
test eax, eax
je 0x440152
xor ecx, ecx
mov dword [0x4e28fc], ecx
mov eax, dword [edi]
cmp eax, dword [ebp + 0x10]
je 0x44020d
cmp dword [0x526c84], 0
je 0x440139
test eax, eax
jne 0x440139
mov dword [esp], str.Warning:_Possible_short_write
call fcn.0043efa9
jmp 0x44020d
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Wrote__d_bytes_but_requested__d
mov dword [esp + 8], edx
call fcn.0043efa9
jmp 0x440177
call fcn.0043f53d
mov dword [esp], str.Write_error__s
mov dword [esp + 4], eax
call fcn.0043efa9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or eax, 0xc0030000
mov dword [0x4e28fc], eax
test esi, esi
je 0x4401ee
mov eax, dword [ebp - 0x2c]
cmp ebx, eax
jae 0x4401a4
mov dword [esp + 4], 5
mov dword [esp], str.Retrying_in__d_seconds...
call fcn.0043efa9
mov dword [esp], 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edx
inc ebx
cmp dword [ebp - 0x2c], ebx
jb 0x4401ee
cmp ebx, 1
jbe 0x4400dd
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
jne 0x4400dd
mov dword [esp], str.Could_not_set_file_pointer___Aborting
call fcn.0043efa9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test ax, ax
je 0x4401fd
xor eax, eax
jmp 0x440212
mov dword [esp], 0xc003001d
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
jmp 0x4401f9
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret