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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4d33b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x42c53f
mov ebx, dword [edi]
jmp 0x42c541
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42c583
test al, 0x10
je 0x42c565
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42c56f
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00426c40
cmp dword [edi + 0x14], 8
jb 0x42c599
mov eax, dword [edi]
jmp 0x42c59b
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.00424730
test eax, eax
jne 0x42c5c0
test esi, esi
je 0x42c60d
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x42c613
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0042c510
add esp, 8
test al, al
jne 0x42c5d6
xor bl, bl
jmp 0x42c613
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42c611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x42c600
push edi
call fcn.0042bed0
add esp, 4
test al, al
jne 0x42c611
test esi, esi
je 0x42c60d
mov ecx, ebx
call fcn.00435ff0
mov dword [esi], eax
xor bl, bl
jmp 0x42c613
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x42c62b
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0041fc80
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
Function at 0x42c850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0xc], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
jb 0x42c879
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], 0
test esi, esi
je 0x42c926
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0042d090
cmp esi, 0xffffffff
je 0x42c8f3
mov dword [esp + 0xc], esi
call fcn.0042aa20
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4d83a8]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x42c8e0
call fcn.0042ab60
mov ecx, dword [0x4d83a8]
push dword [esp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x1c]
push edx
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c926
cmp eax, 0xffffffff
je 0x42c926
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c926
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x42c929
or esi, 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0042d090
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cdb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42cf02
cmp eax, 0x104
ja 0x42cf02
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.0041c120
sub esp, 8
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x240]
mov dword [ecx], eax
mov eax, dword [ebp - 0x230]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.00426480
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x42ce44
mov ecx, dword [eax]
jmp 0x42ce46
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x228]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00426480
lea ecx, [ebp - 0x228]
call fcn.004272b0
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x42ce7a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0041dc30
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x42ce98
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.0041fc80
xor eax, eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x218], 0
cmp eax, 8
jb 0x42ced3
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.0041fc80
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x42cef1
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.0041fc80
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004aab4c
mov esp, ebp
pop ebp
ret

Function at 0x42cf40
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00427120
test al, al
jne 0x42cfac
mov ecx, esi
call fcn.00427120
test al, al
jne 0x42cfac
cmp dword [edi + 0x10], 0x104
jae 0x42cfac
cmp dword [esi + 0x10], 0x104
jae 0x42cfac
cmp dword [esi + 0x14], 8
jb 0x42cf75
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42cf7d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42cfac
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42cfac
test al, 1
je 0x42cfa6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x42cfc0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x42d082
cmp dword [edi + 0x10], 0x104
jae 0x42d082
cmp dword [edi + 0x14], 8
jb 0x42cffa
mov eax, dword [edi]
jmp 0x42cffc
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x42d004
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42d01b
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [esp + 0xc], eax
jb 0x42d031
mov eax, dword [esi]
jmp 0x42d033
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d06f
shr eax, 4
and al, 1
je 0x42d06f
push ecx
mov edx, edi
mov ecx, esi
call fcn.0042bae0
add esp, 4
test al, al
je 0x42d06d
push 1
push esi
call fcn.0042b8a0
mov bl, 1
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00427120
test al, al
jne 0x42d2d7
mov ecx, dword [ebp + 0xc]
call fcn.00427120
test al, al
jne 0x42d2d7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0042cfc0
xor al, al
pop ebp
ret

Function at 0x42d2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x42d307
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 0x10
jb 0x42d302
mov eax, dword [ebx]
jmp 0x42d304
mov eax, ebx
mov byte [eax], 0
call fcn.00427120
test al, al
je 0x42d319
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x416128
push esi
call fcn.0042c780
mov edi, eax
add esp, 8
mov dword [ebp - 0xc], edi
test edi, edi
je 0x42d310
push 0x10000
call fcn.004aa4a5
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004b8734
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42d3a6
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x42d37c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.0041e100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x42d3bc
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004b8734
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x42d360
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004b823b
add esp, 4
test eax, eax
jne 0x42d3bf
mov byte [ebp - 1], 1
jmp 0x42d3c3
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004b82dc
add esp, 4
test esi, esi
je 0x42d3d9
push esi
call fcn.004aa39f
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42daf0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x18]
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ecx, dword [eax + edx*8]
add edx, edx
mov ebx, dword [eax + edx*4]
lea edx, [eax + edx*4]
cmp ebx, esi
jne 0x42db4b
mov eax, esi
jmp 0x42db50
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x42db73
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x42db5f
mov ecx, dword [ecx]
jmp 0x42db43
mov eax, dword [edi]
cmp eax, dword [ecx + 8]
mov eax, dword [ebp + 8]
pop edi
cmovne ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42dbf0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x42dc6c
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x42dc6c
mov ecx, dword [edi]
nop word [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x42dcb4
cmp esi, eax
jne 0x42dc60
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x42dc9a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x42dd15
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x42dd37
mov edx, dword [ebp + 0x10]
lea edi, [edx + 0xc]
mov dword [esp + 0xc], edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x42dce7
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.0041fc80
mov edx, dword [esp + 0xc]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push edx
mov word [edi], ax
call fcn.004aa12f
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x42dd1d
mov dword [ecx], edi
jmp 0x42dd37
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x42dd37
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0042dd50
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42e070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x42e091
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x42e094
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x42e11b
cmp byte [ebp + 0xc], 0
je 0x42e16d
cmp byte [esi], 0
je 0x42e0bd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x42e0c0
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42e16d
cmp dword [0x4d8374], 2
jg 0x42e115
push 2
push 0x86
push 0x416148
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 2
call fcn.0041b540
push 1
add eax, 8
push 0x41618c
push eax
call fcn.004200c0
add esp, 8
mov ecx, eax
call fcn.0041cb80
test byte [ebp - 4], 2
jmp 0x42e160
cmp dword [0x4d8374], 2
jg 0x42e15c
push 2
push 0x8d
push 0x416148
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 4
call fcn.0041b540
push 1
add eax, 8
push 0x4161b8
push eax
call fcn.004200c0
add esp, 8
mov ecx, eax
call fcn.0041cb80
test byte [ebp - 4], 4
je 0x42e16d
lea ecx, [ebp - 0xb8]
call fcn.0041b6f0
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x433260
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004aa3b0
mov eax, dword [0x4d33b4]
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 [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4333a7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x433334
cmp word [esp + 0x10], ax
jne 0x4332f8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0041db30
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004aab4c
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 0x433300
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041db30
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x4333a2
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 0x433387
cmp eax, 0x400
ja 0x433387
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0041c030
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret 8
Function at 0x435c10
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x4d8478]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x435d4f
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 [0x4d9518]
test cl, 1
jne 0x435c77
rdtsc
or ecx, 1
mov dword [0x4d9510], eax
mov dword [0x4d9518], ecx
mov dword [0x4d9514], edx
test cl, 2
jne 0x435ca7
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x4d9518], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x4d9520], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4d9524], 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 [0x4d9520]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x4d9524]
call fcn.004aa8b0
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.004aa8f0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x4183c8]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x435d2d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x4d9510]
mov ecx, edi
sbb ebx, dword [0x4d9514]
mov edx, ebx
call fcn.004aa8b0
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x4d8478], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4362b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
push edi
test bl, 0x10
je 0x436307
mov dword [ebp + 0xc], 5
jmp 0x43630f
test eax, eax
je 0x436439
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x436332
or edx, 0x80000000
test ebx, 0x4000
je 0x436340
or edx, 0x100
test ebx, 0x40000
je 0x43634e
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x436363
or ecx, 2
test ebx, 0x8000
je 0x43636d
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x436385
or eax, 0x100
test ebx, 0x1000
je 0x436390
or eax, 2
test ebx, 0x2000
je 0x43639d
or eax, 0x4000000
test ebx, 0x20000
je 0x4363aa
or eax, 0x2000000
test ebx, 0x80000
je 0x4363b7
or eax, 0x8000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4363c2
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.0042d100
mov eax, dword [esi]
test eax, eax
je 0x436429
cmp eax, 0xffffffff
je 0x436429
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 0x25], al
je 0x436417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x436439
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00435ff0
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0xc], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
jb 0x43761e
mov ecx, dword [ecx]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4376a9
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4376a9
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x437660
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x437668
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437670
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push edi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4376c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0xc], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
jb 0x4376de
mov ecx, dword [ecx]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x437769
mov edi, dword [esp + 0x10]
test edi, edi
je 0x437769
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x437720
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x437728
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437730
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push edi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438c10
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 0x438c72
cmp dword [0x4d9500], 0
jne 0x438c5f
push 0x4c
call fcn.004aa0fc
add esp, 4
mov ecx, eax
call fcn.0042fc10
mov edx, eax
mov esi, 0x4d9500
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x438c5f
test edx, edx
je 0x438c5f
push ecx
mov ecx, edx
call fcn.0042fbd0
mov eax, dword [0x4d9500]
cmp dword [eax], 1
jl 0x438c72
mov dword [ebp - 4], 0x10000
jmp 0x438c74
xor ebx, ebx
push 0xc
call fcn.004aa0fc
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 0x438b50
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 0x438cbd
push esi
call fcn.004aa12f
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x438ccc
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