joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446094
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45db88]
cmp byte [eax + 0xc], 0
je 0x446201
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4461fa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462c54], 0
jne 0x4460e8
push 0x446208
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x446210
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c54], eax
cmp dword [0x45d5bc], 0
jne 0x4461e3
push 0x446220
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45d5bc], eax
cmp dword [0x45d5bc], 0
je 0x4461e3
push 0x44622c
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c58], eax
push 0x44623c
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c5c], eax
push 0x446250
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c60], eax
push 0x446268
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c64], eax
push 0x446280
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c68], eax
push 0x446294
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c6c], eax
push 0x4462ac
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c70], eax
push 0x4462c4
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c74], eax
push 0x4462e0
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c78], eax
push 0x4462ec
mov eax, dword [0x45d5bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c7c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446201
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44c274
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x44c295
test edi, 0x40000
je 0x44c2af
test bl, bl
jne 0x44c330
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x44c330
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x44c2e2
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x44c2f7
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44c306
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x44c317
cmp byte [esp + 2], 0
je 0x44c330
cmp byte [esp + 2], 0
je 0x44c328
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x44c330
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44c5d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x44c5fa
mov eax, esp
push eax
push 0x44c59c
call sub.user32.dll_EnumWindows
jmp 0x44c60d
mov eax, esp
push eax
push 0x44c57c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44c698
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44c6ec]
test si, 4
je 0x44c6ad
or bl, 1
test si, 8
je 0x44c6b7
or bl, 4
test si, 1
je 0x44c6c1
or bl, 8
test si, 2
je 0x44c6cb
or bl, 0x10
test si, 0x10
je 0x44c6d5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c6e4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44c72c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c70a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c719
or bl, 4
test esi, 0x20000000
je 0x44c724
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454798
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4547aa
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ab90
mov eax, dword [0x45d84c]
mov dword [eax + 4], ebx
mov dword [eax], 0x454b3c
mov eax, dword [0x45d858]
mov dword [eax + 4], ebx
mov dword [eax], 0x454b48
mov eax, ebx
call fcn.00454b54
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44fffc
push eax
push 0
push 0
mov eax, dword [0x45d9a0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e734]
call fcn.0041fc54
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e734]
call fcn.0041fc54
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e734]
call fcn.0041fc54
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454fcc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454e9c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454e9c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454e9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4548e7
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454c80
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454e2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454e0c
mov dl, 1
mov eax, dword [0x4126d8]
call fcn.004039e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048d8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454dfb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004463f0
test al, al
je 0x454dee
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454e3c
lea eax, [ebp - 0x254]
call fcn.00409738
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454dee
xor eax, eax
push ebp
push 0x454de7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454e74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454dd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b48
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454dd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454dee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454cf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041640c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454e32
lea eax, [ebp - 0x260]
call fcn.004048d8
ret

Function at 0x4557a4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x462c98]
cmp byte [eax + 0xad], 0
jne 0x455815
cmp dword [0x462cb4], 0
jne 0x4557d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455760
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462cb4], eax
cmp dword [0x462cb0], 0
jne 0x4557f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462cb0], eax
cmp dword [0x462cb8], 0
jne 0x455815
push esp
push 0
push 0
push 0x455704
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x462cb8], eax
pop edx
ret
Function at 0x455a18
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455a2f
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ab90
mov eax, dword [0x45d98c]
cmp word [eax + 2], 0
jne 0x455a57
mov eax, dword [0x45d98c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457708
mov eax, dword [0x45da30]
cmp word [eax + 2], 0
jne 0x455a71
mov eax, dword [0x45da30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457914
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4122b4]
call fcn.004039e0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41ef10]
call fcn.00424ddc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x455c28
mov eax, dword [0x45d8b0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004251b0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457fd8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45d8b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ce74
test eax, eax
je 0x455b78
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004090f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cea8
test eax, eax
je 0x455b8c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b48
mov byte [ebx + 0xd4], 0
push ebx
push 0x457194
call fcn.0041bd0c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45d7bc]
cmp byte [eax], 0
jne 0x455bdd
mov eax, ebx
call fcn.00455d6c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004581ec
mov eax, ebx
call fcn.00458d50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455c1d
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455fec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45608b
cmp dword [ebx + 0x94], 0
jne 0x456085
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455f74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456085
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45604b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456085
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004146b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45605a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4562a4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x462c98]
cmp dword [eax + 0x30], 0
je 0x456401
test bl, bl
jne 0x456352
cmp dword [esi + 0x9c], 0
jne 0x456347
mov eax, esi
call fcn.00458bcc
push eax
push 0x4561d0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x456318
mov eax, dword [0x462c98]
call fcn.004592ac
test al, al
je 0x456318
mov eax, dword [0x462cbc]
call fcn.00405794
mov edi, eax
cmp edi, 0
jl 0x456318
push 0
mov eax, dword [0x462cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x456302
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x456347
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004146b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x456327
inc dword [esi + 0x9c]
jmp 0x456401
cmp dword [esi + 0x9c], 0
jle 0x456401
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x456401
cmp dword [esi + 0x44], 0
je 0x4563ad
mov eax, dword [0x462c98]
call fcn.004592ac
test al, al
je 0x4563ad
mov eax, dword [0x462cbc]
call fcn.00405794
mov edi, eax
cmp edi, 0
jl 0x4563ad
push 5
mov eax, dword [0x462cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x456397
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4563dc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004146b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4563bc
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x462cbc
mov ecx, 1
mov edx, dword [0x4561b0]
call fcn.00405948
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x456ee8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x456f52
mov eax, ebx
call fcn.004592ac
test al, al
jne 0x456f52
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004049c8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x456f3f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x456f5f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040492c
jmp 0x456f5f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040492c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4583d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45843e
mov eax, esi
call fcn.00441194
test al, al
je 0x45843e
mov eax, dword [ebx + 0x84]
call fcn.00440df4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45843e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x458432
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440df4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00438ca4
jmp 0x45843e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045820c
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x105d5000
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x105c0158]
test eax, eax
je 0x105d501d
mov cl, byte [0x105c0608]
or cl, 1
mov byte [0x105c0608], cl
cmp dword [0x105c0130], 0
je 0x105d5035
mov dl, byte [0x105c0608]
or dl, 8
mov byte [0x105c0608], dl
xor eax, eax
mov al, byte [0x105c0608]
test eax, eax
je 0x105d509f
cmp dword [0x105c013c], 0
je 0x105d5059
push 0x105c2dfc
push 0x105c2e00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x105cf454]
push ecx
mov dl, byte [0x105c0608]
push edx
push 0x105c03b0
push 0x105c0158
mov eax, dword [0x105c0140]
push eax
mov ecx, dword [0x105c013c]
push ecx
mov edx, dword [0x105c0138]
push edx
mov eax, dword [0x105c0134]
push eax
mov ecx, dword [0x105c0130]
push ecx
push 0x105c0128
call fcn.105d8498
add esp, 0x28
pop ebp
ret
Function at 0x105d675f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
call fcn.105d7a78
mov word [ebp - 4], ax
cmp dword [0x105cf570], 0
je 0x105d6789
mov dword [0x105cfb44], 0
jmp 0x105d6793
mov dword [0x105cfb44], 1
cmp dword [0x105cfb44], 0
je 0x105d6993
cmp dword [0x105c2df8], 1
je 0x105d67ba
mov eax, dword [0x105c2df4]
cmp eax, dword [0x105c2df0]
jne 0x105d692c
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
add edx, 1
mov dword [0x105c2df0], edx
mov dword [0x105c2df4], 1
mov edx, dword [0x105d1818]
and edx, 0x1f3
mov dword [0x105cf550], edx
mov eax, dword [0x105cf550]
mov ecx, dword [eax*4 + 0x105bf010]
xor ecx, 0xfd0699d6
mov dword [0x105cf540], ecx
mov dword [0x105cf544], 0
push 4
push 0
push 0x105cf544
push 0x105cf540
movzx dx, byte [0x105bf00d]
push edx
push 0x105cf6ac
call fcn.105d9480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x105d6876
mov ecx, dword [0x105cf544]
xor ecx, 0x7b2309a7
mov edx, dword [0x105cf550]
xor ecx, dword [edx*4 + 0x105bf7e0]
test ecx, ecx
je 0x105d6920
xor eax, eax
mov al, byte [0x105c1f6a]
cmp eax, 0x31
jne 0x105d6888
mov word [ebp - 4], 3
xor ecx, ecx
mov cl, byte [0x105c1f6a]
cmp ecx, 0x32
je 0x105d68a2
xor edx, edx
mov dl, byte [0x105c1f6a]
cmp edx, 0x33
jne 0x105d68a8
mov word [ebp - 4], 0
mov dword [0x105c2df8], 1
cmp dword [0x105cf594], 0
jne 0x105d691e
xor eax, eax
mov al, byte [0x105c1f6a]
cmp eax, 0x32
je 0x105d68d4
xor ecx, ecx
mov cl, byte [0x105c1f6a]
cmp ecx, 0x33
jne 0x105d691e
mov edx, dword [0x105cf69c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x105cf54c], 0xc
push 0x2010
call fcn.105d50a1
push eax
call fcn.105d78db
add esp, 8
mov dword [0x105cf54c], 0
mov eax, dword [0x105cf69c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x105cf594], 1
jmp 0x105d692a
mov dword [0x105c2df8], 0
jmp 0x105d6991
mov ecx, dword [0x105c2df4]
add ecx, 1
mov dword [0x105c2df4], ecx
mov edx, dword [0x105d1818]
mov dword [0x105cf540], edx
mov dword [0x105cf544], 0
push 4
push 0
push 0x105cf544
push 0x105cf540
push 0
push 0x105cf6ac
call fcn.105d9480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x105d698b
mov ecx, dword [0x105cf544]
xor ecx, dword [0x105d1818]
test ecx, ecx
je 0x105d6991
mov word [ebp - 4], 3
jmp 0x105d69f7
mov edx, dword [0x105c2df4]
add edx, 1
mov dword [0x105c2df4], edx
mov eax, dword [0x105d1818]
mov dword [0x105cf540], eax
mov dword [0x105cf544], 0
push 4
push 0
push 0x105cf544
push 0x105cf540
push 0
push 0x105cf6ac
call fcn.105d9480
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
jne 0x105d69f1
mov edx, dword [0x105cf544]
xor edx, dword [0x105d1818]
test edx, edx
je 0x105d69f7
mov word [ebp - 4], 3
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x105d6ec1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x105d1800
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x105d6f3e
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x105d1820], 0
je 0x105d6f2d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x105d1820]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x105d6f2d
cmp dword [ebp - 4], 0x103
je 0x105d6f2d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x105d1820]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x105d1820], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.105d7116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x105d6ed9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x105d6f7a
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x105d1820], 0
je 0x105d6f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x105d1820]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 8]
push edx
call fcn.105d7116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x105d6f45
mov esp, ebp
pop ebp
ret

Function at 0x105d6f7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x105d6fbe
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x105d1820], 0
je 0x105d6fad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x105d1820]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call fcn.105d7116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x105d6f89
push 0x105d1800
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x105d8cf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x105d8d65
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x105d8d3c
mov word [0x105cfb50], cx
call fcn.105db1a0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x105d8d29
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x105d8d29
mov word [0x105cfb50], ax
call fcn.105d8a40
call fcn.105d8bd0
call fcn.105db1a0
add esp, 0x94
ret