joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454af9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
cmp dword [edi + 4], 2
jne 0x41c868
cmp byte [edi + 0xc], 0
je 0x41c868
lea ecx, [ebp - 0x10]
call fcn.0040c8a0
mov dword [ebp - 4], 2
mov esi, 0x104
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x41c7a0
push esi
lea ecx, [ebp - 0x10]
call fcn.0040d680
mov edx, dword [ebp - 0x10]
test esi, esi
js 0x41c8b9
cmp esi, dword [edx - 8]
jg 0x41c8b9
mov dword [edx - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push esi
push edx
mov word [eax + esi*2], cx
push dword [edi + 8]
call ebx
test eax, eax
je 0x41c8cf
cmp eax, esi
jbe 0x41c7dd
lea esi, [eax + 1]
test esi, esi
js 0x41c8a3
jmp 0x41c780
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00441b20
mov edx, eax
add esp, 8
test edx, edx
js 0x41c8b9
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x41c8b9
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.0040dbc0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41c852
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.0040dbc0
mov ecx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x325
push str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
push 0x80070057
call fcn.0040deb0
push 0
push 0x368
push str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
push 0x80070057
call fcn.0040deb0
call fcn.00413130
int3
Function at 0x41dbb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, 0x20
mov dword [ebp - 4], 0x20
nop dword [eax]
mov edx, dword [edi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x41dbed
push esi
mov ecx, edi
call fcn.0040d680
mov edx, dword [edi]
test esi, esi
js 0x41dcc0
cmp esi, dword [edx - 8]
jg 0x41dcc0
mov dword [edx - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
push ecx
mov word [eax + esi*2], cx
mov eax, dword [ebx]
test eax, eax
je 0x41dcac
push ecx
push ecx
push ecx
lea ecx, [ebp - 4]
push ecx
push edx
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [edi]
mov esi, eax
test ecx, ecx
je 0x41dc42
push dword [ecx - 8]
push ecx
call fcn.00441b20
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41dcc0
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x41dcc0
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
cmp esi, 0xea
jne 0x41dc8d
mov eax, dword [ebx]
push edx
test eax, eax
je 0x41dcac
push edx
push edx
push edx
push edx
push edx
lea ecx, [ebp - 4]
push ecx
push edx
push edx
push edx
push edx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41dc8f
mov esi, dword [ebp - 4]
add esi, 1
mov dword [ebp - 4], esi
js 0x41dc96
jmp 0x41dbd0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x325
push str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
push 0x80070057
call fcn.0040deb0
push 0x187
push str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
push 0x80004003
call fcn.0040deb0
push 0
push 0x368
push str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
push 0x80070057
call fcn.0040deb0
int3
Function at 0x41edf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455430
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x46f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41eeea
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
push 0
push 2
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0041e6b0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41ef00
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [esi + 4]
push 0
push ecx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41ee99
jg 0x41ef16
jmp 0x41ef1e
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41eec0
mov dword [ebp + 0xc], 0
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
dec eax
js 0x41ef30
test eax, eax
jne 0x41eec0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41eed7
push eax
call fcn.00440ab8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0x63c
push str.Registry.cpp
push 0x80004003
call fcn.0040deb0
push 0
push 0x181
push str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
push 0x80004003
call fcn.0040deb0
movzx eax, ax
or eax, 0x80070000
push 0
push 0x646
push str.Registry.cpp
push eax
call fcn.0040deb0
push 0
push 0x6e
push str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
push 0xe0e00000
call fcn.0040deb0
int3
Function at 0x4202e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
je 0x4203a7
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
call esi
mov ecx, edi
mov edx, eax
mov dword [ebp + 8], edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420310
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x420342
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push ebx
call esi
mov esi, eax
cmp word [ebx + esi*2 - 2], 0x5c
je 0x42035c
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
mov ecx, edi
xor edx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420366
sub ecx, dword [ebp + 8]
sar ecx, 1
je 0x4203a7
lea esi, [ebx + esi*2]
nop dword [eax + eax]
mov ax, word [edi + edx*2]
lea esi, [esi + 2]
mov word [esi - 2], ax
inc edx
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420391
sub eax, ebx
sar eax, 1
cmp edx, eax
jb 0x420380
mov ebx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421670
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ecx
xor esi, esi
mov dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], 0x24
mov dword [ebp - 0xc], 0x26
mov dword [ebp - 8], 0x2a
cmp dword [0x471560], ebx
jne 0x421717
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call edi
push edx
push eax
call edi
push edx
push eax
call edi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x471560], 0x11c
push 0x471560
mov dword [0x471564], 6
mov dword [0x471568], 1
mov word [0x471674], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [ebp - 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [0x46f014], eax
jmp 0x42171c
mov eax, dword [0x46f014]
test eax, eax
je 0x421736
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424250
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x42187c
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x42187c
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42187c
push 0
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x42187c
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
nop dword [eax]
mov eax, dword [ebp + ebx*4 - 0x10]
cmp eax, 0x26
jne 0x42189d
push 0
push 0
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x421879
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x421879
push edi
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x421879
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x421817
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call edi
push 0x459598
push 0x26
call fcn.004201c0
mov esi, eax
add esp, 8
test esi, esi
je 0x421879
jmp 0x421834
cmp word [esi + edi*2 - 4], 0x5c
je 0x42182e
push 0x45959c
lea eax, [edi + 1]
push eax
push esi
call fcn.00421cb0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421840
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x14]
call fcn.00441f91
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x421879
push esi
call edi
inc ebx
xor esi, esi
cmp ebx, 3
jl 0x421790
mov ebx, dword [ebp - 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424250
mov esp, ebp
pop ebp
ret
push 0x459598
push eax
jmp 0x421807
Function at 0x422220
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x471688]
push esi
test eax, eax
jne 0x422245
push eax
push str.crypt32.dll
call fcn.00421aa0
add esp, 8
mov dword [0x471688], eax
test eax, eax
je 0x422423
cmp dword [0x4716b0], 0
jne 0x42226f
push 0
push str.wintrust.dll
call fcn.00421aa0
add esp, 8
mov dword [0x4716b0], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x471514], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x422298
push str.CertGetNameStringA
push eax
call esi
mov dword [0x471514], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x471518], 0
jne 0x4222bb
push str.CryptDecodeObjectEx
push eax
call esi
mov dword [0x471518], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x471504], 0
jne 0x4222de
push str.CertFreeCertificateContext
push eax
call esi
mov dword [0x471504], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x471508], 0
jne 0x422301
push str.CertFindCertificateInStore
push eax
call esi
mov dword [0x471508], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x47151c], 0
jne 0x422324
push str.CertGetIssuerCertificateFromStore
push eax
call esi
mov dword [0x47151c], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x47150c], 0
jne 0x422347
push str.CryptMsgGetParam
push eax
call esi
mov dword [0x47150c], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x471510], 0
jne 0x42236a
push str.CryptQueryObject
push eax
call esi
mov dword [0x471510], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x4714fc], 0
jne 0x42238d
push str.CryptMsgClose
push eax
call esi
mov dword [0x4714fc], eax
test eax, eax
je 0x422423
mov eax, dword [0x471688]
cmp dword [0x471500], 0
jne 0x4223a7
push str.CertCloseStore
push eax
call esi
mov dword [0x471500], eax
test eax, eax
je 0x422423
cmp dword [0x471544], 0
jne 0x4223c6
push str.WinVerifyTrust
push dword [0x4716b0]
call esi
mov dword [0x471544], eax
test eax, eax
je 0x422423
cmp dword [0x471548], 0
jne 0x4223e5
push str.WTHelperProvDataFromStateData
push dword [0x4716b0]
call esi
mov dword [0x471548], eax
test eax, eax
je 0x422423
cmp dword [0x471550], 0
jne 0x422404
push str.WTHelperGetProvCertFromChain
push dword [0x4716b0]
call esi
mov dword [0x471550], eax
test eax, eax
je 0x422423
cmp dword [0x47154c], 0
jne 0x422427
push str.WTHelperGetProvSignerFromChain
push dword [0x4716b0]
call esi
mov dword [0x47154c], eax
test eax, eax
jne 0x422427
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x422430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
xor edi, edi
push edi
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x422546
movzx eax, word [esi]
cmp eax, 0x5c
je 0x422488
cmp eax, 0x2f
je 0x422488
push eax
call fcn.004421b2
add esp, 4
test eax, eax
je 0x422546
cmp word [esi + 2], 0x3a
jne 0x422546
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x422488
cmp eax, 0x2f
jne 0x422546
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422539
test al, 0x50
jne 0x422539
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4224cb
push 0x20
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp + 8], edi
cmp dword [ebp + 0x10], ecx
lea eax, [ebp + 8]
cmove eax, ecx
push eax
push esi
call fcn.00422560
add esp, 8
test eax, eax
je 0x42250e
cmp dword [ebp + 0x10], edi
je 0x4224fa
cmp dword [ebp + 8], edi
jne 0x4224fa
push 0x80092009
call ebx
jmp 0x42250e
mov eax, dword [ebp + 0xc]
and eax, 0xffffe8f7
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x422528
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
test edi, edi
je 0x42254d
push 0
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7e
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa0
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4249e2
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x46c2b0
call fcn.004254d0
push 1
call fcn.004245c0
pop ecx
test al, al
je 0x424b3d
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042458b
mov byte [ebp - 0x24], al
mov eax, dword [0x47187c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x424b3d
test eax, eax
jne 0x424a6c
mov dword [0x47187c], ecx
push 0x458324
push 0x458304
call fcn.00443616
pop ecx
pop ecx
test eax, eax
je 0x424a4f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x424b37
push 0x458300
push 0x4582a0
call fcn.004435ba
pop ecx
pop ecx
mov dword [0x47187c], 2
jmp 0x424a71
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042472d
pop ecx
call fcn.004257ae
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x424aa1
push esi
call fcn.004246a3
pop ecx
test al, al
je 0x424aa1
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00424ef0
call esi
call fcn.004257b4
mov esi, eax
cmp dword [esi], edi
je 0x424abf
push esi
call fcn.004246a3
pop ecx
test al, al
je 0x424abf
push dword [esi]
call fcn.004428f9
pop ecx
call fcn.00425294
movzx eax, ax
push eax
call fcn.0044356e
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00442808
test al, al
je 0x424b44
test bl, bl
jne 0x424aed
call fcn.004428d4
push edi
push 1
call fcn.0042474a
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x424b37
call fcn.00425516
ret
push 7
call fcn.00425178
push esi
call fcn.00442931
push dword [ebp - 0x20]
call fcn.004428e3
int3
call fcn.0052c000
jmp 0x4249e2

Function at 0x426257
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4265f6
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x426613
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x426617
jmp 0x42661f
mov esp, ebp
pop ebp
ret
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.00426b56
push 0x46c444
lea eax, [ebp - 0x10]
push eax
call fcn.0043c941
int3
Function at 0x430b0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x45617b
call fcn.00424f1c
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], SysReAllocStringLen
mov dword [edi + 0x18], ebx
mov dword [edi + 0x38], ebx
call fcn.0042e8e0
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
test dword [0x46f068], 0x80000000
je 0x430b7d
push dword [0x471c4c]
call fcn.00426645
pop ecx
test eax, eax
jne 0x430b82
call fcn.0042be7f
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x430b9d
cmp eax, 2
je 0x430b9d
lock inc dword [eax + 4]
mov ecx, edi
call fcn.00431815
lea ecx, [edi + 0x3c]
call fcn.0042f25f
cmp byte [ebp + 0xc], 0
je 0x430bde
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x430bd8
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x430bc7
jmp 0x430be6
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.0042c05d
mov esi, eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x430bfe
mov ecx, esi
call fcn.00430019
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.00424ef6
ret 8

Function at 0x43918c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x471cbc], eax
cmp eax, 0xffffffff
jne 0x4391ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4391b2
jmp 0x4391ba
mov esp, ebp
pop ebp
ret
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.00426b56
push 0x46c444
lea eax, [ebp - 0x10]
push eax
call fcn.0043c941
int3

Function at 0x43d7fd
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x45c834
push 0x45c82c
push str.FlsAlloc
push 0
call fcn.0043d776
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d82f
push dword [ebp + 8]
mov ecx, esi
call fcn.00424ef0
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x43d871
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x45c844
push 0x45c83c
push str.FlsGetValue
push 2
call fcn.0043d776
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x43d8a2
mov ecx, esi
call fcn.00424ef0
call esi
jmp 0x43d8a8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret
Function at 0x43d8ab
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x45c84c
push 0x45c844
push str.FlsSetValue
push 3
call fcn.0043d776
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x43d8df
mov ecx, esi
call fcn.00424ef0
call esi
jmp 0x43d8e5
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x405f19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405f73
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405f65
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x405f61
cmp esi, ecx
jae 0x405f65
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x405f4f
cmp esi, ecx
jb 0x405f69
xor eax, eax
jmp 0x405f72
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406412
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
xor eax, eax
mov dword [ebp - 0xc], edi
push 0x20019
test cl, cl
mov esi, edx
push edi
setne al
push 0x405988
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40645d
jle 0x4064ba
movzx eax, ax
or eax, 0x80070000
jmp 0x4064ba
or dword [ebp - 0x14], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
call fcn.0040682b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x405970
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406805
test esi, esi
je 0x4064ad
jle 0x4064a9
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x4064ba
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406e43
mov esp, ebp
pop ebp
ret

Function at 0x4088d8
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x408913
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4088fa
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40890b
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x408915
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4088f0
xor eax, eax
pop edi
pop esi
ret

Function at 0x40aa3c
Capabilities:
Access peb ldr_data

Disassembly:
and al, 0x54
call fcn.00408898
and byte [ebp + 0x5b], bh
in al, dx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x40aa5c
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00408898
ret 0x637