joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509620
Capabilities:
Print debug messages

Disassembly:
push ecx
call fcn.0041ab20
mov edx, dword [eax + 4]
test edx, edx
je 0x509648
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x94f2095
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
jne 0x50964e
xor al, al
pop ecx
ret 4
movzx edx, word [esp + 8]
mov ecx, dword [ebx + 0x9c]
mov eax, edx
imul eax, ecx
push esi
lea esi, [eax + ecx]
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x94], edx
mov dword [esp + 0xc], esi
call fcn.0041ab20
mov edx, dword [eax + 4]
test edx, edx
jne 0x509682
xor eax, eax
jmp 0x509698
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x94f2095
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebx + 0x98], eax
jle 0x5096b2
push str.Error__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
pop ecx
ret 4
cmp eax, esi
jge 0x5096bc
mov dword [esp + 0xc], eax
mov esi, eax
push ebp
xor ebp, ebp
test esi, esi
jle 0x509739
push edi
lea edi, [ebx + 0xb0]
lea ebx, [ebx]
mov esi, dword [ebx + 0x98]
add esi, ebp
call fcn.0041ab20
imul esi, esi, 0x1b8
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
add esi, edx
test eax, eax
mov dword [esp + 0xc], esi
jne 0x5096f7
xor edx, edx
jmp 0x5096ff
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x50971c
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x50971c
mov eax, dword [edi + 8]
mov dword [eax], esi
add eax, 4
mov dword [edi + 8], eax
jmp 0x50972f
mov eax, dword [edi + 8]
push eax
push edi
lea eax, [esp + 0x14]
mov ecx, 1
call fcn.00509af0
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x5096d0
pop edi
pop ebp
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x531160
Capabilities:
Read .ini file

Disassembly:
lea edx, [esp - 0x400]
sub esp, 0x400
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x531170
push edi
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x531180
mov eax, dword [str.ServerListPos.ini]
mov ecx, dword [0x598b80]
mov edx, dword [0x598b84]
mov dword [edi], eax
mov eax, dword [0x598b88]
mov dword [edi + 4], ecx
mov cx, word [0x598b8c]
mov dword [edi + 8], edx
mov dl, byte [0x598b8e]
mov dword [edi + 0xc], eax
lea eax, [esp + 4]
push eax
push 0
mov word [edi + 0x10], cx
push str.count
mov byte [edi + 0x12], dl
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.WorldList
call edi
lea ecx, [esp + 4]
push ecx
push 0
push 0x5926e0
push str.WorldList
mov dword [esi + 0xc8], eax
call edi
lea edx, [esp + 4]
push edx
push 0
push 0x598b64
push str.WorldList
mov dword [esi + 0xcc], eax
call edi
mov dword [esi + 0xd0], eax
lea eax, [esp + 4]
push eax
push 0
push str.intervalwidth
push str.WorldList
call edi
lea ecx, [esp + 4]
push ecx
push 0
push str.intervalHeight
push str.WorldList
mov dword [esi + 0xd4], eax
call edi
lea edx, [esp + 4]
push edx
push 0
push str.sizex
push str.WorldList
mov dword [esi + 0xd8], eax
call edi
mov dword [esi + 0xdc], eax
lea eax, [esp + 4]
push eax
push 0
push str.sizey
push str.WorldList
call edi
mov edi, dword [esi + 0xc8]
lea ecx, [edi*8]
push ecx
mov dword [esi + 0xe0], eax
call fcn.0055e5a4
mov dword [esi + 0xe4], eax
add esp, 4
xor edx, edx
xor eax, eax
test edi, edi
jle 0x5312f0
push ebx
mov ecx, eax
and ecx, 1
jne 0x5312a3
test eax, eax
je 0x5312a3
inc edx
test ecx, ecx
jne 0x5312b8
mov ecx, dword [esi + 0xe4]
mov ebx, dword [esi + 0xcc]
mov dword [ecx + eax*8], ebx
jmp 0x5312cf
mov ebx, dword [esi + 0xcc]
mov ecx, dword [esi + 0xd4]
add ecx, ebx
mov ebx, dword [esi + 0xe4]
mov dword [ebx + eax*8], ecx
mov ecx, dword [esi + 0xd8]
mov ebx, dword [esi + 0xd0]
imul ecx, edx
add ecx, ebx
mov ebx, dword [esi + 0xe4]
mov dword [ebx + eax*8 + 4], ecx
inc eax
cmp eax, edi
jl 0x531297
pop ebx
pop edi
add esp, 0x400
ret
Function at 0x540510
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5ee114]
push ebp
push esi
push edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
mov esi, ecx
mov ecx, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00540380
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00540440
xor ebp, ebp
lea ecx, [ecx]
movzx edx, byte [esp + ebp + 0xc]
push edx
lea eax, [esp + 0x84]
push str._02X
push eax
call fcn.0055e68c
lea eax, [esp + 0x8c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5405a4
mov edi, 0x7697a0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5405b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x540580
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov eax, 0x7697a0
pop ebp
call fcn.00561549
add esp, 0x6c
ret 8

Function at 0x5405f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5ee114]
mov dword [esp + 0x58], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00540380
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.00540440
mov ecx, dword [esp + 0x5c]
pop esi
call fcn.00561549
add esp, 0x5c
ret 0xc
Function at 0x541b90
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5ee114]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x224]
push edi
push ebp
mov dword [esp + 0x220], eax
lea eax, [esp + 0x20]
push str._s_s
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x541c26
push edi
push ebp
lea edx, [esp + 0x20]
push 0x5921f0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push closesocket
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x541c26
xor al, al
jmp 0x541ca3
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x10]
shl edi, 0x10
or edi, eax
push edi
call fcn.0055e5a9
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x541c62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
push edi
push eax
mov ecx, ebx
call fcn.00540510
movzx ecx, byte [esp + 0x228]
imul ecx, ecx, 0x21
lea edx, [ecx + ebx + 8]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x541c80
mov eax, dword [ebx + 4]
test eax, eax
je 0x541ca1
push eax
call fcn.0055f7e2
add esp, 4
mov dword [ebx + 4], 0
mov al, 1
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00561549
add esp, 0x20c
ret 0xc
Function at 0x541de0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x570c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x5ee114]
push ebx
push ebp
mov dword [esp + 0x118], eax
lea eax, [esp + 0xc]
push esi
push eax
mov ebp, ecx
call fcn.00541cc0
add esp, 4
mov eax, dword [eax]
push 0
push 0x57dac8
push eax
mov ecx, ebp
mov dword [esp + 0x134], 0
call fcn.00541b90
mov bl, al
mov eax, dword [esp + 0x10]
neg bl
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x541e66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x541f48
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGun586
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x541ec6
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.Location
push ecx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x541f2d
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGun586
push reloc.WS2_32.dll_getsockname
call esi
test eax, eax
jne 0x541f18
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.Location
push ecx
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x541f2d
mov ax, word [0x57daa8]
mov cl, byte [0x57daaa]
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], cl
push 0
push 0x57dac8
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00541b90
test al, al
je 0x541fc8
push 0x21
call fcn.0055e5a4
mov dword [ebp + 4], eax
add esp, 4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
lea eax, [ebp + 8]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x541f73
push edi
mov edi, dword [ebp + 4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x541f83
mov edx, dword [esp + 0x134]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push 0x20
push eax
mov ecx, ebp
call fcn.005405f0
mov eax, dword [ebp + 4]
test eax, eax
pop edi
je 0x541fc6
push eax
call fcn.0055f7dd
add esp, 4
mov dword [ebp + 4], 0
mov al, 1
mov ecx, dword [esp + 0x120]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x114]
pop ebx
call fcn.00561549
add esp, 0x120
ret 4
Function at 0x546c20
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x570d04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x11b4]
mov dword [esp + 0x14], 1
call fcn.0054bea0
lea ecx, [esi + 0x105c]
mov byte [esp + 0x14], 0
call fcn.0054cfc0
add esi, 0x20
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x546daf
push ebp
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x546ca4
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x5e50ac
ja 0x546ca9
mov eax, 0x887fcc
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x5e5054
lea ebp, [esi + 0x1c]
call fcn.0054d670
add esp, 4
push eax
push ebp
call fcn.0055e68c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x546d47
test ecx, ecx
jle 0x546d77
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x546d29
jmp 0x546d77
test ecx, ecx
jle 0x546d77
mov edi, 0xffffffe4
push ebx
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x76
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x546d55
pop ebx
cmp dword [esi + 0x1034], 0x3e7
je 0x546d95
lea eax, [esp + 0x10]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebp
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5488b0
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.00561be0
push ebx
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x548a35
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x5488f7
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x5488f7
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
ja 0x548a35
inc ecx
mov dword [esi + 0x1038], ecx
lea ebx, [esi + 4]
push ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005602b7
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, fcn.0055e68c
cmp byte [eax], 0xcc
je 0x548a2e
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x548a2e
xor eax, eax
push ebp
mov ax, word [esi + 0x102a]
lea edx, [esp + 0x14]
push edi
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1028]
xor edx, edx
mov dx, word [esi + 0x1026]
xor eax, eax
mov ax, word [esi + 0x1024]
push ecx
push edx
push eax
push 0x5e57ac
lea ebp, [esi + 0x1c]
call fcn.0054d670
add esp, 4
push eax
push ebp
call fcn.0055e68c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x5489de
test ecx, ecx
jle 0x548a08
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, 2
mov ebx, dword [esi + 0x1030]
add ebx, edx
mov dword [esi + 0x1030], ebx
add bl, 0x43
xor byte [eax], bl
inc eax
lea ebx, [edi + eax]
cmp ebx, ecx
jl 0x5489bd
mov ebx, dword [esp + 0x10]
jmp 0x548a08
test ecx, ecx
jle 0x548a08
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
add dl, 0x76
xor byte [eax], dl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x5489eb
lea eax, [esp + 0x14]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x1008
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebx
add esp, 0x1008
ret
Function at 0x548af0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebp
push esi
lea eax, [esp + 8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x5e586c
call fcn.0054d6e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5e5858
mov esi, eax
call fcn.0054d6e0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x548b79
push 0x5e5840
call fcn.0054d6e0
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x548b79
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x548b66
jne 0x548b7d
cmp dword [esp + 0x14], 1
jae 0x548b7d
pop edi
mov byte [ebp + 0x127c], 1
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 2
jne 0x548bb3
cmp eax, 5
mov byte [0x887f92], 1
jne 0x548ba7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x548ba7
mov ecx, dword [0x5e503c]
lea edx, [ecx + ecx]
mov dword [0x5e503c], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x94
ret
Function at 0x549080
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x54908e
mov al, 1
pop esi
ret
push edi
push 0x5e5a38
lea edi, [esi + 0x20]
call fcn.0054d6e0
add esp, 4
push eax
push edi
call fcn.005488b0
mov ecx, dword [esi + 0x11fc]
lea eax, [esi + 0x1228]
push eax
push ecx
call dword [esi + 0x1284]
mov eax, dword [esi + 0x14]
add esp, 0x10
test eax, eax
mov byte [esi + 0x1c], 0
je 0x5490cf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1224]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x54910e
push 0x5e5a20
call fcn.0054d6e0
add esp, 4
push eax
push edi
call fcn.005488b0
mov eax, dword [esi + 0x1224]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1220]
test eax, eax
je 0x54912c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5e5a0c
mov dword [esi + 0x1280], 0
mov dword [esi + 0x1284], 0
call fcn.0054d6e0
add esp, 4
push eax
push edi
call fcn.005488b0
add esp, 8
mov al, 1
pop edi
pop esi
ret

Function at 0x549250
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x54929b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x54929b
lea edi, [esp + 0x10]
push 0x5e5a90
call fcn.0054d6e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x549303
push 0x5e5a84
call fcn.0054d6e0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x549303
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5e5a60
call fcn.0054d6e0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.005488b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x549323
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x549349
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x549360
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x5493ab
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x5493ab
lea edi, [esp + 0x10]
push 0x5e58a0
call fcn.0054d6e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x549413
push 0x5e5894
call fcn.0054d6e0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x549413
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5e5ac0
call fcn.0054d6e0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.005488b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x549460
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x549460
push 0x5e5aa4
call fcn.0054d6e0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.005488b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x549480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x887f91]
test al, al
je 0x549493
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x1269]
mov dword [ebp - 4], 0
test al, al
je 0x5494bb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x54a710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x570d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.0054db40
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.0054db90
test al, al
jne 0x54a7b2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov eax, dword [0x887f94]
test eax, eax
je 0x54a7b2
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x5e61c0
call fcn.0054d6e0
mov ecx, dword [0x887f94]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.005488b0
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5e618c
call fcn.0054d6e0
add esp, 4
push eax
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x54a859
cmp dword [esp + 0xc], 2
jne 0x54a819
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.0054d6e0
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x54a888
mov edx, dword [0x887f94]
test edx, edx
je 0x54a8bf
push ecx
push eax
push 0x5e6174
call fcn.0054d6e0
add esp, 4
push eax
mov eax, dword [0x887f94]
add eax, 0x20
push eax
jmp 0x54a8b7
mov ecx, dword [0x887f94]
test ecx, ecx
je 0x54a884
push eax
push 0x5e615c
call fcn.0054d6e0
mov ecx, dword [0x887f94]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.005488b0
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x54a8ea
mov edx, dword [0x887f94]
test edx, edx
je 0x54a8bf
push ecx
push eax
push 0x5e6144
call fcn.0054d6e0
mov edx, dword [0x887f94]
add esp, 4
add edx, 0x20
push eax
push edx
call fcn.005488b0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.0054db80
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.0054db80
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret