joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abe7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4229d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push 0
push 0
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
push edx
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
je 0x41ac3a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x30]
mov esi, dword [esi]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
push edx
push ecx
push esi
call dword [eax + 0xc]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x41b960
Capabilities:
Create directory

Disassembly:
mov al, byte [0x42b9e8]
sub esp, 0xc
test al, al
jne 0x41b99a
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 4]
push eax
push ecx
call fcn.0041b820
mov eax, dword [eax]
push eax
call fcn.0041b940
mov edx, dword [esp + 0x10]
mov bl, al
push edx
call fcn.004020d0
add esp, 0x10
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add esp, 0xc
ret

Function at 0x41d550
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41fc00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x422e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov dl, byte [esp + 0x18]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov dword [esi], 0x424554
mov dword [esi + 4], 0x42417c
mov dword [esi + 8], 0x424544
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], esi
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x20]
mov dword [esp + 0x18], ebx
mov byte [esi + 0x24], al
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 8
mov byte [esp + 0x1c], 2
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
call fcn.0041df00
mov edi, eax
mov eax, dword [esi + 0x40]
add esp, 4
cmp eax, ebx
jle 0x41fcb1
mov ecx, dword [esi + 0x3c]
xor eax, eax
cmp ecx, ebx
jle 0x41fca5
mov ecx, dword [esi + 0x38]
inc eax
mov dx, word [ecx + eax*2 - 2]
mov word [edi + eax*2 - 2], dx
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jl 0x41fc90
mov eax, dword [esi + 0x38]
push eax
call fcn.004020d0
add esp, 4
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], edi
mov word [edi + eax*2], bx
mov dword [esi + 0x40], 4
lea ecx, [esi + 0x44]
push 3
mov byte [esp + 0x1c], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00410450
push 8
mov byte [esp + 0x1c], 4
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
call fcn.0041df00
mov edi, eax
mov eax, dword [esi + 0x58]
add esp, 4
cmp eax, ebx
jle 0x41fd24
mov ecx, dword [esi + 0x54]
xor eax, eax
cmp ecx, ebx
jle 0x41fd18
mov ecx, dword [esi + 0x50]
inc eax
mov dx, word [ecx + eax*2 - 2]
mov word [edi + eax*2 - 2], dx
mov ecx, dword [esi + 0x54]
cmp eax, ecx
jl 0x41fd03
mov eax, dword [esi + 0x50]
push eax
call fcn.004020d0
add esp, 4
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x50], edi
mov eax, esi
mov word [edi + ecx*2], bx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], 4
mov byte [esi + 0x5c], bl
mov dword [esi + 0x74], ebx
mov dword [esi], 0x424524
mov dword [esi + 4], 0x424514
mov dword [esi + 8], 0x424504
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4209a0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x400
push edi
push esi
call fcn.0041df00
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov ebp, eax
push esi
push ebp
push edi
call ebx
cmp eax, esi
jbe 0x4209e7
push ebp
add esi, 0x400
call fcn.004020d0
push esi
call fcn.0041df00
add esp, 8
mov ebp, eax
push esi
push ebp
push edi
call ebx
cmp eax, esi
ja 0x4209c7
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0xfffffffd
mov dword [esp + 0x14], esi
jbe 0x420a04
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebx, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], edx
cmp ecx, edx
je 0x420a3f
mov al, byte [ecx - 1]
test al, al
je 0x420a3f
cmp al, 0xff
je 0x420a3f
cmp esi, edx
jne 0x420a71
dec al
push ebp
mov byte [ecx - 1], al
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
call fcn.004020d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
cmp esi, edx
jne 0x420a5b
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebp
call fcn.004020d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x420a67
cmp eax, esi
jae 0x420a7a
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
call fcn.004020d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x73a21f7b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x351d6174
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x10ea5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10ea51a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10ea507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ea506a
add dl, dl
jne 0x10ea5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ea50dc
xor eax, eax
add dl, dl
jne 0x10ea5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ea517d
add dl, dl
jne 0x10ea50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ea50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ea50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ea50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10ea50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10ea5075
mov eax, 1
add dl, dl
jne 0x10ea50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ea50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ea50e1
sub eax, ebx
mov ebx, 1
jne 0x10ea5128
mov ecx, 1
add dl, dl
jne 0x10ea510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ea5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ea5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ea5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10ea513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ea514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ea5136
cmp eax, 0x7d00
jae 0x10ea516d
cmp eax, 0x500
jb 0x10ea5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ea5075
cmp eax, 0x7f
ja 0x10ea5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ea5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10ea519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10ea5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40c110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov bl, cl
mov esi, edx
push 0x4b639a
lea ecx, [ebp - 0x1c]
call fcn.0040c569
cmp byte [ebp + 8], 0
je 0x40c146
mov edi, 0x4b8328
push edi
call fcn.0040bea1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040cf51
mov edi, 0x4b832c
push edi
call fcn.0040bea1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040cf51
push 0xffffffffffffffff
xor edi, edi
lea eax, [ebp + 0xc]
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cff4
test bl, bl
jne 0x40c192
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push edi
cmovae eax, dword [ebp - 0x1c]
push edi
push eax
push 0x4b8330
push 0x4b8338
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40c1fa
push 0x38
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0043dd90
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x54], 0x240
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 0x4b8338
mov dword [ebp - 0x48], 0x4b8330
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
imul eax, esi, 0x3e8
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040c9b2
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.0040c9b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c217
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
push ebx
mov ebx, ecx
push esi
push edi
push 0x4b836c
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.0044659a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40c246
xor esi, esi
jmp 0x40c289
push 2
push 0
push edi
call fcn.00449ab8
push edi
call fcn.0044628e
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x40c282
push 0
push 0
push edi
call fcn.00449ab8
add esp, 0xc
mov ecx, ebx
push esi
call fcn.0040c3ba
push edi
push 1
push esi
push dword [ebx]
call fcn.0044c8cf
add esp, 0x10
push edi
call fcn.004467b3
pop ecx
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040c714
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x47d180
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4cf95c], 0
jne 0x47d18e
call fcn.00480ca0
cmp byte [0x4cf966], 0
je 0x47d1ac
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00483f90
add esp, 0x10
ret
jmp fcn.0047b4b0

Function at 0x47ed40
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 8], ebx
push edi
mov edi, dword [esp + 0x14]
cmp esi, 4
jb 0x47ed78
mov edx, esi
shr edx, 2
mov ecx, dword [edi]
sub esi, 4
xor ecx, dword [eax]
add edi, 4
or ebx, ecx
add eax, 4
sub edx, 1
jne 0x47ed60
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0xc]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 0x18
or ebx, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
or ebx, ecx
movzx ecx, dl
or ebx, ecx
test esi, esi
je 0x47edb4
sub edi, eax
nop
movzx edx, byte [edi + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or ebx, edx
sub esi, 1
jne 0x47eda0
xor eax, eax
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
pop ecx
ret

Function at 0x47edc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x47eee6
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
cmp eax, 4
jb 0x47ee03
mov esi, eax
shr esi, 2
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [ebx]
add edi, 4
mov dword [edx], ecx
add ebx, 4
add edx, 4
sub esi, 1
jne 0x47ede8
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x47eee2
cmp eax, 0x20
jb 0x47eebd
lea ecx, [ebx - 1]
lea esi, [edx - 1]
add ecx, eax
add esi, eax
cmp edx, ecx
ja 0x47ee35
cmp esi, ebx
jae 0x47eebd
lea ecx, [edi - 1]
add ecx, eax
cmp edx, ecx
ja 0x47ee42
cmp esi, edi
jae 0x47eebd
mov ecx, eax
lea esi, [edx + 0x10]
mov eax, edx
mov dword [esp + 0x18], esi
sub eax, ebx
mov esi, edi
mov dword [esp + 0x20], eax
and ecx, 0xffffffe0
sub esi, ebx
mov dword [esp + 0x28], ecx
mov eax, edi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
nop dword [eax]
movups xmm0, xmmword [ecx]
add ebp, 0x20
lea ecx, [ecx + 0x20]
lea esi, [esi + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [edx + ecx - 0x20], xmm1
movups xmm1, xmmword [edi + esi - 0x20]
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [esi - 0x20], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x47ee80
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ebp, eax
jae 0x47eee2
sub edi, ebx
lea esi, [ebx + ebp]
sub edx, ebx
sub eax, ebp
nop word [eax + eax]
mov cl, byte [esi + edi]
lea esi, [esi + 1]
xor cl, byte [esi - 1]
mov byte [esi + edx - 1], cl
sub eax, 1
jne 0x47eed0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x47eef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47ef98
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp eax, 4
jb 0x47ef22
mov edx, eax
shr edx, 2
mov ecx, dword [esi]
sub eax, 4
xor dword [edi], ecx
add esi, 4
add edi, 4
sub edx, 1
jne 0x47ef10
push ebx
xor ebx, ebx
test eax, eax
je 0x47ef95
cmp eax, 0x20
jb 0x47ef7c
lea ecx, [esi - 1]
lea edx, [edi - 1]
add ecx, eax
add edx, eax
cmp edi, ecx
ja 0x47ef40
cmp edx, esi
jae 0x47ef7c
push ebp
mov edx, eax
mov ebp, esi
and edx, 0xffffffe0
mov ecx, edi
sub ebp, edi
nop dword [eax]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [ecx + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [esi + ebx + 0x10]
add ebx, 0x20
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp ebx, edx
jb 0x47ef50
pop ebp
cmp ebx, eax
jae 0x47ef95
sub esi, edi
lea edx, [ebx + edi]
sub eax, ebx
mov cl, byte [edx + esi]
lea edx, [edx + 1]
xor byte [edx - 1], cl
sub eax, 1
jne 0x47ef87
pop ebx
pop edi
pop esi
ret

Function at 0x485530
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00485540
Function at 0x41d510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ecx + 4]
xor eax, eax
push esi
push edi
mov edi, dword [ecx]
xor esi, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
mov dword [edi + 0x16], eax
test ebx, ebx
jle 0x41d54d
nop
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x5326d0]
cmp esi, ebx
jl 0x41d530
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx + 0xc]
xor esi, esi
test ebx, ebx
jle 0x41d57d
mov edi, dword [ecx + 8]
nop dword [eax]
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x5326d0]
cmp esi, ebx
jl 0x41d560
mov edi, dword [ebp - 8]
mov byte [edi + 0x16], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x18], cl
shr eax, 0x18
mov byte [edi + 0x19], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x988]
mov edi, ecx
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4211dc
push 1
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x370]
push eax
call fcn.004f5990
push 1
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.004f5db0
add esp, 0x18
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x370]
push ecx
lea ecx, [edi + 0x634]
call fcn.00421a10
test eax, eax
je 0x4211dc
push ebx
lea ecx, [ebp - 0x370]
lea ebx, [edi + 0x1c]
mov eax, ecx
mov edx, ebx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x421181
lea edx, [ebp - 0x64]
lea ecx, [edi + 0x328]
mov eax, edx
mov esi, ecx
sub esi, eax
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x4211a0
push ecx
push ebx
lea ecx, [edi + 0x634]
mov dword [edi + 0x14], 0
call fcn.00421b00
pop ebx
mov dword [edi + 0x18], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret 8

Function at 0x421500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42152a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add dword [esi + 0x14], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x421570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42159a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add dword [esi + 0x14], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x424bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx + 0x64]
xor ebx, ebx
imul edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], ecx
test edi, edi
je 0x424c1b
nop dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, esi
shr eax, 1
movzx edx, byte [eax + edx]
lea eax, [ecx + 0xa8]
lea eax, [eax + ebx*8]
mov ecx, esi
push eax
mov eax, edx
shr edx, 4
and eax, 0xf
and cl, 1
cmove edx, eax
push edx
call fcn.00427250
mov ecx, dword [ebp + 8]
add esp, 8
mov word [ecx + esi*2], ax
mov eax, ebx
mov ecx, dword [ebp - 4]
xor eax, 1
inc esi
cmp dword [ecx + 0x64], 2
cmovne eax, ebx
mov ebx, eax
cmp esi, edi
jb 0x424bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4255c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x64]
imul eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x42561b
nop word [eax + eax]
push dword [edi + 0x8c]
lea eax, [edi + 0xa8]
lea eax, [eax + ebx*8]
push eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
push eax
call fcn.004272d0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov word [ecx + esi*2], ax
mov eax, ebx
xor eax, 1
inc esi
cmp dword [edi + 0x64], 2
cmovne eax, ebx
mov ebx, eax
cmp esi, dword [ebp + 0x10]
jb 0x4255e0
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x426ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50feb6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5522f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CWaveStreamCtrl.0
call fcn.0044b600
mov dword [ebp - 4], 0
lea ecx, [edi + 0x30]
call fcn.00421200
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
mov eax, dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], eax
call fcn.004218a0
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42b810
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x42b82f
pop edi
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
xor eax, eax
lea esi, [edi + 4]
cmp edi, 0xc
cmove esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movups xmmword [ebx], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x42b905
dec eax
test dword [ebp - 8], eax
jne 0x42b905
cmp dword [edi + 0x44], 1
jne 0x42b88a
push esi
mov edi, 0x8004020f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x30]
jge 0x42b8a9
push esi
mov edi, 0x80040210
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
add ecx, eax
mov dword [ebp + 0x10], eax
mov eax, ecx
cdq
idiv dword [ebp + 8]
test edx, edx
je 0x42b8c5
mov eax, dword [ebp + 8]
sub eax, edx
add ecx, eax
sub ecx, dword [ebp + 0x10]
mov dword [edi + 0x34], ecx
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x38], eax
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x3c], eax
mov dword [ebx + 0xc], eax
mov dword [edi + 0x40], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov edi, 0x8004020e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc