joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504d30
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b7c58
push 0x553d69
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], edx
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
lea ecx, [ebp - 0x28]
push ecx
xor edx, edx
mov ecx, eax
call fcn.00502280
add esp, 8
test eax, eax
je 0x504da4
or eax, 0xffffffff
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 ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
cmp ebx, edx
jb 0x504dce
ja 0x504dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
cmp edi, ecx
jb 0x504dd4
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 edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
xor eax, eax
add esi, edi
adc eax, ebx
cmp eax, edx
jb 0x504dee
ja 0x504de7
cmp esi, ecx
jbe 0x504dee
mov eax, ecx
sub eax, edi
mov dword [ebp + 8], eax
mov esi, dword [0x5c6dac]
test esi, esi
jne 0x504e0b
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x38]
mov dword [0x5c6dac], esi
xor eax, eax
add esi, 0xffffffff
adc eax, 0xffffffff
not esi
not eax
and esi, edi
and eax, ebx
mov dword [ebp - 0x24], eax
sub edi, esi
or ebx, 0xffffffff
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0x1c]
call dword [0x5c0278]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x504eaa
mov eax, dword [ebp + 8]
add eax, edi
push eax
push esi
push dword [ebp - 0x24]
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x504ea1
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
push ebx
lea eax, [esi + edi]
push eax
push dword [ebp - 0x2c]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x504e9a
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [0x5c001c]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x504f50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x5c6db0]
mov ebx, ecx
push edi
mov edi, edx
test esi, esi
jne 0x504f9b
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
mov dword [0x5c6db0], esi
test esi, esi
je 0x504ff8
xor edx, edx
mov eax, ebx
div esi
test edx, edx
jne 0x504ff8
mov eax, edi
div esi
test edx, edx
jne 0x504ff8
mov eax, dword [ebp + 8]
div esi
test edx, edx
jne 0x504ff8
push 0x10
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x504ff8
mov ecx, dword [ebp + 8]
lea eax, [ebx + edi]
push 4
push 0x1000
add eax, ecx
mov dword [esi], ebx
push eax
push 0
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x505001
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x505b70
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor bl, bl
lea eax, [esi + 0x220]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
mov byte [esi + 4], 1
je 0x505c14
push edi
push 0xf0000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x505c13
push 0x134
lea eax, [esi + 0x14]
push eax
push edi
call dword [0x5c00e4]
mov dword [esi], eax
test eax, eax
je 0x505c0c
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x505c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x505c0c
lea eax, [ebp - 0x20]
push eax
push 0x81
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x505c0c
push ecx
push 4
push dword [esi]
call fcn.00506630
mov bl, 1
mov byte [esi + 5], bl
push edi
call dword [0x5c00e8]
pop edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x505c30
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
xor edi, edi
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], edi
jne 0x505c83
push 0xf0000
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x505cbe
push 0x134
lea ecx, [esi + 0x14]
push ecx
push edi
call dword [0x5c00e4]
mov dword [esi], eax
test eax, eax
je 0x505cb3
lea eax, [ebp - 0x20]
push eax
push 1
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x505ca5
push ecx
push 1
push dword [esi]
call fcn.00506630
mov bl, 1
mov byte [esi + 5], 0
push dword [esi]
call dword [0x5c00e8]
mov dword [esi], 0
test edi, edi
je 0x505cbe
push edi
call dword [0x5c00e8]
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret

Function at 0x506630
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push esi
push eax
push ebx
xor esi, esi
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x5066b0
push edi
mov edi, dword [ebp + 0xc]
mov edi, edi
cmp dword [ebp - 0x1c], edi
je 0x50669b
cmp esi, 0xa
jge 0x506685
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20]
inc esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x506660
mov al, byte [ebp - 0x21]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop esi
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5075f0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567d50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x507664
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x507660
push 8
push 0x18
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x507664
xor bl, bl
jmp 0x5076b4
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x507699
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090008
sete bl
jmp 0x50769b
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5076b4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5076d2
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x509d60
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 5
test esi, esi
jne 0x509dec
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec dword [ebp - 4]
mov esi, eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
je 0x509dd3
lea eax, [ebp - 0x24]
push eax
call ebx
lea eax, [ebp - 0x24]
push eax
call dword [0x5c032c]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x509db1
test esi, esi
jne 0x509de2
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
test eax, eax
jg 0x509d81
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x509e00
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
mov esi, ebx
push edi
mov edi, 1
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x509e30
sub esi, ecx
lea eax, [esp + 0x260]
sar esi, 1
cmp esi, 0x104
jae 0x509e60
push ebx
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x509e7f
push 0x103
push ebx
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + 0x466], ax
cmp word [esp + 0x260], 0
mov esi, 0x5c
je 0x509ec1
lea eax, [esp + 0x260]
push 0
push eax
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
cmp si, word [eax - 2]
je 0x509ec1
push 0x5760e0
mov edx, 0x104
lea ecx, [esp + 0x264]
call fcn.0052fae0
add esp, 4
push 0x588400
mov edx, 0x104
lea ecx, [esp + 0x264]
call fcn.0052fae0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x509fdc
jmp 0x509f00
test byte [esp + 0x10], 0x10
jne 0x509fc8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509f10
sub ecx, edx
lea eax, [esp + 0x260]
sar ecx, 1
cmp ecx, 0x104
jae 0x509f40
push ebx
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x509f5f
push 0x103
push ebx
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + 0x466], ax
cmp word [esp + 0x260], 0
je 0x509fa1
lea eax, [esp + 0x260]
push 0
push eax
call dword [sym.imp.MSVCR120.dll_wcschr]
mov ecx, 0x5c
add esp, 8
cmp cx, word [eax - 2]
je 0x509fa1
push 0x5760e0
mov edx, 0x104
lea ecx, [esp + 0x264]
call fcn.0052fae0
add esp, 4
lea eax, [esp + 0x3c]
mov edx, 0x104
push eax
lea ecx, [esp + 0x264]
call fcn.0052fae0
add esp, 4
lea ecx, [esp + 0x260]
call fcn.00509d60
mov edi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x509f00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0xc], 0
je 0x50a00c
test edi, edi
je 0x50a00c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x50a030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x50a067
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50a053
push esi
cmp eax, 3
je 0x50a083
cmp eax, 2
jne 0x50a11b
push 0x5c
push edi
call dword [sym.imp.MSVCR120.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x50a11b
sub esi, edi
lea eax, [ebp - 0x20c]
sar esi, 1
push esi
push edi
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esi, esi
add esp, 0x10
cmp esi, 0x208
jae 0x50a12d
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp + esi - 0x20c], ax
call fcn.0050a030
test eax, eax
je 0x50a11b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x50a0f9
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
pop esi
sete cl
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop edi
call fcn.00553510
mov esp, ebp
pop ebp
ret
call fcn.005538fc
int3

Function at 0x50a190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x50a29b
xor eax, eax
cmp ax, word [edi]
je 0x50a29b
mov esi, edi
mov ebx, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x50a1c2
sub esi, ecx
sar esi, 1
cmp esi, 2
je 0x50a1db
cmp esi, 3
jne 0x50a21b
cmp word [edi + 2], 0x3a
jne 0x50a21b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50a208
test al, 0x10
je 0x50a208
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov eax, 0x5c
cmp ax, word [edi + esi*2 - 2]
jne 0x50a255
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005534d1
mov ebx, eax
mov edx, esi
push edi
mov ecx, ebx
call fcn.0052fa00
add esp, 8
xor eax, eax
mov word [ebx + esi*2 - 2], ax
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp ebx, edi
je 0x50a273
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp esi, 0xffffffff
je 0x50a29b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x258], 0x10
je 0x50a29b
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x50c0c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push 0x2001b
push eax
mov edx, str.SoftwareESETESET_SecurityCurrentVersionInfo
mov ecx, reloc.WS2_32.dll_bind
call fcn.00518680
add esp, 8
movzx esi, al
neg esi
sbb esi, esi
and esi, dword [ebp - 4]
push str.WebMAET
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x50c115
cmp edi, 2
je 0x50c115
xor bl, bl
jmp 0x50c117
mov bl, 1
test esi, esi
je 0x50c129
push esi
call dword [0x5c00ac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50d8c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
push edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x50d8d3
sub esi, edx
sar esi, 1
inc esi
push 1
mov edx, esi
call fcn.0050c7b0
mov edi, eax
add esp, 4
cmp edi, esi
jae 0x50d8f7
mov edi, esi
lea eax, [edi + edi]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov esi, eax
push dword [ebp - 4]
test esi, esi
jne 0x50d92f
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0052fa00
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, ebx
push esi
call fcn.0050c7b0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.0052fa00
add esp, 4
mov edx, edi
mov ecx, esi
push 0
call fcn.0050c7b0
mov edi, dword [ebp + 8]
add esp, 4
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x50d967
test edi, edi
je 0x50d967
xor eax, eax
mov word [ebx + edi*2 - 2], ax
push esi
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00554650
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x1028], ecx
xor bl, bl
mov ecx, edi
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
mov dword [ebp - 0x1024], edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50f380
sub ecx, esi
je 0x50f476
lea eax, [ecx + edi]
mov dword [ebp - 0x102c], eax
lea esi, [ebp - 0x1020]
cmp edi, eax
jae 0x50f45e
lea eax, [ebp - 0x26]
cmp esi, eax
jbe 0x50f3d5
lea eax, [ebp - 0x1020]
sub esi, eax
mov eax, esi
lea esi, [ebp - 0x1020]
je 0x50f3d5
push ecx
mov ecx, dword [ebp - 0x1028]
push eax
mov eax, esi
push eax
call fcn.0050f130
mov edx, dword [ebp - 0x1024]
mov al, byte [edi]
cmp al, 0xd
jne 0x50f3fa
cmp byte [edi + 1], 0xa
jne 0x50f3fa
cmp bl, 0x20
je 0x50f3fa
cmp bl, 9
je 0x50f3fa
add edi, 2
mov word [esi], 0xa0d
mov bl, 0xa
add esi, 2
jmp 0x50f44a
mov bl, al
inc edi
lea eax, [ebx - 0x20]
cmp al, 0x5e
ja 0x50f40f
cmp bl, 0x3d
je 0x50f40f
mov byte [esi], bl
inc esi
inc edx
jmp 0x50f433
movzx ecx, bl
mov eax, ecx
mov byte [esi], 0x3d
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x14]
mov byte [esi + 1], al
movzx eax, byte [ebp + ecx - 0x14]
mov byte [esi + 2], al
add esi, 3
add edx, 3
mov dword [ebp - 0x1024], edx
cmp edx, 0x48
jbe 0x50f452
mov word [esi], 0xd3d
mov byte [esi + 2], 0xa
add esi, 3
xor edx, edx
mov dword [ebp - 0x1024], edx
cmp edi, dword [ebp - 0x102c]
jb 0x50f3a6
lea eax, [ebp - 0x1020]
sub esi, eax
je 0x50f476
push ecx
mov ecx, dword [ebp - 0x1028]
push esi
push eax
call fcn.0050f130
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
Function at 0x513660
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [0x5c001c]
cmp dword [esi + 0x3c], 0
je 0x5136ad
push 2
call fcn.00514cc0
push 0x1388
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5136a1
push 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3c]
call edi
mov dword [esi + 0x3c], 0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x34]
cmp dword [ebx], ebx
je 0x51373a
mov edi, edi
mov ecx, dword [esi + 0x4c]
mov edi, dword [ebx]
test ecx, ecx
je 0x5136ff
xor eax, eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], 1
call ecx
add esp, 4
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 8]
call dword [0x5c001c]
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebx], ebx
jne 0x5136c0
mov edi, dword [0x5c001c]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x14]
push eax
call ebx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x513757
push eax
call edi
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x513773
push ecx
mov edx, 0x3e8
call fcn.0051e920
add esp, 4
mov dword [esi + 0x2c], 0
lea eax, [esi + 0x14]
mov dword [esi + 0x48], 0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x513799
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x5137aa
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x5137bb
push eax
call edi
mov dword [esi + 4], 0
lea eax, [esi + 0x14]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5139c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [0x5c001c]
cmp dword [esi + 0x3c], 0
je 0x513a0d
push 2
call fcn.00515020
push 0x1388
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x513a01
push 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3c]
call edi
mov dword [esi + 0x3c], 0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x34]
cmp dword [ebx], ebx
je 0x513a9a
mov edi, edi
mov ecx, dword [esi + 0x4c]
mov edi, dword [ebx]
test ecx, ecx
je 0x513a5f
xor eax, eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], 1
call ecx
add esp, 4
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 8]
call dword [0x5c001c]
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebx], ebx
jne 0x513a20
mov edi, dword [0x5c001c]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x14]
push eax
call ebx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x513ab7
push eax
call edi
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x513ad3
push ecx
mov edx, 0x3e8
call fcn.0051e920
add esp, 4
mov dword [esi + 0x2c], 0
lea eax, [esi + 0x14]
mov dword [esi + 0x48], 0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x513af9
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x513b0a
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x513b1b
push eax
call edi
mov dword [esi + 4], 0
lea eax, [esi + 0x14]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret