joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42cad8
cmp dword [ebp + 0x10], 0
jne 0x42cad4
call fcn.00437a80
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0042c5b0

Function at 0x42cdc0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042cae0

Function at 0x42d470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x55a154]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d4bd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, 0x55a150
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x55a154
call fcn.0049f9b7
add esp, 4
cmp dword [0x55a154], 0xffffffff
jne 0x42d4a3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004a3810
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0049f91a
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x55a184]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d566
mov ecx, esi
push ebx
push 0x55a160
push edi
call fcn.0042d660
mov dword [0x55a150], esi
push 0x55a154
call fcn.0049fa2d
add esp, 4
jmp 0x42d4a3
push 0x55a184
call fcn.0049f9b7
add esp, 4
cmp dword [0x55a184], 0xffffffff
jne 0x42d540
xorps xmm0, xmm0
movups xmmword [0x55a170], xmm0
movups xmmword [0x55a160], xmm0
mov dword [0x55a180], 0
push 0x55a160
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x55a184
call fcn.0049fa2d
add esp, 4
jmp 0x42d540

Function at 0x42d5c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x55a184]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d5f1
movzx eax, word [0x55a160]
cmp eax, 9
jne 0x42d63c
xor eax, eax
inc eax
pop ebp
ret
push 0x55a184
call fcn.0049f9b7
add esp, 4
cmp dword [0x55a184], 0xffffffff
jne 0x42d5e0
xorps xmm0, xmm0
movups xmmword [0x55a170], xmm0
movups xmmword [0x55a160], xmm0
mov dword [0x55a180], 0
push 0x55a160
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x55a184
call fcn.0049fa2d
add esp, 4
jmp 0x42d5e0
test eax, eax
je 0x42d5ef
cmp eax, 6
jne 0x42d64c
mov eax, 2
jmp 0x42d5ef
cmp eax, 0xc
jne 0x42d658
mov eax, 3
jmp 0x42d5ef
mov eax, 4
jmp 0x42d5ef
Function at 0x42de10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x42de47
mov eax, dword [0x54cc20]
cmp eax, 0xffffffff
je 0x42ded4
mov ebx, 0x100000
test eax, eax
jne 0x42de47
mov ebx, 0x80000
push 0x10
call fcn.0049f91a
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5518ec]
bt ecx, eax
jb 0x42dec9
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5598ec], 1
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x42e280
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42def8
test edi, edi
je 0x42df56
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0045be60
add esp, 4
jmp 0x42de75
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x54cc20
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x42dfc5
mov eax, dword [0x54cc20]
jmp 0x42de39
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x42df14
mov edi, eax
cmp eax, 0x5af
je 0x42df14
cmp edi, 0xe
jne 0x42df66
push ebx
call fcn.004e5b40
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x42deb0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5518ec]
bt edx, ecx
jae 0x42df45
push eax
call fcn.0045bf80
add esp, 4
push esi
call fcn.0049f94a
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x42deb0
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x42deb0
mov eax, dword [0x55a1b0]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42dfd4
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.00430d20
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x42df9e
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x55a1ac]
call fcn.00472e70
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x42df1d
push dword [ebp - 0x1c]
call fcn.0049f94a
jmp 0x42df1a
mov dword [0x54cc20], 0
jmp 0x42de42
push 0x55a1b0
call fcn.0049f9b7
add esp, 4
cmp dword [0x55a1b0], 0xffffffff
jne 0x42df83
push 0x20
push str.create_thread_last_error
call fcn.00434bc0
add esp, 8
mov dword [0x55a1ac], eax
push 0x55a1b0
call fcn.0049fa2d
add esp, 4
jmp 0x42df83
Function at 0x42e6f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov dword [ecx], 0x52fe30
add ecx, 4
call fcn.0046fe20
lea ecx, [esi + 8]
call fcn.0046fe20
xor ebx, ebx
mov byte [esi + 0xc], bl
lea ecx, [esi + 0x24]
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], ebx
call fcn.0046fe20
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x38], eax
xorps xmm0, xmm0
movups xmmword [esi + 0x44], xmm0
movups xmmword [esi + 0x54], xmm0
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov edi, 0x3f800000
mov dword [esi + 0x6c], edi
movups xmmword [esi + 0x70], xmm0
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], edi
movups xmmword [esi + 0x88], xmm0
mov dword [esi + 0x98], edi
movups xmmword [esi + 0x9c], xmm0
mov dword [esi + 0xac], edi
movups xmmword [esi + 0xb0], xmm0
mov dword [esi + 0xc0], edi
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xd8], ebx
movups xmmword [esi + 0xc8], xmm0
mov eax, dword [0x53b014]
mov dword [esi + 0xe8], eax
lea ecx, [esi + 0xec]
call fcn.00439ca0
xorps xmm0, xmm0
movups xmmword [esi + 0x188], xmm0
mov dword [esi + 0x198], edi
movups xmmword [esi + 0x19c], xmm0
movups xmmword [esi + 0x1a5], xmm0
mov eax, dword [ebp + 8]
mov dword [esi + 0x1b8], eax
mov byte [esi + 0x1bc], bl
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
call fcn.00410480
call fcn.0042d430
mov ecx, eax
mov dword [esi + 0xd8], eax
xor ecx, 0x84222325
mov edx, 0x1b3
mov eax, ecx
mul edx
shl ecx, 8
add ecx, edx
add ecx, 0x8d40976c
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ecx
mov edx, dword [esi + 0xe8]
mov ecx, dword [esi + 0xf0]
mov eax, ecx
shr eax, 6
test dword [0x53b018], edx
je 0x42e88d
cmp ecx, 0x40
mov ecx, 0x3e8
cmovb eax, ecx
push eax
call fcn.00476c20
add esp, 4
mov edi, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test edi, edi
jne 0x42e8b0
call fcn.004398e0
mov ecx, eax
push 0
push str.TraceLog
push esi
call fcn.00439970
mov dword [0x55a394], esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
test dword [0x53b01c], edx
jne 0x42e8c4
test dword [0x53b020], edx
jne 0x42e8ce
cmp ecx, 0x40
mov ecx, 0xfa0
cmovb eax, ecx
push eax
call fcn.00439ac0
jmp 0x42e85d
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
jmp 0x42e86a
cmp ecx, 0x40
mov ecx, 0x100
jmp 0x42e854
cmp ecx, 0x40
mov ecx, 0x7a1200
jmp 0x42e8a5
Function at 0x4309f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
jne 0x430ac9
cmp dword [esi], 0
jne 0x430ac9
cmp dword [esi + 0xc], 0
jne 0x430ac9
xor eax, eax
cmp dword [esi + 4], 0
jne 0x430ac9
mov ebx, dword [edi]
cmp eax, ebx
je 0x430a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x430a99
lea eax, [ebx + 1]
cmp eax, 2
jb 0x430a49
mov dword [esi], ebx
call fcn.004674a0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp dword [esi + 4], ebx
je 0x430a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x430ab0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x430a7c
mov dword [esi + 4], ebx
call fcn.004674a0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004674a0
push dword [esi]
call fcn.00463fa0
add esp, 4
mov dword [esi], 0
jmp 0x430a3a
call fcn.004674a0
push dword [esi + 4]
call fcn.00463fa0
add esp, 4
mov dword [esi + 4], 0
jmp 0x430a6c
mov ecx, esi
call fcn.004e60e0
mov eax, dword [esi]
jmp 0x430a24
Function at 0x434dc0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x220]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
test eax, eax
js 0x434f0d
mov dword [ebp - 0x224], eax
mov ebx, 0xff
mov edi, 0x55d116
push ebx
push dword [ebp - 0x21c]
push edi
call fcn.004b83a1
add esp, 0xc
push edi
call fcn.004b7fa7
add esp, 4
sub ebx, eax
push ebx
push 0x5349aa
push edi
call fcn.004b83a1
add esp, 0xc
push esi
call sub.ntdll.dll_RtlFreeUnicodeString
lea esi, [ebp - 0x218]
push 0x208
push 0
push esi
call fcn.004a3810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x434e7f
push eax
push esi
push edi
call fcn.004b83e6
add esp, 0xc
test eax, eax
je 0x434f29
push 0x104
push esi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x434eaa
push eax
push esi
push edi
call fcn.004b83e6
add esp, 0xc
test eax, eax
je 0x434f29
xor eax, eax
mov byte [0x55cd15], al
mov dword [ebp - 0x218], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x538638
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434f30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [section..00cfg]
push esi
push ebx
call edi
test eax, eax
je 0x434f30
cmp dword [ebp - 0x218], 0
setne cl
mov eax, dword [ebp - 0x224]
mov byte [0x55d316], cl
mov byte [0x55cd14], 1
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x434eac
xor ecx, ecx
jmp 0x434efa
Function at 0x435180
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x4351a5
mov eax, dword [ecx + 4]
test eax, eax
je 0x4352fc
bt ebx, 8
jae 0x4351c0
mov eax, ebx
and eax, 0x200
jne 0x4352fc
cmp edi, 2
mov eax, 0x55cd16
mov ecx, 0x55cf16
cmove ecx, eax
cmp word [ecx], 0
jne 0x4352fc
xorps xmm0, xmm0
lea esi, [ebp - 0x34]
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x4352fc
cmp byte [0x55d316], 0
setne al
bt ebx, 8
jb 0x4352fc
shr ebx, 9
and ebx, 1
or bl, al
je 0x4352fc
cmp edi, 2
mov eax, 0x53867c
mov edx, 0x538690
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x43530e
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x4c], ecx
xor esi, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0
mov edi, dword [edx + 4]
mov ebx, eax
sub ebx, edi
jb 0x43528c
push edi
push dword [edx]
push dword [ebp - 0x38]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], eax
call fcn.004b44ea
mov edx, dword [ebp - 0x50]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x48]
je 0x435297
add edx, 0x14
inc esi
cmp esi, dword [ebp - 0x4c]
jb 0x435265
jmp 0x4352f6
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + edi*2]
mov eax, dword [ebp - 0x48]
cmp ecx, 0x5c
jne 0x435338
mov eax, dword [ebp - 0x38]
lea eax, [eax + edi*2]
mov esi, dword [edx + 8]
cmp esi, 2
jne 0x4352c4
mov dword [ebp - 0x40], str.WOW6432Node
mov dword [ebp - 0x3c], eax
jmp 0x4352c9
cmp esi, 1
je 0x435345
cmp cx, 0x5c
mov dword [ebp - 0x44], esi
jne 0x4352e4
lea ecx, [eax + 2]
dec ebx
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x38], ecx
mov eax, ecx
je 0x4352d2
jmp 0x4352e7
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x4c], eax
mov edx, dword [edx + 0xc]
xor esi, esi
mov eax, ebx
jmp 0x435290
cmp dword [ebp - 0x44], 0
jne 0x435318
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x38], eax
mov eax, ecx
jmp 0x435248
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x435323
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
sub edx, eax
sar edx, 1
mov ecx, dword [ebp + 8]
push dword [ebp - 0x40]
push edx
call fcn.004de170
jmp 0x4352fc
test ecx, ecx
jne 0x43528c
jmp 0x4352aa
mov dword [ebp - 0x40], str.WOW6432Node_
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edi
jmp 0x4352c9
Function at 0x436220
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x436237
test eax, eax
je 0x436237
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x436245
mov ecx, dword [0x55d320]
test ecx, ecx
jne 0x436281
cmp dword [0x55d318], 0
je 0x436231
mov esi, dword [0x55d31c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x43628b
test esi, esi
je 0x436231
mov ecx, dword [0x55d318]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x436231
call dword [section..00cfg]
call ecx
jmp 0x436245
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x436269
Function at 0x438530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4385a4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x43858e
cmp dword [ebp - 0x18], 4
jne 0x43858e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x43858e

Function at 0x4385b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.004a0d30
mov esi, ecx
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.004a3810
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43864a
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x43864e
push edi
call fcn.004b7fa7
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004205a0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x438631
cmp eax, 2
jne 0x4386a1
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.004a3810
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x43869a
push ebx
call fcn.004b7fa7
add esp, 4
mov ecx, esi
push eax
push ebx
jmp 0x43862a
mov esi, 0xea
jmp 0x438631
mov esi, 0x3f4
jmp 0x438631
Function at 0x442400
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00464d60
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x44242e
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x44244c
push dword [ebp - 0x1c]
call fcn.0049f94a
add esp, 4
cmp dword [ebp + 8], 0
je 0x4424e5
test esi, esi
je 0x4424e5
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.0049f973
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00464d60
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x44248f
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x4424a9
push dword [ebp - 0x1c]
call fcn.0049f94a
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4424fe
push edi
call fcn.004b7fa7
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004651a0
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x442501
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.0049f97c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.0049f94a
add esp, 4
jmp 0x4424cd
Function at 0x44a190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x54a010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x44a1c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x44a2c0
push 0
push eax
push 0x44a120
push 0x55d72c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x44a2bb
cmp dword [0x55d730], 0
jne 0x44a1ac
push dword [0x55d734]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44a1ac
mov esi, eax
mov eax, 0x55d738
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x55d73c]
mov ebx, dword [0x55d740]
mov eax, dword [0x55d744]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x55d748]
mov dword [ebp - 0x20], eax
mov eax, dword [0x55d74c]
mov dword [ebp - 0x24], eax
mov eax, 0x55d738
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x44a254
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x44a269
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x44a27f
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x44a298
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x44a2ad
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.00464780
add esp, 4
jmp 0x44a1ac
call fcn.004b18c8
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x55d734], eax
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x55d730], ecx
pop ebp
ret
Function at 0x44a2e0
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, 8
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x44a2c0
push 0
push eax
push 0x44a120
push 0x55d72c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x44a3a8
mov esi, dword [ebp + 0xc]
cmp dword [0x55d730], 0
jne 0x44a3b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x55d734]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x44a36b
push 0x14
push 1
call fcn.00464820
add esp, 8
test eax, eax
je 0x44a3b6
mov edi, eax
push eax
push dword [0x55d734]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x44a3ad
mov ebx, dword [ebp + 8]
mov esi, 0x55d738
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebp + 0x10]
mov dword [ebx*4 + 0x55d73c], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004b18c8
push edi
call fcn.00464780
add esp, 4
mov ecx, dword [ebp + 0x10]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
xor esi, esi
jmp 0x44a394

Function at 0x44e730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x54dce8]
cmp eax, 0xffffffff
je 0x44e7f1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x44e7f1
mov eax, dword [0x55e78c]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x44e7fb
mov edi, dword [0x55e788]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x44e840
mov ecx, dword [0x55d780]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx eax, al
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x55d784], 0
jne 0x44e84c
lea ecx, [ebx + 0x55d784]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov edx, dword [0x55e784]
inc edx
mov dword [0x55e784], edx
mov dword [ecx + 0xc], edx
mov dword [0x55d780], eax
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x44e85b
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0044e860
jmp 0x44e755
push 0x55e78c
call fcn.0049f9b7
add esp, 4
cmp dword [0x55e78c], 0xffffffff
jne 0x44e776
push 4
call fcn.0049f91a
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0046fe20
mov dword [0x55e788], edi
push 0x55e78c
call fcn.0049fa2d
add esp, 4
jmp 0x44e776
mov ecx, edi
call fcn.0046fe30
jmp 0x44e78b
inc edx
cmp edx, 0x100
jne 0x44e794
jmp 0x44e7db
int3