joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ef30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov ebx, ecx
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x41ef63
mov eax, dword [0x4b7b64]
cmp eax, 0xffffffff
je 0x41efb9
mov ebx, 0x100000
test eax, eax
jne 0x41ef63
mov ebx, 0x80000
push 0xc
call fcn.0044c095
add esp, 4
mov edi, eax
mov dword [eax], esi
mov esi, dword [ebp + 8]
test esi, esi
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
xor eax, eax
push eax
push 0x10000
push edi
push 0x41f260
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41efdd
test esi, esi
je 0x41f017
mov dword [esi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4b7b64
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41f07f
mov eax, dword [0x4b7b64]
jmp 0x41ef55
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x41eff9
mov esi, eax
cmp eax, 0x5af
je 0x41eff9
cmp esi, 0xe
jne 0x41f027
push ebx
call fcn.00490ad0
add esp, 4
test edi, edi
mov eax, dword [ebp - 0x20]
je 0x41efa0
push edi
call fcn.0044c0c5
mov eax, dword [ebp - 0x20]
add esp, 4
jmp 0x41efa0
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41efa0
mov eax, dword [0x4bb550]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x41f08e
lea ebx, [ebp - 0x1c]
push esi
push ebx
call fcn.004244f0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x41f05f
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x4bb54c]
call fcn.0043eb60
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x41f002
push dword [ebp - 0x1c]
call fcn.0044c0c5
jmp 0x41efff
mov dword [0x4b7b64], 0
jmp 0x41ef5e
push 0x4bb550
call fcn.0044c137
add esp, 4
cmp dword [0x4bb550], 0xffffffff
jne 0x41f044
push 0x20
push str.create_thread_last_error
call fcn.004263a0
add esp, 8
mov dword [0x4bb54c], eax
push 0x4bb550
call fcn.0044c1ad
add esp, 4
jmp 0x41f044

Function at 0x41f820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1af
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.0043a0c0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0043e9e0
cmp byte [edi + 0xb], 0
jns 0x41f881
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.0043ea40
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0044c6d8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41f8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.00450040
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x41f933
push ebx
call fcn.004613fd
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.00435290
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0041c420
mov ecx, dword [ebp + 8]
push ebx
call fcn.00435370
mov ecx, ebx
call fcn.00435350
mov ecx, edi
call fcn.00435350
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41f960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.00450040
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x4acd60]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41f9dc
cmp word [ebp - 0x214], 0
je 0x41f9dc
push edi
call fcn.004613fd
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00435290
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0044c6d8
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00435240
push edi
call fcn.0041f8b0
add esp, 4
mov ecx, esi
test al, al
je 0x41fa0b
push edi
call fcn.00435260
jmp 0x41fa17
push 3
push 0x4acdb2
call fcn.00435290
lea ecx, [ebp - 0x220]
call fcn.00435350
jmp 0x41f9c6

Function at 0x41fa30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x391
push str..._.._base_files_file_util_win.cc
push 0x4acdba
push ebx
call fcn.0043a0c0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0043e9e0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.00450040
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x41fafc
push ebx
call fcn.004613fd
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.00435290
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0041c420
mov ecx, dword [ebp + 8]
push ebx
call fcn.00435370
mov ecx, ebx
call fcn.00435350
mov ecx, edi
call fcn.00435350
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.0043ea40
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0044c6d8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420550
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4bb564]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42059d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, 0x4bb560
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4bb564
call fcn.0044c137
add esp, 4
cmp dword [0x4bb564], 0xffffffff
jne 0x420583
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00450040
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 0x58
call fcn.0044c095
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x4bb594]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x420669
push 0x4bb594
call fcn.0044c137
add esp, 4
cmp dword [0x4bb594], 0xffffffff
jne 0x420669
xorps xmm0, xmm0
movups xmmword [0x4bb580], xmm0
movups xmmword [0x4bb570], xmm0
mov dword [0x4bb590], 0
push 0x4bb570
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4bb594
call fcn.0044c1ad
add esp, 4
mov ecx, esi
push ebx
push 0x4bb570
push edi
call fcn.00420750
mov dword [0x4bb560], esi
push 0x4bb564
call fcn.0044c1ad
add esp, 4
jmp 0x420583

Function at 0x4206a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4bb594]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x420709
push 0x4bb594
call fcn.0044c137
add esp, 4
cmp dword [0x4bb594], 0xffffffff
jne 0x420709
xorps xmm0, xmm0
movups xmmword [0x4bb580], xmm0
movups xmmword [0x4bb570], xmm0
mov dword [0x4bb590], 0
push 0x4bb570
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4bb594
call fcn.0044c1ad
add esp, 4
movzx ecx, word [0x4bb570]
cmp cx, 9
jne 0x42071b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
test cx, cx
je 0x420719
cmp cx, 6
jne 0x42072f
mov eax, 2
jmp 0x420719
cmp cx, 0xc
jne 0x42073c
mov eax, 3
jmp 0x420719
mov eax, 4
jmp 0x420719
Function at 0x420e30
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 0x420f09
cmp dword [esi], 0
jne 0x420f09
cmp dword [esi + 0xc], 0
jne 0x420f09
xor eax, eax
cmp dword [esi + 4], 0
jne 0x420f09
mov ebx, dword [edi]
cmp eax, ebx
je 0x420e93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x420ed9
lea eax, [ebx + 1]
cmp eax, 2
jb 0x420e89
mov dword [esi], ebx
call fcn.0043a0f0
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 0x420ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x420ef0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x420ebc
mov dword [esi + 4], ebx
call fcn.0043a0f0
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.0043a0f0
push dword [esi]
call fcn.0043bf60
add esp, 4
mov dword [esi], 0
jmp 0x420e7a
call fcn.0043a0f0
push dword [esi + 4]
call fcn.0043bf60
add esp, 4
mov dword [esi + 4], 0
jmp 0x420eac
mov ecx, esi
call fcn.0048ce70
mov eax, dword [esi]
jmp 0x420e64
Function at 0x422ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x422bce
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov word [esp + 0x50], 0x301
mov dword [esp + 0x54], ecx
mov eax, dword [eax]
mov dword [esp + 0x60], eax
sar eax, 0x1f
mov dword [esp + 0x64], eax
xor eax, eax
dec eax
lea ecx, [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp], ecx
call fcn.0043a510
mov eax, dword [0x4bb7d8]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x422be1
mov dword [esp], str.__metadata
call fcn.0043ab20
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp], edi
lea edi, [esp + 0x50]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
pxor xmm0, xmm0
movdqu xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x4a83c0]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x4d
mov ecx, esi
call fcn.00426520
sub esp, 0x44
cmp byte [edi], 0
jne 0x422c1f
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0044c6d8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], 0x4bb7d8
call fcn.0044c137
cmp dword [0x4bb7d8], 0xffffffff
jne 0x422b68
mov dword [esp], 0
mov ecx, 0x4bb5e8
call fcn.00421360
sub esp, 4
mov dword [esp], 0x4bb7d8
call fcn.0044c1ad
jmp 0x422b68
mov al, byte [esp + ebx + 0x51]
cmp al, 8
je 0x422c37
cmp al, 9
je 0x422c5f
inc ebx
movzx eax, byte [esp + 0x50]
cmp ebx, eax
jae 0x422bce
jmp 0x422c1f
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x422c2b
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, esi
call edi
sub esp, 4
mov al, byte [esp + ebx + 0x51]
jmp 0x422c27
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x422c2b
lea ecx, [esi + 0x5c]
call fcn.00430230
lea ecx, [esi + 0x28]
call fcn.0042e650
mov ecx, esi
call fcn.004303b0
mov dword [esp], esi
call fcn.0044c0c5
jmp 0x422c2b
Function at 0x422c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x422d7d
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov word [esp + 0x50], 0x701
mov dword [esp + 0x54], ecx
cmp byte [eax + 0xb], 0
jns 0x422cdf
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x60], eax
xor eax, eax
dec eax
lea ecx, [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp], ecx
call fcn.0043a510
mov eax, dword [0x4bb7d8]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x422d90
mov dword [esp], str.__metadata
call fcn.0043ab20
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp], edi
lea edi, [esp + 0x50]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
pxor xmm0, xmm0
movdqu xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x4a83c0]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x4d
mov ecx, esi
call fcn.00426520
sub esp, 0x44
cmp byte [edi], 0
jne 0x422dce
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0044c6d8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], 0x4bb7d8
call fcn.0044c137
cmp dword [0x4bb7d8], 0xffffffff
jne 0x422d17
mov dword [esp], 0
mov ecx, 0x4bb5e8
call fcn.00421360
sub esp, 4
mov dword [esp], 0x4bb7d8
call fcn.0044c1ad
jmp 0x422d17
mov al, byte [esp + ebx + 0x51]
cmp al, 8
je 0x422de6
cmp al, 9
je 0x422e0e
inc ebx
movzx eax, byte [esp + 0x50]
cmp ebx, eax
jae 0x422d7d
jmp 0x422dce
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x422dda
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, esi
call edi
sub esp, 4
mov al, byte [esp + ebx + 0x51]
jmp 0x422dd6
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x422dda
lea ecx, [esi + 0x5c]
call fcn.00430230
lea ecx, [esi + 0x28]
call fcn.0042e650
mov ecx, esi
call fcn.004303b0
mov dword [esp], esi
call fcn.0044c0c5
jmp 0x422dda
Function at 0x4242e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4b6014]
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]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424353
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x42433d
cmp dword [ebp - 0x18], 4
jne 0x42433d
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.0044c6d8
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x42433d

Function at 0x424360
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.0044d220
mov esi, ecx
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.00450040
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]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4243ef
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x4243f3
mov ecx, esi
push edi
call fcn.0041a1c0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x4243d6
cmp eax, 2
jne 0x424431
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.00450040
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
dec eax
cmp eax, 0x3ff
ja 0x424438
mov ecx, esi
push ebx
jmp 0x4243cf
mov esi, 0x3f4
jmp 0x4243d6
mov esi, 0xea
jmp 0x4243d6

Function at 0x4250c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b898c]
cmp eax, 0xffffffff
je 0x4250e0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
jmp 0x4250de
Function at 0x4250f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x4b898c]
cmp eax, 0xffffffff
je 0x4251b7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x4251b7
mov eax, dword [0x4bd8b4]
mov ecx, dword [0x4b9b2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4251c1
mov edi, dword [0x4bd8b0]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x425206
mov ecx, dword [0x4bccac]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x4bccb0], 0
jne 0x425212
lea eax, [eax*4 + 0x4bccb0]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x4bccb4], ecx
mov dword [0x4bccac], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x4bccb8]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x425224
cmp eax, 0x100
jge 0x425227
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00425230
jmp 0x425115
push 0x4bd8b4
call fcn.0044c137
add esp, 4
cmp dword [0x4bd8b4], 0xffffffff
jne 0x425136
push 4
call fcn.0044c095
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0043a020
mov dword [0x4bd8b0], edi
push 0x4bd8b4
call fcn.0044c1ad
add esp, 4
jmp 0x425136
mov ecx, edi
call fcn.0043a030
jmp 0x42514b
inc edx
cmp edx, 0x100
jne 0x425154
jmp 0x42519b
int3
int3

Function at 0x425230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x4b898c]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x4252dd
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x425326
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.00450040
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.0042a4f0
add esp, 8
push edi
call fcn.0044c0f3
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.0044f540
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.0042a4f0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.0042a4d0
add esp, 4
test al, al
je 0x425329
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x42532c
xor eax, eax
dec eax
lock cmpxchg dword [0x4b898c], ecx
je 0x425261
push ecx
call fcn.00498c10
add esp, 4
mov ecx, dword [0x4b898c]
mov dword [ebp - 0x814], ecx
jmp 0x425261
int3
int3
push esi
call fcn.0042a4d0
add esp, 4
test al, al
je 0x425354
cmp dword [ebp - 0x814], 0xffffffff
je 0x425354
push 0xffffffffffffffff
call fcn.00498c10
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x4252fb
int3
Function at 0x426a00
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 [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00437b10
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x426a2e
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 0x426a4c
push dword [ebp - 0x1c]
call fcn.0044c0c5
add esp, 4
test esi, esi
je 0x426ae4
cmp dword [ebp + 8], 0
je 0x426ae4
xor eax, eax
dec eax
mov ecx, esi
add ecx, esi
cmovb ecx, eax
push ecx
call fcn.0044c0f3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00437b10
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x426a8e
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x426aa8
push dword [ebp - 0x1c]
call fcn.0044c0c5
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x426afd
push edi
call fcn.004613fd
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.00437e70
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x426b00
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.0044c0fc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.0044c0c5
add esp, 4
jmp 0x426acc
Function at 0x4281c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
je 0x42837c
cmp dword [0x4b89d0], 0xe69e32f3
jne 0x42837f
mov byte [ebp - 0x11], 0xff
lea ebx, [esi + 0x2a8]
lea ecx, [esi + 0x44]
xor edi, edi
inc edi
mov dword [ebp - 0x18], 0
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov dword [ebp - 0x1c], ecx
push ecx
call eax
test al, al
jne 0x428248
jmp 0x42835f
pause
dec eax
jne 0x428219
mov edx, dword [ebp - 0x18]
add edx, edi
mov ecx, dword [ebp - 0x1c]
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
mov dword [ebp - 0x18], edx
cmp edx, 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jl 0x42820d
call fcn.004283a0
mov eax, dword [ebx]
mov edi, dword [eax]
test edi, edi
je 0x428311
mov ecx, esi
mov byte [ebp - 0x11], 0
mov esi, dword [edi]
test esi, esi
je 0x42830d
mov edx, dword [ecx + 0x2b4]
mov dword [ebp - 0x18], edx
mov ebx, esi
bswap ebx
test ebx, 0x1fc000
je 0x428374
mov edx, ebx
xor edx, edi
cmp edx, 0x1fffff
ja 0x428374
not esi
cmp dword [edi + 4], esi
jne 0x428374
prefetcht0 byte [ebx]
mov dword [eax], ebx
inc word [eax + 0xc]
mov esi, ecx
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x8fc]
add ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x900]
mov dword [esi + 0x8fc], ecx
cmp eax, ecx
cmovae ecx, eax
mov dword [esi + 0x900], ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
push esi
call fcn.00441cb0
push edi
push dword [0x4bd9c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x4b9b2c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x42829b
lea eax, [ebp - 0x11]
mov ecx, ebx
push eax
push 0x4000
push 0x1c8
push 2
push esi
call fcn.0042e800
test eax, eax
je 0x428382
mov edi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x4282a3
mov eax, edi
test edi, edi
jg 0x428219
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x428226
mov ecx, dword [ebp - 0x18]
call fcn.004725e0
int3
int3
xor edi, edi
jmp 0x4282c6