joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e830
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x17c
mov eax, dword [esp + 0x188]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov edi, 0x67452301
mov esi, 0xefcdab89
mov ebx, 0x98badcfe
mov dword [esp + 0x48], ebp
test eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], 0x10325476
mov dword [esp + 0x1c], 0xc3d2e1f0
jle 0x43e9dd
mov ecx, dword [esp + 0x194]
add eax, 0xf
shr eax, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
sub edi, 0x38
mov dword [esp + 0x30], ecx
cmp ebx, 0x10
jge 0x43e8c9
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
jmp 0x43e8e4
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x18]
mov esi, dword [edi - 8]
mov edx, dword [edi]
xor ecx, eax
push 1
xor ecx, esi
xor ecx, edx
push ecx
mov ecx, ebp
call fcn.0043ea20
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.0043ebe0
mov edx, dword [esp + 0x2c]
push 5
push edx
mov ecx, ebp
mov esi, eax
call fcn.0043ea20
mov ecx, dword [esp + 0x10]
mov edx, eax
add edx, ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x48], edx
call fcn.0043e7f0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x48]
mov esi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [edi + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x24]
add esi, eax
mov eax, dword [esp + 0x18]
push 0x1e
push ecx
mov ecx, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
call fcn.0043ea20
mov edx, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
add edx, 4
add edi, 4
cmp ebx, 0x50
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
jl 0x43e8bc
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add edi, esi
mov esi, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x20]
add esi, ebx
mov ebx, dword [esp + 0x34]
add ecx, eax
mov eax, dword [esp + 0x38]
add ebx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
add edx, ecx
mov ecx, dword [esp + 0x28]
add ecx, 0x40
dec eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jne 0x43e88f
push 0x14
mov ebp, 5
call fcn.00484998
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x194]
add esp, 4
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [ecx], eax
pop edi
mov dword [ecx + 4], ebp
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x17c
ret 0xc
Function at 0x43f4c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov eax, dword [edi]
push eax
call fcn.0043efb0
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call fcn.0043efb0
mov ebp, dword [esp + 0x30]
mov edi, eax
mov edx, dword [ebp]
push edx
call fcn.0043efb0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
push eax
call fcn.0043efb0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
push ecx
call fcn.0043efb0
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
push edx
call fcn.0043efb0
add esp, 0x18
mov ecx, 0x10
mov ebp, dword [esp + 0x14]
mov edx, edi
shr edx, 5
add edx, ebp
mov ebp, edi
shl ebp, 4
add ebp, dword [esp + 0x10]
sub ebx, 0x61c88647
xor edx, ebp
lea ebp, [edi + ebx]
xor edx, ebp
add esi, edx
mov ebp, esi
mov edx, esi
shl ebp, 4
add ebp, dword [esp + 0x18]
shr edx, 5
add edx, eax
xor edx, ebp
lea ebp, [esi + ebx]
xor edx, ebp
add edi, edx
dec ecx
jne 0x43f51e
push esi
call fcn.0043efb0
mov esi, dword [esp + 0x30]
push edi
mov dword [esi], eax
call fcn.0043efb0
add esp, 8
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov ebx, 0xe3779b90
mov eax, dword [esi]
push eax
call fcn.0043efb0
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call fcn.0043efb0
mov ebp, dword [esp + 0x30]
mov esi, eax
mov edx, dword [ebp]
push edx
call fcn.0043efb0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
push eax
call fcn.0043efb0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
push ecx
call fcn.0043efb0
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
push edx
call fcn.0043efb0
add esp, 0x18
mov ecx, 0x10
mov ebp, edi
mov edx, edi
shl ebp, 4
add ebp, dword [esp + 0x18]
shr edx, 5
add edx, eax
xor edx, ebp
lea ebp, [edi + ebx]
xor edx, ebp
mov ebp, dword [esp + 0x14]
sub esi, edx
mov edx, esi
shr edx, 5
add edx, ebp
mov ebp, esi
shl ebp, 4
add ebp, dword [esp + 0x10]
xor edx, ebp
lea ebp, [esi + ebx]
xor edx, ebp
add ebx, 0x61c88647
sub edi, edx
dec ecx
jne 0x43f5e1
push edi
call fcn.0043efb0
mov edi, dword [esp + 0x30]
push esi
mov dword [edi], eax
call fcn.0043efb0
add esp, 8
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x440440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x497d11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00427540
mov ecx, dword [0x4be818]
lea ebp, [esi + 4]
mov eax, ebp
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
mov dword [eax + 0x10], ecx
mov edx, dword [0x4be818]
mov dword [eax + 0x14], edx
lea ebx, [eax + 0x48]
lea eax, [esp + 0x11]
push eax
mov ecx, ebx
mov byte [esp + 0x2c], 2
mov dword [esp + 0x20], ebx
call fcn.00450a50
lea ecx, [esp + 0x12]
mov byte [esp + 0x28], 3
push ecx
lea ecx, [ebx + 0x10]
call fcn.00450a50
lea edx, [esp + 0x13]
lea ecx, [ebx + 0x20]
push edx
mov byte [esp + 0x2c], 4
call fcn.00450a50
mov eax, 0xa
mov dword [esi + 0x98], 0x4a0a24
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], eax
mov dword [esi + 0xcc], eax
mov al, byte [esp + 0x13]
mov dword [esi + 0xb4], 0x4a0a18
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xc8], edi
mov byte [esi + 0xd0], al
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov ecx, dword [0x4be818]
mov dword [esi + 0x104], ecx
mov edx, dword [0x4be818]
mov dword [esi + 0x114], edx
mov dword [esi], 0x4a0a10
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x110], edi
mov dword [ebp], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push edi
push 1
push edi
push edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x44045a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x497d11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00427540
mov ecx, dword [0x4be818]
lea ebp, [esi + 4]
mov eax, ebp
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
mov dword [eax + 0x10], ecx
mov edx, dword [0x4be818]
mov dword [eax + 0x14], edx
lea ebx, [eax + 0x48]
lea eax, [esp + 0x11]
push eax
mov ecx, ebx
mov byte [esp + 0x2c], 2
mov dword [esp + 0x20], ebx
call fcn.00450a50
lea ecx, [esp + 0x12]
mov byte [esp + 0x28], 3
push ecx
lea ecx, [ebx + 0x10]
call fcn.00450a50
lea edx, [esp + 0x13]
lea ecx, [ebx + 0x20]
push edx
mov byte [esp + 0x2c], 4
call fcn.00450a50
mov eax, 0xa
mov dword [esi + 0x98], 0x4a0a24
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], eax
mov dword [esi + 0xcc], eax
mov al, byte [esp + 0x13]
mov dword [esi + 0xb4], 0x4a0a18
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xc8], edi
mov byte [esi + 0xd0], al
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov ecx, dword [0x4be818]
mov dword [esi + 0x104], ecx
mov edx, dword [0x4be818]
mov dword [esi + 0x114], edx
mov dword [esi], 0x4a0a10
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x110], edi
mov dword [ebp], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push edi
push 1
push edi
push edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x448200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x498b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push ecx
mov dword [esp + 0x20], 0
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x4b84a0
call fcn.004844a1
push ecx
mov byte [esp + 0x24], 1
mov ecx, esp
mov dword [esp + 0x14], esp
push str._errorType_:_
call fcn.004844a1
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2c], 2
call fcn.004841a8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
push ecx
mov ecx, esi
call fcn.00427680
mov eax, dword [eax]
push str.validateCode
push eax
call fcn.0046f2f7
add esp, 8
lea ecx, [esp + 4]
test eax, eax
sete dl
and edx, 0xff
mov esi, edx
call fcn.00484433
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00484433
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x44ed10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x49942f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
push edi
mov dword [esp + 0xc], 0
lea edx, [eax + ecx*2]
lea ecx, [esp + 0x24]
mov eax, dword [edx*4 + 0x4a0978]
push eax
call fcn.004844a1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], 1
call ebp
mov edx, dword [esi + 0x108]
mov edi, dword [esp + 0x2c]
sub eax, edx
cmp eax, 0xbb8
jge 0x44edbd
mov eax, dword [esi + 0x104]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0046f2f7
add esp, 8
test eax, eax
jne 0x44edbd
cmp edi, dword [esi + 0xf0]
jne 0x44edbd
lea edi, [esi + 0x10c]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [edi], 0x14
jl 0x44ede2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi]
push 0x4ba85c
push 0xc
mov ecx, esi
call dword [edx + 4]
jmp 0x44ede2
lea eax, [esp + 0x24]
lea ecx, [esi + 0x104]
push eax
mov dword [esi + 0xf0], edi
call fcn.0048456c
lea ecx, [esi + 0x10c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call ebp
mov dword [esi + 0x108], eax
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.004841a8
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call fcn.00484433
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x452b80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xe0], ebx
je 0x452b96
pop esi
mov eax, 1
pop ebx
ret
push edi
mov ecx, esi
call fcn.00440930
push eax
call fcn.0046f3a6
add esp, 4
mov ecx, esi
call fcn.00440930
push 1
mov ecx, esi
mov edi, eax
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x110], ebx
call fcn.00452c70
push SysReAllocString
push ebx
mov ecx, esi
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1b8], edi
call fcn.00452940
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x452c90
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x453330
push ebx
push ebx
mov dword [esi + 0x144], eax
call edi
push ebx
push 4
push esi
push 0x453f90
push ebx
push ebx
mov dword [esi + 0x148], eax
call edi
push ebx
push ebx
push esi
push 0x454470
push ebx
push ebx
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x14c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0xe0], 1
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4574e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x499ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x20], 0
call fcn.004841a8
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00440940
mov ecx, esi
mov ebx, eax
call fcn.00440930
mov edx, dword [0x4c3118]
mov ecx, esi
push edx
mov edi, eax
call fcn.00452ae0
mov dword [esi + 0x194], eax
mov eax, dword [0x4c3124]
push eax
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x19c], eax
mov ecx, dword [0x4c3144]
push ecx
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x1b0], eax
mov edx, dword [0x4c311c]
push edx
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x198], eax
mov eax, dword [0x4c3130]
push eax
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x1a4], eax
mov ecx, dword [0x4c3110]
push ecx
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x190], eax
mov edx, dword [0x4c3138]
push edx
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x1ac], eax
mov eax, dword [0x4c3134]
push eax
mov ecx, esi
call fcn.00452ae0
mov dword [esi + 0x1a8], eax
mov eax, dword [esi + 0x1b0]
mov edx, edi
mov dword [esi + 0x1b8], edi
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
shl ecx, 2
sub edx, ecx
mov dword [esi + 0x1c4], edx
mov eax, dword [0x4c311c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
sub edi, eax
add edi, 0x12c
mov dword [esi + 0x1c0], edi
or edi, 0xffffffff
test ebx, ebx
jne 0x45762f
mov ecx, esi
call fcn.00457fd0
cmp dword [esi + 0x154], edi
jne 0x45762f
push ebx
push ebx
push esi
push 0x457660
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x154], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.00484433
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8
Function at 0x457fd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x499e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x400
call fcn.00484998
mov esi, eax
lea eax, [esp + 0x28]
push eax
call fcn.00409c20
add esp, 8
push 0x4baa5c
lea ecx, [esp + 0x24]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x3c], ebp
call fcn.004846c8
lea edx, [ebx + 0x114]
mov byte [esp + 0x30], 1
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00484662
push str.UserData.ini
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x3c], 2
call fcn.004846c8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 6
call fcn.00484433
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 5
call fcn.00484433
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 4
call fcn.00484433
mov ecx, 0x100
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
push edx
push 0x400
push esi
push 0x4c2d98
push str.McSale
push str.CONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea ecx, [esp + 0x18]
call fcn.004844a1
push ebp
push 0x4ba9e8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 7
call fcn.0048242b
mov edi, eax
test edi, edi
jl 0x45812c
lea eax, [esp + 0x10]
add ebp, esi
push eax
push 0x4b8278
push ebp
mov dword [esp + 0x1c], 0
call fcn.0046f2c3
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, 0x2710
add esp, 0xc
div ecx
mov ecx, ebx
lea ebp, [edi + 1]
push edx
call fcn.00441e20
mov ecx, eax
test ecx, ecx
je 0x458117
mov eax, 0xd1b71759
mul dword [esp + 0x10]
mov eax, dword [ecx + 0x40]
shr edx, 0xd
je 0x458112
or al, 1
jmp 0x458114
or al, 2
mov dword [ecx + 0x40], eax
push ebp
push 0x4ba9e8
lea ecx, [esp + 0x1c]
call fcn.0048242b
mov edi, eax
test edi, edi
jge 0x4580c2
push esi
call fcn.004849c1
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.00484433
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00484433
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x45b9f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov edx, dword [esp + 0x38]
xor ebx, ebx
push edi
mov byte [esp + 0xc], 0xb8
mov byte [esp + 0xd], bl
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 0x40
mov eax, dword [esp + 0xc]
lea edi, [esi + 4]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], 0xff
mov byte [esp + 0x12], 0xe0
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 4], ecx
push eax
mov dword [esi + 5], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x45ba54
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi], eax
je 0x45ba49
push ebp
lea edx, [esp + 0x18]
push 0x1c
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x40]
push eax
push 4
push 8
push ecx
call ebp
mov eax, dword [esi]
push ebx
push 8
push edi
mov edx, dword [eax]
push eax
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
push ebx
push edx
push 8
push eax
call ebp
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
Function at 0x466690
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x110
push ebx
push esi
xor esi, esi
cmp eax, esi
jne 0x4666b5
lea eax, [esp + 0x14]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x4666c1
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x46673a
push edi
push ebx
push 2
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0xc]
mov edi, eax
push edi
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x4b8634
push edi
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [esp + 0x14]
push esi
mov edi, dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x466750
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49bbc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4be818]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], 0x104
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x13c], ebx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x144]
mov byte [esp + 0x13c], 1
mov eax, esi
sub eax, ebx
je 0x4667cf
dec eax
je 0x4667c8
dec eax
jne 0x4667dd
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
jmp 0x4667d4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe
jmp 0x4667d4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsHaoZip.exe
lea ecx, [esp + 0x14]
call fcn.004845bc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4668f5
lea edx, [esp + 0x28]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push str.Path
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4668ea
cmp dword [esp + 0x18], 1
jne 0x4668ea
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
call fcn.004845bc
mov eax, esi
sub eax, ebx
je 0x4668b3
dec eax
je 0x46687f
dec eax
jne 0x4668ea
lea ecx, [esp + 0xc]
push str.WinRAR.exe
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004846c8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 4
call fcn.0048456c
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x24]
jmp 0x4668e5
lea eax, [esp + 0xc]
push str.7z.exe
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004846c8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 3
call fcn.0048456c
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x1c]
jmp 0x4668e5
lea edx, [esp + 0xc]
push str.HaoZipC.exe
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004846c8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 2
call fcn.0048456c
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x20]
call fcn.00484433
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0x4c2d98
push edx
call fcn.0046f2f7
add esp, 8
test eax, eax
je 0x466958
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004841a8
call fcn.0040a5a0
add esp, 4
cmp eax, ebx
je 0x466958
mov esi, dword [esp + 0x148]
mov edi, 1
cmp esi, ebx
je 0x466958
push ebx
lea ecx, [esp + 0x10]
call fcn.00484863
push eax
call fcn.00466690
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esi], eax
push 0xffffffffffffffff
call fcn.004848b2
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], bl
call fcn.00484433
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00484433
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x134
ret 8