joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbda10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0xbda32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbda39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbda28
mov eax, 1
add ebx, ebx
jne 0xbda4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbda40
jne 0xbda5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbda40
xor ecx, ecx
sub eax, 3
jb 0xbda70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbdae2
mov ebp, eax
add ebx, ebx
jne 0xbda7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xbda88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xbdaac
inc ecx
add ebx, ebx
jne 0xbda98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbda8d
jne 0xbdaa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbda8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbdacc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbdabd
jmp 0xbda2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbdacc
add edi, ecx
jmp 0xbda2e
pop esi
mov edi, esi
mov ecx, 0x2b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbdaea
cmp byte [edi], 0
jne 0xbdaea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xbdaef
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0xbdb5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1199c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11a24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbdb1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11a2c]
or eax, eax
je 0xbdb58
mov dword [ebx], eax
add ebx, 4
jmp 0xbdb39
call dword [esi + 0x11a28]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xbdb8f
cmp al, 0xef
ja 0xbdb82
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xbdb64
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xbdb71
mov ebp, dword [esi + 0x11a30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xbdbc3
sub esp, 0xffffff80
jmp 0xb3212
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40596d
pop dword [ebp - 0x28]
mov eax, 0xa68076f7
sub eax, 0xa6401d8a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x9a91b742
add dword [ebp - 0x38], 0xb3c08e09
mov dword [ebp - 0x34], 0xcbd2db92
add dword [ebp - 0x34], 0x666070b3
mov dword [ebp - 0x30], 0x94ed6db
sub dword [ebp - 0x30], 0xbd0292ad
mov dword [ebp - 0x2c], 0x8cce1e7
add dword [ebp - 0x2c], 0xf7331e19
lea eax, [ebp - 0x38]
push eax
mov eax, 0x346ec269
add eax, 0xcbd1adf7
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x7af5a830
sub dword [ebp - 0x38], 0x6833eda
mov dword [ebp - 0x34], 0x629171e8
sub dword [ebp - 0x34], 0x21251073
mov dword [ebp - 0x30], 0x854d7a5e
add dword [ebp - 0x30], 0xde21f20e
mov dword [ebp - 0x2c], 0xa4657d6e
add dword [ebp - 0x2c], 0x5b9a8292
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38a7b
push 0
call eax
mov ecx, 0x813db031
sub ecx, 0x813d6070
xor esi, esi
add esi, eax
mov edx, 0x91fa5132
sub edx, 0x91b95132
add edx, dword [ebp - 0x28]
mov ebx, 0x48878bf4
sub ebx, 0xfcad6a82
sub dword [ebp - 0xc], edx
mov edi, dword [edx]
xor dword [ebp - 0x10], 0xcca4b7d4
add edi, ebx
sub dword [ebp - 0x20], 0x73b1754e
mov dword [esi], edi
xor dword [ebp - 0x1c], ebx
add esi, 4
add edx, 0xf165de1a
sub edx, 0xf165de16
loop 0x405a8c
add eax, 0x16f329c1
add eax, 0xe90e0816
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x410ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a660
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x410f60
jmp 0x410f4e
jbe 0x410ff4
cmp esi, 0x201
jae 0x410f60
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov edi, esi
jmp 0x410f9b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x410f8c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.004513f0
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x410fbf
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x411057
cmp esi, edi
jne 0x410f40
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411073
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x410f4e
jmp 0x410f60
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x411090
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.00412630
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x411041
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.004417f0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x411031
jmp 0x411041
mov dword [ebp - 0x10], 0
push 0x461e00
push 0x28
push str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_string.rs
call fcn.00450d00
add esp, 0xc
jmp 0x41109f
push 0x461e10
push eax
push esi
call fcn.004510f0
add esp, 0xc
ud2
Function at 0x4172f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x417334
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x41733a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x417376
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x41739b
test eax, eax
js 0x417385
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x417391
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x46183c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.00412220
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.0040f8b0
mov ecx, 7
int 0x29
ud2

Function at 0x417c90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x41a860
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x417d0e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x4619b0
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], 0x411610
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x4619dc
push eax
call fcn.00450c40
add esp, 8
ud2
Function at 0x4184b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a880
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x4184ee
test eax, eax
jne 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x418517
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x418548
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x418510
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x418510
test byte [ebp - 0x20], 1
je 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x418577
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4185a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x418570
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x418570
test byte [ebp - 0x20], 1
je 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x4185d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x418608
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4185d0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4185d0
test byte [ebp - 0x20], 1
je 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x418637
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x418664
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x418630
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x418630
test byte [ebp - 0x20], 1
jne 0x418684
movzx eax, byte [0x498134]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x4a026c]
jmp 0x41868f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41866a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x41868c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x41868c
mov dword [ebp - 0x10], 0
push 0x461d04
push 0x2b
push 0x4603a0
call fcn.00450d00
add esp, 0xc
ud2
Function at 0x41a000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4a0044]
mov esi, ecx
test eax, eax
je 0x41a026
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a03f
cmp dword [eax + 4], 0
je 0x41a03f
add eax, 8
pop esi
pop edi
ret
push 0x4a0044
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a01a
mov eax, dword [0x4a0044]
test eax, eax
je 0x41a0d6
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41a0f3
mov edi, eax
test eax, eax
jne 0x41a09f
movzx eax, byte [0x4a06e5]
push 4
push 0x10
call fcn.004417e0
add esp, 8
test eax, eax
je 0x41a107
mov dword [eax], 0x4a0044
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4a0044]
test eax, eax
je 0x41a0f8
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x41a0bf
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x41a0c3
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x41a0c3
xor ecx, ecx
xor edx, edx
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
lea eax, [edi + 8]
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x4a0044
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a05d
xor eax, eax
pop esi
pop edi
ret
push 0x4a0044
call fcn.004515e0
add esp, 4
jmp 0x41a097
push 0x10
push 4
call fcn.00451c70
add esp, 8
ud2
Function at 0x41a120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a910
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4a0054]
test eax, eax
je 0x41a175
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a18e
cmp dword [eax + 4], 0
mov ebx, eax
je 0x41a18e
add ebx, 8
jmp 0x41a258
push 0x4a0054
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a165
mov eax, dword [0x4a0054]
test eax, eax
je 0x41a239
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41a256
mov edi, eax
test eax, eax
jne 0x41a1f2
movzx eax, byte [0x4a06e5]
push 4
push 0x10
call fcn.004417e0
add esp, 8
test eax, eax
je 0x41a27d
mov dword [eax], 0x4a0054
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4a0054]
test eax, eax
je 0x41a26b
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x41a20c
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x41a210
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x41a210
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
je 0x41a258
test ecx, ecx
je 0x41a258
lock dec dword [ecx]
jne 0x41a258
call fcn.00410500
jmp 0x41a258
push 0x4a0054
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a1ac
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a0054
call fcn.004515e0
add esp, 4
jmp 0x41a1ea
mov dword [ebp - 0x10], 0
push 0x10
push 4
call fcn.00451c70
add esp, 8
ud2
Function at 0x41a2c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a920
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4a0064]
test eax, eax
je 0x41a315
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a32e
cmp dword [eax + 4], 0
mov ebx, eax
je 0x41a32e
add ebx, 8
jmp 0x41a3ea
push 0x4a0064
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a305
mov eax, dword [0x4a0064]
test eax, eax
je 0x41a3cb
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41a3e8
mov edi, eax
test eax, eax
jne 0x41a38e
movzx eax, byte [0x4a06e5]
push 4
push 0xc
call fcn.004417e0
add esp, 8
test eax, eax
je 0x41a40f
mov dword [eax], 0x4a0064
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4a0064]
test eax, eax
je 0x41a3fd
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x41a3a3
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x41a3a5
mov eax, dword [esi + 4]
jmp 0x41a3a5
xor eax, eax
mov ecx, dword [edi + 8]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x41a3ea
test ecx, ecx
je 0x41a3ea
lock dec dword [ecx]
jne 0x41a3ea
call fcn.00410560
jmp 0x41a3ea
push 0x4a0064
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a34c
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a0064
call fcn.004515e0
add esp, 4
jmp 0x41a386
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.00451c70
add esp, 8
ud2
Function at 0x41a450
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x4a0074]
test eax, eax
je 0x41a54f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a481
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x41a54a
mov eax, dword [0x4a0074]
test eax, eax
je 0x41a571
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41a58e
mov esi, eax
test eax, eax
jne 0x41a4ec
movzx eax, byte [0x4a06e5]
push 8
push 0x20
call fcn.004417e0
add esp, 8
test eax, eax
je 0x41a5aa
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x4a0074
mov esi, eax
mov eax, dword [0x4a0074]
test eax, eax
je 0x41a598
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x41a50b
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x41a539
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x41a52b
movaps xmm0, xmmword [esp]
jmp 0x41a539
lea ecx, [esp + 0x10]
call fcn.00417c90
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x41a590
push 0x4a0074
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a474
jmp 0x41a481
push 0x4a0074
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a49f
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x4a0074
call fcn.004515e0
add esp, 4
jmp 0x41a4e4
push 0x20
push 8
call fcn.00451c70
add esp, 8
ud2
Function at 0x428570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, edx
mov edi, dword [ebp + 8]
mov eax, dword [0x4a0088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x104
push edi
push ecx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4286de
push str.MicrosoftWindowsStart_MenuPrograms_
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x4286de
mov ecx, dword [esi + 0x10]
lea eax, [ecx - 0x7ffffffb]
cmp eax, 3
jbe 0x4286f0
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
mov edx, dword [esi + 0x14]
lea edi, [ebp - 0x28]
mov dword [edi], 0
lea eax, [ecx + 4]
mov ebx, 7
cmp eax, 8
jb 0x428654
mov dword [ebp - 0x30], edx
mov edx, eax
or edx, 7
cmp edx, 0xb
mov ebx, 0xa
cmovae ebx, edx
mov edx, SysReAllocString
cmp ebx, edx
cmovae ebx, edx
lea edi, [ebx + ebx]
cmp ebx, 0x7ff
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
jb 0x42863a
cmp ebx, 0x7fffffee
jae 0x4286f5
add edi, 0x25
push edi
call fcn.0044f9c3
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x428648
add edi, 2
push edi
call fcn.0044f9c3
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp edx, 8
cmovae esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
lea eax, [ecx + ecx]
push eax
push esi
push edi
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + esi*2 + 4], 0x6b006e
mov dword [edi + esi*2], 0x6c002e
mov word [edi + esi*2 + 8], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x428693
mov eax, dword [ebp - 0x28]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4286de
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x4286d4
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4286fa
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044f9c3
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f7d0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00452ec0
call fcn.00452ed0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42874b
mov eax, dword [ebp + 0xc]
movdqu xmm0, xmmword [eax]
pcmpeqb xmm0, xmmword [0x462f90]
pmovmskb edx, xmm0
cmp edx, 0xffff
je 0x428742
movdqu xmm0, xmmword [eax]
pcmpeqb xmm0, xmmword [0x462fa0]
pmovmskb edx, xmm0
mov eax, 0x80004002
cmp edx, 0xffff
jne 0x428750
mov eax, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
jmp 0x428750
mov eax, 0x80004003
pop ebp
ret 0xc