joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b84a6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x63406c]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
jb 0x435b45
mov eax, dword [eax]
lea edx, [ebp - 0x38]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x435b64
xor al, al
jmp 0x435cf1
lea eax, [ebp - 0x34]
mov dword [edi], 0
push eax
push 0
lea eax, [ebp - 0x30]
mov byte [ebp - 0x29], 0
push eax
push 0
mov ecx, ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.00421f60
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x435ba8
test eax, eax
jne 0x435ce5
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057278f
mov ecx, dword [ebp - 0x34]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x435bdd
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.00421f60
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435cd6
mov eax, dword [ebp - 0x30]
cmp eax, 1
jne 0x435c42
cmp word [ebx], 0
jne 0x435c20
xor ecx, ecx
push ecx
push ebx
mov ecx, esi
call fcn.00423580
jmp 0x435ccd
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435c25
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00423580
jmp 0x435ccd
cmp eax, 7
je 0x435c50
cmp eax, 2
jne 0x435cd0
mov eax, dword [ebp - 0x34]
xor ecx, ecx
inc eax
mov word [ebp - 0x28], cx
shr eax, 1
lea ecx, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00423580
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x435cb8
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x435c8e
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00423720
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x435ca6
mov eax, dword [esi]
jmp 0x435ca8
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004230a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x435ccd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423720
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
mov byte [ebp - 0x29], 1
test ebx, ebx
je 0x435ce5
push 2
push ebx
call fcn.005727f3
add esp, 8
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x29]
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.0057277e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x435d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x435d26
mov eax, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x2001b
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x435d4e
xor al, al
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x435d5c
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x435d67
mov edx, dword [edx]
push ebx
lea eax, [eax*2 + 2]
mov bl, 1
push eax
push ecx
push 1
push 0
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x436250
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b85cf
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x63406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], 0
xor eax, eax
push 7
push str.Desktop
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00423580
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x40
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00423580
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], reloc.WS2_32.dll_accept
push eax
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.004360d0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 1
cmp eax, 8
jb 0x436319
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x436345
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
jne 0x4363c0
mov edx, 0x5be890
lea ecx, [ebp - 0x58]
call fcn.00436010
mov edi, eax
cmp esi, edi
je 0x4363ab
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x436384
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00423720
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x43639c
mov eax, dword [esi]
jmp 0x43639e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004230a0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4363c0
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00423720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
Function at 0x4363e0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b85cf
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x63406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], 0
xor eax, eax
push 8
push str.Programs
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00423580
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x40
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00423580
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], reloc.WS2_32.dll_accept
push eax
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.004360d0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 1
cmp eax, 8
jb 0x4364a9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4364d5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
jne 0x436550
mov edx, 0x5be8a0
lea ecx, [ebp - 0x58]
call fcn.00436010
mov edi, eax
cmp esi, edi
je 0x43653b
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x436514
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00423720
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x43652c
mov eax, dword [esi]
jmp 0x43652e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004230a0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x436550
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00423720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
Function at 0x436570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8619
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4365c8
mov eax, dword [esi]
jmp 0x4365ca
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], 1
cmp ecx, 0x104
jb 0x43660b
mov dword [esi + 0x10], 0x104
cmp dword [esi + 0x14], 8
jb 0x4365fe
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x43661c
mov eax, esi
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x43661c
mov eax, 0x104
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00434e20
cmp dword [esi + 0x14], 8
jb 0x436626
mov eax, dword [esi]
jmp 0x436628
mov eax, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x436678
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x43665e
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00434e20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4366a0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b85cf
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x63406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], 0
xor eax, eax
push 7
push str.AppData
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00423580
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x40
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00423580
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], reloc.WS2_32.dll_accept
push eax
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.004360d0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 1
cmp eax, 8
jb 0x436769
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x436795
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
jne 0x436810
mov edx, 0x5be8b0
lea ecx, [ebp - 0x58]
call fcn.00436010
mov edi, eax
cmp esi, edi
je 0x4367fb
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4367d4
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00423720
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4367ec
mov eax, dword [esi]
jmp 0x4367ee
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004230a0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x436810
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00423720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
Function at 0x436c70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8708
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jns 0x436cb5
xor al, al
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
call fcn.00439c40
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x436c9f
call fcn.00436b60
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.00436b60
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004376a0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004376d0
cmp byte [ebp - 0x14], 0
jne 0x436d21
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
je 0x436d21
xor bl, bl
jmp 0x436d2c
mov eax, dword [ebp + 8]
inc dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov bl, 1
test esi, esi
je 0x436d37
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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

Function at 0x436d50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8738
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00439c40
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x436e10
mov ecx, dword [edi + 8]
cmp ecx, 1
jl 0x436e10
add ecx, 0xffffffff
mov dword [edi + 8], ecx
jne 0x436dfd
call fcn.00436b60
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00436b60
lea ecx, [eax + 0x18]
call fcn.004371c0
call fcn.00436b60
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx]
je 0x436dec
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00436b60
lea ecx, [eax + 0x18]
call fcn.00437210
mov dword [edi], 0xffffffff
test esi, esi
je 0x436dfd
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x63406c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.0058b610
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x4395fe
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4395d3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4395e6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x43962f
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x43962f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x439620
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x43962f
cmp eax, 2
mov eax, 5
je 0x439634
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057277e
mov esp, ebp
pop ebp
ret

Function at 0x439650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8a7e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.nbase::FrameworkThread.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x10], vtable.nbase::FrameworkThread.0
mov word [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 3
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
cmp byte [edx], 0
jne 0x439709
xor ecx, ecx
jmp 0x439719
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439710
sub ecx, ebx
push ecx
push edx
lea ecx, [esi + 0x30]
call fcn.004229d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4397d0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6e96
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.nbase::FrameworkThread.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x10], vtable.nbase::FrameworkThread.0
mov al, byte [esi + 0x14]
test al, al
je 0x43986b
call fcn.00439930
mov eax, dword [esi + 8]
test eax, eax
je 0x439865
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x439852
mov eax, dword [esi + 8]
test eax, eax
je 0x439865
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne al
test al, al
jne 0x439852
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esi + 8]
call ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0x14], 0
mov eax, dword [esi + 0x44]
lea edi, [esi + 0x30]
cmp eax, 0x10
jb 0x439881
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00423840
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x439897
mov edi, dword [edi]
mov byte [edi], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4398a4
push eax
call ebx
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4398d3
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4398d3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4398d3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x43991b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x439908
mov eax, dword [esi + 8]
test eax, eax
je 0x43991b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x439908
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esi + 8]
call ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 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 0x439a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8b1c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00439c40
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call ebx
test eax, eax
jne 0x439ad0
push 0x14
call fcn.0057279d
mov esi, eax
add esp, 4
mov dword [esi], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 4], 0
mov dword [esi + 0x10], 0
call fcn.00439c40
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.00439c40
push dword [eax]
call ebx
test eax, eax
je 0x439ae1
mov byte [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x18]
cmp eax, 3
jne 0x439afb
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax]
jmp 0x439b60
push 0xb8
cmp eax, 2
jne 0x439b20
call fcn.0057279d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043bfd0
jmp 0x439b59
cmp eax, 1
jne 0x439b40
call fcn.0057279d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0043beb0
jmp 0x439b59
call fcn.0057279d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0043a7f0
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x1c], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0x28]
mov ecx, dword [edi + 0x1c]
call fcn.0043ae70
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp dword [edi + 0x18], 3
mov ecx, dword [edi + 0x1c]
je 0x439b9a
test ecx, ecx
je 0x439bee
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x439bee
test ecx, ecx
je 0x439ba4
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 0x24]
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
test esi, esi
je 0x439be7
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x439be1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x439be1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 4], 0
call fcn.00439c40
push dword [eax]
call ebx
call fcn.00439c40
push dword [eax]
call ebx
mov esi, eax
test esi, esi
je 0x439c2e
call fcn.00439c40
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x14
push esi
call fcn.005727f3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret