joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51131b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004b8676
push 4
mov dword [ebp - 4], 0
call fcn.00469def
mov edi, eax
add esp, 4
test edi, edi
je 0x40402c
call fcn.004b8986
mov dword [edi], eax
call fcn.004b8745
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004b8637
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404022
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004b865f
jmp 0x40402e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x4106c8
lea eax, [ebp - 0xdc]
push eax
call fcn.00402bd0
lea ecx, [ebp - 0xcc]
push str.Invalid_given_key_in_SetKeyValue__
push ecx
mov dword [ebp - 4], 0
call fcn.004050c0
add esp, 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0xdc]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x1c], 8
jb 0x4106bd
mov edx, dword [ebp - 0x30]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0xdc]
jmp 0x41077c
cmp dword [eax + 0x14], 8
jb 0x4106d2
mov edi, dword [eax]
jmp 0x4106d4
mov edi, eax
cmp dword [esi + 0x14], 8
mov eax, dword [eax + 0x10]
lea edx, [eax + eax + 2]
jb 0x4106e5
mov eax, dword [esi]
jmp 0x4106e7
mov eax, esi
push edx
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x410788
lea eax, [ebp - 0x184]
push eax
call fcn.00402bd0
push esi
push ecx
lea ecx, [ebp - 0x174]
push str.Failed_to_write_key_value
push ecx
mov dword [ebp - 4], 2
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x184]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 3
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x1c], 8
jb 0x410762
mov edx, dword [ebp - 0x30]
push edx
call fcn.00469e1a
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x412670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513d88
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [esi + 0x54], 0
jne 0x412768
mov eax, dword [ebp + 8]
push 0x40
push eax
push ecx
call fcn.004b9112
add esp, 0xc
test eax, eax
je 0x412768
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x58bd98]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.00412980
push eax
mov dword [ebp - 4], 0
call fcn.00408f60
add esp, 4
mov edi, eax
call fcn.00408a70
lea ecx, [ebp + 8]
call fcn.00409420
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4137f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515e58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov edi, ecx
call fcn.004175d0
push 0x22
push 0x26
mov dword [esp + 0x40], 0
call fcn.004148e0
add esp, 8
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x41385d
mov eax, dword [esp + 0xc]
push eax
call fcn.00469e1a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x417b70
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51232b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x417baa
mov eax, dword [esi]
jmp 0x417bac
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417cf0
cmp byte [ebp + 8], 0
je 0x417cc4
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x228], edi
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x58ab40
neg ecx
or ecx, eax
push ecx
call fcn.004d562e
add esp, 8
mov byte [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x22c]
push ecx
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], eax
call fcn.00419b40
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x417cb2
push edi
push 0
push ebx
call fcn.004d87e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x417c40
mov esi, dword [esi]
mov edx, dword [ebp - 0x228]
push edx
push esi
push edi
push ebx
call fcn.004d5639
add esp, 0x10
test eax, eax
jne 0x417cb2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417c62
sub eax, edx
sar eax, 1
cmp eax, 0xf6
ja 0x417cb2
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x534f20
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x417cb2
push 4
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x417cc8
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b8f0
xor al, al
jmp 0x417cf2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [ebp - 0x224]
setne bl
mov dword [ebp - 4], 0xffffffff
call fcn.0041b8f0
mov al, bl
jmp 0x417cf2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x427f90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51131b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004b8676
push 4
mov dword [ebp - 4], 0
call fcn.00469def
mov edi, eax
add esp, 4
test edi, edi
je 0x42800c
call fcn.004b8986
mov dword [edi], eax
call fcn.004b8745
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004b8637
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x428002
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004b865f
jmp 0x42800e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ab80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 8
mov esi, esp
mov ebx, 0x42ade0
mov dword [esp + 0x1c], esp
call fcn.0042b850
mov edx, dword [0x58a2d4]
xor eax, eax
push eax
mov eax, dword [0x58a2d8]
movzx ecx, byte [eax]
movzx eax, byte [edx]
push ebx
push ecx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0042bb20
add esp, 0x1c
mov dword [esp + 0x38], 0
lea ecx, [edi + 0x54]
mov edx, 0x100000
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
add edi, 0xc
push edi
push ecx
call fcn.0042c3b0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42ac4c
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42ac4c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42ac4c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51584b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x42ca90
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0x583ff8
mov dword [ebp - 0x10], 0
call fcn.0041f410
mov dword [ebx], eax
lea esi, [ebx + 4]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], al
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], eax
mov dword [ebp - 4], eax
mov edx, dword [ebx]
add edx, 0x14
push edx
call fcn.0041f7f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42d6e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebx + 4]
push edi
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x1c], 0
push 0
je 0x42d713
mov eax, dword [ebx + 4]
push 0
call fcn.0041f160
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x42d732
mov eax, dword [ebx + 4]
push 0x2719
call fcn.0041f160
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov edx, dword [ebp + 0x18]
push esi
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
mov dword [ebp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x42d765
mov eax, 0x274d
test edi, edi
je 0x42d785
cmp eax, 0x3e5
je 0x42d785
mov edx, dword [ebp + 0x1c]
push edx
push eax
mov eax, dword [ebx + 4]
call fcn.0041f160
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.0041f1d0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x42d820
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebx + 4]
push edi
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x42d851
mov eax, dword [ebx + 4]
push 0
push 0
call fcn.0041f160
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x42d871
mov eax, dword [ebx + 4]
push 0
push 0x2719
call fcn.0041f160
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
xor ecx, ecx
push ecx
push esi
mov dword [ebp + 0x18], ecx
mov dword [ebp + 8], ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x42d8a6
mov eax, 0x2746
jmp 0x42d8b2
cmp eax, 0x4d2
jne 0x42d8b2
mov eax, 0x274d
test edi, edi
je 0x42d8d1
cmp eax, 0x3e5
je 0x42d8d1
mov edx, dword [ebp + 0x18]
push edx
push eax
mov eax, dword [ebx + 4]
call fcn.0041f160
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.0041f1d0
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x42e070
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5110a3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
mov dword [esi], vtable.NetworkService::FunctionCallRequest.0
call fcn.0049cc00
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push eax
mov ecx, esi
mov dword [esi + 0x3c], edi
call fcn.00488300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4328a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514419
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x2c]
mov ecx, esi
sar eax, 3
push eax
mov dword [ebp - 0x10], 1
call fcn.00434a30
mov ecx, dword [edi + 0x30]
mov edi, dword [edi + 0x2c]
sub esp, 0x10
mov dword [ebp - 0x14], ecx
mov ecx, esp
lea edx, [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
lea ebx, [ebp + 0x14]
lea eax, [ebp + 0x18]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
lea eax, [ebp + 0x1c]
mov dword [ecx + 0xc], eax
push esi
push edx
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.00435cb0
add esp, 0x1c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x464e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, esi
call fcn.00464e40
test al, al
jne 0x464e16
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ecx
push 1
push edx
push eax
call fcn.004d3a09
dec eax
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x466c40
Capabilities:
Set file attributes

Disassembly:
cmp dword [esi + 0x3c], 8
push ebx
lea ebx, [esi + 0x28]
jb 0x466c4e
mov eax, dword [ebx]
jmp 0x466c50
mov eax, ebx
push edi
push 0
push 0x2000000
push 3
push 0
push 7
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [esi + 0x5c]
push eax
lea ecx, [esi + 0x54]
push ecx
lea edx, [esi + 0x4c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x45], 0
pop edi
je 0x466ca9
cmp byte [esi + 0x44], 0
mov eax, dword [esi + 0x48]
je 0x466c99
and eax, 0xffffffef
cmp dword [ebx + 0x14], 8
jb 0x466ca1
mov ebx, dword [ebx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebx
ret

Function at 0x469e3f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x469e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x469e65
xor al, al
jmp 0x469e85
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004d6880
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x46a2da
Capabilities:
Get common file path

Disassembly:
push 0x34
mov eax, 0x508e74
call fcn.004d6c98
mov dword [ebp - 0x10], edx
mov esi, ecx
and dword [edx + 4], 0
mov eax, dword [edx]
xor ecx, ecx
mov word [eax], cx
movzx eax, word [esi]
xor edi, edi
test ax, ax
je 0x46a307
inc edi
cmp word [esi + edi*2], cx
jne 0x46a300
cmp edi, 1
movzx ebx, ax
jl 0x46a41c
cmp bx, 0x5c
je 0x46a41c
cmp bx, 0x2e
jne 0x46a33b
cmp edi, 1
je 0x46a41c
cmp edi, 2
jne 0x46a33b
cmp word [esi + 2], bx
je 0x46a41c
lea ecx, [ebp - 0x1c]
call fcn.0046a15e
and dword [ebp - 4], 0
cmp edi, 3
jle 0x46a36f
cmp word [esi + 2], 0x3a
jne 0x46a36f
cmp word [esi + 4], 0x5c
jne 0x46a36f
cmp bx, 0x61
jb 0x46a366
cmp bx, 0x7a
jbe 0x46a3be
add ebx, 0xffffffbf
cmp bx, 0x19
jbe 0x46a3be
mov edi, 0x105
cmp dword [ebp - 0x14], edi
jg 0x46a382
push edi
lea ecx, [ebp - 0x1c]
call fcn.00469ffe
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.0046a1d1
test edi, edi
je 0x46a424
cmp edi, 0x104
ja 0x46a424
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x46a3be
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.0046a232
push 0x52585c
lea ecx, [ebp - 0x40]
call fcn.0046a176
lea ecx, [ebp - 0x1c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0046a25e
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0046a29c
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.0046a1f1
push dword [ebp - 0x28]
call fcn.00469e1a
push dword [ebp - 0x34]
call fcn.00469e1a
push dword [ebp - 0x40]
call fcn.00469e1a
push dword [ebp - 0x1c]
call fcn.00469e1a
add esp, 0x10
mov al, 1
call fcn.004d6d70
ret
push dword [ebp - 0x1c]
call fcn.00469e1a
pop ecx
xor al, al
jmp 0x46a41e
Function at 0x46ad20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x58c5e0], ecx
inc edx
cmp edx, 0x100
jb 0x46ad22
cmp edx, 0x800
jae 0x46adf9
lea esp, [esp]
mov eax, dword [edx*4 + 0x58c1e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x58c5e0]
inc edx
mov dword [edx*4 + 0x58c5dc], eax
cmp edx, 0x800
jb 0x46add0
mov dword [0x58a824], 0x508d40
call fcn.00470230
test eax, eax
jne 0x46ae16
mov dword [0x58a824], 0x508c60
ret

Function at 0x478400
Capabilities:
Encode data using xor

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

Function at 0x478440
Capabilities:
Encode data using xor

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

Function at 0x4785c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, ecx
xor eax, eax
lea edx, [eax + 1]
test edi, edi
je 0x478602
push ebx
push ebp
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + edx*2]
mov ecx, esi
and ecx, 1
mov ebp, ecx
neg ebp
sar ebp, 4
and ebp, 0x7f
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x18]
add eax, dword [ebp + ebx*4]
add edx, edx
shr esi, 1
or edx, ecx
sub edi, 1
jne 0x4785d1
pop ebp
pop ebx
pop edi
pop esi
ret 8