joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4256d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x44e7a0]
push edi
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4256f6
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
call fcn.00437d67
add esp, 0x14
ret
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov cl, 0x20
call fcn.00438010
mov ecx, dword [esi]
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0xc]
push edx
push 0xa
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], 0xa
je 0x425749
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
call fcn.00437d67
add esp, 0x14
ret
push 3
lea ecx, [esp + 0x10]
push 0x441e10
push ecx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x425738
mov al, byte [esp + 0xf]
cmp al, 2
jb 0x425738
cmp al, 4
ja 0x425738
mov dl, byte [esp + 0x11]
test dl, 0xf
jne 0x425738
test dl, dl
js 0x425738
mov ecx, dword [esp + 0x12]
mov eax, ecx
mov edi, ecx
and eax, 0xff00
push ebx
xor ebx, ebx
mov bh, byte [esp + 0x18]
shr ecx, 0x18
shl edi, 0x10
add eax, edi
shl eax, 8
add eax, ebx
add eax, ecx
mov ecx, eax
shr ecx, 1
and ecx, 0x7fffff80
and eax, 0x7f
or ecx, eax
mov eax, ecx
shr eax, 1
and ecx, 0x3fff
and eax, 0x7fffe000
or eax, ecx
mov ecx, eax
shr ecx, 1
and ecx, 0x7ff00000
and eax, 0x1fffff
or ecx, eax
test dl, 0x10
je 0x4257d7
add ecx, 0xa
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 4]
xor edx, edx
add ecx, 0xa
cmp edi, edx
ja 0x425801
jb 0x4257ef
mov edi, dword [eax]
cmp edi, ecx
ja 0x425801
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
call fcn.00437d67
add esp, 0x14
ret
mov ebx, dword [esi]
mov edi, dword [esi + 4]
add ebx, ecx
mov dword [esi], ebx
adc edi, edx
mov dword [esi + 4], edi
mov esi, dword [eax]
sub esi, ecx
mov ecx, dword [eax + 4]
sbb ecx, edx
pop ebx
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
pop esi
mov eax, 1
pop edi
call fcn.00437d67
add esp, 0x14
ret
Function at 0x425840
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x8c
mov eax, dword [0x44e7a0]
push esi
mov esi, dword [esp + 0x94]
cmp esi, 0xffffffff
mov dword [esp + 0x8c], eax
jne 0x425875
xor eax, eax
pop esi
mov ecx, dword [esp + 0x88]
call fcn.00437d67
add esp, 0x8c
ret
push ebx
mov ebx, dword [esp + 0xa0]
mov ecx, dword [ebx + 4]
test ecx, ecx
mov edx, dword [ebx]
ja 0x4258a7
jb 0x425890
cmp edx, 0x80
ja 0x4258a7
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x88]
call fcn.00437d67
add esp, 0x8c
ret
mov eax, dword [esp + 0x9c]
push edi
mov edi, dword [eax]
add edi, edx
mov edx, dword [eax + 4]
adc edx, ecx
add edi, 0xffffff80
adc edx, 0xffffffff
push 0
mov dword [esp + 0x14], edx
mov edx, dword [eax]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + eax - 0x80]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push 0x80
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0x80
je 0x425913
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x88]
call fcn.00437d67
add esp, 0x8c
ret
mov ecx, 3
mov edi, 0x441e14
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4258fb
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
add ecx, 0xffffff80
adc eax, 0xffffffff
pop edi
mov dword [ebx], ecx
mov ecx, dword [esp + 0x90]
mov dword [ebx + 4], eax
pop ebx
mov eax, 1
pop esi
call fcn.00437d67
add esp, 0x8c
ret

Function at 0x425960
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x44e7a0]
push esi
mov esi, dword [esp + 0x90]
cmp esi, 0xffffffff
mov dword [esp + 0x88], eax
je 0x4259d7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x80
jb 0x4259d7
push 2
push 0
push 0xffffffffffffff80
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 8]
push eax
push 0x80
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 4], 0x80
jne 0x4259d7
push 3
lea edx, [esp + 0xc]
push 0x441e14
push edx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4259ed
xor eax, eax
pop esi
mov ecx, dword [esp + 0x84]
call fcn.00437d67
add esp, 0x88
ret
push edi
mov edi, dword [esp + 0x98]
mov ecx, 0x20
lea esi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x8c]
pop edi
mov eax, 1
pop esi
call fcn.00437d67
add esp, 0x88
ret
Function at 0x426450
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43b3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x3c]
push edi
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 4]
add esi, 0x30
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.00413400
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov esi, dword [esi + 4]
push edi
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x426b90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x43b468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x3c]
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x14]
and eax, 0xffffff00
lea edi, [esi + 0x30]
push edx
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], eax
call fcn.00425ee0
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esi + 0x34]
je 0x426c03
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x10], eax
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp + 0x18], eax
mov byte [ebp + 0x1c], 0
jmp 0x426c37
mov ebp, dword [esp + 0x3c]
mov esi, 1
mov byte [esp + 0x24], 0
call sub.KERNEL32.dll_GetTickCount
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov ebx, eax
call fcn.00426990
mov edx, dword [esp + 0x24]
mov dword [eax], ebp
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x426c60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x43b468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x3c]
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x14]
and eax, 0xffffff00
lea edi, [esi + 0x30]
push edx
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], eax
call fcn.00425ee0
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esi + 0x34]
je 0x426cee
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp + 0x18]
add ecx, 0x927c0
cmp eax, ecx
ja 0x426cee
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov al, byte [esp + 0x3c]
test al, al
je 0x426d2b
mov esi, 1
mov ebx, 0x1000
call sub.KERNEL32.dll_GetTickCount
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov ebp, eax
mov byte [esp + 0x28], 1
call fcn.00426990
mov ecx, dword [esp + 0x24]
mov dword [eax], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + 4], esi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x429cc0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x429cd0
xor al, al
pop edi
ret 4
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [edi + 0x2c]
push esi
mov esi, eax
shr esi, 3
lea edx, [ecx + esi]
and eax, 7
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov cl, byte [edx]
push 0
not al
and cl, al
mov byte [edx], cl
mov edx, dword [edi + 0x28]
lea ecx, [esi + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
jge 0x429d16
pop esi
xor al, al
pop edi
ret 4
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
push eax
push 1
add ecx, esi
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
test eax, eax
pop esi
setne al
pop edi
ret 4
Function at 0x429d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x429ec3
mov ebp, dword [esi + 0x7c]
mov eax, dword [esi + 0x2c]
mov edi, ebp
and ebp, 7
mov ecx, 7
sub ecx, ebp
mov dl, 1
shl dl, cl
shr edi, 3
mov cl, byte [eax + edi]
add eax, edi
or cl, dl
mov byte [eax], cl
mov ecx, dword [esi + 0x28]
push ebx
lea eax, [edi + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
jge 0x429dde
push 0x7f
lea edx, [esp + 0x14]
push str.Fseek_map_file_error
push edx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x446b4c
lea eax, [esp + 0x98]
mov byte [esp + 0x93], bl
mov dword [esp + 0x94], ebx
mov ecx, 0x21
lea esi, [esp + 0x14]
lea edi, [esp + 0x98]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
push ecx
push 1
add edx, edi
push 1
push edx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x429e40
push 0x7f
lea eax, [esp + 0x14]
push str.Write_data_to_map_file_error
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x8f], bl
mov dword [esp + 0x90], ebx
mov ecx, 0x21
lea esi, [esp + 0x10]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
push 0x446b4c
lea ecx, [esp + 0x98]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x7c]
inc edx
cmp eax, ecx
mov dword [esi + 0x34], edx
jne 0x429ec3
inc eax
inc ebp
cmp ebp, 8
mov dword [esi + 0x38], eax
jae 0x429e7a
mov edx, dword [esi + 0x2c]
mov ecx, 7
add edx, edi
sub ecx, ebp
mov bl, 1
shl bl, cl
test byte [edx], bl
je 0x429ec3
inc eax
inc ebp
dec ecx
cmp ebp, 8
mov dword [esi + 0x38], eax
jb 0x429e67
mov eax, dword [esi + 0x30]
inc edi
test al, 7
jne 0x429e87
shr eax, 3
jmp 0x429e8b
shr eax, 3
inc eax
mov edx, eax
cmp edi, edx
jae 0x429ec3
mov ebp, dword [esi + 0x2c]
cmp byte [edi + ebp], 0xff
jne 0x429ea0
add dword [esi + 0x38], 8
jmp 0x429ebe
xor eax, eax
mov ecx, 7
mov bl, 1
shl bl, cl
test byte [edi + ebp], bl
je 0x429ec3
mov ebx, dword [esi + 0x38]
inc ebx
inc eax
dec ecx
cmp eax, 8
mov dword [esi + 0x38], ebx
jb 0x429ea7
inc edi
cmp edi, edx
jb 0x429e94
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43bafe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x14]
push eax
mov dword [esp + 0x1c], edi
call ebx
lea eax, [esi + 0x40]
push eax
call ebx
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
pop edi
mov dword [esi + 0x30], 0x1000
mov byte [esi + 0x3c], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42ea00
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x44e7a0]
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ea14
sub eax, edx
cmp eax, 8
je 0x42ea30
xor eax, eax
pop esi
mov ecx, dword [esp]
add esp, 4
jmp fcn.00437d67
push 0x10
push 0
push esi
call dword [sym.imp.MSVCR71.dll_strtoul]
mov ecx, dword [esp + 0x10]
add esp, 0xc
pop esi
add esp, 4
jmp fcn.00437d67
Function at 0x42efc0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edi, edi
jle 0x42eff3
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ebx]
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + ebp]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x42efe0
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x42f240
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ecx, 2
mov edi, ebp
xor dl, dl
mov dword [esp + 0xc], ecx
mov esi, 6
sub edi, eax
mov dword [esp + 0x18], 3
push ebx
lea esp, [esp]
mov bl, byte [eax]
shr bl, cl
mov ecx, esi
sub esi, 2
or bl, dl
mov byte [edi + eax], bl
mov dl, byte [eax]
mov ebx, dword [esp + 0x1c]
shl dl, cl
mov ecx, dword [esp + 0x10]
add ecx, 2
mov dword [esp + 0x10], ecx
shr dl, 2
inc eax
dec ebx
mov dword [esp + 0x1c], ebx
jne 0x42f270
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 2]
and cl, 0x3f
mov byte [ebp + 3], cl
xor ecx, ecx
pop ebx
lea esp, [esp]
mov al, byte [ecx + ebp]
cmp al, 0x19
ja 0x42f2be
add al, 0x41
mov byte [ecx + ebp], al
jmp 0x42f2ee
cmp al, 0x1a
jb 0x42f2cd
cmp al, 0x33
ja 0x42f2cd
add al, 0x47
mov byte [ecx + ebp], al
jmp 0x42f2ee
cmp al, 0x34
jb 0x42f2dc
cmp al, 0x3d
ja 0x42f2dc
sub al, 4
mov byte [ecx + ebp], al
jmp 0x42f2ee
cmp al, 0x3e
jne 0x42f2e6
mov byte [ecx + ebp], 0x2b
jmp 0x42f2ee
cmp al, 0x3f
jne 0x42f2ee
mov byte [ecx + ebp], 0x2f
inc ecx
cmp ecx, 4
jl 0x42f2b0
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x42f300
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
mov al, byte [edx + ecx]
cmp al, 0x41
jb 0x42f318
cmp al, 0x5a
ja 0x42f318
sub al, 0x41
mov byte [edx + ecx], al
jmp 0x42f352
cmp al, 0x61
jb 0x42f327
cmp al, 0x7a
ja 0x42f327
sub al, 0x47
mov byte [edx + ecx], al
jmp 0x42f352
cmp al, 0x30
jb 0x42f336
cmp al, 0x39
ja 0x42f336
add al, 4
mov byte [edx + ecx], al
jmp 0x42f352
cmp al, 0x2b
jne 0x42f340
mov byte [edx + ecx], 0x3e
jmp 0x42f352
cmp al, 0x2f
jne 0x42f34a
mov byte [edx + ecx], 0x3f
jmp 0x42f352
cmp al, 0x3d
jne 0x42f352
mov byte [edx + ecx], 0
inc edx
cmp edx, 4
jl 0x42f306
mov al, byte [ecx]
shl al, 2
push esi
mov esi, dword [esp + 0xc]
mov byte [esi], al
mov dl, byte [ecx + 1]
shr dl, 4
or dl, al
mov byte [esi], dl
mov al, byte [ecx + 1]
shl al, 4
mov byte [esi + 1], al
mov dl, byte [ecx + 2]
shr dl, 2
or dl, al
mov byte [esi + 1], dl
mov al, byte [ecx + 2]
shl al, 6
mov byte [esi + 2], al
mov cl, byte [ecx + 3]
or cl, al
mov byte [esi + 2], cl
pop esi
ret
Function at 0x430430
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x44e7a0]
mov dword [esp + 0x58], eax
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00430250
push esi
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00430330
mov ecx, dword [esp + 0x5c]
pop esi
call fcn.00437d67
add esp, 0x5c
ret 8

Function at 0x4304b0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
test ebp, ebp
jle 0x43053e
lea edx, [ebp - 1]
mov eax, 0xaaaaaaab
mul edx
push ebx
push esi
mov esi, dword [esp + 0x18]
shr edx, 1
add esi, 2
inc edx
lea edi, [edx + edx*2]
lea esp, [esp]
movzx eax, byte [esi - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx ebx, byte [esi - 1]
xor eax, eax
mov al, byte [esi - 2]
shr ebx, 4
inc ecx
add esi, 3
and eax, 3
shl eax, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx ebx, byte [esi - 3]
xor eax, eax
mov al, byte [esi - 4]
shr ebx, 6
inc ecx
and eax, 0xf
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
xor eax, eax
mov al, byte [esi - 3]
inc ecx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
dec edx
jne 0x4304e0
pop esi
pop ebx
lea edx, [ebp + 1]
cmp edi, edx
jne 0x430557
mov eax, ecx
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
sub eax, ecx
pop ebp
ret
add ebp, 2
cmp edi, ebp
jne 0x430566
mov al, 0x3d
mov byte [ecx - 2], al
mov byte [ecx - 1], al
mov eax, ecx
mov byte [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
sub eax, ecx
pop ebp
ret
Function at 0x430580
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREKWMUSIC
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 1
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4305fd
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
push str.KWMUSIC_HOME
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4305f2
mov byte [esi], 0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430602
sub eax, edx
mov dword [esp + 0x18], eax
jne 0x430618
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
pop edi
mov byte [esi + ebx - 1], 0
pop esi
mov al, 1
pop ebx
pop ecx
ret

Function at 0x4306f0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43be89
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
push 0x43d5a0
mov dword [edi], 0
push eax
mov dword [esp + 0x1c], 0
mov dword [ebx], 0
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
jne 0x43076a
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x43074a
lea eax, [esp + 0x20]
push 0
push 0x8000080
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430790
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4309c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44e7a0]
push esi
mov dword [esp + 0x10c], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x23
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x430a37
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4309f8
mov cx, word [0x43d3cc]
mov esi, dword [esp + 0x118]
lea edx, [esp + 0xc]
mov word [edi], cx
push edx
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x108]
call fcn.00437d67
add esp, 0x10c
ret 4
mov esi, dword [esp + 0x114]
push 0x43d5a0
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
call fcn.00437d67
add esp, 0x10c
ret 4

Function at 0x430a70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [ecx + eax]
xor eax, eax
cmp ecx, edx
jae 0x430a93
push esi
movzx esi, byte [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x430a82
pop esi
ret

Function at 0x430df0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 3
jne 0x430e42
mov al, byte [esp + 0x10]
test al, al
je 0x430e0c
mov dword [esi + 0x10], 0
xor eax, eax
jmp 0x430e18
mov dword [esi + 0x10], 1
mov eax, 4
mov edx, dword [esp + 0xc]
lea ecx, [esi + 8]
push ecx
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
ja 0x430e48
mov dword [esi + 0x10], 3
xor al, al
pop esi
ret 0xc
mov al, 1
pop esi
ret 0xc

Function at 0x430e50
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x430e6c
cmp dword [esi + 0x10], 1
jne 0x430e77
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x430e70
xor al, al
pop esi
ret
mov dword [esi + 0x10], 0
mov al, 1
pop esi
ret

Function at 0x431240
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x431266
mov edx, dword [esi + 0x10]
mov ecx, 3
cmp edx, ecx
je 0x431271
push 0
push eax
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x43126a
xor al, al
pop esi
ret
mov ecx, esi
call fcn.00431210
mov al, 1
pop esi
ret