joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e05e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x60940c]
xor eax, esp
mov dword [esp + 0x20], eax
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4e06e0
push esi
mov esi, dword [esp + 0x38]
push 8
mov dword [esp + 0x18], 0x208
mov dword [esp + 0x1c], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [esp + 0x24], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [esp + 0x25], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [esp + 0x26], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [esp + 0x27], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [esp + 0x28], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [esp + 0x29], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [esp + 0x20], 8
mov byte [esp + 0x2a], al
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2f], cl
call fcn.004e2d90
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4e06f2
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0052b33d
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
push dword [esp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
xor ecx, esp
call fcn.0052b33d
add esp, 0x24
ret
Function at 0x4e2e40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6091e8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e2e67
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4e2eb2
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x4e2eb6
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4e2f16
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4e2ed5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4e2f47
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x5b5336
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5b5337
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4e2f20
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4fc8e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594108
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x4fcab3
je case.0x4fc93f.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x4fc93f.4
movzx eax, byte [eax + 0x4fcb48]
jmp dword [eax*4 + 0x4fcb0c]
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004f9cf0
push 0x5ffb58
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004f9a80
push 0x5ffc30
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004f9c30
push 0x5ffb10
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004f9690
push 0x5ffc78
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004f9840
push 0x5ffd50
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004fa9b0
push 0x5ffcc0
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004fa500
push 0x5ffd08
lea eax, [ebp - 0x3c]
push eax
call fcn.0054e0d6
push str.sharing_violation
lea ecx, [ebp - 0x28]
call fcn.0040c7d0
mov dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.004f9b40
push 0x5ffacc
lea eax, [ebp - 0x68]
push eax
call fcn.0054e0d6
push str.lock_violation
lea ecx, [ebp - 0x28]
call fcn.0040c7d0
mov dword [ebp - 4], 1
jmp 0x4fca02
push str.EOF_reached
lea ecx, [ebp - 0x28]
call fcn.0040c7d0
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x68]
call fcn.004fa4d0
push 0x5ffd08
jmp 0x4fca15
push str.disk_is_full
lea ecx, [ebp - 0x28]
call fcn.0040c7d0
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.004fa980
push 0x5ffcc0
jmp 0x4fca15
push str.negative_seek
lea ecx, [ebp - 0x28]
call fcn.0040c7d0
mov dword [ebp - 4], 4
jmp 0x4fca02
push esi
push edi
lea ecx, [ebp - 0x68]
call fcn.004fa3a0
push 0x5ffa44
jmp 0x4fca15
cmp esi, 0x781
je case.0x4fc93f.3
cmp esi, 0x1779
je 0x4fcae0
push esi
push edi
lea ecx, [ebp - 0x94]
call fcn.004f9b70
push 0x5ffacc
lea eax, [ebp - 0x94]
jmp 0x4fca18
push 0x1779
push edi
lea ecx, [ebp - 0x68]
call fcn.004f9db0
push 0x5ffbe8
jmp 0x4fca15
push esi
push edi
lea ecx, [ebp - 0x68]
call fcn.004fa2e0
push 0x5ffba0
jmp 0x4fca15
Function at 0x4fcdc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x4fcde2
push 0
push 0x9f
push str.f:workspacemicroclientpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004f8f00
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x4fcded
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fce00
shr eax, 4
and al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.004fc8e0
int3

Function at 0x4fcfa0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594178
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
mov edi, dword [ebp + 8]
jne 0x4fcfee
push 0
push 0x133
push str.f:workspacemicroclientpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004f8f00
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.004fc770
add esp, 8
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [esi + 0x1c]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x4fd028
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4fd03f
lea eax, [esi + 4]
push eax
call fcn.004fc8e0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fd054
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040b0e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret 4
Function at 0x4fe250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594409
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4fe2ae
mov eax, dword [esi]
jmp 0x4fe2b0
mov eax, esi
mov byte [eax], 0
push 0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x4fe374
xor ecx, ecx
mov dword [ebp - 0x20], ebx
mov edx, 2
mov dword [ebp - 0x1c], ebx
mul edx
mov byte [ebp - 0x14], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052b7a0
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push edi
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4fe367
cmp eax, ebx
ja 0x4fe367
push esi
push edi
call fcn.005058e0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4fe32b
mov eax, dword [esi]
jmp 0x4fe32d
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x4fe340
push 0x59d674
mov ecx, esi
call fcn.004e4842
push edi
call fcn.00447d00
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret
push edi
mov byte [ebp - 4], 0
call fcn.00447d00
add esp, 4
push 0x1c
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ac20
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004fa7d0
push 0x5f4528
lea eax, [ebp - 0x54]
push eax
call fcn.0054e0d6
int3
Function at 0x4ff950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5946a1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7fff
mov dword [ebp - 0x58], 0
mov edx, 2
mov dword [ebp - 4], 0
mul edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x6c], 0x7fff
seto cl
mov dword [ebp - 0x68], 0x7fff
neg ecx
mov byte [ebp - 0x60], 1
or ecx, eax
push ecx
call fcn.0052b7a0
mov edi, eax
add esp, 4
mov dword [ebp - 0x64], edi
push 0x7fff
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4ffaa2
push 0x7fff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x4ffa1c
push str.Cannot_get_system_directory_long_path_name
lea ecx, [ebp - 0x28]
call fcn.0040c7d0
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.004fa7d0
push 0x5f4528
lea eax, [ebp - 0x54]
push eax
call fcn.0054e0d6
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4ffa42
mov eax, dword [esi]
jmp 0x4ffa44
mov eax, esi
mov byte [eax], 0
push esi
push edi
mov dword [ebp - 0x58], 1
call fcn.005058e0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ffa65
mov eax, dword [esi]
jmp 0x4ffa67
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x4ffa7c
push 1
push 0x59d674
mov ecx, esi
call fcn.0040a9c0
push edi
call fcn.00447d00
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret
push 0x23
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ac20
mov byte [ebp - 4], 3
jmp 0x4ffa00
Function at 0x4ffba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5969f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60940c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004061a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.0052b7a0
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
call fcn.0052b7a0
mov ecx, dword [esi + 0x40]
add esp, 8
mov dword [esi + 0x44], eax
add ecx, 4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5006b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0xffffffff
je 0x50070a
mov eax, dword [esi + 0x48]
test al, 1
je 0x50070a
test al, 2
je 0x5006cd
mov eax, dword [esi]
call dword [eax + 0x34]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5006f9
lea eax, [esi + 0x50]
push eax
call fcn.004fc8d0
add esp, 4
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5009d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x68]
cmp ecx, 0xffffffff
je 0x500a72
mov eax, dword [esi + 0x48]
test al, 2
je 0x500a72
test al, 8
je 0x500a35
push 2
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 0
push ecx
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x500a2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x500a29
lea eax, [esi + 0x50]
push eax
call fcn.004fc8d0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x74], eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x500a61
lea eax, [esi + 0x50]
push eax
call fcn.004fc8d0
add esp, 4
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x502930
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5950b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x5029ac
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ac20
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.004fa7d0
push 0x5f4528
lea eax, [ebp - 0x54]
push eax
call fcn.0054e0d6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret

Function at 0x502c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
push ecx
push 0
push esi
push eax
push dword [esi + 0x14]
push 0
call fcn.00566f64
mov ecx, dword [ebp - 0x9c]
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test edx, edx
jne 0x502d2a
push 0x14
push str.cannot_create_thread
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0040ac20
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.004fa7d0
push 0x5f4528
lea eax, [ebp - 0x6c]
push eax
call fcn.0054e0d6
mov eax, dword [esi + 0x10]
test eax, eax
je 0x502d73
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x502d73
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x40]
call fcn.0040c7d0
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.004fa7d0
push 0x5f4528
lea eax, [ebp - 0x98]
push eax
call fcn.0054e0d6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret 8

Function at 0x504c70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x504c89
mov eax, dword [esi]
jmp 0x504c8b
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x504cae
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00504ce0
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.0040aaf0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x504d00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], 0
cmp dword [esi + 0x14], 0x10
jb 0x504d2a
mov eax, dword [esi]
jmp 0x504d2c
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x504dae
push eax
call fcn.0052b7a0
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x504d51
mov esi, dword [esi]
push dword [ebp - 0x34]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [ebx], 0
jne 0x504d76
xor ecx, ecx
jmp 0x504d89
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x504d80
sub ecx, edx
push ecx
push ebx
mov ecx, edi
call fcn.0040ac20
push ebx
call fcn.00447d00
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0052b33d
mov esp, ebp
pop ebp
ret
push 0
push esi
lea ecx, [ebp - 0x30]
call fcn.004fa060
push 0x5ff878
lea eax, [ebp - 0x30]
push eax
call fcn.0054e0d6
int3

Function at 0x504e10
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5950b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x504e47
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x504e51
mov ecx, dword [esi]
jmp 0x504e53
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x504eab
push 0x21
push str.cannot_set_environment_variable:
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0040ac20
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040a8c0
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.004fa7d0
push 0x5f4528
lea eax, [ebp - 0x54]
push eax
call fcn.0054e0d6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret
Function at 0x52a400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595a90
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.0052aad0
xor eax, eax
mov dword [ebp - 0x70], 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00505700
add esp, 8
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x52a4ca
mov eax, dword [ebp - 0x74]
cmp eax, 4
je 0x52a493
cmp eax, 5
jne 0x52a4ca
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x78]
cmp ecx, 8
jb 0x52a4ab
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040b0e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.0052a930
push 0
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004fa060
push 0x5ff878
lea eax, [ebp - 0x54]
push eax
call fcn.0054e0d6
int3