joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4180f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00418300
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x4181bd
mov edx, dword [ebp - 4]
cmp edx, dword [0x42507c]
jb 0x41813a
mov eax, dword [ebp - 4]
cmp eax, dword [0x425080]
ja 0x41813a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x41810a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00411271
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x418160
jmp 0x4181bd
cmp dword [ebp - 0x14], 0x10000
jne 0x4181a3
cmp dword [ebp - 0x18], 0x10000
jb 0x4181a3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418196
mov eax, dword [ebp - 8]
jmp 0x4181bf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4181b8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.00418300
add esp, 4
mov dword [ebp - 4], eax
jmp 0x41810a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x418200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00418330
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x4182c5
mov edx, dword [ebp - 4]
cmp edx, dword [0x42507c]
jb 0x418245
mov eax, dword [ebp - 4]
cmp eax, dword [0x425080]
ja 0x418245
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x418215
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00411271
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41826b
jmp 0x4182c5
cmp dword [ebp - 0x14], 0x10000
jne 0x4182ae
cmp dword [ebp - 0x18], 0x10000
jb 0x4182ae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4182a1
mov eax, dword [ebp - 8]
jmp 0x4182c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4182c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.00418330
add esp, 4
mov dword [ebp - 4], eax
jmp 0x418215
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x419ee0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42a234], eax
je 0x419efe
mov eax, 0x10dd
jmp 0x419fe3
mov eax, dword [0x42a244]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419f7e
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x419f5a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x419f5a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.004188e0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.004110b9
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x419f06
mov dword [0x42a244], 0
call fcn.004193e0
mov ecx, dword [0x42a240]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x419fcd
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004110b9
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x419f96
mov dword [0x42a240], 0
mov dword [0x42a234], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402ec8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f21
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d64
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d64
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f0b
inc ebx
jmp 0x402ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f28
lea eax, [ebp - 8]
call fcn.00404b1c
ret

Function at 0x402f30
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b1c
test esi, esi
jne 0x402f67
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404c0c
jmp 0x402f88
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d64
mov dword [esp], eax
test esi, esi
je 0x402f88
cmp dword [ebx], 0
je 0x402f88
dec esi
jmp 0x402f6f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403a98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e7020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b10
xor eax, eax
push ebp
push 0x403b09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4e7020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e7020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404914
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ed04c], 0
je 0x404975
cmp word [0x4ed220], 0xd7b2
jne 0x40493d
cmp dword [0x4ed228], 0
jbe 0x40493d
mov eax, 0x4ed21c
call dword [0x4ed238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e7070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40499c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e7030], 0
jne 0x404991
push 0
push 0x4e7068
push 0x4e7070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402af0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ed04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a98
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406d64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406dca
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d8c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406db4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406dd1
lea eax, [ebp - 0x10]
call fcn.00404b1c
ret

Function at 0x408708
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x4087bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00405dac
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x408750
test esi, esi
jle 0x408750
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.00404bb4
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x408408]
call fcn.00405f88
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.00404b70
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087c6
lea eax, [ebp - 4]
call fcn.00404b1c
ret
Function at 0x40a05c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40a0f8
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00405168
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00405034
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x40a084
cmp byte [esp], 0
je 0x40a0c9
mov eax, edi
call fcn.00405034
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40a104
mov eax, edi
call fcn.00405034
push eax
mov eax, edi
call fcn.00405034
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402d24
mov edx, ebx
mov eax, edi
call fcn.00405168
jmp 0x40a104
mov eax, edi
mov edx, 0x40a114
call fcn.00404b70
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ab44
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x4e72c0], 0
jne 0x40ab77
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ab70
mov al, byte [esp]
mov byte [0x4e72c0], al
jmp 0x40ab77
mov byte [0x4e72c0], 0x2c
mov al, byte [0x4e72c0]
pop edx
ret

Function at 0x40b060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x40b0c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404b70
mov eax, ebx
call fcn.0040502c
mov eax, dword [ebx]
call fcn.00404ddc
test eax, eax
jle 0x40b0ac
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40b0a1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b0c9
lea eax, [ebp - 4]
call fcn.00404b1c
ret
Function at 0x40b7a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x40b878
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40b85a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00405168
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40b85a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x40b88c
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b85a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b87f
lea eax, [ebp - 0x1c]
call fcn.00404b1c
lea eax, [ebp - 4]
call fcn.00404b1c
ret

Function at 0x40b984
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40c318
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40c360
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x40c356
cmp word [edi], 0x5a4d
jne 0x40c356
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40c356
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c36c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40c4fc
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40c542
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x40c573
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x40c5d0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40c59e
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40c5b0
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40c5ca
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4135dc
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x413719
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x413604
cmp dword [ebx + 4], 0
jne 0x413719
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x41362a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x41362a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ebx + 8]
mov eax, 0x100000
call fcn.004135d4
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x413719
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x4136cf
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x413675
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push 0
push 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, dword [ebx + 8]
jne 0x4136c5
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4136c5
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x4136c5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
jmp 0x4136ea
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
jmp 0x4136ea
push esi
mov eax, dword [ebx + 8]
push eax
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x413719
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00417508
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x413a8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x413abd
cmp dword [ebx + 0x54], 0
jne 0x413abd
cmp dword [ebx + 0x5c], 0
jne 0x413abd
mov esi, dword [ebp - 8]
jmp 0x413b68
cmp esi, 0xffffffff
jne 0x413ac8
dec esi
jmp 0x413b68
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x413b68
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00402d24
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x413b2a
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x413b2f
mov word [edx], 0
dec eax
test eax, eax
jne 0x413b0c
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x413b5b
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x413b60
mov word [edx], 0
dec eax
test eax, eax
jne 0x413b3d
add esi, dword [ebp - 8]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
je 0x413bd2
push ebp
mov edx, dword [ebx + 0x54]
add edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x20]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00413a1c
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x413bb8
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x413bd2
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jne 0x413a9c
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4150cc
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x415202
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x4150f4
cmp dword [ebx + 4], 0
jne 0x415202
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x41511a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x41511a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ebx + 8]
mov eax, 0x100000
call fcn.004135d4
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x415202
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x4151bf
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x415165
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push 0
push 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, dword [ebx + 8]
jne 0x4151b5
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4151b5
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x4151b5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
jmp 0x4151da
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
jmp 0x4151da
push esi
mov eax, dword [ebx + 8]
push eax
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebx], eax
cmp dword [ebx + 8], 0
jne 0x415202
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x417508
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x41752f
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
and edx, 0xff
mov edx, dword [edx*4 + 0x4e87cc]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x417513
mov eax, esi
pop esi
ret