joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5fb6d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fb6da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5fc0cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x614258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x614258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x6130e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fc0d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4017c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408c9c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x408c98], ecx
shl ecx, 8
add ecx, edx
mov dword [0x408c94], ecx
shr eax, 0x10
mov dword [0x408c90], eax
call fcn.00403260
test eax, eax
jne 0x40182a
push 0x1c
call fcn.004018e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403060
call fcn.00403050
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a084], eax
call fcn.00402c20
mov dword [0x408c68], eax
test eax, eax
je 0x40185d
mov eax, dword [0x40a084]
test eax, eax
jne 0x401867
push 0xffffffffffffffff
call fcn.004025e0
add esp, 4
call fcn.00402970
call fcn.00402880
call fcn.004025b0
mov eax, dword [0x408cac]
mov dword [0x408cb0], eax
push eax
mov eax, dword [0x408ca4]
push eax
mov ecx, dword [0x408ca0]
push ecx
call section..text
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.004025e0
jmp 0x4018c2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402620
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x408ccc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40263f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x408cc8], 1
mov byte [0x408cc4], bl
jne 0x402699
mov ecx, dword [0x409068]
test ecx, ecx
je 0x402687
mov esi, dword [0x409064]
sub esi, 4
cmp esi, ecx
jb 0x402687
mov eax, dword [esi]
test eax, eax
je 0x402680
call eax
mov ecx, dword [0x409068]
sub esi, 4
cmp esi, ecx
jae 0x402672
push 0x40601c
push 0x406014
call fcn.004026d0
add esp, 8
push 0x406024
push 0x406020
call fcn.004026d0
add esp, 8
test ebx, ebx
jne 0x4026c0
push ebp
mov dword [0x408ccc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402c20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408de0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402c62
call edi
mov esi, eax
test esi, esi
je 0x402c4c
mov eax, 1
jmp 0x402c5d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402d6f
mov eax, 2
mov dword [0x408de0], eax
cmp eax, 1
jne 0x402d02
test esi, esi
jne 0x402c7b
call edi
mov esi, eax
test esi, esi
je 0x402d6f
cmp word [esi], 0
mov eax, esi
je 0x402c95
add eax, 2
cmp word [eax], 0
jne 0x402c83
add eax, 2
cmp word [eax], 0
jne 0x402c83
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402cf4
push edi
call fcn.00403690
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402cf4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402ce6
push ebx
call fcn.00403c70
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402d6f
test ebx, ebx
jne 0x402d13
call ebp
mov ebx, eax
test ebx, ebx
je 0x402d6f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402d2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402d1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402d1b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403690
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402d4d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4034b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x406800
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4034d4
add eax, 8
inc ebp
cmp eax, 0x406890
jb 0x4034c5
cmp ecx, dword [ebp*8 + 0x406800]
jne 0x40367b
mov eax, dword [0x408c70]
cmp eax, 1
je 0x40363d
test eax, eax
jne 0x403500
cmp dword [0x4063d0], 1
je 0x40363d
cmp ecx, 0xfc
je 0x40367b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40353b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403584
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405358
add ebx, ecx
push ebx
call fcn.00404470
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x406804]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004043e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x408f60]
test eax, eax
je 0x40364e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403658
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x406804]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4045f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x409060]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40479d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x408f60]
lea edi, [ecx*4 + 0x408f60]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40479d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40465e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40466f
push 2
push ebp
push eax
call fcn.00404820
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4047ce
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404719
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4046ca
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4046b7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40469a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047bf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404715
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404696
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40478e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404762
cmp eax, 5
jne 0x40474b
mov dword [0x408c88], eax
mov dword [0x408c84], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404ab0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404782
cmp byte [ebp], 0x1a
jne 0x404782
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x408c84], 0x1c
jmp 0x4047a7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x408c84], 9
pop edi
pop esi
pop ebp
mov dword [0x408c88], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404715
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047ff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404719
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404719
Function at 0x402b6a
Capabilities:
Allocate or change rwx memory

Disassembly:
pop eax
push eax
mov dword [0x40a6f1], eax
mov ebx, 0x401255
and ebx, 0xfffff000
mov eax, 0x4019f7
sub eax, ebx
mov dword [0x40a6f5], eax
push 0x40a6f9
push 0x40
push dword [0x40a6f5]
push ebx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [0x40a6f1]
mov byte [eax], 0x90
ret

Function at 0x402d37
Capabilities:
Encode data using xor

Disassembly:
push eax
mov ebx, edi
sub ebx, 0x401255
mov ah, bl
xor ah, 0x22
xor byte [edi], ah
inc edi
dec cl
jne 0x402d38
pop eax
ret

Function at 0x40718c
Capabilities:
Encode data using xor

Disassembly:
push eax
mov ebx, edi
sub ebx, 0x403228
mov ah, bl
and ebx, 7
add ebx, 0x40321c
add ah, byte [ebx]
xor byte [edi], ah
inc edi
dec cl
jne 0x40718d
pop eax
ret

Function at 0x408b62
Capabilities:
Identify system language via api

Disassembly:
push eax
cmp eax, 0
je 0x408c60
call sub.KERNEL32.dll_GetUserDefaultLangID
and ax, 0xff
cmp ax, 7
jne 0x408b89
nop
nop
nop
nop
mov esi, 0x40d067
jmp 0x408bf2
cmp ax, 0xc
jne 0x408b9d
nop
nop
nop
nop
mov esi, 0x40d0a0
jmp 0x408bf2
cmp ax, 0x15
jne 0x408bb1
nop
nop
nop
nop
mov esi, 0x40d081
jmp 0x408bf2
cmp ax, 0x16
jne 0x408bc5
nop
nop
nop
nop
mov esi, 0x40d021
jmp 0x408bf2
cmp ax, 0x14
jne 0x408bd9
nop
nop
nop
nop
mov esi, 0x40d048
jmp 0x408bf2
cmp ax, 0xa
jne 0x408bed
nop
nop
nop
nop
mov esi, 0x40d0c1
jmp 0x408bf2
mov esi, 0x40cffd
pop eax
push eax
push eax
push esi
push 0x40a8a6
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [0x40c8da], 0
jne 0x408c1e
nop
nop
nop
nop
cmp word [0x40c8de], 0
je 0x408c60
nop
nop
nop
nop
mov esi, 0x40a8a6
inc esi
cmp byte [esi], 0xd
jne 0x408c23
mov eax, 0
mov al, byte [0x40c8df]
push eax
mov al, byte [0x40c8de]
push eax
mov al, byte [0x40c8dd]
push eax
mov al, byte [0x40c8dc]
push eax
mov al, byte [0x40c8db]
push eax
mov al, byte [0x40c8da]
push eax
push 0x40d0e4
push esi
call sub.USER32.dll_wsprintfA
add esp, 0x20
pop eax
ret

Function at 0x4092ca
Capabilities:
Read .ini file

Disassembly:
push eax
push esi
mov eax, 0x101
push eax
push 0x40af3d
push 0x40d148
push edi
push ebx
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, 0x40af3d
cmp word [edi], 0x6968
pop ecx
jne 0x409362
nop
nop
nop
nop
cmp ecx, 0
je 0x40935f
nop
nop
nop
nop
push 0x101
push 0x40b131
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
cmp eax, 0
je 0x40935f
nop
nop
nop
nop
mov edi, 0x40b131
add edi, eax
dec edi
cmp byte [edi], 0x5c
jne 0x40931e
inc edi
movsb byte es:[edi], byte [esi]
cmp byte [esi - 1], 0
jne 0x409325
push 0x40b131
push 0x101
push 0x40af3d
push 0x40d148
push 0x40d13a
push 0x40d120
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, 0x40af3d
cmp word [edi], 0x6968
jne 0x409362
nop
nop
nop
nop
mov al, 0x21
ret
add edi, eax
mov al, 0
ret
Function at 0x403fd0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x61c868]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4041a0
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call sym.runtime.morestack_noctxt
jmp sym.internal_chacha8rand.setup
Function at 0x409900
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x61c868]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4099ea
sub esp, 0x2c
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
call sym.runtime.float64bits
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 0x14
and ecx, 0x7ff
mov ebx, edx
shr edx, 0xf
and edx, 0x1f
shl ebx, 5
shr eax, 0x1b
or eax, ebx
and eax, 0xfffff
mov dword [esp + 0x10], eax
lea ebx, [0x5d8f00]
movsd xmm0, qword [ebx + edx*8]
movsd qword [esp + 0x14], xmm0
add ecx, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
add edx, 1
movsd xmm1, qword [ebx + edx*8]
movsd qword [esp + 0x1c], xmm1
mov dword [esp], ecx
mov dword [esp + 4], ebp
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.uint64tofloat64
movsd xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x53af70]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd qword [esp + 0x38], xmm0
add esp, 0x2c
ret
call sym.runtime.morestack_noctxt
jmp sym.runtime.fastlog2

Function at 0x40d270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x61c868]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d398
sub esp, 0x20
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x24]
bsf ebx, edx
jne 0x40d298
mov ebx, 0x20
mov ebp, dword [eax + 0x20]
bsf esi, ebp
jne 0x40d2a5
mov esi, 0x20
cmp ebp, 1
sbb edi, edi
xor edi, 0xffffffff
xchg edi, ebx
not ebx
xchg edi, ebx
and edi, ebx
lea ebx, [esi + edi]
cmp ebx, 0x40
jge 0x40d38c
mov dword [esp + 0x10], ebp
movzx ecx, word [eax + 0x18]
lea ebp, [ebx + ecx]
movzx eax, word [eax + 0x1a]
cmp ax, bp
jbe 0x40d38c
lea ebx, [ebx + ecx + 1]
test bx, 0x3f
jne 0x40d2f5
cmp ax, bx
je 0x40d2f5
mov dword [esp + 0x28], 0
add esp, 0x20
ret
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edx
lea ecx, [esi + edi - 0x1f]
mov dword [esp + 0x1c], ecx
mov eax, edx
shr edx, cl
mov dword [esp + 0x18], edx
neg ecx
shl eax, cl
lea esi, [esi + edi + 1]
mov edi, ecx
mov ecx, esi
mov ebx, dword [esp + 0xc]
shr ebx, cl
mov edx, dword [esp + 0x10]
shr edx, cl
movzx ebp, bp
mov dword [esp + 0x14], ebp
cmp ecx, 0x20
sbb esi, esi
and edx, esi
and ebx, esi
cmp edi, 0x20
sbb esi, esi
and eax, esi
or eax, edx
mov edx, dword [esp + 0x1c]
cmp edx, 0x20
sbb edx, edx
mov esi, dword [esp + 0x18]
and esi, edx
or eax, esi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ebx
movzx eax, word [esp + 0xa]
mov word [edx + 0x18], ax
movzx eax, word [edx + 0x3c]
inc eax
mov word [edx + 0x3c], ax
mov dword [esp], edx
call sym.runtime._mspan_.base
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
imul eax, dword [edx + 0x44]
add eax, dword [esp + 4]
mov dword [esp + 0x28], eax
add esp, 0x20
ret
mov dword [esp + 0x28], 0
add esp, 0x20
ret
call sym.runtime.morestack_noctxt
jmp sym.runtime.nextFreeFast