joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424190
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525549
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x4c], esi
mov dword [esi + 0x10], 0
jb 0x4241f6
mov eax, dword [esi]
jmp 0x4241f8
mov eax, esi
push 0xc
push str.Mozilla_5.0_
mov byte [eax], 0
call fcn.00406380
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00423b40
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040d900
push 1
push 0x560c1c
mov ecx, esi
call fcn.0040d7d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040d900
push 5
push str.__Win
mov ecx, esi
call fcn.0040d7d0
call fcn.004234d0
test eax, eax
mov edx, str.64__
mov ecx, str.32__
cmove edx, ecx
cmp byte [edx], 0
jne 0x42429f
xor ecx, ecx
jmp 0x4242ad
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4242a4
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.0040d7d0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4242cb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406260
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4242f2
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00406260
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret
Function at 0x424fb0
Capabilities:
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0xac], 0x10
push esi
lea esi, [ebx + 0x98]
jb 0x424fd8
mov esi, dword [esi]
push 0
push esi
call fcn.00509827
add esp, 8
cmp eax, 0xffffffff
je 0x425213
push edi
lea ecx, [ebx + 0x2b8]
call fcn.0042d600
test al, al
jne 0x425212
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0049e2e0
add esp, 0xc
lea eax, [ebp - 0x84]
push esi
push 0x80
push eax
push 0x55ebac
push str.AssistIP
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x84], 0
jne 0x425045
xor ecx, ecx
jmp 0x425059
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425050
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x2b8]
call fcn.00406380
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0049e2e0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x84]
add esp, 0xc
push esi
push 0x80
push eax
push 0x55ebac
push str.country
push str.Local
call edi
cmp byte [ebp - 0x84], 0
jne 0x4250b3
xor ecx, ecx
jmp 0x4250c9
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4250c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x2d0]
call fcn.00406380
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0049e2e0
add esp, 0xc
lea eax, [ebp - 0x84]
push esi
push 0x80
push eax
push 0x55ebac
push str.countryCode
push str.Local
call edi
cmp byte [ebp - 0x84], 0
jne 0x42511d
xor ecx, ecx
jmp 0x42512f
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425126
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x2e8]
call fcn.00406380
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0049e2e0
add esp, 0xc
lea eax, [ebp - 0x84]
push esi
push 0x80
push eax
push 0x55ebac
push str.province
push str.Local
call edi
cmp byte [ebp - 0x84], 0
jne 0x425183
xor ecx, ecx
jmp 0x425199
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425190
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x300]
call fcn.00406380
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0049e2e0
add esp, 0xc
lea eax, [ebp - 0x84]
push esi
push 0x80
push eax
push 0x55ebac
push str.City
push str.Local
call edi
cmp byte [ebp - 0x84], 0
jne 0x4251ed
xor ecx, ecx
jmp 0x4251ff
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4251f6
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x318]
call fcn.00406380
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e0fae
mov esp, ebp
pop ebp
ret
Function at 0x425230
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xac], 0x10
lea esi, [edi + 0x98]
jb 0x42524c
mov esi, dword [esi]
cmp dword [edi + 0x30], 0x10
lea eax, [edi + 0x1c]
jb 0x425257
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push eax
push str.DistinctId
push str.Base
call ebx
cmp dword [edi + 0x48], 0x10
lea eax, [edi + 0x34]
jb 0x425276
mov eax, dword [eax]
push esi
push eax
push str.PrimaryDistinctId
push str.Base
call ebx
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x42528f
mov eax, dword [eax]
push esi
push eax
push str.UserId
push str.Base
call ebx
mov edx, dword [edi + 0x4c]
lea ecx, [ebp - 0x18]
call fcn.00412300
cmp dword [eax + 0x14], 0x10
jb 0x4252b0
mov eax, dword [eax]
push esi
push eax
push str.UserVipLevel
push str.Base
call ebx
mov eax, dword [ebp - 4]
cmp eax, 0x10
jb 0x4252d3
inc eax
lea ecx, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
call fcn.00406260
cmp dword [edi + 0xc4], 0x10
lea eax, [edi + 0xb0]
jb 0x4252e4
mov eax, dword [eax]
push esi
push eax
push 0x560cc0
push str.Base
call ebx
cmp byte [edi], 0
mov ecx, 0x560cbc
push esi
mov eax, 0x560cb8
cmove eax, ecx
push eax
push str.isLogined
push str.Base
call ebx
cmp byte [edi + 1], 0
jne 0x4253c5
lea ecx, [edi + 0x2b8]
call fcn.0042d600
test al, al
je 0x4253c5
cmp dword [edi + 0x2cc], 0x10
lea eax, [edi + 0x2b8]
jb 0x42533e
mov eax, dword [eax]
push esi
push eax
push str.AssistIP
push str.Local
call ebx
cmp dword [edi + 0x2e4], 0x10
lea eax, [edi + 0x2d0]
jb 0x42535d
mov eax, dword [eax]
push esi
push eax
push str.country
push str.Local
call ebx
cmp dword [edi + 0x2fc], 0x10
lea eax, [edi + 0x2e8]
jb 0x42537c
mov eax, dword [eax]
push esi
push eax
push str.countryCode
push str.Local
call ebx
cmp dword [edi + 0x314], 0x10
lea eax, [edi + 0x300]
jb 0x42539b
mov eax, dword [eax]
push esi
push eax
push str.province
push str.Local
call ebx
add edi, 0x318
cmp dword [edi + 0x14], 0x10
jb 0x4253b7
mov edi, dword [edi]
push esi
push edi
push str.City
push str.Local
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4255b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x57be44], 0x1571
mov edx, 0x1571
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x57be44], edx
inc eax
cmp eax, 0x270
jl 0x4255c4
mov dword [0x57be40], 0x270
ret 8

Function at 0x4265e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x4265f0
pop esi
ret
Function at 0x42be80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526078
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42bfae
cmp byte [ebx + 0x3d], 0
je 0x42bfae
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x42bed9
xor al, al
jmp 0x42bfb0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004173e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42bf3f
sub eax, 1
je 0x42bf43
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x42bf96
xor bl, bl
jmp 0x42bf98
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x42bf78
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0050a2bf
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x42bf3b
cmp byte [ebx + 0x3d], 0
je 0x42bf96
test esi, esi
jne 0x42bf01
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00418290
jmp 0x42befe
mov bl, 1
cmp ecx, 0x10
jb 0x42bfaa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00406260
mov al, bl
jmp 0x42bfb0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret

Function at 0x42d960
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x14], 0
mov ecx, edx
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov word [ebp - 7], 0
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 5], 0
mov dword [ebp - 0x6c], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d9c0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043a1e0
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x70]
call fcn.0043a2b0
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02x
push 3
push edi
call fcn.00418f80
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x42d9e2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e0fae
mov esp, ebp
pop ebp
ret
Function at 0x42faa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5263f6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x575464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 1
lea eax, [edi + 0x18]
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x42faf2
mov eax, dword [eax]
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 1
lea esi, [eax + 4]
mov dword [eax], vtable.sensors_analytics::utils::ObjectNode.0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00436f30
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x42fe90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5263f6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x575464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 4
lea eax, [edi + 0x18]
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x42fee2
mov eax, dword [eax]
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 1
lea esi, [eax + 4]
mov dword [eax], vtable.sensors_analytics::utils::ObjectNode.0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00436f30
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526998
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004315e0
test al, al
jne 0x43118f
xor bl, bl
jmp 0x431275
push 0
push 0x55ebac
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov bl, 1
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.00406380
push edi
push ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x64]
mov edx, esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.00430d10
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x4311e5
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00406260
cmp dword [ebp - 0x4c], 0xc8
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
je 0x431233
push str._sensors__SensorsAnalytics_SDK_send_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x48]
push eax
push ecx
push str.SensorsAnalytics_SDK_send_failed:
push 0x579a48
call fcn.00415010
add esp, 0xc
push eax
call fcn.00418710
push eax
call fcn.004152c0
add esp, 0xc
xor bl, bl
push 0x57ba60
call fcn.004dfa4e
add esp, 4
test eax, eax
je 0x43124d
push eax
call fcn.004dfe59
add esp, 4
push 0x57ba60
mov byte [0x57a9c4], bl
call fcn.004dfaab
add esp, 4
test eax, eax
je 0x43126d
push eax
call fcn.004dfe59
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.004308c0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x43128a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00406260
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret 8
Function at 0x431400
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5269d9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x575464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
cmp dword [edx + 0x14], 0x10
jb 0x43143e
mov ecx, dword [edx]
jmp 0x431440
mov ecx, edx
mov ebx, dword [edx + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x431469
mov eax, dword [edi]
jmp 0x43146b
mov eax, edi
mov byte [eax], 0
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x4315c0
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], dh
cmp esi, 3
jne 0x431507
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop
movzx eax, byte [ebp + esi - 0x18]
mov ecx, edi
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.00418290
inc esi
cmp esi, 4
jl 0x4314e0
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov dh, byte [ebp - 0xe]
test ebx, ebx
jne 0x431486
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4315c0
mov eax, esi
cmp esi, 3
jge 0x431541
cmp eax, 3
jae 0x43153c
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x431524
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x431544
call fcn.004e1cca
mov cl, byte [ebp - 0xf]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x43159e
mov esi, eax
movzx eax, byte [ebp + ebx - 0x18]
mov ecx, edi
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.00418290
inc ebx
cmp ebx, esi
jl 0x431580
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x4315c0
mov ebx, 3
sub ebx, esi
nop word [eax + eax]
push 0x3d
push 1
mov ecx, edi
call fcn.00418290
sub ebx, 1
jne 0x4315b0
mov eax, edi
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 0x43ade0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52788b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x43ae4a
xor ecx, ecx
jmp 0x43ae62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ae53
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00405bd0
push 0x1c
push 0x5616c8
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.004055e0
xor ecx, ecx
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
call fcn.00405820
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x43aed8
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00405d30
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43af1d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43af1d
lea esi, [eax + 1]
jmp 0x43af42
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.0050cc24
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x43af60
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00405d30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret

Function at 0x43bb00
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x43bb69
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret
Function at 0x43bc90
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x43bcd8
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x43bce5
xor ecx, ecx
jmp 0x43bd00
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43bcf0
sub ecx, esi
sar ecx, 1
pop esi
push ecx
push edx
mov ecx, edi
call fcn.00405bd0
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.004e0fae
mov esp, ebp
pop ebp
ret

Function at 0x43bdb0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov edi, ecx
push 0x400
push edi
call fcn.0050cc24
push 0x44
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0049e2e0
or dword [ebp - 0x1c], 0x101
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x48], 0x44
push 0
push 1
push dword [edi + 0x814]
call esi
mov eax, dword [edi + 0x810]
push 0
push 1
push dword [edi + 0x804]
mov dword [ebp - 0xc], eax
call esi
mov eax, dword [edi + 0x800]
push 0
push 1
push dword [edi + 0x820]
mov dword [ebp - 8], eax
call esi
mov eax, dword [edi + 0x824]
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [edi + 0x830]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43beae
push dword [edi + 0x810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [edi + 0x810], 0
push dword [edi + 0x800]
call esi
mov dword [edi + 0x800], 0
push dword [edi + 0x824]
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x824], 0
xor ecx, ebp
pop edi
pop esi
call fcn.004e0fae
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea ecx, [ebp - 0x54]
call fcn.0043ba00
push 0x5720e4
lea eax, [ebp - 0x54]
push eax
call fcn.0049e810
int3
Function at 0x43bf80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040e390
mov ebx, eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov ecx, dword [ebx]
push 0
push 0
push dword [ebx + 4]
or ecx, 2
push ecx
call fcn.004fd90e
mov edi, eax
mov edx, 2
or eax, 0xffffffff
test edi, edi
cmovs edi, eax
xor ecx, ecx
add edi, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00505921
mov esi, eax
add esp, 0x20
test esi, esi
je 0x43bffe
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push edi
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.004fd932
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00504e0a
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret