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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4b502c], 0
je 0x406cab
mov edx, edi
mov eax, esi
call dword [0x4b502c]
mov ebx, eax
jmp 0x406cbc
mov eax, 8
call fcn.0040433c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ba04d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406c48
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406cf1
mov edx, 8
mov eax, ebx
call fcn.00404358
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4092b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409415
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406dc4
cmp si, word [0x4b57dc]
jb 0x409348
cmp si, word [0x4b59dc]
ja 0x409348
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409348
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b57dc]
jae 0x409322
mov edi, ebx
dec edi
jmp 0x409343
cmp si, word [ebx*8 + 0x4b57dc]
jbe 0x409332
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409343
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4b57e0]
call fcn.004091c0
jmp 0x409348
cmp edi, dword [ebp - 8]
jae 0x40930c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4093f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093f7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ae8
push dword [ebp - 0x160]
push 0x409430
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407ae8
push dword [ebp - 0x164]
push 0x409440
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ae8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40941c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406e24
ret
Function at 0x4095c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4096cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bcb4d
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4bcb66]
jne 0x409614
mov eax, esi
mov edx, 0x4bcb68
mov ecx, 0x55
call fcn.00407ae8
push 0x4bcb4d
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4096b5
push 0x4bcb4d
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406dc4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409683
cmp byte [0x4bcb4c], 0
je 0x409648
mov edx, esi
mov eax, ebx
call fcn.004094ac
jmp 0x409683
mov edx, esi
mov eax, ebx
call fcn.004092b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409683
cmp dword [esi], 0
je 0x40966c
mov eax, esi
mov edx, 0x4096e4
call fcn.00407c34
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004092b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407c34
push 0x4bcb4d
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4bcb66], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407a44
push eax
push 0x4bcb68
call sub.kernel32.dll_lstrcpynW
push 0x4bcb4d
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096d2
lea eax, [ebp - 4]
call fcn.00406dc4
ret
Function at 0x409900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ea8
xor eax, eax
push ebp
push 0x409b25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409940
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40995a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407a44
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409b0f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a29
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a29
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a29
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a29
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ba4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409a29
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409b0f
xor eax, eax
push ebp
push 0x409b08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040970c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409a98
mov eax, dword [ebp - 0x10]
call fcn.0040433c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407a94
jmp 0x409ae3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409c18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409ae3
mov eax, dword [ebp - 0x10]
call fcn.0040433c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409c18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b0f
cmp dword [ebp - 8], 0
je 0x409afe
mov eax, dword [ebp - 8]
call fcn.00404358
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b2c
lea eax, [ebp - 4]
call fcn.00406dc4
ret
Function at 0x409e64
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ea8
xor eax, eax
push ebp
push 0x409f24
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ae8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c8c
mov eax, dword [ebx]
call fcn.00409d2c
test al, al
jne 0x409f01
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ae8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c8c
mov eax, dword [ebx]
call fcn.00409d2c
test al, al
jne 0x409f01
mov eax, ebx
call fcn.00406dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f2b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406e24
lea eax, [ebp - 4]
call fcn.00406dc4
ret

Function at 0x40ceb4
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.00406eb8
xor eax, eax
push ebp
push 0x40cf6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00408a50
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x40cefc
test esi, esi
jle 0x40cefc
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.00407268
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40c6cc]
call fcn.00408c18
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.00407220
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 0x40cf72
lea eax, [ebp - 4]
call fcn.00406de8
ret
Function at 0x40ee7c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40ef1c
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004077d8
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00407364
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40eea6
cmp byte [esp], 0
je 0x40eeeb
mov eax, edi
call fcn.00407364
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40ef28
mov eax, edi
call fcn.00407364
push eax
mov eax, edi
call fcn.00407364
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004044e8
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004077d8
jmp 0x40ef28
mov eax, edi
mov edx, 0x40ef3c
call fcn.00407220
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40f8c8
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x4b5c28], 0
jne 0x40f8fc
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40f8f5
movzx eax, byte [esp]
mov byte [0x4b5c28], al
jmp 0x40f8fc
mov byte [0x4b5c28], 0x2c
movzx eax, byte [0x4b5c28]
pop edx
ret

Function at 0x40fe0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00407220
mov eax, ebx
call fcn.0040736c
mov eax, dword [ebx]
call fcn.004072a0
test eax, eax
jle 0x40fe3d
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40fe32
pop esi
pop ebx
ret
Function at 0x4109bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410b68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406de8
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.004076c4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410b45
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004077d8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x410b45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x410b78
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410a90
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x410a62
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x410a90
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, esi
call fcn.004108c4
jmp 0x410b45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410b7c
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410b45
cmp dword [ebp - 0x14], 0
je 0x410b45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x410ba4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0040c15c
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
call fcn.0040c150
mov cl, 0x30
mov edx, 8
call fcn.0040f1f0
mov eax, dword [ebp - 0x24]
mov ecx, 0x7fffffff
mov edx, 2
call fcn.004076d4
push dword [ebp - 0x20]
push 0x410bc4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004075b4
mov eax, dword [ebp - 0x1c]
call fcn.004076c4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410b45
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call fcn.004073f4
mov eax, dword [ebp - 0x28]
mov edx, esi
call fcn.0040db44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410b6f
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00406e54
lea eax, [ebp - 4]
call fcn.00406de8
ret

Function at 0x410e24
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 0x411888
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 0x4118d0
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 0x4118c6
cmp word [edi], 0x5a4d
jne 0x4118c6
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x4118c6
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4118dc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x411a74
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x4b5c84], 0
jne 0x411b55
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x411ac7
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
jmp 0x411af8
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x411b55
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x411b23
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x411b35
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x411b4f
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 0x41940c
Capabilities:
Read file on windows

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 0x419556
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x419434
cmp dword [ebx + 4], 0
jne 0x419556
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x41945a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x41945a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00419360
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x419556
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x419509
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x4194af
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 dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.004193a0
test al, al
je 0x4194ff
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 0x4194ff
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x4194ff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x419527
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x419527
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.004193f4
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x419556
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.0041d788
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 0x419920
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 0x419951
cmp dword [ebx + 0x54], 0
jne 0x419951
cmp dword [ebx + 0x5c], 0
jne 0x419951
mov esi, dword [ebp - 8]
jmp 0x4199fc
cmp esi, 0xffffffff
jne 0x41995c
dec esi
jmp 0x4199fc
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x4199fc
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.004044e8
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 0x4199be
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x4199c3
mov word [edx], 0
dec eax
test eax, eax
jne 0x4199a0
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 0x4199ef
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x4199f4
mov word [edx], 0
dec eax
test eax, eax
jne 0x4199d1
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x419a18
cmp eax, dword [esp]
pop edx
pop eax
je 0x419a86
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.004198ac
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x419a60
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 0x419a86
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x419930
cmp eax, dword [ecx + 0x14]
jne 0x419930
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x41afdc
Capabilities:
Read file on windows

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 0x41b129
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x41b004
cmp dword [ebx + 4], 0
jne 0x41b129
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x41b02a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x41b02a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00419360
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x41b129
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x41b0d9
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x41b07f
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 dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.004193a0
test al, al
je 0x41b0cf
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 0x41b0cf
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x41b0cf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x41b0f7
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x41b0f7
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.004193f4
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x41b129
cmp dword [ebx + 8], 0
jne 0x41b129
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x41d7ac
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x4b71b4]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x41d793
mov eax, esi
pop esi
ret