joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419d10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x419d3d
mov ebx, dword [edi]
jmp 0x419d3f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419d81
test al, 0x10
je 0x419d63
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x419d6d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041b6d0
cmp dword [edi + 0x14], 8
jb 0x419d97
mov ecx, dword [edi]
jmp 0x419d99
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.0040aa90
add esp, 0x10
test eax, eax
jne 0x419dca
test esi, esi
je 0x419e0e
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x419e14
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00419d10
test al, al
je 0x419e0e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x419e01
mov ecx, edi
call fcn.004198b0
test al, al
jne 0x419e12
test esi, esi
je 0x419e0e
mov ecx, ebx
call fcn.004270c0
mov dword [esi], eax
xor bl, bl
jmp 0x419e14
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00405310
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret

Function at 0x419ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x419f00
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0041a330
mov eax, dword [esp + 8]
test eax, eax
je 0x419f51
cmp eax, 0xffffffff
je 0x419f51
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419f51
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x419f54
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.0041a2c0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov word [esp + 0x50], ax
mov esi, ecx
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41a059
cmp eax, 0x104
ja 0x41a059
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc]
call fcn.004053a0
sub esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, esp
cmovae eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.0041b0f0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x419ff9
mov ecx, dword [eax]
jmp 0x419ffb
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041b0f0
lea ecx, [esp + 0x20]
call fcn.0041bf60
lea eax, [esp + 0x20]
cmp esi, eax
je 0x41a029
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405e60
lea ecx, [esp + 0x20]
call fcn.00405310
lea ecx, [esp + 0x38]
call fcn.00405310
lea ecx, [esp + 8]
call fcn.00405310
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret

Function at 0x41a070
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x41a102
cmp dword [edi + 0x10], 0x104
jae 0x41a102
cmp dword [edi + 0x14], 8
jb 0x41a096
mov eax, dword [edi]
jmp 0x41a098
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x41a0a0
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41a0b6
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x41a0cc
mov eax, dword [esi]
jmp 0x41a0ce
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a0f0
shr eax, 4
and al, 1
je 0x41a0f0
mov edx, edi
mov ecx, esi
call fcn.0041a110
mov bl, al
test bl, bl
jne 0x41a0f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x755400], 0
je 0x41d869
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.0049faa8
mov ecx, eax
call fcn.0041d6e0
mov dword [0x755400], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004053a0
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e010
lea ecx, [ebp - 0x1c]
call fcn.00405310
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x41e010
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [0x755400]
call fcn.00405400
mov edx, 0x5b6054
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41e042
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x5b6054
push eax
call fcn.004205b0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41e09c
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.0041d910
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.00405310
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 4

Function at 0x421240
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, ecx
mov ebx, dword [0x755400]
mov ecx, ebx
push 0x5b7a00
call fcn.0041dba0
test al, al
jne 0x42128b
push str.vmodule
mov ecx, ebx
call fcn.0041dba0
test al, al
je 0x42131b
cmp dword [0x755404], 0
je 0x4212a2
cmp byte [0x755538], 0
jne 0x4213d9
int3
mov eax, dword [0x755420]
push 0x10
mov dword [0x755404], eax
call fcn.0049faa8
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x5b7a00
push eax
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0041dc50
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041dc50
push eax
mov ecx, esi
call fcn.0042a3d0
lea ecx, [esp + 0x1c]
mov dword [0x755420], eax
call fcn.004054f0
lea ecx, [esp + 0x34]
call fcn.004054f0
mov eax, dword [edi]
mov dword [0x73ffc0], eax
test al, 1
jne 0x42133a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov eax, dword [0x755418]
test eax, eax
je 0x421354
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x755418], 0
mov edx, dword [0x75541c]
test edx, edx
jne 0x421377
push 0x18
call fcn.0049faa8
add esp, 4
mov ecx, eax
call fcn.00405400
mov edx, eax
mov dword [0x75541c], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x421384
xor ecx, ecx
jmp 0x42139f
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421390
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00405d60
cmp dword [edi + 0xc], 0
jne 0x4213c2
mov eax, dword [0x75541c]
cmp dword [eax + 0x14], 8
jb 0x4213bb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00421100
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
int3
Function at 0x4214b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00421c90
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0041cf20
mov eax, dword [0x755414]
test eax, eax
je 0x421519
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x42162e
test byte [0x73ffc0], 2
je 0x421539
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x42153e
cmp dword [ebx], 2
jl 0x42157d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.005308e3
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00530c0b
push 2
call fcn.005308e3
add esp, 0x14
push eax
call fcn.00530578
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x73ffc0], 1
je 0x4215b5
call fcn.00421100
test al, al
je 0x4215b5
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x755418]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x42162e
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x4215e9
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00528c60
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0042a040
add esp, 4
cmp dword [0x755424], 0
je 0x421624
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0041cf20
lea eax, [esp + 0x28]
push eax
call dword [0x755424]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.004054f0
jmp 0x42162e
cmp byte [0x755538], 0
jne 0x421671
int3
lea ecx, [esp + 0x10]
call fcn.004054f0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.0041c3b0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0049d581
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
int3
Function at 0x423950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x54], 0
push edi
sub esp, 8
mov edi, ecx
mov edx, esp
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x423985
mov ecx, dword [eax]
jmp 0x423987
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x50]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041b0f0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405420
lea ecx, [ebp - 0x50]
call fcn.00405310
push ecx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0041e1a0
cmp dword [ebx + 0x14], 0
jne 0x4239c1
xor esi, esi
jmp 0x4239cc
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x4239cc
mov esi, dword [esi]
push 0x3c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.005296a0
add esp, 0xc
mov dword [ebp - 0x90], 0x3c
mov dword [ebp - 0x8c], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
cmp byte [ebx + 0x1c], cl
mov dword [ebp - 0x7c], eax
mov eax, 5
cmovne eax, ecx
mov dword [ebp - 0x84], 0x5b5f38
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x423a6e
lea ecx, [edi + 4]
mov byte [edi], al
push eax
mov dword [ecx], eax
call fcn.0041a330
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x423a9e
cmp byte [0x755538], 0
je 0x423a9d
jmp 0x423ac1
cmp byte [ebx], 0
je 0x423a7e
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x58]
lea ecx, [edi + 4]
mov byte [edi], 0
push esi
mov dword [ecx], 0
call fcn.0041a330
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, eax
jmp 0x423a61
int3
lea ecx, [ebp - 0x20]
call fcn.00405310
lea ecx, [ebp - 0x38]
call fcn.00405310
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
int3
Function at 0x425d30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004a0800
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x586e30]
mov esi, eax
test esi, esi
jne 0x425e77
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x425e04
cmp word [esp + 0x10], ax
jne 0x425dc8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00405d60
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425dd0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405d60
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x425e72
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x425e57
cmp eax, 0x400
ja 0x425e57
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00405d10
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
Function at 0x428730
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x7554d0]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x42886f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x755794]
test cl, 1
jne 0x428797
rdtsc
or ecx, 1
mov dword [0x755788], eax
mov dword [0x755794], ecx
mov dword [0x75578c], edx
test cl, 2
jne 0x4287c7
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x755794], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x755798], eax
mov eax, dword [ebp - 0xc]
mov dword [0x75579c], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x755798]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x75579c]
call fcn.005574b0
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.005574f0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x5bb638]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x42884d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x755788]
mov ecx, edi
sbb ebx, dword [0x75578c]
mov edx, ebx
call fcn.005574b0
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x7554d0], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4296c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
push 2
mov esi, eax
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
call fcn.0041a330
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x42974b
cmp eax, 0xffffffff
je 0x42974b
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42974b
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x230], esi
je 0x42976a
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call edi
test eax, eax
jne 0x429730
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.0041a2c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x220]
jmp 0x42974d
Function at 0x42a1a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x42a20b
cmp dword [0x7557a8], 0
jne 0x42a1f8
push 0x4c
call fcn.0049faa8
add esp, 4
mov ecx, eax
call fcn.0042db60
mov esi, eax
mov edx, 0x7557a8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x42a1f8
test esi, esi
je 0x42a1f8
lea ecx, [esi + 0x34]
call fcn.004054f0
push esi
call fcn.0049fadb
add esp, 4
mov eax, dword [0x7557a8]
cmp dword [eax], 1
jl 0x42a20b
mov dword [ebp - 4], 0x10000
jmp 0x42a20d
xor ebx, ebx
push 0xc
call fcn.0049faa8
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x42a0e0
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42a256
push esi
call fcn.0049fadb
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42a265
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431160
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov eax, ecx
mov dword [ebp - 8], ebx
mov edi, 8
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 8], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43119d
cmp byte [0x755538], al
jne 0x4311c3
int3
test bl, 1
je 0x4311b0
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.004214b0
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x43117b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
int3

Function at 0x4329e0
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
call fcn.00432d20
mov eax, dword [0x73ffe8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x432a01
call fcn.00439bc0
mov edx, eax
mov eax, dword [0x755584]
cmp dword [edx + eax*4], 0
jne 0x432a42
push 0x70
call fcn.0049faa8
add esp, 4
mov ecx, eax
push edi
call fcn.004327d0
mov ecx, dword [0x73ffe8]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x432a3a
call fcn.00439bc0
mov ecx, eax
mov eax, dword [0x755584]
mov dword [ecx + eax*4], edi
pop edi
ret

Function at 0x432a50
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x755580]
push ebx
push esi
push edi
test eax, eax
jne 0x432a60
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x73ffe8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x432a79
call fcn.00439bc0
mov ecx, eax
mov eax, dword [0x755584]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x432b09
mov ecx, 0x755544
xor edi, edi
xor ebx, ebx
call fcn.00428940
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x755568]
test ecx, ecx
je 0x432ab9
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x755568], eax
mov dword [ecx + 4], ebx
jmp 0x432ac6
mov ebx, dword [0x755588]
inc ebx
mov dword [0x755588], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x432ae5
push 0x70
call fcn.0049faa8
add esp, 4
mov ecx, eax
push ebx
call fcn.00432880
mov edi, eax
mov ecx, dword [0x73ffe8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x432aff
call fcn.00439bc0
mov ecx, eax
mov eax, dword [0x755584]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4336e0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
nop
push 0x22c
push 0
push edi
call fcn.005296a0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x433718
mov byte [esi + 8], 1
call ebx
jmp 0x43371e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x43373a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x4336f0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x433ee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.00434ef0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov ecx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
call fcn.0043faf0
lea ecx, [esp + 0x18]
call fcn.0043fbd0
mov esp, ebp
pop ebp
ret

Function at 0x434f50
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push dword [ebp + 8]
xor ebx, ebx
push dword [ecx]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x434fb1
cmp dword [0x75540c], 3
jg 0x434fa3
push 3
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.004213f0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00407320
add esp, 8
mov ebx, 1
test bl, 1
je 0x434fb1
lea ecx, [esp + 8]
call fcn.004214b0
pop ebx
mov esp, ebp
pop ebp
ret 4