joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f41d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov eax, 0x1000
xor esi, esi
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
call fcn.00429730
mov edi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x41f475
push eax
push ebx
call sub.MSVCRT.dll_strcpy
push dword [edi + 0x14]
call sub.MSVCRT.dll_strlen
add esp, 0xc
push dword [edi + 0x14]
mov esi, eax
push 0
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [edi + 0x14], 0
and dword [edi + 0x1c], 0
mov eax, 0x1000
sub eax, esi
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
jmp 0x41f493
mov al, byte [ebx + ecx]
cmp al, 0xd
je 0x41f499
cmp al, 0xa
je 0x41f499
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jl 0x41f484
jmp 0x41f4fa
cmp byte [ebx + ecx], 0xd
mov dword [ebp - 0x10], ecx
jne 0x41f4ac
inc ecx
cmp byte [ebx + ecx], 0xa
mov dword [ebp - 4], ecx
jne 0x41f4b0
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jge 0x41f4f0
mov eax, esi
sub eax, ecx
mov dword [ebp - 8], eax
inc eax
push eax
push 0
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, ebx
push ecx
push eax
mov dword [edi + 0x14], eax
call sub.MSVCRT.dll_strncpy
mov eax, dword [edi + 0x14]
add esp, 0xc
sub esi, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, dword [ebp - 8]
mov dword [edi + 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
je 0x41f54e
cmp dword [ebp + 8], 0x200
jge 0x41f523
push dword [ebp + 0xc]
lea eax, [esi + 0x1000]
push eax
mov dword [ebp + 8], 0x1000
mov dword [ebp - 0xc], eax
call fcn.00429730
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebx + esi]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f54e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41f54e
add esi, eax
sub dword [ebp + 8], eax
jmp 0x41f47f
mov eax, dword [ebp - 0xc]
sub eax, esi
push eax
call fcn.004297d0
pop edi
mov byte [ebx + esi], 0
pop esi
pop ebx
leave
ret 8
Function at 0x424303
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x51ee74]
call fcn.00428e7b
mov edi, eax
test edi, edi
je 0x424365
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42432c
push dword [esp + 0xc]
push edi
call eax
jmp 0x424365
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00429730
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.004297d0
pop esi
pop ebx
pop edi
ret 8
Function at 0x4275b9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x427627
push 0x11
call esi
test al, al
js 0x427627
push 0x10
call esi
test al, al
js 0x427627
push 0x12
call esi
test al, al
js 0x427627
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push 0x42b608
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x427627
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x42764b
push 0x42b594
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x42764b
dec eax
push eax
push dword [0x51ee80]
call fcn.00428e7b
mov eax, dword [eax + 8]
jmp 0x42764d
xor eax, eax
pop esi
leave
ret 4

Function at 0x427886
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x427894
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8

Function at 0x427917
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x427a28
cmp byte [eax], 0
je 0x427a28
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x427971
cmp eax, 3
jne 0x4279ae
cmp byte [ebp - 0x107], 0x3a
jne 0x4279ae
cmp eax, 2
jne 0x427992
lea eax, [ebp - 0x108]
push 0x42b610
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x427a28
jmp 0x427a22
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x4279aa
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4279fa
test byte [ebp - 0x248], 0x10
je 0x4279dd
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x4279f1
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x427a28
cmp byte [ebp - 0x108], 0x5c
jne 0x427a28
cmp byte [ebp - 0x107], 0x5c
jne 0x427a28
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x427a28
test al, 0x10
je 0x427a28
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x427a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x427ac5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x427d50
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x427da9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x427da8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x51ee90]
push eax
push ecx
call fcn.00428e7b
test eax, eax
je 0x427da4
cmp dword [eax + 4], 0
je 0x427d92
push esi
push edi
push eax
call fcn.00427db0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x427db0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x427de5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x427e5e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x427e4b
sub ecx, 1
je 0x427e36
sub ecx, 2
je 0x427e23
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00427a90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x427e8b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x42895e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4289cf
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, ebp
push esi
push edi
jne 0x42897c
mov ebx, 0x42b00b
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea edi, [eax + 1]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4289c6
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4289c6
push edi
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
ret 4

Function at 0x4289d5
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
xor esi, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x428a16
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x428a0e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x428a0e
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x428a19
mov ebx, dword [ebp + 8]
push dword [ebp + 8]
push edi
call fcn.00429730
test esi, esi
je 0x428a3b
inc edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x428a3e
mov byte [eax], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42904a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4de5a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4290ab
push esi
push dword [0x4de5ac]
push 8
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4de5a4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4de5a8]
jmp 0x42909b
mov eax, dword [esi + 0xc]
test eax, eax
je 0x429099
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x429089
push edi
push 0x42900f
call fcn.0042a166
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x4290b5
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4de5ac], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
jne 0x4290ef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push dword [ebp + 8]
mov dword [0x4de5a4], eax
push 8
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4de5a4]
call esi
mov eax, dword [0x4de5ac]
mov edi, eax
add eax, dword [ebp + 8]
push eax
push dword [0x4de5a4]
mov dword [0x4de5ac], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x4de5a4]
call esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x429131
cmp dword [ebp + 0x10], esi
je 0x429154
push 0x14
push 0x4de5a8
call fcn.0042921c
test esi, esi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
je 0x429154
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4293a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x429460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x429570
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4295a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4295e6
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x4de5d0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x429607
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4de5d0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00429880
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x429730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x429754
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x4297a1
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x4de5d0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x429800
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x42983e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x42983e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x429840
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4298d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4dc0e8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x42a166
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4de5cc], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x42a19c
push 0x4de5b0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4de5cc], 1
push 0x4de5b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4de5c8]
cmp eax, ebx
mov edi, eax
je 0x42a200
cmp dword [ebp - 4], ebx
jne 0x42a339
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x42a1d3
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x42a1c4
jmp 0x42a1f1
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00429fb8
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x42a1b2
cmp dword [ebp - 4], ebx
jne 0x42a339
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42a339
mov edi, dword [0x4de5c8]
jmp 0x42a240
cmp dword [edi + 0xc], 0x3f
jl 0x42a2d3
mov edi, dword [edi]
cmp edi, ebx
jne 0x42a234
push 0x310
push 8
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x42a330
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x42a322
push ebx
push ebx
push edi
push 0x42a009
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42a319
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00429fb8
mov eax, dword [0x4de5c8]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x42a2cb
mov dword [eax + 4], edi
mov dword [0x4de5c8], edi
jmp 0x42a339
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00429fb8
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x42a339
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4de5b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1e72c930
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x1e6f24d8
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1e72c996
mov edx, dword [ebp + 0x10]
push esi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1e72c996
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x1e72c996
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1e72eca0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1e7defd0
push 0x1e72b672
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x1e7e4380]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x1c]
push eax
push 0x1e6f24d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1e72ed4f
mov esi, 4
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push 0x1e6fad2c
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1e72ed45
cmp dword [ebp - 0x24], esi
jne 0x1e72ed45
cmp dword [ebp - 0x28], edi
je 0x1e72ed45
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1e7e5930], edi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1e7e5930], edi
jge 0x1e72edac
mov dword [0x1e7e5930], edi
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x4c], di
jne 0x1e72edac
cmp word [ebp - 0x2c], 5
jb 0x1e72edac
mov dword [ebp - 4], edi
call fcn.1e72ec70
test eax, eax
je 0x1e72eda5
emms
mov dword [0x1e7e5930], 1
jmp 0x1e72eda5
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1e7e5930]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret