joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab20
Capabilities:
Modify service
Start service

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x438e10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor edi, edi
mov edx, 0x446070
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.0040ad40
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
je 0x40ac57
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40ac57
push 0x17
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
or esi, esi
je 0x40ac4e
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ac3a
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x11]
push ecx
push eax
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], 0
call fcn.004050e0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jne 0x40ac32
test ebx, ebx
je 0x40ac32
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40ac32
cmp dword [ebx + 4], 2
je 0x40ac32
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 8]
push 2
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00404fe0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
jmp 0x40ac86
test esi, esi
je 0x40ac91
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or edi, edi
je 0x40ac9c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x40bdf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, 0x446288
lea ecx, [ebp - 4]
sub ebx, ebx
call fcn.0040ad40
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40beae
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
sub ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bea0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40be61
lea eax, [edx + 0xd]
jmp 0x40be8e
push edx
pop eax
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be66
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x441070
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bea0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40be20
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bec8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40de90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438ef7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
pop edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x44102c
mov dword [edi + 0x60], 0x440ec0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], 0x440ecc
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040f200
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x441020
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
push esi
pop ecx
call fcn.0040f2b0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x440fe4
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x47bf9c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
push edi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
push ebp
pop esp
pop ebp
ret 4

Function at 0x40fa90
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40fadc
push 0x440ed8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or eax, eax
je 0x40fb06
push 0x441074
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fb06
push 0
push dword [esi]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push 0
push dword [ebp + 0x1c]
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop esi
pop ebp
ret 0x24
cmp dword [esi + 4], 0
je 0x40fb06
pop esi
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pushal
popal
push 1
pop eax
pop esi
pop ebp
ret 0x24
Function at 0x40fb90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4392a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x47a8e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040ad40
mov edx, 0x47a8bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040ad40
mov byte [ebp - 4], 2
mov eax, dword [0x444008]
mov ecx, 0x444008
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
nop
push 0x6a
nop
pop ecx
mov byte [ebp - 4], 3
call fcn.00404890
or eax, eax
je 0x40fc17
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.004043f0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40fcd5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x40fcd5
cmp dword [esi - 0xc], 0
je 0x40fcd5
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
or ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.0040fb10
or eax, eax
jne 0x40fcab
push esi
pop eax
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc80
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40fcae
mov edi, dword [ebp - 0x28]
or edi, edi
je 0x40fcc0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x40fcd5
mov eax, dword [ebp - 0x18]
jmp 0x40fc40
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40fcf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40fd33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42745f
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push 0x440ce4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x43bc10
push edi
call esi
xor eax, dword [0x444690]
push 0x43bc1c
push edi
mov dword [0x47f820], eax
call esi
xor eax, dword [0x444690]
push 0x43bc24
push edi
mov dword [0x47f824], eax
call esi
xor eax, dword [0x444690]
push 0x43bc30
push edi
mov dword [0x47f828], eax
call esi
xor eax, dword [0x444690]
push 0x43bc3c
push edi
mov dword [0x47f82c], eax
call esi
xor eax, dword [0x444690]
push 0x43bc58
push edi
mov dword [0x47f830], eax
call esi
xor eax, dword [0x444690]
push 0x43bc6c
push edi
mov dword [0x47f834], eax
call esi
xor eax, dword [0x444690]
push 0x43bc84
push edi
mov dword [0x47f838], eax
call esi
xor eax, dword [0x444690]
push 0x43bc9c
push edi
mov dword [0x47f83c], eax
call esi
xor eax, dword [0x444690]
push 0x43bcb0
push edi
mov dword [0x47f840], eax
call esi
xor eax, dword [0x444690]
push 0x43bcd0
push edi
mov dword [0x47f844], eax
call esi
xor eax, dword [0x444690]
push 0x43bce8
push edi
mov dword [0x47f848], eax
call esi
xor eax, dword [0x444690]
push 0x43bd00
push edi
mov dword [0x47f84c], eax
call esi
xor eax, dword [0x444690]
push 0x43bd14
push edi
mov dword [0x47f850], eax
call esi
xor eax, dword [0x444690]
push 0x43bd28
push edi
mov dword [0x47f854], eax
call esi
xor eax, dword [0x444690]
mov dword [0x47f858], eax
push 0x43bd44
push edi
call esi
xor eax, dword [0x444690]
push 0x43bd64
push edi
mov dword [0x47f85c], eax
call esi
xor eax, dword [0x444690]
push 0x43bd80
push edi
mov dword [0x47f860], eax
call esi
xor eax, dword [0x444690]
push 0x43bda0
push edi
mov dword [0x47f864], eax
call esi
xor eax, dword [0x444690]
push 0x43bdb4
push edi
mov dword [0x47f868], eax
call esi
xor eax, dword [0x444690]
push 0x43bdd0
push edi
mov dword [0x47f86c], eax
call esi
xor eax, dword [0x444690]
push 0x43bde4
push edi
mov dword [0x47f874], eax
call esi
xor eax, dword [0x444690]
push 0x43bdf4
push edi
mov dword [0x47f870], eax
call esi
xor eax, dword [0x444690]
push 0x43be04
push edi
mov dword [0x47f878], eax
call esi
xor eax, dword [0x444690]
push 0x43be14
push edi
mov dword [0x47f87c], eax
call esi
xor eax, dword [0x444690]
push 0x43be24
push edi
mov dword [0x47f880], eax
call esi
xor eax, dword [0x444690]
push 0x43be40
push edi
mov dword [0x47f884], eax
call esi
xor eax, dword [0x444690]
push 0x43be54
push edi
mov dword [0x47f888], eax
call esi
xor eax, dword [0x444690]
push 0x43be64
push edi
mov dword [0x47f88c], eax
call esi
xor eax, dword [0x444690]
pop edi
mov dword [0x47f890], eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
pop esi
push esi
call fcn.0042a2ae
push esi
call fcn.0042870c
push esi
call fcn.0042a651
push esi
call fcn.00430331
push esi
call fcn.0042e9e5
push esi
call fcn.0042ddab
add esp, 0x18
pop esi
jmp 0x424c7b
Function at 0x427687
Capabilities:
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x1fc
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00427663
push eax
pop edi
pop ecx
test edi, edi
je 0x427829
push ebx
push 3
call fcn.00427e2d
pop ecx
cmp eax, 1
je 0x4277d1
push 3
call fcn.00427e2d
pop ecx
or eax, eax
jne 0x4276db
cmp dword [0x47b140], 1
je 0x4277d1
cmp esi, 0xfc
je 0x427828
push 0x43e994
push 0x314
push 0x47b148
call fcn.0042d37b
add esp, 0xc
sub ebx, ebx
or eax, eax
jne 0x427837
push 0x104
push 0x47b17a
push ebx
mov word [0x47b382], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x2fb
test eax, eax
jne 0x427743
push 0x43e9c8
push esi
push 0x47b17a
call fcn.0042d37b
add esp, 0xc
or eax, eax
jne 0x427837
push 0x47b17a
call fcn.004250ad
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427789
push 0x47b17a
call fcn.004250ad
lea ecx, [eax*2 + 0x47b104]
mov eax, ecx
sub eax, 0x47b17a
push 3
sar eax, 1
push 0x43e9f8
sub esi, eax
push esi
push ecx
call fcn.004303aa
add esp, 0x14
test eax, eax
jne 0x427837
push 0x43ea00
push 0x314
mov esi, 0x47b148
push esi
call fcn.0043033e
add esp, 0xc
test eax, eax
jne 0x427837
push edi
push 0x314
push esi
call fcn.0043033e
add esp, 0xc
or eax, eax
jne 0x427837
push 0x12010
push 0x43ea08
push esi
call fcn.00430468
add esp, 0xc
jmp 0x427828
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
or esi, esi
je 0x427828
cmp esi, 0xffffffff
je 0x427828
xor ebx, ebx
mov ecx, ebx
mov al, byte [edi + ecx*2]
mov byte [ebp + ecx - 0x1f8], al
cmp word [edi + ecx*2], bx
je 0x427801
inc ecx
cmp ecx, 0x1f4
jb 0x4277e8
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00422a10
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041fd32
leave
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428754
int3

Function at 0x427f47
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
pop edi
or edi, edi
je 0x427f9f
push ebx
sub ebx, ebx
push esi
push edi
pop esi
cmp word [edi], bx
je 0x427f73
add esi, 2
cmp word [esi], bx
jne 0x427f63
add esi, 2
cmp word [esi], bx
jne 0x427f63
sub esi, edi
add esi, 2
push esi
call fcn.00423b17
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x427f94
push esi
push edi
push eax
call fcn.004223c0
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
push ebx
pop eax
pop ebx
pop edi
leave
ret
Function at 0x430468
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
sub edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00424c3d
mov dword [ebp - 0x14], eax
cmp dword [0x47bec8], edi
jne 0x430559
push 0x800
push edi
push 0x43f184
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4304e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x430639
push 0x43f184
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
pop esi
test esi, esi
je 0x430639
push 0x43f19c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430639
push eax
call ebx
push 0x43f1a8
push esi
mov dword [0x47bec8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x43f1b8
push esi
mov dword [0x47becc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x43f1cc
push esi
mov dword [0x47bed0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bed8], eax
or eax, eax
je 0x430556
push 0x43f1e8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bed4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
or eax, eax
je 0x43057e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430571
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x430593
push 4
pop eax
jmp 0x43063b
cmp dword [ebp - 0x14], edi
je 0x430593
push dword [0x47bec8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x430578
mov eax, dword [0x47bed4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4305f1
cmp dword [0x47bed8], esi
je 0x4305f1
push eax
call ebx
push dword [0x47bed8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
or ecx, ecx
je 0x4305f1
test eax, eax
je 0x4305f1
call ecx
or eax, eax
je 0x4305e6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4305e6
test byte [ebp - 8], 1
jne 0x4305f1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x430621
mov eax, dword [0x47becc]
cmp eax, esi
je 0x43061e
push eax
call ebx
or eax, eax
je 0x43061e
call eax
mov edi, eax
or edi, edi
je 0x43061e
mov eax, dword [0x47bed0]
cmp eax, esi
je 0x43061e
push eax
call ebx
or eax, eax
je 0x43061e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x47bec8]
call ebx
or eax, eax
je 0x430639
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43063b
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd32
leave
ret
Function at 0x435493
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x14], eax
call fcn.0042716b
lea ebx, [eax + 0x9c]
sub eax, eax
push 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00422330
add esp, 0xc
call fcn.0042716b
lea ecx, [ebp - 0x10]
mov dword [eax + 0x3b8], ecx
or esi, esi
jne 0x4354ef
or dword [ebp - 0x10], 0x104
jmp 0x4355ac
lea eax, [esi + 0x80]
lea edi, [ebx + 4]
sub ecx, ecx
mov dword [ebx], esi
mov dword [edi], eax
or eax, eax
je 0x43551e
cmp word [eax], cx
je 0x43551e
mov eax, dword [0x440720]
push edi
dec eax
push eax
push 0x440448
call fcn.00435427
add esp, 0xc
sub ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx]
test eax, eax
je 0x43558e
cmp word [eax], cx
je 0x43558e
mov eax, dword [edi]
test eax, eax
je 0x435542
cmp word [eax], cx
je 0x435542
lea eax, [ebp - 0x10]
push eax
call fcn.00434ef7
jmp 0x43554b
lea eax, [ebp - 0x10]
push eax
call fcn.00434f74
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4355c2
mov eax, dword [0x44071c]
push ebx
dec eax
push eax
push 0x43f998
call fcn.00435427
add esp, 0xc
or eax, eax
je 0x4355b8
mov eax, dword [edi]
or eax, eax
je 0x435583
xor ecx, ecx
cmp word [eax], cx
je 0x435583
lea eax, [ebp - 0x10]
push eax
call fcn.00434ef7
jmp 0x4355a2
lea eax, [ebp - 0x10]
push eax
call fcn.00434f74
jmp 0x4355a2
mov eax, dword [edi]
or eax, eax
je 0x4355a5
cmp word [eax], cx
je 0x4355a5
lea eax, [ebp - 0x10]
push eax
call fcn.00434eb7
pop ecx
jmp 0x4355b8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], 0
je 0x43569c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435312
push eax
pop esi
pop ecx
pop ecx
or esi, esi
je 0x43569c
cmp esi, 0xfde8
je 0x43569c
cmp esi, 0xfde9
je 0x43569c
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
or eax, eax
je 0x43569c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
or eax, eax
je 0x43569c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x435626
mov dword [eax], esi
push 0x55
lea eax, [ebx + 0x250]
push eax
push dword [ebp - 0xc]
call fcn.00426b93
mov ebx, dword [ebp - 0x14]
add esp, 0xc
or ebx, ebx
je 0x435697
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00426b93
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push reloc.wtsapi32.dll_WTSVirtualChannelPurgeInput
push ebx
push 0x1001
push dword [ebp - 0xc]
call edi
or eax, eax
je 0x43569c
push reloc.wtsapi32.dll_WTSVirtualChannelPurgeInput
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call edi
or eax, eax
je 0x43569c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004361bf
add esp, 0x10
sub eax, eax
inc eax
jmp 0x43569e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd32
leave
ret
Function at 0x4012f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 1
lea eax, [esi + esi*2]
cmp ecx, eax
seta dl
add eax, 2
cmp ecx, eax
movzx ebx, dl
sete byte [ebp - 2]
add ebx, esi
add ebx, ebx
add ebx, ebx
lea eax, [ebx + 3]
push edi
push eax
mov byte [ebp - 1], dl
mov dword [ebp - 0xc], ebx
call fcn.0040661c
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x4013b8
mov ecx, dword [ebp + 8]
add ecx, 2
lea edx, [edi + 2]
mov dword [ebp - 8], esi
mov eax, esi
lea ebx, [ebx]
movzx esi, byte [ecx - 2]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], bl
movzx esi, byte [ecx - 1]
movzx ebx, byte [ecx - 2]
shr esi, 4
shl ebx, 4
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], bl
movzx ebx, byte [ecx - 1]
movzx esi, byte [ecx]
add ebx, ebx
shr esi, 6
add ebx, ebx
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], bl
movzx esi, byte [ecx]
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], bl
add ecx, 3
add edx, 4
dec dword [ebp - 8]
jne 0x401350
mov ebx, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
je 0x40143f
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
movzx ecx, byte [eax + edx]
lea esi, [eax + edx]
shr ecx, 2
cmp byte [ebp - 2], 0
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4], dl
movzx edx, byte [esi]
je 0x401425
movzx ecx, byte [esi + 1]
shr ecx, 4
shl edx, 4
or ecx, edx
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
movzx edx, byte [esi + 1]
and edx, 0xf
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 2], cl
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and edx, 3
shl edx, 4
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
mov byte [edi + eax*4 + 2], 0x3d
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4