joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bac16fb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 1
jne 0x6bac1747
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [0x6bb10400], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6bac16e4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
leave
mov eax, 1
ret 0xc

Function at 0x6bac17b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
sub esp, 0x10
xor eax, eax
cmp eax, ebx
jge 0x6bac1806
mov ecx, dword [ebp + 0x10]
mov edx, eax
and edx, 3
mov dl, byte [ecx + edx]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx + eax]
mov byte [esi + eax], dl
inc eax
jmp 0x6bac17eb
mov dword [esp], esi
call fcn.6bac1785
lea eax, [ebp - 0xc]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x6bac177c
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x6bac1b80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6bac27c0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6bac27c0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6bac1be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6bb10378]
test esi, esi
jle 0x6bac1ce0
mov eax, dword [0x6bb1037c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6bac1c10
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6bac1c8f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6bac1c00
mov dword [esp], ebx
call fcn.6bac2330
mov edi, eax
test eax, eax
je 0x6bac1d07
mov eax, dword [0x6bb1037c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6bac2440
mov edx, dword [0x6bb1037c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6bac1ce7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6bac1c88
sub eax, 4
and eax, 0xfffffffb
jne 0x6bac1c96
add dword [0x6bb10378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6bb1037c]
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 0x6bac1c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6bac1b80
xor esi, esi
jmp 0x6bac1c1a
mov eax, dword [0x6bb1037c]
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.6bac1b80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6bac1b80
lea esi, [esi]
nop

Function at 0x6bac1fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6bb10388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6bb10380]
sub esp, 4
test ebx, ebx
je 0x6bac1ff5
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 0x6bac1fee
test esi, esi
je 0x6bac1fee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6bac1fd0
mov dword [esp], 0x6bb10388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x419a10
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644e06
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7030b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00629ee0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0041a3b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x29], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0041a3b0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41a740
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644e06
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7030b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00629f90
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x18
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0041abe0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x28]
mov byte [edx + 0x28], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x29]
mov byte [edx + 0x29], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0041ab10
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 8]
add eax, 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x431e70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x431ecf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x431e9c
mov eax, 1
jmp 0x431eed
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x431ecd
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x431eed
jmp 0x431ee8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x431ee8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x431eed
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x432600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x432609
cmp dword [ebp + 0xc], 0
je 0x43261c
mov dword [ebp - 4], 1
jmp 0x432623
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x432636
mov eax, 0xd
jmp 0x432665
xor edx, edx
jne 0x43260d
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a1f02
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x432670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
xor eax, eax
jne 0x432679
cmp dword [ebp + 0xc], 0
je 0x43268c
mov dword [ebp - 0x10], 1
jmp 0x432693
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x4326a6
mov eax, 0xd
jmp 0x432703
xor edx, edx
jne 0x43267d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004a1f02
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 1
jne 0x4326b7
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x432710
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.00432280
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00432530
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x43278f
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.004322b0
mov eax, dword [ebp - 0x220]
jmp 0x432844
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x432813
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00432710
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x432807
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.004322b0
mov eax, dword [ebp - 0x224]
jmp 0x432844
mov dword [ebp - 0x210], 0x100
jmp 0x432799
lea ecx, [ebp - 0x21c]
call fcn.00432420
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.00432340
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.004322b0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret 4
Function at 0x436830
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x7030b8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x436b80
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0x436ba0
mov dword [esp + 0x24], 0xffffffff
cmp edi, 1
jne 0x436892
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
lea eax, [edi - 3]
cmp eax, 1
ja 0x4369ee
mov edx, dword [esi + 4]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4368a6
sub ecx, ebx
sar ecx, 1
cmp ecx, 1
jne 0x4369ee
movzx eax, word [edx]
cmp eax, 0x65
je 0x4368dc
cmp eax, 0x45
je 0x4368dc
xor ebx, ebx
cmp eax, 0x64
je 0x4368e1
cmp eax, 0x44
je 0x4368e1
jmp 0x4369ee
mov ebx, 1
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x436919
call esi
test eax, eax
jne 0x4369ee
mov eax, dword [esp + 0x1c]
cmp edi, 3
jle 0x43696e
mov eax, dword [esp + 0x14]
mov edi, 1
push 0
push 0x80
push 2
push 0
push edi
push 0x40000000
push dword [eax + 0xc]
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x436968
call esi
test eax, eax
je 0x436968
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
jmp 0x436970
xor edi, edi
test ebx, ebx
je 0x4369ba
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x436997
call esi
test eax, eax
je 0x436997
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
jmp 0x4369a2
mov eax, dword [esp + 0x14]
xor ecx, ecx
add ecx, edi
adc eax, 0
push eax
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004366c0
mov edi, dword [esp + 0x18]
add esp, 8
jmp 0x4369ce
xor eax, eax
lea edx, [esp + 0x18]
test edi, edi
lea ecx, [esp + 0x20]
cmove edx, eax
call fcn.004365a0
mov esi, eax
test edi, edi
je 0x4369dd
lea ecx, [esp + 0x24]
call fcn.00436a10
lea ecx, [esp + 0x1c]
call fcn.00436a10
test esi, esi
je 0x43687e
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
Function at 0x436a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x436aaf
mov dword [edi], 0
mov edx, 0x400000
nop dword [eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x436ac2
test ecx, ecx
je 0x436aaf
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x436a70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004421e5
mov esp, ebp
pop ebp
ret

Function at 0x436ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x436b4f
mov dword [edi], 0
mov edx, 0x400000
nop dword [eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x436b62
test ecx, ecx
je 0x436b4f
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x436b10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004421e5
mov esp, ebp
pop ebp
ret

Function at 0x437340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
or edx, 0x100
mov ecx, edx
mov eax, edx
shr ecx, 7
add edx, edx
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx esi, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr esi, 4
xor esi, ecx
add edi, dword [eax + esi*4]
cmp edx, 0x10000
jb 0x437350
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x437390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x100
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
or edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add ebx, dword [eax + ecx*4]
mov ecx, edx
xor ecx, edi
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x4373a6
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
movzx esi, word [edi]
movzx ecx, word [edi + 2]
mov eax, esi
shr eax, 4
xor esi, 0x7f0
shr esi, 4
mov eax, dword [ebx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + ecx*4]
add eax, dword [ebx + esi*4]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x10], esi
cmp esi, dword [ebp + 8]
jae 0x4377f4
mov edx, esi
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
or edx, 8
nop dword [eax]
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + eax*8]
movzx eax, word [edi + eax*2 + 4]
shr eax, 4
xor eax, edx
mov edx, ecx
add esi, dword [ebx + eax*4]
cmp edx, 1
jne 0x4376f0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 0x10], esi
cmp esi, 8
jb 0x4376d4
cmp esi, 0x10
jae 0x43779a
lea eax, [esi - 8]
mov dword [ebp - 8], eax
nop dword [eax + eax]
cmp esi, dword [ebp + 8]
jae 0x4377f4
mov edx, eax
xor esi, esi
or edx, 8
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + eax*8]
movzx eax, word [edi + eax*2 + 0x104]
shr eax, 4
xor eax, edx
mov edx, ecx
add esi, dword [ebx + eax*4]
cmp edx, 1
jne 0x437750
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
cmp esi, 0x10
jb 0x437740
cmp esi, dword [ebp + 8]
jae 0x4377f4
lea eax, [esi - 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x14]
xor edi, edi
or eax, 0x100
nop
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [esi + edx*2 + 0x204]
shr ecx, 4
xor ecx, eax
mov eax, edx
add edi, dword [ebx + ecx*4]
cmp eax, 1
jne 0x4377b0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
cmp esi, dword [ebp + 8]
jb 0x4377a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4391c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
mov dword [ebp - 0x10], ecx
lea edx, [ecx + 0x325c8]
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0xc], edx
push edi
nop word [eax + eax]
xor ebx, ebx
mov dword [ebp - 4], 4
mov edi, eax
lea eax, [ebx + 1]
nop
movzx edx, word [ecx + eax*2 + 0x32c4c]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
add eax, eax
sar ecx, 4
or eax, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [ebp - 0x10]
add ebx, dword [ecx + edx*4 + 0x30f34]
sub dword [ebp - 4], 1
jne 0x4391f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov dword [edx], ebx
add edx, 4
mov dword [ebp - 0xc], edx
cmp eax, 0x10
jb 0x4391e0
pop edi
pop esi
mov dword [ecx + 0x84], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov ebx, 4
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
nop word [eax + eax]
movzx ecx, byte [edi + ebx + 0x30734]
mov esi, 1
mov eax, ecx
mov dword [ebp - 0x14], ecx
mov edx, ecx
shr eax, 1
dec eax
mov dword [ebp - 8], 0
and edx, 1
mov dword [ebp - 0xc], eax
or edx, 2
mov ecx, eax
shl edx, cl
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], edx
test eax, eax
je 0x4392ef
mov ebx, eax
mov eax, esi
mov edx, ecx
sub eax, dword [ebp - 0x14]
and edx, 1
add eax, dword [ebp - 0x10]
add esi, esi
shr ecx, 1
or esi, edx
mov dword [ebp - 0xc], ecx
movzx ecx, word [edi + eax*2 + 0x32b66]
mov eax, edx
neg eax
shr ecx, 4
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp - 8]
add eax, dword [edi + ecx*4 + 0x30f34]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
sub ebx, 1
jne 0x4392a8
mov ebx, dword [ebp - 4]
jmp 0x4392f1
xor eax, eax
mov dword [ebp + ebx*4 - 0x218], eax
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x80
jb 0x439270
lea eax, [ebp - 0x218]
mov dword [ebp - 0x18], edi
sub eax, edi
mov dword [ebp - 0xc], 4
lea esi, [edi + 0x319c8]
sub eax, 0x31dc8
lea edx, [edi + 0x31dd0]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [edi + 0x88], ebx
jbe 0x439394
mov eax, ebx
xor esi, esi
mov ebx, dword [ebp - 0x18]
or eax, 0x40
nop dword [eax + eax]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebx + edx*2 + 0x32968]
shr ecx, 4
xor ecx, eax
mov eax, edx
add esi, dword [edi + ecx*4 + 0x30f34]
cmp eax, 1
jne 0x439350
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov dword [eax + ebx*4], esi
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [edi + 0x88]
jb 0x439341
mov edx, dword [ebp - 8]
mov esi, eax
mov ecx, 0xe
cmp dword [edi + 0x88], ecx
jbe 0x4393b7
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [esi + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x88]
jb 0x4393a1
mov eax, dword [esi]
mov ecx, 4
mov ebx, dword [ebp - 0x14]
mov dword [edx - 8], eax
mov eax, dword [esi + 4]
mov dword [edx - 4], eax
mov eax, dword [esi + 8]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 4], eax
add edx, 8
nop dword [eax + eax]
movzx eax, byte [edi + ecx + 0x30734]
lea edx, [edx + 4]
inc ecx
mov eax, dword [esi + eax*4]
add eax, dword [edx + ebx - 4]
mov dword [edx - 4], eax
cmp ecx, 0x80
jb 0x4393e0
mov edx, dword [ebp - 8]
add esi, 0x100
sub dword [ebp - 0x18], 0xffffff80
add edx, 0x200
sub ebx, 0x200
mov dword [ebp - 4], esi
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ebx
jne 0x439334
mov dword [edi + 0x80], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret