joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x49ac2d8c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3ba86631
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x428cc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402466
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401770
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 3
lea eax, [ebp - 0x30]
push 0x405c94
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov ecx, dword [ebp - 0x18]
or ebx, 0xffffffff
push ecx
push esi
mov word [0x43906c], si
mov word [0x43906e], bx
mov dword [0x439070], esi
mov word [0x439074], si
mov dword [0x439078], ebx
mov word [0x43907c], si
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x40]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
mov ecx, 0x439024
call edi
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x439024]
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
push 0x428ac0
mov dword [0x439028], eax
mov dword [0x439030], eax
call fcn.00428960
mov edi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push esi
push esi
push 1
push esi
mov dword [0x439034], eax
mov dword [0x439038], esi
mov dword [0x43903c], esi
call edi
push esi
push esi
push 1
push esi
mov dword [0x439060], eax
call edi
push esi
push esi
push 1
push esi
mov dword [0x439068], eax
call edi
mov ecx, dword [0x439060]
mov dword [0x439064], eax
cmp ecx, esi
je 0x428e48
cmp dword [0x439068], esi
je 0x428e48
cmp eax, esi
je 0x428e48
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
push 4
push esi
push 0x428bf0
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
mov dword [0x43902c], eax
je 0x428e4d
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x43902c]
push ebx
push esi
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x439064]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x24]
push edx
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, 1
jne 0x428e48
push 4
mov word [0x43906c], bx
mov word [0x43906e], si
call fcn.00428970
mov eax, dword [0x43902c]
cmp word [0x43906c], si
jne 0x428e79
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call esi
mov eax, dword [0x439060]
push eax
call esi
mov ecx, dword [0x439068]
push ecx
call esi
mov edx, dword [0x439064]
push edx
call esi
mov eax, dword [0x43906c]
push 0x428ebc
not eax
mov word [0x43906e], ax
mov ecx, dword [0x43906c]
mov dword [ebp - 0x3c], ecx
jmp 0x428ea0
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x30]
push eax
push 0
mov dword [ebp - 0x44], edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
Function at 0x42e7c0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
lea ecx, [esp + 0xc]
xor esi, esi
mov dword [esp + 0xc], eax
push 6
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov word [esp + 0x18], ax
call dword [sym.imp.KERNEL32.DLL_RtlZeroMemory]
mov ecx, 5
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I4]
lea edx, [esp + 4]
mov ecx, 2
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
mov byte [esp + 0x35], al
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
test eax, eax
je 0x42e851
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
test eax, eax
je 0x42e846
mov edx, dword [esp + 8]
xor eax, eax
cmp edx, esi
setne al
neg eax
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.DLL_FreeSid]
mov ax, si
pop esi
add esp, 0x10
ret
Function at 0x402ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x456014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov edi, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push 0x20006
push 0
push edi
push 0x80000002
mov ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402f44
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402faf
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 8]
push ebx
mov eax, dword [ecx]
add eax, 0x14
test esi, esi
push edi
mov esi, dword [eax]
jne 0x402f9c
push str.Registry_entry_created_for_registry:__s_with_key:_s__value:__d
push ecx
mov ecx, esi
call dword [0x44123c]
call esi
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret
push str.Failed_to_create_registry_entry_for_registry:__s_with_key:_s__value:__d
push ecx
mov ecx, esi
call dword [0x44123c]
call esi
add esp, 0x14
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret

Function at 0x4059c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb5d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x456014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0041cdce
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x20], 0
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x456014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406350
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x450374
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret 4

Function at 0x4063c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x456014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4063e0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x45037c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret 4
Function at 0x40c3d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f1d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x456014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041cdce
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041c724
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4137e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4137ed
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x413810
cmp ecx, 8
jb 0x413802
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x413817
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x413894
mov esi, dword [0x458214]
test esi, esi
je 0x413864
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x44cf3c
push 0x44cf3c
push 0x451068
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x44123c]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x458218]
test eax, eax
je 0x413892
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x451068
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x44cf3c
push 0x32
push eax
call dword [0x44123c]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x308955cb
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x6fdf0f85
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x77b865f1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7c0c410b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4132c5
Capabilities:
Execute syscall

Disassembly:
xchg ah, ch
cmc
pop ecx
add eax, 0xfad48605
xchg dword [0xe9f48605], eax
add eax, 0x92906405
fucom st(5)
add al, 4
mov ss, word [edx + 0x404fb0d]
pop ebx
pop eax
mov cl, cl
or dword [esi + 0x57e64eb], eax
add eax, 0xb157cb86
add eax, 0xed586305
syscall
invalid
invalid
invalid

Function at 0x421b7b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x421bce
push esi
push dword [ebp + 8]
call fcn.00421d65
mov edi, eax
test edi, edi
je 0x421bc9
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x421bc9
mov eax, dword [ebp - 8]
jmp 0x421be0
mov eax, dword [ebp + 0x10]
jmp 0x421be0
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x421be6
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447bd4
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.0042d9a0
mov eax, dword [0x45e540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], edx
cmp dword [ecx + 0x58], eax
je 0x421d17
push eax
push esi
call fcn.00421d65
mov esi, eax
test esi, esi
jne 0x421c4e
push ebx
jmp 0x421d40
lea ecx, [ebp - 0x2014]
call fcn.00401fe0
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push esi
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x421cd6
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.004132c5
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.00413508
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x421d04
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00404260
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00412989
jmp 0x421d47
push ebx
mov ecx, edi
call fcn.00407930
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x421cfd
push dword [ecx + 0x6c]
lea eax, [ebp - 0x2010]
test ebx, ebx
push 0x1000
push eax
mov eax, 0x449690
cmovne eax, ebx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00407930
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d922
leave
ret 0x10
Function at 0x421ed6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x421f23
push esi
push dword [ebp + 8]
call fcn.00421d65
mov edi, eax
test edi, edi
je 0x421fa7
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x421fa7
mov eax, dword [ebp + 0x14]
push 2
pop ecx
push 0xffffffffffffffff
lea eax, [eax*2 + 1]
mul ecx
pop ecx
cmovb eax, ecx
push eax
call fcn.0041bca4
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x421f79
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x421f52
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4495bc]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.0041bcad
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x422fc3
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x42303f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x423004
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x423004
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x423032
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x423035
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42302c
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4495bc]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x422fe8
test eax, eax
je 0x423086
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.004232b7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4495bc]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x423309
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x447d45
call fcn.0042de4d
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x423400
cmp edi, dword [ebx + 0xc]
jge 0x423400
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x423360
cmp edi, dword [esi + 8]
jl 0x4233ee
cmp dword [ebp + 0xc], 0
je 0x4233ee
xor edi, edi
jmp 0x423392
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00422db1
mov esi, eax
test esi, esi
je 0x42337a
mov dword [esi], vtable.CThreadData.0
jmp 0x42337c
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.004136b8
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4233ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4233ba
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x423427
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0042f430
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x423400
cmp edi, dword [esi + 8]
jge 0x423400
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042ddb2
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00412eba
int3
Function at 0x451e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a21f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x14], vtable.Scintilla::FontAlias.0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test al, 1
je 0x451f2b
mov edx, dword [edi]
push dword [esi + 0x34]
test al, 4
je 0x451ef9
push dword [esi + 0x30]
fld dword [ebp + 8]
lea eax, [ebp - 0x14]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
fstp dword [esp]
push eax
mov eax, dword [ebp + 0x10]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0xc], eax
mov ecx, edi
call dword [edx + 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0xc], eax
mov ecx, edi
call dword [edx + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 4
je 0x451f66
push dword [esi + 0x30]
fld dword [ebp + 8]
lea eax, [ebp - 0x14]
push dword [ebp + 0x24]
mov edx, dword [edi]
push dword [ebp + 0x20]
push ecx
fstp dword [esp]
push eax
mov eax, dword [ebp + 0x10]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0xc], eax
mov ecx, edi
call dword [edx + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret