joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c6cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
mov dl, 1
mov eax, dword [0x422bac]
call fcn.004288ec
mov dword [ebx + 0x474], eax
mov eax, dword [ebx + 0x3ac]
cmp dword [eax + 0xc], 1
jne 0x46c70c
mov dl, 1
mov eax, ebx
call fcn.0045069c
mov eax, ebx
call fcn.00437880
mov eax, dword [0x46f914]
mov eax, dword [eax]
call fcn.00456d84
jmp 0x46c715
xor edx, edx
mov eax, ebx
call fcn.0045069c
call sub.kernel32.dll_GetTickCount
mov esi, eax
call sub.kernel32.dll_GetTickCount
sub eax, esi
cmp eax, 0x1f4
jb 0x46c71c
mov ecx, dword [0x46f914]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x46ccbc]
call fcn.0044f864
mov edx, dword [0x46f734]
mov dword [edx], eax
mov eax, ebx
call fcn.0046c538
mov eax, dword [0x46f734]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xe8]
mov eax, dword [0x46f734]
mov eax, dword [eax]
call fcn.00403680
mov dl, 1
mov eax, ebx
call fcn.0045069c
mov eax, dword [0x46f914]
mov eax, dword [eax]
call fcn.0045691c
mov eax, dword [0x46f914]
mov eax, dword [eax]
call fcn.00456a1c
mov eax, dword [ebx + 0x474]
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jle 0x46c7ee
mov eax, dword [ebx + 0x474]
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jle 0x46c7ee
mov eax, dword [ebx + 0x474]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebx + 0x3d8]
call fcn.00436e10
mov eax, dword [ebx + 0x474]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebx + 0x3d8]
call fcn.00436dec
mov eax, dword [ebx + 0x3d8]
mov eax, dword [eax + 0x168]
mov edx, dword [ebx + 0x474]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x474]
call fcn.00403680
pop esi
pop ebx
ret
Function at 0x403ca0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x403cae
or eax, 0xffffffff
ret 0xc
cmp dword [0x5ce7c4], 0
je 0x403cbf
mov eax, 1
ret 0xc
mov ecx, eax
push esi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403cc5
sub ecx, esi
cmp ecx, 0x19000
jb 0x403cdd
or eax, 0xffffffff
pop esi
ret 0xc
mov edx, 0x59c6c0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403ce4
cmp dword [esp + 0x10], 0
je 0x403d47
push edi
mov edi, 0x59c6c0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403d00
mov ax, word [0x4841e0]
mov word [edi], ax
call fcn.00403b60
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403d18
mov edi, 0x59c6c0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403d30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
mov dword [0x5ce7c4], 0x59c6c0
test eax, eax
je 0x403d6c
mov edx, 0x5b56c0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403d60
jmp 0x403d9c
mov ecx, dword [str.UNKNOWNAPP]
mov edx, dword [0x4841d8]
mov ax, word [0x4841dc]
mov dword [0x5b56c0], ecx
mov cl, byte [0x4841de]
mov dword [0x5b56c4], edx
mov word [0x5b56c8], ax
mov byte [0x5b56ca], cl
push 0x4841d0
push 0x59c6c0
call fcn.00470055
add esp, 8
test eax, eax
jne 0x403dbf
push str.Failed_to_open_log_file
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403dc8
push eax
call fcn.0046fe06
add esp, 4
push 0x48415c
call fcn.00403bc0
call fcn.00403b80
push eax
push str._Trace_file_started_on__s
call fcn.00403bc0
push 0x48415c
call fcn.00403bc0
add esp, 0x10
xor eax, eax
pop esi
ret 0xc

Function at 0x407260
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.00470055
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4072ed
push 0x6d
push str.C:projectslirssl_srccrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0040aa50
push 0x489030
push esi
push 0x48902c
push edi
push str.fopen_
push 5
call fcn.0040a770
add esp, 0x2c
call fcn.00471904
cmp dword [eax], 2
jne 0x4072d2
push 0x70
push str.C:projectslirssl_srccrypto_bio_bss_file.c
push 0x76
push 0x6f
push 0x20
call fcn.0040aa50
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x72
push str.C:projectslirssl_srccrypto_bio_bss_file.c
push 2
push 0x6f
push 0x20
call fcn.0040aa50
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x582878
call fcn.00406c10
mov esi, eax
add esp, 4
test esi, esi
je 0x4072e7
push ebx
push 1
push 0x6a
push esi
call fcn.00406b70
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4077b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407813
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x407805
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x414ec0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x414f07
mov al, byte [edx]
test al, al
je 0x414f07
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x414ed7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x440730
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esp + 0x10], 0
mov ebx, 0x40
test eax, eax
je 0x44075a
mov dword [esp + 0x10], 1
mov dword [esi], eax
jmp 0x440760
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov edi, dword [eax + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x18], edi
cmp eax, 0x28f
je 0x440777
cmp eax, 0x291
jne 0x440782
mov ebx, 0x20
mov dword [esp + 0x18], ebx
mov edi, ebx
cmp dword [esp + 0x1c], 0
je 0x440838
mov dword [esp + 0x10], 1
cmp edi, 0x40
jbe 0x4407ae
push str.j___sizeof_ctx__key
push 0x62
push str.C:projectslirssl_srccryptohmachmac.c
call fcn.004127b0
add esp, 0xc
mov ebp, dword [esp + 0x20]
cmp edi, ebp
jge 0x4407e8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea edi, [esi + 4]
push edi
call fcn.004091b0
mov eax, dword [esp + 0x28]
push ebp
push eax
push edi
call fcn.004092e0
lea ebp, [esi + 0x34]
push ebp
lea ecx, [esi + 0x38]
push ecx
push edi
call fcn.004092f0
add esp, 0x24
jmp 0x44081d
cmp ebp, 0x40
jbe 0x440801
push str.len___sizeof_ctx__key
push 0x6c
push str.C:projectslirssl_srccryptohmachmac.c
call fcn.004127b0
add esp, 0xc
mov edx, dword [esp + 0x1c]
push ebp
push edx
lea eax, [esi + 0x38]
push eax
call fcn.0046f2a0
mov ecx, dword [esp + 0x2c]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], ecx
mov ebp, dword [ebp]
cmp ebp, ebx
je 0x440838
mov edx, ebx
sub edx, ebp
push edx
lea eax, [esi + ebp + 0x38]
push 0
push eax
call fcn.0046f220
add esp, 0xc
push 0x77
push str.C:projectslirssl_srccryptohmachmac.c
push ebx
call fcn.00404310
add esp, 0xc
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x4408d1
xor eax, eax
test ebx, ebx
jle 0x44086f
jmp 0x440860
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [eax + edi], cl
inc eax
cmp eax, ebx
jl 0x440860
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ebp, [esi + 0x14]
push ebp
call fcn.004091b0
mov ecx, dword [esp + 0x24]
push ecx
push edi
push ebp
call fcn.004092e0
add esp, 0x18
xor eax, eax
test ebx, ebx
jle 0x4408af
jmp 0x4408a0
mov dl, byte [esi + eax + 0x38]
xor dl, 0x5c
mov byte [eax + edi], dl
inc eax
cmp eax, ebx
jl 0x4408a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ebx, [esi + 0x24]
push ebx
call fcn.004091b0
mov edx, dword [esp + 0x24]
push edx
push edi
push ebx
call fcn.004092e0
add esp, 0x18
lea eax, [esi + 0x14]
push eax
add esi, 4
push esi
call fcn.00409440
push edi
call fcn.004044c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x440fc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb4
mov eax, dword [0x59b2d0]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xc0]
push ebx
push ebp
mov ebp, dword [esp + 0xd8]
push esi
mov esi, dword [esp + 0xc4]
push edi
lea ecx, [esp + 0x28]
xor edi, edi
push ecx
mov dword [esp + 0x28], eax
mov ebx, 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.00440970
mov eax, dword [esp + 0xe0]
add esp, 4
mov dword [esp + 0x18], eax
cmp esi, edi
jne 0x441029
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jmp 0x4410d6
mov eax, dword [esp + 0xcc]
cmp eax, 0xffffffff
jne 0x441049
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441040
sub eax, edx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00440f40
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push esi
push edi
push 0x483900
push str.UTF_16
call fcn.00407650
add esp, 0x20
test eax, eax
jle 0x44109e
push 0xcc
push str.C:projectslirssl_srccryptoevpp5_crpt2.c
push eax
call fcn.00404310
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4410a5
push edi
call fcn.004044c0
add esp, 4
xor eax, eax
jmp 0x441217
push eax
push esi
push edi
push 0x483900
push str.UTF_16
call fcn.00407650
mov esi, eax
add esp, 0x14
test esi, esi
jle 0x44109e
push edi
call fcn.004044c0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add esp, 4
dec esi
mov dword [esp + 0x14], esi
cmp dword [esp + 0xdc], 0
je 0x4411ff
jmp 0x4410f4
mov eax, dword [esp + 0x18]
cmp eax, 0x20
mov esi, 0x20
jg 0x441100
mov esi, eax
mov edx, ebx
mov eax, ebx
mov ecx, ebx
shr edx, 0x18
shr eax, 0x10
shr ecx, 8
push 0
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], al
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], bl
call fcn.004096f0
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00440730
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004408f0
push 4
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004408f0
push 0
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00440900
push esi
lea edx, [esp + 0xdc]
push edx
push ebp
call fcn.0046f2a0
mov eax, dword [esp + 0x11c]
add esp, 0x44
cmp eax, 1
jle 0x4411ea
dec eax
mov dword [esp + 0x20], eax
jmp 0x4411a0
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xa4]
push eax
push 0x20
mov ecx, eax
push ecx
push edx
push edi
call fcn.004096f0
push eax
call fcn.004409d0
add esp, 0x1c
test esi, esi
jle 0x4411e3
lea ecx, [esp + 0xa0]
mov eax, ebp
sub ecx, ebp
mov edi, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub edi, 1
jne 0x4411d4
mov edi, dword [esp + 0x10]
sub dword [esp + 0x20], 1
jne 0x4411a0
mov eax, dword [esp + 0x18]
sub eax, esi
inc ebx
add ebp, esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4410f0
push edi
call fcn.004044c0
lea eax, [esp + 0x2c]
push eax
call fcn.004409a0
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f206
add esp, 0xb4
ret
Function at 0x441230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa4
mov eax, dword [0x59b2d0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb0]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
mov edi, dword [esp + 0xb8]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, 1
call fcn.00440970
mov esi, dword [esp + 0xd0]
add esp, 4
mov dword [esp + 0x18], esi
test edi, edi
jne 0x44128f
mov dword [esp + 0xbc], edi
jmp 0x4412b0
cmp dword [esp + 0xbc], 0xffffffff
jne 0x4412b0
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4412a0
sub eax, edx
mov dword [esp + 0xbc], eax
test esi, esi
je 0x4413d2
jmp 0x4412c4
mov esi, dword [esp + 0x18]
cmp esi, 0x14
jle 0x4412ce
mov esi, 0x14
mov eax, ebx
mov ecx, ebx
mov edx, ebx
shr eax, 0x18
shr ecx, 0x10
shr edx, 8
push 0
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], bl
call fcn.00406840
push eax
mov eax, dword [esp + 0xc4]
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00440730
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004408f0
push 4
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004408f0
push 0
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00440900
push esi
lea eax, [esp + 0xd8]
push eax
push ebp
call fcn.0046f2a0
mov eax, dword [esp + 0x10c]
add esp, 0x44
cmp eax, 1
jle 0x4413bd
dec eax
mov dword [esp + 0x10], eax
jmp 0x441370
mov eax, dword [esp + 0xbc]
push 0
lea ecx, [esp + 0xa0]
push ecx
push 0x14
mov edx, ecx
push edx
push eax
push edi
call fcn.00406840
push eax
call fcn.004409d0
add esp, 0x1c
test esi, esi
jle 0x4413b6
lea ecx, [esp + 0x9c]
mov eax, ebp
sub ecx, ebp
mov edi, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub edi, 1
jne 0x4413a7
mov edi, dword [esp + 0x20]
sub dword [esp + 0x10], 1
jne 0x441370
mov eax, dword [esp + 0x18]
sub eax, esi
inc ebx
add ebp, esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4412c0
lea eax, [esp + 0x24]
push eax
call fcn.004409a0
mov ecx, dword [esp + 0xb4]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0046f206
add esp, 0xa4
ret
Function at 0x451c23
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0xa0
mov eax, dword [0x59b2d0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x451d91
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
nop
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.00462460
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004624e0
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00460cc0
push ebp
call fcn.00462460
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004624e0
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00460cc0
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x451c40
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.0046f206
add esp, 0xa0
ret
Function at 0x46e1b0
Capabilities:
Get session user name

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x46e1e9
push str.GetUserName_failed_n
call fcn.0046f6b9
add eax, 0x40
push eax
call fcn.0047013d
add esp, 8
mov eax, 1
pop ecx
ret
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
xor eax, eax
pop ecx
ret

Function at 0x46e200
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x59b2d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x118]
push 0x104
lea eax, [esp + 0xc]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x46e26f
push str.GetEnvironmentVariable_failed_n
call fcn.0046f6b9
add eax, 0x40
push eax
call fcn.0047013d
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046f206
add esp, 0x108
ret
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e276
sub eax, edx
inc eax
mov dword [edi], eax
test esi, esi
je 0x46e29a
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46e290
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0046f206
add esp, 0x108
ret

Function at 0x46e2c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x48ab8c
push eax
call fcn.00470055
mov esi, eax
add esp, 8
test esi, esi
jne 0x46e2de
lea eax, [esi + 1]
pop esi
ret
mov ecx, dword [esp + 0xc]
push esi
push 1
push 0x100
push ecx
call fcn.00471041
add esp, 0x10
cmp eax, 1
je 0x46e2ff
mov eax, 2
pop esi
ret
push esi
call fcn.0046fe06
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x46ee60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x440
mov eax, dword [0x59b2d0]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
mov ebx, dword [esp + 0x450]
push ebp
mov ebp, dword [esp + 0x458]
push esi
mov esi, dword [esp + 0x454]
push edi
mov edi, dword [esp + 0x454]
test edi, edi
je 0x46f025
test esi, esi
je 0x46f025
test ebp, ebp
je 0x46f025
mov eax, 0x20202020
mov byte [esp + 0x28], al
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, esi
mov byte [esp + 0x28], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46eed0
sub eax, edx
cmp eax, 0x10
jl 0x46eee3
mov eax, 0x10
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0046f2a0
add esp, 0xc
test ebx, ebx
je 0x46ef16
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push str._s___s___s
lea edx, [esp + 0x5c]
push 0x400
push edx
call fcn.0047391a
add esp, 0x18
jmp 0x46ef2f
push esi
push edi
push str._s___s
lea eax, [esp + 0x58]
push 0x400
push eax
call fcn.0047391a
add esp, 0x14
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ef36
lea ecx, [esp + 0x2c]
sub eax, edx
push ecx
push eax
lea edx, [esp + 0x54]
push edx
call fcn.0042e6d0
mov eax, dword [eax + 0x10]
push eax
call fcn.004308a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46ef7f
push esi
push str.GOSTR3411_94_Transform_ex_failed__rc__0x_x_n
call fcn.0046f6b9
add eax, 0x40
push eax
call fcn.0047013d
add esp, 0xc
mov eax, esi
jmp 0x46f040
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dl, byte [esp + 0x11]
mov eax, 1
jmp 0x46efa0
movzx ebx, byte [esp + eax*8 + 0x2e]
xor byte [esp + 0x12], bl
movzx ebx, byte [esp + eax*8 + 0x2f]
xor byte [esp + 0x13], bl
movzx ebx, byte [esp + eax*8 + 0x30]
xor byte [esp + 0x14], bl
movzx ebx, byte [esp + eax*8 + 0x31]
xor byte [esp + 0x15], bl
movzx ebx, byte [esp + eax*8 + 0x32]
xor byte [esp + 0x16], bl
mov bl, byte [esp + 0x17]
xor bl, byte [esp + eax*8 + 0x33]
xor cl, byte [esp + eax*8 + 0x2c]
xor dl, byte [esp + eax*8 + 0x2d]
inc eax
cmp eax, 3
mov byte [esp + 0x17], bl
jle 0x46efa0
movzx eax, bl
push eax
movzx eax, byte [esp + 0x1a]
push eax
movzx eax, byte [esp + 0x1d]
push eax
movzx eax, byte [esp + 0x20]
push eax
movzx eax, byte [esp + 0x23]
push eax
movzx eax, byte [esp + 0x26]
push eax
movzx edx, dl
push edx
movzx eax, cl
push eax
push str._.2X_.2X_.2X_.2X_.2X_.2X_.2X_.2X
push 0x11
push ebp
call fcn.0047391a
add esp, 0x2c
mov eax, esi
jmp 0x46f040
push str.lic_generate_serial_number:_NULL_argument_n
call fcn.0046f6b9
add eax, 0x40
push eax
call fcn.0047013d
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f206
add esp, 0x440
ret

Function at 0x46f206
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59b2d0]
jne 0x46f210
repz ret
jmp fcn.00474a77
Function at 0x47cec5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00476221
and dword [ebp - 4], 0
cmp dword [0x5d3aac], 0
mov ebx, eax
jne 0x47cf76
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47d027
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x578c58
push edi
call esi
test eax, eax
je 0x47d027
push eax
call fcn.004761af
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5d3aac], eax
call esi
push eax
call fcn.004761af
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5d3ab0], eax
call esi
push eax
call fcn.004761af
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5d3ab4], eax
call esi
push eax
call fcn.004761af
pop ecx
mov dword [0x5d3abc], eax
test eax, eax
je 0x47cf76
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004761af
pop ecx
mov dword [0x5d3ab8], eax
mov eax, dword [0x5d3ab8]
cmp eax, ebx
je 0x47cfce
cmp dword [0x5d3abc], ebx
je 0x47cfce
push eax
call fcn.0047622a
push dword [0x5d3abc]
mov esi, eax
call fcn.0047622a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47cfce
test edi, edi
je 0x47cfce
call esi
test eax, eax
je 0x47cfc5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47cfc5
test byte [ebp - 0xc], 1
jne 0x47cfce
or dword [ebp + 0x10], 0x200000
jmp 0x47d007
mov eax, dword [0x5d3ab0]
cmp eax, ebx
je 0x47d007
push eax
call fcn.0047622a
pop ecx
test eax, eax
je 0x47d007
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47d007
mov eax, dword [0x5d3ab4]
cmp eax, ebx
je 0x47d007
push eax
call fcn.0047622a
pop ecx
test eax, eax
je 0x47d007
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5d3aac]
call fcn.0047622a
pop ecx
test eax, eax
je 0x47d027
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47d029
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret