joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b2e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8448
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x58], 0
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], eax
jne 0x49b3df
cmp dword [edi + 0x70], 0xffffffff
jne 0x49b3df
cmp dword [edi + 0x5c], 0xffffffff
je 0x49b3d8
mov ebp, dword [esp + 0x3c]
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov ecx, 0x5c6e90
mov dword [esp + 0x18], ebp
cmp ebp, 0x2000000
lea eax, [esp + 0x18]
push 0
cmovae eax, ecx
lea ecx, [esp + 0x20]
push ecx
push dword [eax]
mov eax, dword [esp + 0x44]
add eax, esi
push eax
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49b3a6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49b3a0
add esi, eax
adc ebx, 0
sub ebp, eax
sbb dword [esp + 0x14], 0
cmp ebx, dword [esp + 0x40]
jg 0x49b3a0
jl 0x49b34b
cmp esi, dword [esp + 0x3c]
jb 0x49b34b
mov eax, esi
mov edx, ebx
jmp 0x49b3f0
mov eax, esi
or eax, ebx
jne 0x49b3a0
lea eax, [esp + 0x38]
push 0xffffffffffffffff
push eax
call fcn.00410680
add esp, 8
mov ecx, dword [esp + 0x24]
push eax
push 2
mov dword [esp + 0x38], 0
call fcn.0047c300
lea ecx, [esp + 0x38]
call fcn.00467a00
or eax, 0xffffffff
or edx, eax
jmp 0x49b3f0
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.0047e210
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x49b510
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4e8130
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push dword [esp + 0x38]
mov esi, dword [edi + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0047c410
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
push ecx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004814c0
mov ecx, dword [esp + 0x28]
mov bl, al
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
or esi, 0xffffffff
mov eax, dword [ecx]
test eax, eax
je 0x49b59e
cmp eax, esi
je 0x49b5ab
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49b5ab
mov ecx, dword [esp + 0x1c]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x49b5cb
cmp eax, 0xffffffff
je 0x49b5d8
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49b5d8
mov ecx, dword [esp + 0x18]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
test bl, bl
jne 0x49b628
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.004a6a00
push eax
push 0xa
mov ecx, edi
mov dword [esp + 0x38], 1
call fcn.0047c300
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
test ecx, ecx
je 0x49b61b
cmp ecx, 0xffffffff
je 0x49b628
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x49b628
mov eax, dword [esp + 0x38]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x49b640
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4e84c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, ecx
push dword [esp + 0x44]
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x28]
call fcn.0047c410
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0
push ecx
mov ecx, eax
call fcn.0047cc70
mov edi, eax
lea eax, [esp + 0x44]
mov byte [esp + 0x3c], 1
push eax
lea ecx, [esi + 0x10]
call fcn.0047cc70
mov esi, eax
push 1
mov ecx, edi
mov byte [esp + 0x40], 2
call fcn.0041de40
push eax
mov ecx, esi
call fcn.0041de40
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov eax, dword [esp + 0x44]
setne bl
or esi, 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
je 0x49b6e7
cmp ecx, esi
je 0x49b6f4
mov ecx, esi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49b6f4
mov eax, dword [esp + 0x44]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x49b714
cmp ecx, 0xffffffff
je 0x49b721
mov ecx, esi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49b721
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [ecx]
test eax, eax
je 0x49b749
cmp eax, 0xffffffff
je 0x49b756
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49b756
mov ecx, dword [esp + 0x28]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
test eax, eax
je 0x49b776
cmp eax, 0xffffffff
je 0x49b783
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49b783
mov ecx, dword [esp + 0x24]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
test bl, bl
jne 0x49b7e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 2
push eax
call fcn.004a6a00
push eax
push 0xa
mov ecx, ebp
mov dword [esp + 0x44], 3
call fcn.0047c300
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x49b7d8
cmp ecx, 0xffffffff
je 0x49b7e5
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x49b7e5
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x49b980
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x4e8528
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x5c]
cmp esi, 0xffffffff
jne 0x49bab5
cmp dword [eax + 0x70], esi
jne 0x49ba86
cmp dword [eax + 0x58], 0
jne 0x49ba86
lea esi, [eax + 0x10]
mov ecx, esi
call fcn.0047ca70
test al, al
jne 0x49bb29
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0047c610
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
call fcn.00435730
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.00467a00
push ecx
mov eax, esp
lea ecx, [esp + 0x24]
mov dword [eax], 3
call fcn.00435930
lea ecx, [esp + 0x20]
test al, al
je 0x49ba74
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00435b50
mov bl, al
test bl, bl
jne 0x49ba5c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.00434410
push eax
push 0xc
mov ecx, edi
mov byte [esp + 0x38], 3
call fcn.0047c300
lea ecx, [esp + 0x38]
call fcn.00467a00
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.004357d0
mov al, bl
jmp 0x49bb2b
mov dword [esp + 0x30], 0xffffffff
call fcn.004357d0
jmp 0x49bb29
cmp esi, 0xffffffff
jne 0x49bab5
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x49baa3
push ecx
call fcn.004c9d00
push eax
call fcn.004c7dd9
add esp, 8
jmp 0x49baae
push dword [eax + 0x70]
call fcn.004c7dd9
add esp, 4
mov esi, eax
cmp esi, 0xffffffff
je 0x49bb29
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
push dword [esp + 0x3c]
mov ebx, eax
mov ebp, edx
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x49bb20
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x49bb20
cmp ebp, dword [esp + 0x3c]
jg 0x49bb0c
jl 0x49baf8
cmp ebx, dword [esp + 0x38]
jae 0x49bb0c
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
call dword [eax + 0x1c]
mov al, 1
jmp 0x49bb2b
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
call dword [eax + 0x1c]
mov al, 1
jmp 0x49bb2b
mov eax, dword [edi]
mov ecx, edi
push ebp
push ebx
call dword [eax + 0x1c]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x49e860
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x4e8c59
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x30]
cmp edx, 0xffffffff
jne 0x49e8a9
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x51a640
jmp 0x49e9f7
mov ebx, dword [ebp + 4]
lea eax, [edx*8]
sub eax, edx
lea edx, [eax*2 + 4]
mov eax, 0x100
movzx ecx, byte [ebx + edx]
imul cx, ax
movzx eax, byte [ebx + edx + 1]
mov dword [esp + 0x30], 0x51a640
add cx, ax
movzx eax, cx
or edi, 0xffffffff
mov dword [esp + 0x24], 1
test al, 2
je 0x49e993
movzx ecx, byte [ebx + edx + 2]
movzx eax, byte [ebx + edx + 3]
movzx esi, byte [ebx + edx + 6]
shl ecx, 8
add ecx, eax
shl esi, 8
movzx eax, byte [ebx + edx + 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + edx + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + edx + 7]
add esi, eax
movzx eax, byte [ebx + edx + 8]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + edx + 9]
shl esi, 8
add esi, eax
lea ebx, [esi + ecx]
cmp esi, ebx
jge 0x49e993
lea esp, [esp]
push esi
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.004a0a60
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 2
call fcn.00401af0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x49e981
cmp ecx, 0xffffffff
je 0x49e98e
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49e98e
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
inc esi
cmp esi, ebx
jl 0x49e940
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.00403490
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 0
mov eax, dword [esi]
test eax, eax
je 0x49e9cf
cmp eax, 0xffffffff
je 0x49e9f5
lock xadd dword [esi], edi
dec edi
setne al
test al, al
jne 0x49e9f5
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add eax, 4
add ecx, 4
lea eax, [esi + eax*4]
lea ecx, [esi + ecx*4]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00402f00
push esi
call fcn.004bee90
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4a1300
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0xffffffffffffffff
push 0x4e46c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x1000
push eax
push 0
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4a1350
mov ecx, dword [esp + 0x14]
jmp 0x4a1363
cmp byte [esi + 0x4e], 0
jne 0x4a1361
mov ecx, esi
mov byte [esi + 0x4e], 1
call fcn.004bd880
xor ecx, ecx
cmp ecx, 0x1000
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x10]
lea edx, [esp + 0x14]
cmovae eax, edx
cmp byte [esi + 0x4e], 0
mov edi, dword [eax]
jne 0x4a1469
mov ecx, dword [esi + 0x28]
mov eax, ecx
mov ebx, dword [esi + 0x2c]
or eax, ebx
je 0x4a13b0
mov eax, dword [esi + 0x44]
cdq
sub ecx, eax
sbb ebx, edx
xor eax, eax
cmp eax, ebx
jl 0x4a13b0
jg 0x4a13a4
cmp edi, ecx
jbe 0x4a13b0
mov edi, dword [esi + 0x28]
sub edi, dword [esi + 0x44]
je 0x4a1469
push edi
lea ecx, [esi + 0x30]
call fcn.00420800
lea ecx, [esi + 0xc]
mov byte [esi + 0x4d], 1
push ecx
push 0
push edi
xorps xmm0, xmm0
movdqu xmmword [ecx], xmm0
push eax
mov dword [ecx + 0x10], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a1469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xea
ja 0x4a1420
je 0x4a1469
sub eax, 0x6d
je 0x4a1400
sub eax, 0x7c
jne 0x4a1428
mov ecx, esi
mov word [esi + 0x4d], 0x100
call fcn.004bd880
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp edi, 0x3e5
je 0x4a1469
push str.QWindowsPipeReader::startAsyncRead
lea ecx, [esp + 0x1c]
mov byte [esi + 0x4d], 0
call fcn.004011c0
push dword [eax]
push dword [eax + 4]
call fcn.0041a250
add esp, 8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
push edi
mov ecx, esi
call fcn.004bd8c0
lea ecx, [esp + 0x10]
call fcn.00467a00
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4a1700
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e8e8e
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 8], edi
push dword [esp + 0x20]
call fcn.00429260
mov dword [edi], vtable.QWindowsPipeWriter.0
mov dword [esp + 0x14], 0
mov dword [edi + 8], 0x4ed20c
lea ecx, [edi + 0xc]
mov byte [esp + 0x14], 1
call fcn.00428300
push 0
lea ecx, [edi + 0x10]
mov byte [esp + 0x18], 2
call fcn.00423ec0
push 2
push 0
lea eax, [edi + 0x14]
mov byte [edi + 0x19], 0
mov dword [eax], 0xffffffff
push 0
push eax
mov byte [edi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 8
Function at 0x4a2c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e90b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov ecx, ebp
push 0
mov dword [esp + 0x2c], 0
mov eax, dword [esi]
push dword [eax + 4]
call fcn.004138b0
mov eax, dword [ebp]
mov edx, dword [esi]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 1
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 4]
add edi, eax
mov ecx, dword [edx + 4]
add ebx, edi
mov eax, dword [edx + 0xc]
mov esi, dword [edx + 0xc]
add esi, edx
mov dword [esp + 0x34], edi
lea ecx, [eax + ecx*2]
add ecx, edx
mov dword [esp + 0x14], ecx
cmp esi, ecx
je 0x4a2e5c
lea esp, [esp]
lea eax, [ebx - 6]
cmp edi, eax
jb 0x4a2d5a
mov eax, dword [ebp]
mov ecx, ebp
sub edi, dword [eax + 0xc]
sub edi, eax
mov eax, dword [eax + 4]
add eax, eax
mov ebx, edi
push eax
call fcn.004151a0
mov ecx, dword [ebp]
mov eax, dword [ecx]
cmp eax, 1
je 0x4a2d1c
test eax, eax
jne 0x4a2d22
cmp dword [ecx + 0xc], 0x10
je 0x4a2d40
xor eax, eax
mov edx, 1
test dword [ecx + 8], 0x80000000
cmovne eax, edx
push eax
mov eax, dword [ecx + 4]
mov ecx, ebp
inc eax
push eax
call fcn.00414b80
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
add edi, eax
add edi, ebx
mov ebx, dword [eax + 4]
add ebx, dword [eax + 0xc]
mov dword [esp + 0x34], edi
add ebx, eax
movzx eax, word [esi]
add esi, 2
mov dword [esp + 0x18], esi
cmp eax, 0x80
jae 0x4a2e28
cmp eax, 0x20
jb 0x4a2d8a
cmp eax, 0x22
je 0x4a2d8a
cmp eax, 0x5c
je 0x4a2d8a
mov byte [edi], al
inc edi
mov dword [esp + 0x34], edi
jmp 0x4a2e54
lea ecx, [eax - 8]
mov byte [edi], 0x5c
cmp ecx, 0x54
ja case.0x4a2d9c.11
movzx ecx, byte [ecx + 0x4a2ea4]
jmp dword [ecx*4 + 0x4a2e84]
mov byte [edi + 1], 0x22
add edi, 2
jmp 0x4a2e4c
mov byte [edi + 1], 0x5c
add edi, 2
jmp 0x4a2e4c
mov byte [edi + 1], 0x62
add edi, 2
jmp 0x4a2e4c
mov byte [edi + 1], 0x66
add edi, 2
jmp 0x4a2e4c
mov byte [edi + 1], 0x6e
add edi, 2
jmp 0x4a2e4c
mov byte [edi + 1], 0x72
add edi, 2
jmp 0x4a2e4c
mov byte [edi + 1], 0x74
add edi, 2
jmp 0x4a2e4c
mov ecx, eax
mov word [edi + 1], 0x3075
shr ecx, 4
mov byte [edi + 3], 0x30
cmp ecx, 0xa
jae 0x4a2e04
add ecx, 0x30
jmp 0x4a2e07
add ecx, 0x57
and eax, 0xf
mov byte [edi + 4], cl
cmp eax, 0xa
jae 0x4a2e1d
add eax, 0x30
mov byte [edi + 5], al
add edi, 6
jmp 0x4a2e4c
add eax, 0x57
mov byte [edi + 5], al
add edi, 6
jmp 0x4a2e4c
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.00461630
mov edi, dword [esp + 0x44]
add esp, 0x10
mov esi, dword [esp + 0x18]
test eax, eax
jns 0x4a2e50
mov byte [edi], 0x3f
inc edi
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x14]
cmp esi, ecx
jne 0x4a2cf0
mov ecx, dword [ebp]
sub edi, dword [ecx + 0xc]
sub edi, ecx
mov ecx, ebp
push edi
call fcn.004151a0
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4a3e70
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4e9373
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, dword [esp + 0x240]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
mov dword [edi], 0x51a640
push 0xffffffffffffffff
lea eax, [esp + 0x14]
mov dword [esp + 0x23c], 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], 0
call fcn.00403940
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], 1
push ecx
push 0x20019
push 0
mov ecx, eax
call fcn.0041de40
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0x10]
sete bl
mov ecx, dword [eax]
test ecx, ecx
je 0x4a3f4a
cmp ecx, 0xffffffff
je 0x4a3f57
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4a3f57
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
test bl, bl
je 0x4a408d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a4083
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a4083
xor esi, esi
test eax, eax
je 0x4a4083
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, edi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xff
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x4a4078
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00407d20
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x238], 2
push ecx
mov ecx, eax
call fcn.0041e960
push eax
mov ecx, edi
mov byte [esp + 0x23c], 3
call fcn.00401a10
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a4035
cmp ecx, 0xffffffff
je 0x4a4042
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4a4042
mov eax, dword [esp + 0x1c]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x18]
mov byte [esp + 0x238], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x4a406b
cmp ecx, 0xffffffff
je 0x4a4078
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4a4078
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4a3fb0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004c17c4
add esp, 0x22c
ret
Function at 0x4a5b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x34
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp]
mov eax, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x48]
push edx
lea edx, [esp + 0xc]
mov dword [esp + 8], 0x2c
push edx
push 0
push 0
push eax
mov byte [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a5bcb
movdqu xmm0, xmmword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x40]
mov byte [edi], 1
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0xc]
movdqu xmmword [esi + 0xc], xmm0
sub ecx, eax
mov dword [esi + 4], eax
movdqu xmm0, xmmword [esp + 0x28]
add ecx, dword [esp + 0xc]
mov eax, esi
mov dword [esi + 8], ecx
movdqu xmmword [esi + 0x1c], xmm0
pop esi
pop edi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004c17c4
add esp, 0x34
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
pop edi
xor ecx, esp
call fcn.004c17c4
add esp, 0x34
ret

Function at 0x4a5be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
xor eax, eax
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x228]
push 0x206
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
mov dword [esp + 0x1c], 0
call fcn.004c2280
add esp, 0xc
mov dword [esp + 0xc], 0x208
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00407d20
mov ecx, dword [esp + 0x228]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c17c4
add esp, 0x214
ret

Function at 0x4a5f70
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e9519
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
push 0x10
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push ebx
push 3
lea ecx, [esp + 0x1c]
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x4a5fef
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00407d20
mov dword [esp + 0x34], ebx
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.0045bd40
add esp, 0x10
mov esi, eax
jmp 0x4a5ff1
xor esi, esi
test bl, 1
je 0x4a6024
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a6017
cmp ecx, 0xffffffff
je 0x4a6024
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4a6024
mov eax, dword [esp + 0xc]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004c17c4
add esp, 0x20
ret