joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4862c0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [edi + 0xb4]
cmp esi, 0xffffffff
je 0x4863d1
mov eax, dword [edi + 0xdc]
and eax, 0x408
cmp eax, 8
je 0x486413
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x486393
mov eax, dword [edi + 0x78]
test eax, eax
je 0x486393
xor ebp, ebp
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x48631b
add ebp, 1
cmp dword [edi + 0x78], ebp
jbe 0x486393
mov ecx, dword [edi + 0x64]
imul eax, ebp, 0x114
add ecx, eax
mov byte [ecx + 0xc5], 1
add eax, dword [edi + 0x64]
cmp dword [eax + 0xbc], 0xffffffff
je 0x486310
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x54ab04
mov eax, dword [eax + 0xc0]
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jg 0x486310
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x486310
mov eax, dword [0x5769c0]
mov dword [esp + 0xc], str.Failed_to_signal_quiesce_via_inter_thread_communication_channel
mov dword [esp + 8], 0x11da
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x5769c4]
cmp dword [edi + 0xbc], 0xffffffff
mov byte [edi + 0xc5], 1
je 0x4863d1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x54ab04
mov eax, dword [edi + 0xc0]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jle 0x4863e0
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4863d1
mov eax, dword [0x5769c0]
mov dword [esp + 0xc], str.failed_to_signal_quiesce_via_inter_thread_communication_channel
mov dword [esp + 8], 0x11ed
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x5769c4]
mov dword [esp + 4], str.Using_MHD_quiesce_daemon_in_this_mode_requires_MHD_USE_ITC_n
mov dword [esp], edi
mov esi, 0xffffffff
call fcn.00488450
jmp 0x4863d1
Function at 0x489320
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov edx, dword [esp + 0x30]
cmp eax, 0xffffffff
mov dword [edx], eax
setne al
add esp, 0x2c
movzx eax, al
ret
Function at 0x48a060
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
test eax, eax
sete al
add esp, 0x2c
movzx eax, al
ret
Function at 0x496940
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x576f40]
test esi, esi
jle 0x496a50
mov edi, dword [0x576f44]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x496974
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4969f5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x496960
mov dword [esp], eax
mov ebx, eax
call fcn.00497230
test eax, eax
mov edi, eax
je 0x496a77
mov eax, dword [0x576f44]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00497330
add eax, dword [edi + 0xc]
mov edx, dword [0x576f44]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x496a57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4969ee
sub eax, 4
and eax, 0xfffffffb
jne 0x496a00
add dword [0x576f40], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x576f44]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4969ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0053d900
lea esi, [esi]
xor esi, esi
jmp 0x49697e
mov eax, dword [0x576f44]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0053d900
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0053d900
mov esi, esi
lea edi, [edi]

Function at 0x496eb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x576f58
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x576f50]
sub esp, 4
test ebx, ebx
je 0x496f05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x496efe
test esi, esi
je 0x496efe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x496ee0
mov dword [esp], 0x576f58
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x49c140
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], ebx
pop ebx
jmp fcn.0049bae0
Function at 0x49d5d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x49d623
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x49d610
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x49d6a0
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.0049ce70
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.0049ca40
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0049d2c0
mov eax, dword [0x53e638]
cmp eax, 0xffffffff
je 0x49d6d5
test eax, eax
je 0x49d6c5
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x49d62b
mov dword [0x53e638], 0
call fcn.004a1a70
test al, 1
mov edx, 3
jne 0x49d6ae
jmp 0x49d6b3
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x49d6bb
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x49d6bb
mov dword [0x53e638], 1
jmp 0x49d6ae
Function at 0x4a2660
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x53e688], eax
je 0x4a2677
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4a2b70
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x4a2ba0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.004a63a0
cmp eax, 1
je 0x4a2ba2
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x4a2bf5
jmp 0x4a2c12
cmp eax, 0x6a
je 0x4a2c03
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4a2bf0
cmp eax, 0x6a
jne 0x4a2c12
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x4a2c03
Function at 0x4a2ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x5779ac], 1
je 0x4a2cb5
call fcn.004a2c20
mov eax, dword [0x53e688]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4a2ce0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004a2ac0
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x4a2ccc
test esi, esi
je 0x4a2ccc
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call fcn.004a2b70
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4a2de2
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x53e688]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4a2de2
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_abort
mov esi, esi
lea edi, [edi]
Function at 0x4a2f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4a2f50
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4a2ff1
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4a3020
cmp eax, 3
jne 0x4a2f3a
mov eax, dword [0x53e688]
cmp eax, 0xffffffff
je 0x4a2f3a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4a2f3a
test byte [eax + 0x20], 0x30
je 0x4a3042
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4a3144
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4a2fc4
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4a2fb6
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004a23d0
lea eax, [ebx + 0x38]
call fcn.004a2b70
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x4a30c9
mov eax, ebx
call fcn.004a2860
jmp 0x4a30c9
mov eax, dword [0x577988]
test eax, eax
je 0x4a2f3a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x577988], 0
sub esp, 4
jmp 0x4a2f3a
mov dword [esp + 4], 0x4a2580
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x577988], eax
jmp 0x4a2f3a
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4a30f0
test eax, eax
je 0x4a3060
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
jne 0x4a3120
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x4a3130
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4a30a5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.004a23d0
mov eax, esi
call fcn.004a2b70
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x4a2fe5
mov eax, dword [0x53e688]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4a2f3a
test eax, eax
je 0x4a3100
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.004a23d0
lea eax, [ebx + 0x38]
call fcn.004a2b70
jmp 0x4a2f3a
call fcn.004a2e30
jmp 0x4a307c
mov dword [esp], edi
call fcn.004a23d0
mov eax, esi
call fcn.004a2b70
jmp 0x4a2f3a
call fcn.004a2e30
jmp 0x4a2f92
Function at 0x4a3ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.004a2ca0
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4a3b32
test byte [ebx + 0x20], 0x30
jne 0x4a3ae6
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x53e688]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x4a3b29
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4a3b76
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x4a3b1c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x4a3b39
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.004a2e30
jmp 0x4a3acd
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x4a3b9d
mov eax, dword [0x53e688]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x4a3b29
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x4a3b8a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x4a3b5c
mov eax, ebx
call fcn.004a2860
jmp 0x4a3b5c
Function at 0x5292a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
movzx edx, byte [eax]
jb 0x5292b4
cmp byte [ecx + 0x1c], 0
je 0x5292c0
mov eax, edx
ret
add eax, 1
mov dword [ecx + 0x10], eax
mov eax, edx
ret
push esi
push ebx
mov ebx, ecx
sub esp, 0x24
mov eax, dword [ecx + 0x14]
add dword [ecx + 0x18], eax
mov eax, dword [ecx]
mov byte [esp + 0x1f], dl
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov ecx, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [ebx + 0x14], eax
movzx edx, byte [esp + 0x1f]
lea esi, [ecx + eax - 1]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xc], esi
jae 0x529317
mov byte [ecx + eax], 0
add dword [ebx + 0xc], 1
mov byte [ebx + 0x1c], 1
add esp, 0x24
mov eax, edx
pop ebx
pop esi
ret
Function at 0x53d900
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40ca80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d76b5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6dd9a4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040cd72
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ccca
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00410446
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005112a7
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4136f9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d6d30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
and dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
call fcn.0041ee30
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
call fcn.004137b4
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0043b5a9
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4144d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8041
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6dd9a4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x414539
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005112a7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x414561
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x414561
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x414519
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x41456d
or eax, 0xffffffff
jmp 0x414519
cmp dword [esi + 0x3c], edi
jne 0x414581
push eax
push ebx
call fcn.0041bb20
test al, al
pop ecx
pop ecx
je 0x414568
jmp 0x41455d
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.00401ea3
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x414691
cmp eax, 1
jg 0x4146b9
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x414626
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00513a1b
add esp, 0x10
cmp edi, eax
jne 0x4146d0
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x4146e7
test edi, edi
ja 0x414654
cmp dword [esp + 0x58], 0x20
jae 0x4146d0
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00410632
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x4145d4
jmp 0x4146d0
cmp eax, 3
jne 0x4146d0
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0041bb20
test al, al
pop ecx
pop ecx
jne 0x4146e7
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00410560
mov eax, esi
jmp 0x414519
mov esi, dword [ebp + 8]
jmp 0x4146d3
Function at 0x4154af
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x5d7b77
call fcn.00518baf
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x4155bb
cmp byte [esi + 0x41], 0
je 0x4155bb
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4154e5
xor al, al
jmp 0x4155bd
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00401ea3
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x415555
dec eax
je 0x415559
dec eax
dec eax
je 0x4155b7
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00410560
mov al, bl
jmp 0x4155bd
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x415599
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041bdf0
mov ecx, eax
call fcn.00415897
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00513a1b
add esp, 0x10
cmp edi, eax
jne 0x415543
cmp byte [esi + 0x41], 0
je 0x4155b7
test edi, edi
jne 0x4154f3
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00410632
jmp 0x4154f3
mov bl, 1
jmp 0x415545
mov al, 1
call fcn.00518c32
ret