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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x404bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov esi, esp
mov dword [esp], 1
add ecx, eax
mov dword [esp + 4], eax
lea eax, [esp + 0x24]
mov dword [esp + 8], ecx
mov word [esp + 0xc], 0
push esi
push eax
call fcn.004078f0
add esp, 8
mov eax, dword [esp + 0x58]
mov dword [esp], 1
mov dword [esp + 4], edi
add eax, edi
mov dword [esp + 8], eax
mov word [esp + 0xc], 0
lea eax, [esp + 0x18]
push esi
push eax
call fcn.004078f0
add esp, 8
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, edi
call fcn.004047b0
test eax, eax
je 0x404cd4
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp], 0
push ebp
call fcn.00404e40
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push esi
push 0
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x404ced
push eax
call fcn.00415a00
add esp, 4
push eax
call fcn.004152e0
add esp, 4
mov esi, dword [esp + 0x44]
test edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov byte [esp], 1
mov byte [esi], 0
je 0x404cc7
lea eax, [esp + 8]
push eax
call fcn.00414ed0
add esp, 4
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
jne 0x404d06
jmp 0x404d38
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov byte [ebp], 0
test eax, eax
je 0x404d4e
add eax, eax
push 2
push eax
push dword [esp + 0x20]
jmp 0x404d46
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov dword [esi + 1], eax
mov byte [esi], 1
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
je 0x404d38
push eax
call fcn.00415a00
add esp, 4
push eax
call fcn.004152e0
add esp, 4
test edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
je 0x404d38
lea eax, [esp + 8]
push eax
call fcn.00414ed0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404d4e
add eax, eax
push 2
push eax
push ebp
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404d64
add eax, eax
push 2
push eax
push edi
call fcn.00403b20
add esp, 0xc
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406570
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
movzx ebx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x4065f1
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x10], 0x40
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4065c2
movups xmm0, xmmword [esp + 0x18]
movups xmmword [esi + 0x20], xmm0
jmp 0x4065f1
call fcn.004150e0
movups xmm0, xmmword [esp + 0x18]
test edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
movups xmmword [esi + 0x20], xmm0
je 0x4065f1
lea eax, [esp + 0xc]
push eax
call fcn.00414ed0
add esp, 4
test bl, bl
je 0x406662
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x38
push eax
call dword [sym.imp.kernel32.dll_K32GetPerformanceInfo]
test eax, eax
je 0x406662
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
xor ecx, ecx
mov edx, 0
sub eax, edi
sbb edx, edx
cmovb eax, ecx
mul ebx
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], edx
mov edx, 0
sub eax, edi
sbb edx, edx
cmovb eax, ecx
mul ebx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406af0
Capabilities:
Get hostname

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 8], 0
call fcn.00412da0
lea ebx, [esp + 8]
push ebx
push eax
push 5
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
mov dword [esp + 4], eax
je 0x406b1e
xor eax, eax
jmp 0x406b33
call fcn.004150e0
mov dword [esp + 0x1c], eax
mov eax, 1
mov dword [esp], edx
mov dword [esp + 0x20], edx
mov edi, dword [esp + 8]
mov ebp, 2
mov dword [esp + 0x18], eax
test edi, edi
je 0x406b72
cmp edi, 0x3fffffff
ja 0x406c77
lea esi, [edi + edi]
test esi, esi
js 0x406c77
je 0x406b72
push 2
push esi
call fcn.00403b60
add esp, 8
mov ebp, eax
test eax, eax
je 0x406c7e
mov esi, dword [esp + 0x38]
push ebp
call fcn.00404e40
add esp, 4
push ebx
push eax
push 5
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x406bb2
test edi, edi
je 0x406c0c
lea ecx, [edi + edi]
xor eax, eax
nop word cs:[eax + eax]
cmp word [ebp + eax*2], 0
je 0x406c0e
inc eax
add ecx, 0xfffffffe
jne 0x406ba0
mov eax, edi
jmp 0x406c0e
call fcn.004150e0
test edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
je 0x406bd8
lea eax, [esp + 0x14]
push eax
call fcn.00414ed0
add esp, 4
test edi, edi
je 0x406bea
add edi, edi
push 2
push edi
push ebp
call fcn.00403b20
add esp, 0xc
cmp dword [esp + 4], 0
jne 0x406c04
cmp dword [esp], 0
je 0x406c04
lea eax, [esp + 0x20]
push eax
call fcn.00414ed0
add esp, 4
mov dword [esi], 0
jmp 0x406c61
xor eax, eax
lea ecx, [esp + 0xc]
push eax
push ebp
push ecx
call fcn.00430110
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x406c6b
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
test edi, edi
je 0x406c47
add edi, edi
push 2
push edi
push ebp
call fcn.00403b20
add esp, 0xc
cmp dword [esp + 4], 0
jne 0x406c61
cmp dword [esp], 0
je 0x406c61
lea eax, [esp + 0x20]
push eax
call fcn.00414ed0
add esp, 4
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
test edi, edi
jne 0x406c39
jmp 0x406c47
call fcn.0042f5e0
ud2
push esi
push 2
call fcn.0043daa0
add esp, 8
ud2
Function at 0x40c670
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, ecx
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40c793
mov ebx, dword [esp + 0x20]
mov dword [esp], 4
mov dword [esp + 4], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
test ebx, ebx
je 0x40c738
mov edi, dword [esp + 0x10]
shl ebx, 2
lea ebp, [esp + 0x14]
lea esi, [esp + 0x24]
jmp 0x40c6f5
mov ecx, dword [esp]
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*2]
add edi, 4
mov dword [ecx + eax*4 + 8], edx
movsd xmm0, qword [esp + 0x24]
movsd qword [ecx + eax*4], xmm0
inc dword [esp + 8]
add ebx, 0xfffffffc
je 0x40c738
push edi
call fcn.00414eb0
add esp, 4
lea ecx, [eax + edx*2]
mov word [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push ebp
push esi
call fcn.004044b0
add esp, 8
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jne 0x40c6d0
push eax
lea eax, [esp + 4]
push eax
call fcn.00407270
add esp, 8
mov eax, dword [esp + 8]
jmp 0x40c6d0
push dword [esp + 0x10]
call dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.00414e20
add esp, 4
test al, al
je 0x40c7a9
call fcn.004150e0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movsd xmm0, qword [esp]
test edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 1
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
je 0x40c7bd
lea eax, [esp + 0x1c]
push eax
call fcn.00414ed0
add esp, 4
jmp 0x40c7bd
mov dword [esi], 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x40c7bd
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movsd xmm0, qword [esp]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cbd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40cbf5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x40cc0a
cmp dword [eax + 4], 0
je 0x40cc0a
add eax, 8
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x40cbe9
mov eax, dword [edi]
test eax, eax
je 0x40cc7f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x40cc94
mov esi, eax
test eax, eax
jne 0x40cc54
movzx eax, byte [0x537199]
push 4
push 0xc
call fcn.00403b10
add esp, 8
test eax, eax
je 0x40cca4
mov dword [eax], edi
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x40cc99
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40cc6d
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x40cc6f
mov ecx, dword [eax + 4]
jmp 0x40cc6f
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], ecx
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x40cc1d
xor eax, eax
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
jmp 0x40cc4c
push 0xc
push 4
call fcn.0043daa0
add esp, 8
ud2

Function at 0x40f990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov edi, dword [esi + 0x40]
xor edi, eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call fcn.00410a50
add esp, 0xc
mfence
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [esi + 0xbc]
test eax, 0x10000
jne 0x40f9e9
lea ecx, [eax + 0x10000]
lock cmpxchg dword [esi + 0xbc], ecx
jne 0x40f9c0
mov eax, ecx
and eax, 0xff
jne 0x40f9f4
pop esi
pop edi
ret
mov ecx, eax
mov eax, ecx
and eax, 0xff
je 0x40f9e6
cmp edi, 1
ja 0x40fa00
movzx ecx, ch
cmp ecx, eax
jne 0x40f9e6
add esi, 0xb0
push 1
push esi
call fcn.0043ba80
add esp, 8
pop esi
pop edi
ret
Function at 0x410490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x4104b9
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4104ce
cmp dword [eax + 4], 0
je 0x4104ce
add eax, 8
jmp 0x41058c
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4104ab
mov eax, dword [edi]
test eax, eax
je 0x410571
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41058a
mov esi, eax
test eax, eax
jne 0x410524
movzx eax, byte [0x537199]
push 4
push 0x14
call fcn.00403b10
add esp, 8
test eax, eax
je 0x41059c
mov dword [eax], edi
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x410591
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41054d
mov ecx, dword [eax]
mov dword [eax], 0
cmp ecx, 1
jne 0x41054d
mov ebp, dword [eax + 4]
movzx edx, byte [eax + 8]
movzx ebx, byte [eax + 9]
movzx edi, word [eax + 0xa]
mov ecx, dword [eax + 0xc]
jmp 0x410555
xor ecx, ecx
xor ebx, ebx
xor edx, edx
xor ebp, ebp
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], ebp
mov byte [esi + 0xc], dl
mov byte [esi + 0xd], bl
mov word [esi + 0xe], di
mov dword [esi + 0x10], ecx
jmp 0x41058c
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4104e9
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0043d450
add esp, 4
jmp 0x41051c
push 0x14
push 4
call fcn.0043daa0
add esp, 8
ud2

Function at 0x4117d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4117f5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x41180a
cmp dword [eax + 4], 0
je 0x41180a
add eax, 8
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4117e9
mov eax, dword [edi]
test eax, eax
je 0x411867
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41187c
mov esi, eax
test eax, eax
jne 0x411854
movzx eax, byte [0x537199]
push 4
push 0xc
call fcn.00403b10
add esp, 8
test eax, eax
je 0x41188c
mov dword [eax], edi
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x411881
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
add esi, 4
push dword [esp + 0x10]
push esi
call fcn.00411e10
add esp, 8
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41181d
xor eax, eax
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
jmp 0x41184c
push 0xc
push 4
call fcn.0043daa0
add esp, 8
ud2
Function at 0x413bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov edx, dword [eax + 4]
movzx eax, byte [eax + 0xc]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], edx
mov byte [esp + 2], al
jmp 0x413c30
mov byte [esp + 2], 1
push 4
push str.____:
push dword [esp + 0xc]
call fcn.00431d20
add esp, 0xc
test al, al
je 0x413de7
jmp 0x413e07
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test al, al
mov byte [esp + 3], al
jne 0x413e07
mov al, 1
mov dword [esp + 8], eax
nop word [eax + eax]
cmp ebx, ebp
ja 0x413cf0
mov eax, dword [esp + 0x78]
mov ecx, ebp
sub ecx, ebx
cmp ecx, 8
lea eax, [eax + ebx]
jae 0x413c90
xor edx, edx
test ecx, ecx
je 0x413ca6
nop
cmp byte [eax + edx], 0xa
je 0x413cb2
inc edx
cmp ecx, edx
jne 0x413c70
xor eax, eax
mov edx, ecx
cmp eax, 1
je 0x413cc0
jmp 0x413d40
push ecx
push eax
push 0xa
call fcn.00432750
add esp, 0xc
cmp eax, 1
je 0x413cc0
jmp 0x413d40
xor eax, eax
cmp eax, 1
je 0x413cc0
jmp 0x413d40
mov eax, 1
cmp eax, 1
jne 0x413d40
lea esi, [ebx + edx]
lea ebx, [ebx + edx + 1]
cmp esi, ebp
jae 0x413c50
mov eax, dword [esp + 0x78]
cmp byte [eax + esi], 0xa
jne 0x413c50
mov ecx, ebx
mov dword [esp + 8], 0
cmp byte [esp + 2], 0
mov dword [esp + 0x14], ecx
jne 0x413cff
jmp 0x413d51
mov ecx, edi
mov esi, ebp
cmp byte [esp + 2], 0
mov dword [esp + 0x14], ecx
je 0x413d51
cmp dword [esp + 0x10], 0
je 0x413de7
push 0xa
push dword [esp + 8]
call fcn.004320f0
add esp, 8
test al, al
jne 0x413e07
cmp dword [esp + 0xc], 0
je 0x413c0c
push 7
push 0x52abc0
jmp 0x413c13
mov ecx, edi
mov ebx, ebp
mov esi, ebp
cmp byte [esp + 2], 0
mov dword [esp + 0x14], ecx
jne 0x413cff
cmp dword [esp + 0xc], 0
mov eax, dword [esp + 0x74]
mov byte [eax + 0xc], 1
je 0x413c07
mov eax, dword [esp + 0x18]
movaps xmm0, xmmword [0x52ab10]
mov dword [esp + 0x28], 0x52abb0
mov dword [esp + 0x2c], 2
mov dword [esp + 0x40], 2
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x58], 0
mov byte [esp + 0x5c], 1
mov dword [esp + 0x20], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x24], fcn.00434680
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 1
push eax
push dword [esp + 8]
call fcn.00431d40
add esp, 8
mov byte [esp + 2], 1
test al, al
jne 0x413e07
sub esi, edi
add edi, dword [esp + 0x78]
inc dword [esp + 0x10]
push esi
push edi
push dword [esp + 0xc]
call fcn.00431d20
add esp, 0xc
test al, al
je 0x413c30
cmp byte [esp + 3], 0
sete al
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x416de0
Capabilities:
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x416e3c
dec eax
push 1
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [edi + 4]
test eax, eax
je 0x416e1a
dec dword [eax]
jne 0x416e1a
dec dword [eax + 4]
jne 0x416e1a
push 8
push 0x158
push eax
call fcn.00403b20
add esp, 0xc
push 4
push 8
push edi
call fcn.00403b20
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x416e47
dec eax
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
pop esi
pop edi
ret
push esi
call fcn.0043d450
add esp, 4
jmp 0x416df1
push esi
call fcn.0043d450
add esp, 4
jmp 0x416e2e

Function at 0x4174a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4174c9
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4174de
cmp dword [eax + 4], 0
mov esi, eax
je 0x4174de
add esi, 4
mov eax, esi
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4174b9
mov eax, dword [edi]
test eax, eax
je 0x41753d
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x417552
mov esi, eax
test eax, eax
jne 0x417528
movzx eax, byte [0x537199]
push 4
push 8
call fcn.00403b10
add esp, 8
test eax, eax
je 0x417564
mov dword [eax], edi
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x417559
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
add esi, 4
push dword [esp + 0x10]
push esi
call fcn.00417260
add esp, 8
mov eax, esi
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4174f1
xor esi, esi
mov eax, esi
pop esi
pop edi
ret
push edi
call fcn.0043d450
add esp, 4
jmp 0x417520
push 8
push 4
call fcn.0043daa0
add esp, 8
ud2

Function at 0x4179a0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
je 0x4179dc
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x4179dc
mov edi, eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_SystemFunction036]
add edi, 0x80000000
xor esi, esi
test al, al
cmove esi, edi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41a7e0
Capabilities:
Get system information on windows

Disassembly:
push esi
sub esp, 0x24
mov esi, dword [esp + 0x2c]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41a81a
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
add esp, 0x24
pop esi
ret
mov byte [esi], 2
mov dword [esi + 4], 0x52d87c
mov eax, esi
add esp, 0x24
pop esi
ret