joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e29b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x43e303
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x43e301
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0043e28b
pop ecx
pop ecx
jmp 0x43e303
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x43e3be
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43e443
call esi
cmp eax, 2
jne 0x43e435
lea eax, [ebp - 0x208]
push str.Device_
push eax
call fcn.004dd750
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.004dd760
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x43e4af
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x43e4dc
lea eax, [ebp - 0x408]
push 0x51ca28
push eax
call fcn.004dd750
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004dd760
add esp, 0x10
lea eax, [ebp - 0x408]
push 0xffffffffffffffff
push ebx
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x43e4b5
push ebx
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 4
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43e4a6
call esi
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43e4ba
mov byte [ebp - 1], 1
jmp 0x43e438
call esi
mov dword [ebp - 8], eax
cmp byte [ebp - 1], bl
je 0x43e4d9
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x43e4d9
call esi
jmp 0x43e4dc
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x446f50
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x446f72
imul eax, eax, 0xf4243
and ecx, 0xff
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x446f5c
ret
Function at 0x449682
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4496c0
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov cx, word [eax]
cmp cx, 0x454e
je 0x4496bc
cmp cx, 0x454c
je 0x4496bc
xor ecx, ecx
cmp dword [eax], 0x4550
setne cl
dec ecx
and cx, 0xeb03
add ecx, edx
mov eax, ecx
ret
movzx eax, cx
ret
xor eax, eax
ret

Function at 0x44972e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push esi
push edi
push 1
lea eax, [ebp - 0x1fc]
pop edi
xor esi, esi
push 0x104
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push 0x80
push 4
push esi
push edi
lea eax, [ebp - 0x1fc]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x44977f
mov eax, edi
jmp 0x44980a
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x449802
push ebx
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x4497f5
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
call fcn.00449682
cmp eax, 0x4550
pop ecx
jne 0x4497f5
lea eax, [ebp - 0xf8]
push eax
push ebx
call fcn.004496c3
pop ecx
test eax, eax
pop ecx
jne 0x4497f5
movzx eax, word [ebp - 0xb4]
sub eax, 3
je 0x4497f2
dec eax
dec eax
je 0x4497f2
dec eax
mov dword [ebp - 4], 1
dec eax
jne 0x4497f5
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call edi
pop ebx
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x449b0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x449b3c
cmp dword [ebp + 0xc], 1
jl 0x449b3c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004d9ad0
add esp, 0xc
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
pop ebp
ret
push 0xfffffffffffffffe
pop eax
pop ebp
ret

Function at 0x44a2d2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, 0x100
push esi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004d9ad0
add esp, 0xc
lea eax, [ebp - 0x100]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x100]
test eax, eax
je 0x44a368
cmp byte [ebp - 0x100], 0
je 0x44a368
lea eax, [ebp - 0x100]
push eax
call fcn.004d9400
inc eax
push eax
call fcn.0043e8d8
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x44a368
call fcn.0048bf07
cmp eax, 1
lea eax, [ebp - 0x100]
push eax
jne 0x44a35c
call fcn.004d9400
inc eax
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0044a282
add esp, 0x10
jmp 0x44a364
push esi
call fcn.004dd750
pop ecx
pop ecx
mov eax, esi
jmp 0x44a36a
xor eax, eax
pop esi
leave
ret
Function at 0x454fe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x313]
mov byte [ebp - 0x314], bl
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov esi, 0x104
push eax
lea eax, [ebp - 0x314]
push eax
mov dword [ebp - 8], esi
mov byte [ebp - 0x210], 0x67
mov byte [ebp - 0x20f], 0x72
mov byte [ebp - 0x20e], 0x63
mov byte [ebp - 0x20d], 0x61
mov byte [ebp - 0x20c], 0x75
mov byte [ebp - 0x20b], 0x74
mov byte [ebp - 0x20a], 0x68
mov byte [ebp - 0x209], 0x31
mov byte [ebp - 0x208], 0x2e
mov byte [ebp - 0x207], 0x64
mov byte [ebp - 0x206], 0x6c
mov byte [ebp - 0x205], 0x6c
mov byte [ebp - 0x204], bl
mov byte [ebp - 0x10c], 0x67
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x63
mov byte [ebp - 0x109], 0x61
mov byte [ebp - 0x108], 0x75
mov byte [ebp - 0x107], 0x74
mov byte [ebp - 0x106], 0x68
mov byte [ebp - 0x105], 0x32
mov byte [ebp - 0x104], 0x2e
mov byte [ebp - 0x103], 0x64
mov byte [ebp - 0x102], 0x6c
mov byte [ebp - 0x101], 0x6c
mov byte [ebp - 0x100], bl
call fcn.0048b858
add esp, 0xc
test eax, eax
je 0x4550e0
push 0x12
jmp 0x455166
cmp dword [0x54fd0c], ebx
jne 0x455131
lea eax, [ebp - 0x210]
mov edi, 0x54fd0c
mov dword [ebp - 4], eax
push esi
call fcn.0043e8d8
cmp eax, ebx
pop ecx
mov dword [edi], eax
je 0x455138
push dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x314]
push 0x51d538
push eax
push str._s_s_s
push dword [edi]
call fcn.004dd565
add dword [ebp - 4], esi
add edi, 4
add esp, 0x14
cmp edi, 0x54fd14
jl 0x4550f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [0x54fd0c]
cmp eax, ebx
je 0x45514e
push eax
call fcn.004dce85
pop ecx
mov dword [0x54fd0c], ebx
mov eax, dword [0x54fd10]
cmp eax, ebx
je 0x455164
push eax
call fcn.004dce85
pop ecx
mov dword [0x54fd10], ebx
push 2
pop eax
jmp 0x455133

Function at 0x455169
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], 0x104
je 0x4551de
cmp dword [ebp + 0xc], 0
jle 0x4551de
and byte [ebp - 6], 0
lea eax, [ebp - 4]
push 1
push eax
push esi
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x67
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0x6c
call fcn.0048b858
add esp, 0xc
test eax, eax
je 0x4551c7
push 0x12
jmp 0x4551e0
lea eax, [ebp - 0x10]
push eax
push esi
push 0x51c750
push esi
call fcn.004dd565
add esp, 0x10
xor eax, eax
jmp 0x4551e1
push 0xf
pop eax
pop esi
leave
ret
Function at 0x457cd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, 4
sub esi, ecx
lea eax, [edi + ecx]
lea edx, [esp + ebp + 0x10]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x457cf3
inc ebp
cmp ebp, 4
jl 0x457cdb
cmp edi, 0xb0
jge 0x457daa
mov ebp, 0x521918
xor eax, eax
lea ecx, [esp + 0x10]
inc eax
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x457d2e
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [esp + edx*4 + 0x13]
mov dl, byte [ebx + 0x521718]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x457d1e
mov al, byte [ebp]
mov cl, byte [esp + 0x10]
xor cl, al
add ebp, 4
mov byte [esp + 0x10], cl
mov esi, 1
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x457d68
inc esi
cmp esi, 4
jl 0x457d5f
xor esi, esi
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov ebx, dword [esp + 0x24]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x457d88
inc esi
cmp esi, 4
jl 0x457d7f
cmp edi, 0xb0
jl 0x457d18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x457dc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
push esi
call fcn.00457e40
lea edi, [ebp + 0x10]
mov ebx, 9
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x521718]
mov byte [eax + esi - 1], dl
jl 0x457ddd
push 0
push esi
call fcn.00457e70
push esi
call fcn.00457ec0
push edi
push esi
call fcn.00457e40
add edi, 0x10
dec ebx
jne 0x457ddb
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x521718]
mov byte [eax + esi - 1], dl
jl 0x457e0f
push 0
push esi
call fcn.00457e70
add ebp, 0xa0
push ebp
push esi
call fcn.00457e40
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x457e40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x457e51
pop esi
pop ebx
ret 8

Function at 0x458570
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.004585f0
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x4585df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4585c6
cmp eax, 3
ja 0x4585c6
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4585d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8
Function at 0x458630
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov al, 0x5c
push esi
mov byte [esp + 4], al
mov byte [esp + 5], al
mov byte [esp + 7], al
push 0
mov al, 0x6e
push 0x80
push 3
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
mov byte [esp + 0x22], 0x2e
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x29], 0x55
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2b], 0x62
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x4586d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4586b7
cmp eax, 3
ja 0x4586b7
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x4586c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x458840
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 0xc]
mov edx, 0xc6ef3720
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x458879
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret 8

Function at 0x4589c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 4]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x4589f6
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x4595f5
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x459618
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00459903
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.0045995d
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.004599b5
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.004596f5
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x4595f4
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4596c8
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.004599f5
test ax, ax
je 0x459692
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4596b4
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4596b4
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.004597b5
test al, al
jne 0x4596c8
jmp 0x4596c3
lea edx, [esp + 8]
push esi
push edx
call fcn.00459715
test al, al
jne 0x4596c8
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x4596e3
cmp ax, 0xffff
je 0x4596e3
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8

Function at 0x459a29
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x459a4c
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00459903
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.0045995d
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.004599b5
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.004596f5
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x459a28
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x459af7
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.004599f5
test ax, ax
je 0x459af7
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x459af7
cmp byte [esp + eax + 0xa], 0x3a
jne 0x459af7
lea edx, [esp + eax + 0xb]
push esi
push edx
call fcn.00459715
test al, al
je 0x459af2
mov ax, word [esi]
cmp ax, 1
jl 0x459af2
cmp ax, 7
jle 0x459af7
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x40
ret 8
Function at 0x459b0d
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.00459903
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.0045995d
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.00459c43
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00459bf5
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x459b0c
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x459b7d
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00459b8d
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x459c93
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.00459903
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.0045995d
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.00459cfa
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4

Function at 0x459d3d
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.00459311
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.00459903
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.0045995d
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00459e48
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.00459ea0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.00459f3c
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00459ef4
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x459d3c
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x459e2b
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.00459b8d
test al, al
je 0x459dec
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.00459b8d
test al, al
je 0x459e13
xor eax, eax
mov word [esi], 3
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00459b8d
test al, al
je 0x459e2b
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
Function at 0x45b3dc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc0
push ebx
mov ebx, dword [esp + 0xc8]
test bl, 0x80
je 0x45b54e
push esi
mov esi, dword [esp + 0xd0]
mov eax, esi
mov ecx, esi
and eax, 0xff00
xor edx, edx
shl ecx, 0x10
or eax, ecx
mov ecx, esi
and ecx, 0xff0000
push edi
shr esi, 0x10
or ecx, esi
mov esi, ebx
and esi, 0xf
shl eax, 8
shr ecx, 8
cmp esi, 3
ja case.default.0x45b42d
jmp dword [esi*4 + 0x45b650]
mov edi, 0x20
mov esi, eax
shr esi, 0xd
and esi, 1
mov ebx, esi
xor esi, ecx
shl ebx, 0x1f
shr edx, 1
shl esi, 0x1f
shr eax, 1
or edx, ebx
or esi, eax
shr ecx, 1
dec edi
mov eax, esi
jne 0x45b439
jmp case.default.0x45b42d
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xffff0000
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xfffff000
shl ebx, 0xc
xor edi, ebx
mov ebx, eax
shl edi, 8
and ebx, 0xfff00000
xor edi, ebx
shl edi, 0xb
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x45b464
jmp case.default.0x45b42d
push ebp
mov edi, 0x20
mov esi, ecx
mov ebp, eax
and esi, 1
and ebp, 0xfff80000
mov ebx, esi
shl ebx, 0x13
xor ebx, ebp
shl ebx, 0xc
shr edx, 1
or edx, ebx
mov ebx, eax
and bl, 0
shl esi, 8
xor ebx, esi
mov esi, eax
shl ebx, 0xf
and esi, 0xff800000
xor ebx, esi
shl ebx, 8
shr eax, 1
or eax, ebx
shr ecx, 1
dec edi
jne 0x45b4a6
pop ebp
jmp case.default.0x45b42d
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xfffff800
shl ebx, 0xb
xor edi, ebx
mov ebx, eax
shl edi, 5
and ebx, 0xffff0000
xor edi, ebx
mov ebx, ecx
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xffffff80
shl ebx, 7
xor edi, ebx
mov ebx, eax
shl edi, 0x12
and ebx, 0xfe000000
xor edi, ebx
shl edi, 6
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x45b4ec
xor eax, eax
pop edi
mov al, dh
pop esi
mov ah, dl
and edx, 0xffff0000
or eax, edx
pop ebx
add esp, 0xc0
ret 8
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xc], 0x29
mov byte [esp + 0xd], 0x56
mov byte [esp + 0xe], 0xb2
mov byte [esp + 0xf], 0x39
mov byte [esp + 0x10], 0xa0
mov byte [esp + 0x11], 0xce
mov byte [esp + 0x12], 0xeb
mov byte [esp + 0x13], 0x87
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x15], 0xb4
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], 0xfb
mov byte [esp + 0x18], 0xc
mov byte [esp + 0x19], 0x94
mov byte [esp + 0x1a], 0x37
mov byte [esp + 0x1b], 0x71
call fcn.00457cd0
and ebx, 0xff
mov eax, dword [esp + 0xcc]
mov byte [esp + 4], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esp + 7], al
mov al, bl
mov ah, al
mov ebx, eax
shl ebx, 0x10
shr ecx, 8
shr edx, 0x10
mov bx, ax
mov byte [esp + 5], cl
mov byte [esp + 6], dl
mov dword [esp + 8], ebx
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
mov dword [esp + 0xc], ebx
push ecx
push edx
mov dword [esp + 0x18], ebx
call fcn.00457dc0
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00457cd0
pop ebx
mov eax, dword [esp + 3]
mov edx, dword [esp + 2]
mov ecx, dword [esp + 1]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [esp]
shl eax, 8
or eax, ecx
and edx, 0xff
shl eax, 8
or eax, edx
add esp, 0xc0
ret 8