joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53f970
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x53f9a1
mov ecx, dword [0x5706bc]
mov dl, 1
mov eax, dword [0x53e31c]
call fcn.0040f180
call fcn.0040515c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x53f9ce
mov ecx, dword [0x56fd70]
mov dl, 1
mov eax, dword [0x53e31c]
call fcn.0040f180
call fcn.0040515c
xor eax, eax
push ebp
push 0x53fa4f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404aa4
cmp byte [ebp + 8], 0
je 0x53fa29
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0053f8d8
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0053f694
jmp 0x53fa45
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0053f1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53fa6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x53fc48
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0053f4b8
xor eax, eax
push ebp
push 0x53fdbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x53fda5
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x53fc94
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x53fc9e
call fcn.00405208
jmp 0x53fdc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421b1c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x53fd9a
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x53fd4d
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x53fd3a
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404aa4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0053fc00
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x53fdd0]
cmp dl, byte [eax + 0x28]
je 0x53fda1
call fcn.0040f0a4
jmp 0x53fda1
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421b3c
jmp 0x53fda1
cmp edi, ebx
jge 0x53fd69
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421b3c
jmp 0x53fc9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421b1c
cmp edx, dword [esp + 4]
jne 0x53fd89
cmp eax, dword [esp]
pop edx
pop eax
jne 0x53fc9e
push ebp
call fcn.0053fc00
pop ecx
jmp 0x53fda1
push ebp
call fcn.0053fc00
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53fdc2
mov eax, dword [ebp - 4]
call fcn.0053f4c4
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53fdd4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53fef6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0053f4b8
xor eax, eax
push ebp
push 0x53fed9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x53fe24
call fcn.00405208
jmp 0x53fee0
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x53fec3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x53fec3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404aa4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x53fec3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040e88c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x53ff10
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x570374]
mov dl, 1
mov eax, dword [0x53e31c]
call fcn.0040f1bc
call fcn.0040515c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53fee0
mov eax, dword [ebp - 4]
call fcn.0053f4c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53fefd
lea eax, [ebp - 0x28]
call fcn.004057e8
ret
Function at 0x53ff5c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5400cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0053f4b8
xor eax, eax
push ebp
push 0x5400b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x53ffc1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x53ffc1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x54009a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x53ffd4
call fcn.00405208
jmp 0x5400b7
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x53fffb
cmp dword [ebp - 0x10], 0
jle 0x53fffb
cmp ebx, dword [ebp - 0x10]
jle 0x53fffb
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x54009a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x54009a
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404aa4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x54009a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040e88c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x5400e8
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x570374]
mov dl, 1
mov eax, dword [0x53e31c]
call fcn.0040f1bc
call fcn.0040515c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5400b7
mov eax, dword [ebp - 4]
call fcn.0053f4c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5400d4
lea eax, [ebp - 0x2c]
call fcn.004057e8
ret

Function at 0x542290
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x5422b1
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x54229e
pop edi
pop esi
pop ebx
ret
Function at 0x547c3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareBorlandDatabase_Engine
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x547c93
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push str.DLLPATH
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x547c89
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x547c97
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x55d294
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
xor edx, edx
push ebp
push 0x55d2f0
push dword fs:[edx]
mov dword fs:[edx], esp
test byte [eax + 0x1c], 0x10
jne 0x55d2da
cmp byte [eax + 0x3a], 0
jne 0x55d2da
push 0
lea edx, [ebp - 4]
mov eax, dword [0x570064]
mov eax, dword [eax]
call fcn.0046c480
mov eax, dword [ebp - 4]
call fcn.00405c78
push eax
push 0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55d2f7
lea eax, [ebp - 4]
call fcn.004057e8
ret
Function at 0x55dd14
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x55debb
push dword fs:[eax]
mov dword fs:[eax], esp
push ecx
push 0
push 0x40
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x55de9a
xor eax, eax
push ebp
push 0x55de93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 4
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x55de77
xor eax, eax
push ebp
push 0x55de70
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x10000
push 0
push 0
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x55de54
xor eax, eax
push ebp
push 0x55de4d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [esi + 0x4a], 0
je 0x55de36
test byte [esi + 0x1c], 8
jne 0x55de36
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x55dddb
inc dword [ebp - 0x14]
push ebx
call sub.kernel32.dll_lstrlenA_1
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x55ddcf
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x55dcf4]
call fcn.004070f8
add esp, 4
mov ebx, dword [ebp - 0x10]
xor edi, edi
jmp 0x55de18
mov eax, dword [ebp - 4]
lea eax, [eax + edi*4]
mov edx, ebx
call fcn.004059e0
push ebx
call sub.kernel32.dll_lstrlenA_1
inc eax
add ebx, eax
inc edi
cmp byte [ebx], 0
jne 0x55de01
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00406f44
push eax
mov ecx, dword [ebp - 0x14]
dec ecx
mov edx, esi
mov eax, dword [esi + 0x4c]
call dword [esi + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55de59
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
call fcn.0041086c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55de7c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
call fcn.0041086c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55de9f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
call fcn.0041086c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55dec2
lea eax, [ebp - 4]
mov edx, dword [0x55dcf4]
call fcn.00407218
ret
Function at 0x99c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x99c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x99c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x99c06a
add dl, dl
jne 0x99c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x99c0dc
xor eax, eax
add dl, dl
jne 0x99c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x99c17d
add dl, dl
jne 0x99c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x99c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x99c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x99c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x99c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x99c075
mov eax, 1
add dl, dl
jne 0x99c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x99c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x99c0e1
sub eax, ebx
mov ebx, 1
jne 0x99c128
mov ecx, 1
add dl, dl
jne 0x99c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x99c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x99c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x99c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x99c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x99c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x99c136
cmp eax, 0x7d00
jae 0x99c16d
cmp eax, 0x500
jb 0x99c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x99c075
cmp eax, 0x7f
ja 0x99c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x99c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x99c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x99c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x2068745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x206890a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x2068908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x20687b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.02060f12
add esp, 0xc
test ebx, ebx
je 0x20688b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x2068899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x20687f5
movzx ebx, ax
jmp 0x20687fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x2068871
cmp dword [0x206f5f0], 1
jne 0x2068871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.02060f12
lea eax, [esp + 0x34]
push eax
call fcn.020689ee
lea eax, [esp + 0x38]
push 0x205ffa4
push eax
call fcn.02060f40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.02060f40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.02060f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x206f590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x20687ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x2068777
jmp 0x2068906
lea eax, [esp + 0x28]
push eax
call fcn.020689ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x205ff88
push eax
call fcn.02060f40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.02060f40
add esp, 0x10
cmp dword [0x206f5f0], 1
jne 0x2068906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.02060f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x206f590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret
Function at 0x2068940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.020689bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x206f460], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x206f460]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x206f464], eax
push 0
push 0
push 0
push 4
push dword [0x206f464]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x206f5f8]
leave
ret
Function at 0x2068a44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x2068a57
xor eax, eax
jmp 0x2068bdb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x2068a95
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x2068aae
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x2068aae
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x2068abb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x2068af4
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x2068ab4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x2068b94
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x2068b24
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x2068b83
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x2068b3c
jmp 0x2068b1d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x2068b74
jmp 0x2068b81
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x2068b1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x2068af4
and dword [ebp - 0x14], 0
jmp 0x2068ba1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x2068bd9
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x2068b9a
xor eax, eax
leave
ret
Function at 0x2068d7e
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.02068d41
push esi
call fcn.02068f2c
push dword [esp + 0x80]
mov esi, eax
call fcn.02068f2c
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.02060f12
lea eax, [esp + 0x30]
push eax
push 5
push esi
call fcn.02068c5b
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x2068f13
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call fcn.02068f61
mov edi, eax
add esp, 0x14
test edi, edi
je 0x2068f13
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x2068ef6
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x2068edb
lea eax, [edi + 0x2c]
mov ebp, esi
xor ecx, ecx
mov edx, eax
sub ebp, eax
mov al, byte [edx + ebp]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, ebx
jb 0x2068e47
lea eax, [ebx + esi]
push eax
lea eax, [ebx + 0x2c]
add eax, edi
push eax
call fcn.02068cfc
mov edx, dword [esp + 0x20]
mov eax, edx
mov ebp, dword [esp + 0x24]
sub eax, esi
pop ecx
pop ecx
mov ecx, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x2068ea5
lea eax, [edi + 0xc]
push edx
push eax
call fcn.02068cfc
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x2068ea7
mov eax, edx
push eax
push esi
call fcn.02068cfc
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x2068f07
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x2068f13
push 1
push edi
call fcn.02069055
pop ecx
pop ecx
xor edi, edi
push 0x206f46c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x68
ret