joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x397139ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x1c8a3590
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..wixburn
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x77777a78
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..pdata
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2f601af9
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4de06ae
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x40f32181
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x28f30b68
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x32523e09
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401540
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push 0x103
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0xc76988
call fcn.0050fb20
add esp, 0xc
mov dl, 0x20
cmp byte [0xc76988], 0x22
mov byte [0xc76a8b], bl
jne 0x401597
mov dl, 0x22
mov edi, 0xc76988
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x401597
mov al, byte [ebx + 0xc76989]
inc ebx
cmp ebx, ecx
mov byte [ebx + 0xc76987], al
jl 0x401586
cmp byte [0xc76988], 0
mov eax, 0xc76988
je 0x4015af
cmp byte [eax], dl
je 0x4015af
inc eax
cmp byte [eax], 0
jne 0x4015a5
push 0x5c
mov byte [eax], 0
push 0xc76988
call fcn.004e81c0
add esp, 8
mov esi, eax
push 0x2f
push 0xc76988
call fcn.004e81c0
add esp, 8
cmp esi, eax
jbe 0x4015da
push 0x5c
jmp 0x4015dc
push 0x2f
push 0xc76988
call fcn.004e81c0
add esp, 8
test eax, eax
je 0x4015fe
mov byte [eax + 1], 0
push 0xc76988
call fcn.00401000
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x4016e0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0x104
push 0xc76a90
call fcn.00401160
add esp, 0xc
push 0
push 0xc76a90
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
sbb eax, eax
ret

Function at 0x401710
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0x104
push 0xc76a90
call fcn.00401160
add esp, 0xc
push 0xc76a90
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
sbb eax, eax
ret

Function at 0x4018f0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp]
push eax
push 0x104
push ecx
call fcn.00401160
mov ecx, dword [esp + 0x118]
lea edx, [esp + 0xc]
add esp, 0xc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 1
sbb eax, eax
add esp, 0x104
ret

Function at 0x4019a0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp]
push eax
push 0x104
push ecx
call fcn.00401160
lea ecx, [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
cmp eax, 1
sbb eax, eax
add esp, 0x104
inc eax
ret

Function at 0x4019e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp]
push eax
push 0x104
push ecx
call fcn.00401160
lea ecx, [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401a16
xor eax, eax
add esp, 0x104
ret
and eax, 0x10
add esp, 0x104
ret

Function at 0x401a20
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp]
push eax
push 0x104
push ecx
call fcn.00401160
lea ecx, [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
sbb eax, eax
add esp, 0x104
ret
Function at 0x401c20
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x401c33
mov dword [esi], 0
lea eax, [esp + 8]
push 0
mov edi, dword [esp + 0x1c]
push eax
mov ecx, dword [esp + 0x1c]
push edi
mov eax, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401c6b
test esi, esi
je 0x401c5d
mov eax, dword [esp + 8]
mov dword [esi], eax
cmp edi, dword [esp + 8]
jne 0x401c6b
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, 0xffffffff
pop edi
pop esi
add esp, 4
ret

Function at 0x401c80
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x401c92
mov dword [esi], 0
lea eax, [esp + 4]
push 0
mov ecx, dword [esp + 0x18]
push eax
mov edx, dword [esp + 0x18]
push ecx
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401cc3
test esi, esi
je 0x401cbc
mov eax, dword [esp + 4]
mov dword [esi], eax
xor eax, eax
pop esi
add esp, 4
ret
mov eax, 0xffffffff
pop esi
add esp, 4
ret

Function at 0x405d30
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x405d7c
mov esi, dword [ecx]
test esi, esi
je 0x405d7c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x405d5b
cmp ecx, 1
je 0x405d5b
mov eax, 0xffffffff
pop edi
pop esi
ret 0x10
mov edx, dword [esp + 0x18]
push edx
push edi
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
cmp eax, 1
mov eax, 0
pop esi
adc eax, 0xffffffff
ret 0x10
mov eax, 0xffffffff
pop edi
pop esi
ret 0x10

Function at 0x405d90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
test edx, edx
je 0x405dd3
mov ecx, dword [ecx]
test ecx, ecx
je 0x405dd3
mov dword [esp], 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 8]
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
add esp, 4
ret 0xc
mov eax, 0xffffffff
add esp, 4
ret 0xc

Function at 0x405de0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
test edx, edx
je 0x405e1a
mov eax, dword [ecx]
test eax, eax
je 0x405e1a
lea ecx, [esp]
push ecx
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e12
mov eax, dword [esp]
add esp, 4
ret 4
xor eax, eax
add esp, 4
ret 4
xor eax, eax
add esp, 4
ret 4
Function at 0x406200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x14]
push 0
push 0
mov ecx, dword [esi]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406230
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 8
ret 4
lea eax, [esp + 0xc]
mov ecx, dword [esi]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40625b
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffffe
pop edi
pop esi
add esp, 8
ret 4
mov eax, 0xffffffff
pop edi
pop esi
add esp, 8
ret 4
Function at 0x426080
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
add eax, 4
push ebx
mov dword [esp + 4], eax
push esi
mov ebx, dword [esp + 0x1c]
push edi
push ebp
mov edi, ecx
mov ebp, dword [esp + 0x24]
add ebx, 0x2c
add ebp, 0x430
mov eax, dword [esp + 0x20]
push 0xe
push 0xc77840
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
call dword [esp + 0x1c]
cmp eax, 0xe
je 0x4260d9
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
cmp word [0xc77840], 0x4d42
je 0x4260f3
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
call dword [eax + 0x14]
cmp eax, dword [0xc77842]
je 0x426115
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x20]
push 0x28
push ebp
call dword [esp + 0x1c]
cmp eax, 0x28
je 0x426134
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
add edi, 0x3c
mov esi, ebp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp], 0x28
je 0x426155
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
cmp dword [ebp + 4], 0
jle 0x42628e
cmp dword [ebp + 8], 0
jle 0x42628e
cmp word [ebp + 0xc], 1
je 0x42617f
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ax, word [ebp + 0xe]
cmp ax, 8
je 0x4261a4
cmp ax, 0x18
je 0x4261a4
cmp ax, 4
je 0x4261a4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x24]
mov dword [eax + 0x42c], 0
mov cx, word [ebp + 0xe]
cmp cx, 0x18
je 0x426224
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x426224
cmp esi, 0x100
jae 0x4261d6
mov edi, ebx
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
lea edi, [esi*4]
mov ecx, dword [esp + 0x20]
push edi
push ebx
call dword [esp + 0x1c]
cmp eax, edi
je 0x4261fa
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x24]
test esi, esi
mov dword [eax + 0x42c], 1
je 0x426224
mov cl, byte [ebx]
xor cl, byte [ebx + 2]
mov byte [ebx], cl
mov al, byte [ebx + 2]
add ebx, 4
xor al, cl
mov byte [ebx - 2], al
xor byte [ebx - 4], al
dec esi
jne 0x42620c
cmp word [ebp + 0xe], 0x18
jne 0x426232
mov esi, 0xc77210
jmp 0x426237
mov esi, 0xc77240
mov edi, dword [esp + 0x10]
mov ecx, 6
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x20]
inc eax
push 0
shr eax, 3
imul eax, dword [ebp + 4]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x24]
mov esi, dword [0xc7784a]
push esi
call dword [eax + 0x10]
sub eax, esi
pop ebp
pop edi
cmp eax, 1
mov eax, 0
pop esi
adc eax, 0xffffffff
pop ebx
add esp, 0xc
ret 8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x427040
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov dword [esp], ecx
push ebx
push esi
push edi
push ebp
push 0xd
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edi, [ebp + 4]
lea ebx, [ebp + 0x430]
lea ecx, [ebp + 0x2c]
push ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
call dword [eax + 8]
cmp eax, 0xd
je 0x427083
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
push 3
push 0x599798
push ebx
call fcn.0051d980
add esp, 0xc
test eax, eax
je 0x4270a6
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
xor eax, eax
mov ax, word [ebx + 6]
mov dword [edi + 4], eax
xor eax, eax
mov ax, word [ebx + 6]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc], eax
xor eax, eax
mov ax, word [ebx + 8]
mov dword [edi + 8], eax
mov dword [edx + 0x34], ecx
mov al, byte [ebx + 0xa]
and al, 7
cmp al, 7
je 0x4270e4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov esi, 0xc77240
add edi, 0x10
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x42c], 0
test byte [ebx + 0xa], 0x80
je 0x427133
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov ecx, dword [esp + 0x18]
call fcn.004275e0
test eax, eax
je 0x427129
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov dword [ebp + 0x42c], 1
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov dword [ecx + 0x178], eax
add ecx, 0x178
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov ebp, dword [ebx + 8]
mov dword [ecx + 8], ebp
pop ebp
mov al, byte [ebx + 0xc]
pop edi
pop esi
mov byte [ecx + 0xc], al
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x427ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov al, byte [ecx + 0x40]
shr al, 3
push ebx
push esi
xor edx, edx
mov esi, dword [esp + 0x18]
push edi
push ebp
mov dl, al
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x2c]
mov word [esp + 0x14], 1
sub eax, edx
add eax, esi
mov dword [esp + 0x18], eax
mov ax, word [ecx + 0x3c]
shr ax, 1
mov word [esp + 0x16], ax
test ax, ax
je 0x427b42
mov edi, esi
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
mov ebp, 1
je 0x427b2b
mov cl, byte [ebx]
inc edi
inc ebx
xor cl, byte [edi - 1]
mov byte [edi - 1], cl
mov al, byte [ebx - 1]
xor al, cl
mov byte [ebx - 1], al
xor byte [edi - 1], al
mov eax, ebp
inc ebp
cmp edx, eax
ja 0x427b0f
mov ax, word [esp + 0x14]
add esi, edx
inc word [esp + 0x14]
sub dword [esp + 0x18], edx
cmp word [esp + 0x16], ax
ja 0x427afd
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

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

Disassembly:
mov edx, dword [esp + 8]
push ebx
push esi
test edx, edx
push edi
jne 0x430b41
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
not eax
cmp esi, 8
jb 0x430c32
mov edi, esi
shr edi, 3
lea ecx, [edi*8]
sub esi, ecx
xor ecx, ecx
inc edx
inc edx
inc edx
inc edx
inc edx
inc edx
mov cl, byte [edx - 6]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x570af8]
xor ebx, eax
xor eax, eax
mov al, byte [edx - 6]
xor eax, ebx
shr ebx, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x570af8]
xor eax, eax
xor ecx, ebx
mov al, byte [edx - 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov ebx, dword [eax*4 + 0x570af8]
xor eax, eax
xor ebx, ecx
mov al, byte [edx - 4]
xor eax, ebx
shr ebx, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x570af8]
xor eax, eax
xor ecx, ebx
mov al, byte [edx - 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov ebx, dword [eax*4 + 0x570af8]
xor eax, eax
xor ebx, ecx
mov al, byte [edx - 2]
xor eax, ebx
xor ecx, ecx
shr ebx, 8
and eax, 0xff
mov cl, byte [edx - 1]
mov eax, dword [eax*4 + 0x570af8]
xor eax, ebx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x570af8]
xor ecx, eax
xor eax, eax
mov al, byte [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x570af8]
shr ecx, 8
inc edx
xor eax, ecx
dec edi
jne 0x430b62
test esi, esi
je 0x430c54
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x570af8]
xor ecx, eax
dec esi
mov eax, ecx
jne 0x430c36
not eax
pop edi
pop esi
pop ebx
ret
Function at 0x436180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x10]
push eax
push 0x104
push ecx
call fcn.00401160
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4361e6
lea ebx, [esi + 0x10]
lea eax, [esp + 0x10]
mov edi, dword [ebx]
push eax
mov ecx, ebx
call dword [edi + 0x14]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x4361e2
cmp al, 0x2f
je 0x4361e2
lea eax, [esp + 0xf]
mov ecx, ebx
mov byte [esp + 0xf], 0x5c
push eax
call dword [edi + 0x24]
xor eax, eax
jmp 0x4361eb
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x108
ret 4
Function at 0x436870
Capabilities:
Get file attributes
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436a61
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov eax, dword [ecx]
push edi
mov esi, ecx
call dword [eax + 0x30]
push 0x59add0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 0x10]
call dword [ebp - 0x10]
mov edi, dword [esi + 0x24]
push 0x59add0
lea ecx, [esi + 0x24]
call dword [edi + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call fcn.00424280
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push 0x59add8
call fcn.0042f620
cmp eax, 0xffffffff
mov ebx, eax
jle 0x436911
lea eax, [ebx + 1]
lea ecx, [ebp - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0042f860
push eax
lea ecx, [esi + 0x24]
call dword [edi + 0x1c]
push ebx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0042f800
mov ebx, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x24]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x138]
push eax
push 0x104
push ecx
call fcn.00401160
add esp, 0xc
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x43695e
mov dword [ebp - 4], 0xffffffff
call fcn.00436a6b
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [esi + 0xc0]
push 0x80000001
lea eax, [ebp - 0x138]
mov ecx, ebx
push eax
mov edi, dword [ebx]
call dword [edi + 0x1c]
test eax, eax
jne 0x43693a
push 0x14
call fcn.004e370b
mov dword [ebp - 0x28], eax
add esp, 4
mov byte [ebp - 4], 1
mov edi, eax
mov eax, 0
test edi, edi
je 0x43699e
mov ecx, edi
call fcn.00439fc0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.00425820
mov eax, dword [ebx + 4]
push 0x14
mov dword [esi + 0xc8], eax
call fcn.004e370b
mov dword [ebp - 0x28], eax
add esp, 4
mov byte [ebp - 4], 2
mov edi, eax
mov eax, 0
test edi, edi
je 0x4369d6
mov ecx, edi
call fcn.00439c10
push eax
mov ecx, ebx
mov byte [ebp - 4], 0
lea edi, [esi + 0x64]
call fcn.00425820
push 0x5c
mov ecx, ebx
push edi
mov eax, dword [ebx]
call dword [eax + 8]
cmp eax, 0x5c
jne 0x436a3b
cmp dword [edi], 0x42465744
jne 0x436a3b
cmp dword [esi + 0x68], 1
ja 0x436a3b
lea eax, [ebp - 0x138]
lea ecx, [esi + 0x10]
push eax
call dword [ebp - 0x10]
mov ecx, dword [esi + 0x10]
push 0x59add4
mov edi, dword [ecx + 0x20]
lea ecx, [esi + 0x10]
call edi
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x10]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
call fcn.00436a6b
xor eax, eax
jmp 0x43694b
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
jmp 0x43693a