joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483540
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b6134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0044afb0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x4074e7
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4074f8
push 0x3c
push esi
call fcn.0045d9bb
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48399d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b6134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.softwareSoftwareClient
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edx, str.Error_opening_key._n
mov ecx, str.Success_opening_key._n
cmovne ecx, edx
push ecx
call fcn.00401560
mov esi, dword [ebp + 0x18]
add esp, 4
push esi
call fcn.00415980
mov edx, str.___:sizeof_key
mov ecx, eax
call fcn.0041a270
push eax
call fcn.0041aa90
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push esi
push eax
push 3
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edx, str.Error_writing_to_Registry._n
mov ecx, str.Success_writing_to_Registry._n
cmovne ecx, edx
push ecx
call fcn.00401560
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407958
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40794e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407973
push edx
push ecx
call fcn.0045d9bb
add esp, 8
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.0045d512
mov esp, ebp
pop ebp
ret
call fcn.0046c3be
int3
Function at 0x40af10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.0045e880
mov eax, dword [0x4b6134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x138c]
push edi
mov edi, dword [ebp + 8]
push 0xff
push 0
mov dword [ebp - 0x1394], edi
push eax
mov dword [ebp - 0x1390], 0x1388
call fcn.0045f780
add esp, 0xc
lea eax, [ebp - 0x1394]
push eax
push 0x20019
push 0
push str.SoftwareSoftwareClient
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1390]
push eax
lea eax, [ebp - 0x138c]
push eax
push 0
push 8
push esi
push 0x4a385b
push dword [ebp - 0x1394]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x40afcc
lea ecx, [ebp - 0x138c]
mov dword [edi], eax
mov dword [edi + 0x10], eax
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40afb2
sub ecx, edx
lea eax, [ebp - 0x138c]
push ecx
push eax
mov ecx, edi
call fcn.00418780
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045d512
mov esp, ebp
pop ebp
ret 8
Function at 0x40f810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4848fe
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b6134]
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, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [edx + 0x14]
cmp eax, 8
jb 0x40f881
mov edi, dword [edx]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
cmp ecx, 7
jne 0x40f8bc
mov esi, ecx
mov ecx, str.Desktop
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f8b6
add ecx, 2
sub esi, 1
jne 0x40f895
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48b320
jmp 0x40f9ac
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, edx
cmp eax, 8
jb 0x40f8c5
mov edi, dword [edx]
cmp ecx, 9
jne 0x40f8fa
mov esi, ecx
mov ecx, str.Documents
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f8f4
add ecx, 2
sub esi, 1
jne 0x40f8d3
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48b330
jmp 0x40f9ac
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, edx
cmp eax, 8
jb 0x40f903
mov edi, dword [edx]
cmp ecx, 9
jne 0x40f938
mov esi, ecx
mov ecx, str.Downloads
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f932
add ecx, 2
sub esi, 1
jne 0x40f911
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48b360
jmp 0x40f9ac
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, edx
cmp eax, 8
jb 0x40f941
mov edi, dword [edx]
cmp ecx, 8
jne 0x40f974
mov esi, ecx
mov ecx, str.Pictures
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f96e
add ecx, 2
sub esi, 1
jne 0x40f950
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48b340
jmp 0x40f9ac
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, 8
jb 0x40f97b
mov edx, dword [edx]
cmp ecx, 6
jne 0x40f9e1
mov esi, ecx
mov ecx, str.Videos
sub edx, ecx
nop dword [eax]
mov ax, word [edx + ecx]
cmp ax, word [ecx]
jne 0x40f9e1
add ecx, 2
sub esi, 1
jne 0x40f990
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48b350
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x40f9e1
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f9c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00418340
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
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.0045d512
mov esp, ebp
pop ebp
ret 8
Function at 0x412530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x412616
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x412605
jg 0x412570
test edx, edx
je 0x412605
nop dword [eax]
call fcn.00418060
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4125c4
jg 0x412587
test esi, esi
je 0x4125c4
cmp ebx, eax
jg 0x412597
jl 0x412591
cmp edi, esi
jae 0x412597
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0045f200
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4125e9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4125ff
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x412570
jl 0x4125ff
test edi, edi
jne 0x412570
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x412638
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41263a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4126b8
jg 0x41264d
test esi, esi
je 0x4126b8
test eax, eax
jl 0x41269c
jg 0x412657
test ebx, ebx
je 0x41269c
cmp edi, eax
jg 0x412667
jl 0x412661
cmp esi, ebx
jae 0x412667
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0045f200
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4126b8
jg 0x41269f
test esi, esi
je 0x4126b8
jmp 0x41269f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4126b8
push eax
push esi
push 1
push edx
call fcn.0046c95f
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4126d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x412702
jl 0x4126f5
test ecx, ecx
jne 0x412702
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4127c2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00418080
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41276e
jg 0x41272d
test esi, esi
je 0x41276e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x412745
mov eax, dword [esp + 0x10]
jl 0x41273f
cmp eax, esi
jae 0x412745
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0045f200
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41278f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4127ab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x412714
jl 0x4127ab
test ecx, ecx
jne 0x412714
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x412801
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x412801
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0045f200
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x412870
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x412827
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x412859
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0046d198
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x412884
cmp edi, eax
ja 0x412835
test ecx, ecx
je 0x412870
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0046d198
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b6134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x412c20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x412c5c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x412c5c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x412d44
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x412c84
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x412cb7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046866c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x412d17
sub eax, 1
je 0x412d17
sub eax, 2
jne 0x412d44
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0046866c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x412d34
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046c95f
add esp, 0x10
cmp edi, eax
jne 0x412d44
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x412c47
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d512
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x4131b0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x417c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b6134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x417cba
cmp byte [esi + 0x3d], 0
je 0x417cba
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x417ca8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x417c70
sub eax, 1
je 0x417c74
sub eax, 2
jne 0x417ca8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x417c91
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046c95f
add esp, 0x10
cmp edi, eax
jne 0x417ca8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d512
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0045d512
mov esp, ebp
pop ebp
ret

Function at 0x419cc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485740
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b6134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045d73a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0045c36f
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x41d790
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x41d7ee
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x41d7b0
mov eax, dword [edi]
jmp 0x41d8d9
cmp eax, 0x4e0
jb 0x41d8d9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x41d810
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x41d860
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41da10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485cfd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b6134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push dword [0x4bdf54]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41da7a
mov eax, dword [eax + 4]
test eax, eax
je 0x41da7a
mov esi, dword [eax]
test esi, esi
je 0x41da7a
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0x1b
jb 0x41da71
mov byte [esi + 0x6c], al
jmp 0x41da8a
push esi
call fcn.0044afb0
add esp, 4
push 0x6d
call fcn.0045d73a
mov esi, eax
add esp, 4
mov byte [esi + 0x6c], 0x1b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [esi], 0
mov dword [esi + 4], 0x41ddb0
mov dword [esi + 8], 0
mov al, byte [edi + 1]
mov byte [ecx + 1], al
lea eax, [edi + 4]
push eax
add ecx, 4
mov byte [edi + 1], 0
call fcn.0041dbd0
mov eax, dword [ebx]
mov edi, dword [eax + 4]
cmp byte [edi + 0x14], 0
lea ebx, [edi + 0x14]
je 0x41dafb
push dword [0x4bdf54]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dafb
nop dword [eax]
cmp dword [eax], ebx
je 0x41db18
mov eax, dword [eax + 8]
test eax, eax
jne 0x41daf0
lock inc dword [edi + 0x54]
cmp byte [edi + 0x30], 0
lea eax, [edi + 0x18]
mov dword [ebp - 0x14], eax
je 0x41db3e
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
jmp 0x41db42
mov eax, dword [eax + 4]
test eax, eax
je 0x41dafb
inc dword [eax + 0x14]
mov dword [esi], 0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x41db36
mov dword [ecx], esi
mov dword [eax + 0x10], esi
jmp 0x41db73
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
jmp 0x41db73
mov byte [ebp - 0x10], 0
mov dword [esi], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41db53
mov dword [eax], esi
jmp 0x41db56
mov dword [edi + 0x58], esi
lea eax, [ebp - 0x14]
mov dword [edi + 0x5c], esi
push eax
mov ecx, edi
call fcn.00404510
cmp byte [ebp - 0x10], 0
je 0x41db73
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0041dd40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41dd40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41dd5a
add ecx, 0x10
call fcn.0040efc0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x41dd9e
push dword [0x4bdf54]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dd8e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41dd8e
cmp dword [ecx], 0
jne 0x41dd8e
mov al, byte [esi + 0x6c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0044afb0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x43aae0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4bce38], 0
jne 0x43aaee
call fcn.00452bc0
cmp byte [0x4bce41], 0
je 0x43ab0c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004531f0
add esp, 0x10
ret
jmp fcn.00438e50

Function at 0x477026
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476ea3

Function at 0x47ba50
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047b6f2