joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7414
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x50
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x52]
xor ebx, ebx
cmp al, bl
je 0x4d751d
call fcn.004d3b30
cmp byte [eax + 0x8c], bl
jne 0x4d751d
cmp byte [esi + 0x50], bl
je 0x4d751d
push edi
call fcn.004d3b30
mov eax, dword [eax + 0x88]
cmp eax, 9
je 0x4d74bf
cmp eax, 0xd
je 0x4d747d
cmp eax, 0x1b
jne 0x4d7510
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], 0x3000004
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edi, [esp + 0xc]
jmp 0x4d7509
cmp byte [esi + 0x28], bl
je 0x4d749f
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], 0x3000001
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x1c]
jmp 0x4d7509
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], 0x3000002
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x2c]
jmp 0x4d7509
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x4d74eb
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x3c], 0x3000002
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
lea edi, [esp + 0x3c]
jmp 0x4d7509
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x4c], 0x3000002
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
lea edi, [esp + 0x4c]
mov eax, esi
call fcn.0040b500
call fcn.004d3b30
mov byte [eax + 0x8c], 1
pop edi
pop esi
pop ebx
add esp, 0x50
ret
Function at 0x5056a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x4c]
and ecx, 0xff00
xor al, al
cmp ecx, 0xff00
sete cl
mov dl, cl
neg dl
push ebp
push edi
mov byte [esp + 0xa], al
mov byte [esp + 0xb], cl
sbb edx, edx
add edx, 6
mov ebp, edx
xor edi, edi
test ebp, ebp
jle 0x505835
push ebx
push esi
jmp 0x5056e0
mov cl, byte [esp + 0x13]
nop
test cl, cl
je 0x505796
mov ecx, dword [0x89e864]
mov edx, dword [ecx + edi*8 + 0x1a9a8]
lea eax, [esp + 0x18]
push eax
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
cmp byte [esp + 0x18], 0xff
jne 0x505826
mov ecx, dword [0x89e864]
mov edx, dword [ecx + edi*8 + 0x1a9b0]
lea eax, [esp + 0x28]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov al, byte [esp + 0x28]
xor al, byte [esp + 0x5c]
jne 0x505826
mov edx, dword [0x89e864]
mov eax, dword [edx + edi*8 + 0x1a9a8]
push 1
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x89e864]
mov eax, dword [edx + edi*8 + 0x1a9b0]
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
inc edi
jmp 0x505821
mov edx, dword [0x89e864]
mov eax, dword [edx + edi*8 + 0x1a9a8]
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
cmp byte [esp + 0x38], 0xff
jne 0x5057c4
inc edi
jmp 0x505826
mov edx, dword [0x89e864]
mov eax, dword [edx + edi*8 + 0x1a9a8]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
and ecx, 0xff
cmp eax, ecx
jne 0x505826
mov eax, dword [0x89e864]
mov ecx, dword [eax + edi*8 + 0x1a9a8]
push ebx
lea edx, [esp + 0x18]
push edx
push ecx
mov dword [esp + 0x20], 0
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov byte [esp + 0x12], 1
inc edi
cmp edi, ebp
jl 0x5056db
mov al, byte [esp + 0x12]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x48
ret 4
Function at 0x511180
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x89e864]
mov cl, byte [eax + 0x1aaa4]
sub esp, 0x88
cmp cl, 0xff
je 0x51129c
cmp byte [0x89eac0], 1
jne 0x51126a
push esi
push edi
mov edi, dword [0x89edf8]
push 0
push 0x21b
push 0xca
lea eax, [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.0040a950
mov eax, dword [0x89edf8]
mov cl, byte [eax + 8]
test cl, cl
je 0x5111ec
mov edx, dword [eax + 4]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x5111f1
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.005489b0
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.005489b0
push 0xf800
sub eax, esi
push 0xc
add eax, 2
push eax
push 0x21b
add esi, 0xca
push esi
call fcn.00548c10
push 0
lea ecx, [esp + 0x38]
push ecx
push 0x21c
push 0xcb
call fcn.0054b790
push 0xffe0
lea edx, [esp + 0x48]
push edx
push 0x21b
push 0xca
call fcn.0054b790
add esp, 0x44
pop edi
pop esi
add esp, 0x88
ret
push 0
push 0x89eac8
push 0x21c
push 0xcb
call fcn.0054b790
push 0xffff
push 0x89eac8
push 0x21b
push 0xca
call fcn.0054b790
add esp, 0x20
add esp, 0x88
ret

Function at 0x5112b0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x89edf8]
mov cl, byte [eax + 8]
sub esp, 0x104
test cl, cl
je 0x5112da
mov edx, dword [eax + 4]
push 0x80
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x5112df
mov byte [esp + 4], 0
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5112e6
mov ecx, dword [esp + 0x108]
sub eax, edx
mov dword [esp], eax
setne al
mov byte [ecx + 9], al
mov al, byte [esp + 0x10c]
test al, al
jne 0x51131f
mov edx, dword [0x89edf8]
mov eax, dword [edx + 4]
push 0x59c5cb
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 0x104
ret 8
Function at 0x513ab0
Capabilities:
Print debug messages

Disassembly:
push ecx
call fcn.0041ad40
mov edx, dword [eax + 4]
test edx, edx
je 0x513ad8
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 0x513ade
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.0041ad40
mov edx, dword [eax + 4]
test edx, edx
jne 0x513b12
xor eax, eax
jmp 0x513b28
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 0x513b42
push str.Error__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
pop ecx
ret 4
cmp eax, esi
jge 0x513b4c
mov dword [esp + 0xc], eax
mov esi, eax
push ebp
xor ebp, ebp
test esi, esi
jle 0x513bc9
push edi
lea edi, [ebx + 0xb0]
lea ebx, [ebx]
mov esi, dword [ebx + 0x98]
add esi, ebp
call fcn.0041ad40
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 0x513b87
xor edx, edx
jmp 0x513b8f
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x513bac
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x513bac
mov eax, dword [edi + 8]
mov dword [eax], esi
add eax, 4
mov dword [edi + 8], eax
jmp 0x513bbf
mov eax, dword [edi + 8]
push eax
push edi
lea eax, [esp + 0x14]
mov ecx, 1
call fcn.00434000
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x513b60
pop edi
pop ebp
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x53dd60
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 0x53dd70
push edi
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x53dd80
mov eax, dword [str.ServerListPos.ini]
mov ecx, dword [0x5a4400]
mov edx, dword [0x5a4404]
mov dword [edi], eax
mov eax, dword [0x5a4408]
mov dword [edi + 4], ecx
mov cx, word [0x5a440c]
mov dword [edi + 8], edx
mov dl, byte [0x5a440e]
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 0x59dd04
push str.WorldList
mov dword [esi + 0xc8], eax
call edi
lea edx, [esp + 4]
push edx
push 0
push 0x5a43e4
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.0056ae14
mov dword [esi + 0xe4], eax
add esp, 4
xor edx, edx
xor eax, eax
test edi, edi
jle 0x53def0
push ebx
mov ecx, eax
and ecx, 1
jne 0x53dea3
test eax, eax
je 0x53dea3
inc edx
test ecx, ecx
jne 0x53deb8
mov ecx, dword [esi + 0xe4]
mov ebx, dword [esi + 0xcc]
mov dword [ecx + eax*8], ebx
jmp 0x53decf
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 0x53de97
pop ebx
pop edi
add esp, 0x400
ret
Function at 0x54cd70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5fa134]
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.0054cbe0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0054cca0
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.0056aefc
lea eax, [esp + 0x8c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54ce04
mov edi, 0x775860
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x54ce15
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 0x54cde0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov eax, 0x775860
pop ebp
call fcn.0056ddb9
add esp, 0x6c
ret 8

Function at 0x54ce50
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5fa134]
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.0054cbe0
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.0054cca0
mov ecx, dword [esp + 0x5c]
pop esi
call fcn.0056ddb9
add esp, 0x5c
ret 0xc
Function at 0x54e3c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5fa134]
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 0x54e456
push edi
push ebp
lea edx, [esp + 0x20]
push 0x59d814
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 0x54e456
xor al, al
jmp 0x54e4d3
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.0056ae19
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 0x54e492
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
push edi
push eax
mov ecx, ebx
call fcn.0054cd70
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 0x54e4b0
mov eax, dword [ebx + 4]
test eax, eax
je 0x54e4d1
push eax
call fcn.0056c052
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.0056ddb9
add esp, 0x20c
ret 0xc
Function at 0x54e610
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57d48b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x5fa134]
push ebx
push ebp
mov dword [esp + 0x118], eax
lea eax, [esp + 0xc]
push esi
push eax
mov ebp, ecx
call fcn.0054e4f0
add esp, 4
mov eax, dword [eax]
push 0
push 0x58aabc
push eax
mov ecx, ebp
mov dword [esp + 0x134], 0
call fcn.0054e3c0
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 0x54e696
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x54e778
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunboundWC
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x54e6f6
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 0x54e75d
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunboundWC
push reloc.WS2_32.dll_getsockname
call esi
test eax, eax
jne 0x54e748
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 0x54e75d
mov ax, word [0x58aa9c]
mov cl, byte [0x58aa9e]
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], cl
push 0
push 0x58aabc
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.0054e3c0
test al, al
je 0x54e7f8
push 0x21
call fcn.0056ae14
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 0x54e7a3
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 0x54e7b3
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.0054ce50
mov eax, dword [ebp + 4]
test eax, eax
pop edi
je 0x54e7f6
push eax
call fcn.0056c04d
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.0056ddb9
add esp, 0x120
ret 4
Function at 0x553490
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x57d574
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.00558710
lea ecx, [esi + 0x105c]
mov byte [esp + 0x14], 0
call fcn.00559830
add esi, 0x20
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x55361f
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 0x553514
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x5f10cc
ja 0x553519
mov eax, 0x89408c
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 0x5f1074
lea ebp, [esi + 0x1c]
call fcn.00559ee0
add esp, 4
push eax
push ebp
call fcn.0056aefc
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 0x5535b7
test ecx, ecx
jle 0x5535e7
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 0x553599
jmp 0x5535e7
test ecx, ecx
jle 0x5535e7
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 0x5535c5
pop ebx
cmp dword [esi + 0x1034], 0x3e7
je 0x553605
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 0x555120
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.0056e450
push ebx
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x5552a5
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x555167
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x555167
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
ja 0x5552a5
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.0056cb27
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, fcn.0056aefc
cmp byte [eax], 0xcc
je 0x55529e
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x55529e
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 0x5f17cc
lea ebp, [esi + 0x1c]
call fcn.00559ee0
add esp, 4
push eax
push ebp
call fcn.0056aefc
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 0x55524e
test ecx, ecx
jle 0x555278
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 0x55522d
mov ebx, dword [esp + 0x10]
jmp 0x555278
test ecx, ecx
jle 0x555278
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 0x55525b
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 0x555360
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 0x5f188c
call fcn.00559f50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5f1878
mov esi, eax
call fcn.00559f50
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x5553e9
push 0x5f1860
call fcn.00559f50
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x5553e9
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x5553d6
jne 0x5553ed
cmp dword [esp + 0x14], 1
jae 0x5553ed
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 0x555423
cmp eax, 5
mov byte [0x894052], 1
jne 0x555417
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x555417
mov ecx, dword [0x5f105c]
lea edx, [ecx + ecx]
mov dword [0x5f105c], 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