joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5740
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov eax, dword [ecx]
push edi
cmp eax, 1
jl 0x4f575b
cmp eax, 0x63
jg 0x4f575b
mov ebp, 1
jmp 0x4f5786
cmp eax, 0x64
jl 0x4f576e
cmp eax, 0xc7
jg 0x4f576e
mov ebp, 2
jmp 0x4f5786
cmp eax, 0xc8
jl 0x4f5781
cmp eax, 0x12b
mov ebp, 3
jle 0x4f5786
mov ebp, 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
test edx, edx
mov dword [ebx], 0xffffffff
je 0x4f57ac
cmp eax, 7
je 0x4f57a2
cmp eax, 8
jne 0x4f57ac
pop edi
pop esi
pop ebp
mov eax, 0xfffffff4
pop ebx
ret
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x4f57bd
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
mov esi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
push 0x6b61a0
call esi
mov eax, dword [0x6a5d64]
test eax, eax
jne 0x4f57ea
push 0x6b61a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edi, 0xffffffcd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x6b6180
call esi
push 0x6b61a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
cmp ebp, 1
je 0x4f580a
cmp ebp, 4
je 0x4f580a
xor eax, eax
jmp 0x4f580f
mov eax, 1
mov ecx, dword [esp + 0x20]
push 0x4f5960
or eax, ecx
push eax
push 0x1d8
push 1
call fcn.004f35f0
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x4f5875
cmp edi, dword [0x6865cc]
jge 0x4f584f
mov ecx, dword [0x6b6178]
mov eax, edi
shl eax, 5
add eax, ecx
cmp dword [eax], 1
jne 0x4f584f
mov esi, dword [eax + 4]
jmp 0x4f5851
xor esi, esi
lea ebx, [esi + 0x1bc]
push ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push ebx
mov dword [esi + 0x1d4], 1
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x14]
jmp 0x4f5879
mov esi, dword [esp + 0x14]
push 0x6b6180
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test edi, edi
jge 0x4f588f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [ebx], edi
mov edi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebp
mov edx, dword [ebx]
or eax, 0xffffffff
cmp ebp, 2
mov dword [esi + 0x1b4], edx
mov dword [esi + 0x19c], eax
mov dword [esi + 0x1a0], eax
jne 0x4f5900
mov dword [esi + 0x5c], eax
mov dword [esi + 0x10], 0
call fcn.004ec430
mov dword [esi + 0x28], eax
call fcn.004ec430
mov dword [esi + 0x2c], eax
call fcn.004ec430
mov dword [esi + 0x30], eax
call fcn.004ec430
mov dword [esi + 0x34], eax
call fcn.004ec430
mov dword [esi + 0x38], eax
call fcn.004ec430
mov dword [esi + 0x3c], eax
call fcn.004ec430
mov dword [esi + 0x40], eax
call fcn.004ec430
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4f5945
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call eax
mov edi, eax
add esp, 8
test edi, edi
jge 0x4f5945
add esi, 0x1bc
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebx]
push 0
push 0
push 0
push 0x13
push edx
call fcn.004f3800
add esp, 0x14
mov eax, edi
mov dword [ebx], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
add esi, 0x1bc
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x509fde
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], eax
xor ecx, ecx
mov dl, 1
shl dl, cl
inc ecx
cmp ecx, 8
mov byte [esi + ecx + 3], dl
jl 0x509fe8
mov dl, al
rol dl, 4
mov cl, dl
mov bl, dl
shr cl, 2
shl bl, 2
xor cl, bl
shl dl, 2
and cl, 0x33
xor cl, dl
mov dl, cl
shr dl, 1
mov bl, cl
add bl, bl
xor dl, bl
and dl, 0x55
add cl, cl
xor dl, cl
mov byte [esi + eax + 0xc], dl
inc eax
cmp eax, 0x100
jl 0x509ff6
mov eax, esi
pop esi
pop ebx
ret
Function at 0x50b706
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
cmp dword [ebp + 8], edx
mov dword [ebp - 4], ecx
jne 0x50b71b
xor eax, eax
jmp 0x50b809
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
add esi, dword [ebp + 8]
push edi
mov edi, ebx
push 8
sub ecx, ebx
and edi, 7
pop eax
sub eax, edi
inc ecx
cmp eax, ecx
mov dword [ebp + 8], eax
jb 0x50b745
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 8
jne 0x50b74e
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x18]
and eax, 7
inc eax
cmp eax, ecx
mov dword [ebp + 0xc], eax
jb 0x50b75f
mov dword [ebp + 0xc], ecx
mov eax, ebx
xor eax, dword [ebp + 0x18]
test eax, 0xfffffff8
jne 0x50b76e
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
add eax, ebx
cmp ebx, eax
mov dword [ebp + 0x10], eax
jae 0x50b7a3
mov edx, dword [ebp - 4]
mov eax, ebx
mov edi, ebx
shr eax, 3
not edi
and edi, 7
mov dl, byte [edx + edi + 4]
add eax, esi
cmp dword [ebp + 0x1c], 0
je 0x50b799
or byte [eax], dl
jmp 0x50b79d
not dl
and byte [eax], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x50b77a
xor edi, edi
cmp ecx, 8
jbe 0x50b7d5
sub ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
shr ecx, 3
mov edi, ecx
je 0x50b7d5
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
and eax, 0xff
push edi
push eax
mov eax, ebx
shr eax, 3
add eax, esi
push eax
call fcn.005a3bb0
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x50b7fe
mov edi, dword [ebp - 4]
mov eax, edx
mov ecx, edx
shr eax, 3
not ecx
and ecx, 7
mov cl, byte [edi + ecx + 4]
add eax, esi
cmp dword [ebp + 0x1c], 0
je 0x50b7f9
or byte [eax], cl
jmp 0x50b7fd
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x50b7da
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x18

Function at 0x50f81c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
xor ebx, ebx
mov dword [edi], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50f88f
dec ecx
je 0x50f87d
dec ecx
je 0x50f85b
dec ecx
jne 0x50f863
cmp byte [eax + 0x129], bl
je 0x50f84c
push dword [eax + 0xc]
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
mov eax, dword [esi + 4]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.kernel32.dll_GetFileSize]
jmp 0x50f8b3
cmp dword [eax + 0x140], ebx
jne 0x50f867
xor al, al
jmp 0x50f8b7
mov esi, eax
push edi
push dword [esi + 0x14c]
call dword [esi + 0x140]
test eax, eax
setne al
jmp 0x50f8b7
cmp byte [eax + 0x129], bl
je 0x50f88a
mov eax, dword [eax + 0x20]
jmp 0x50f8b3
mov eax, dword [eax + 0x18]
jmp 0x50f8b3
cmp byte [eax + 0x129], bl
je 0x50f8a0
push dword [eax + 8]
call fcn.005a4694
pop ecx
mov eax, dword [esi + 4]
push dword [eax + 8]
call fcn.005a44e9
push eax
call fcn.005a43ea
pop ecx
pop ecx
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x50f94d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50f9f0
dec ecx
je 0x50f9ab
dec ecx
je 0x50f988
dec ecx
jne 0x50f991
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 4]
jmp 0x50fa03
cmp dword [eax + 0x130], 0
jne 0x50f995
xor eax, eax
jmp 0x50fa03
mov esi, eax
push dword [esi + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [esi + 0x130]
jmp 0x50fa03
cmp byte [eax + 0x129], 0
push edi
mov edi, dword [ebp + 0xc]
mov ecx, eax
je 0x50f9bf
mov eax, dword [ecx + 0x20]
jmp 0x50f9c2
mov eax, dword [ecx + 0x18]
sub eax, dword [ecx + 0x1c]
cmp eax, edi
jae 0x50f9cb
mov edi, eax
test edi, edi
jbe 0x50f9eb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x14]
push edi
push ecx
push dword [ebp + 8]
call fcn.005a34c0
mov esi, dword [esi + 4]
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
jmp 0x50fa03
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005a210e
add esp, 0x10
pop esi
leave
ret 8

Function at 0x50fb4b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0x129], 0
push edi
jne 0x50fb66
xor al, al
jmp 0x50fc40
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50fc24
dec ecx
je 0x50fbdd
dec ecx
je 0x50fbb4
dec ecx
jne 0x50fb5f
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 4], esi
jne 0x50fbad
test al, al
je 0x50fbad
xor eax, eax
inc eax
jmp 0x50fc40
xor eax, eax
jmp 0x50fc40
cmp dword [eax + 0x134], 0
je 0x50fb5f
mov esi, eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push dword [esi + 0x14c]
push eax
push dword [ebp + 8]
call dword [esi + 0x134]
test eax, eax
setne al
jmp 0x50fc40
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
add ecx, edi
cmp ecx, dword [eax + 0x18]
jae 0x50fb5f
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x14]
push edi
push dword [ebp + 8]
push ecx
call fcn.005a34c0
mov eax, dword [esi + 4]
add dword [eax + 0x1c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
add esp, 0xc
cmp ecx, eax
jbe 0x50fc1a
mov eax, ecx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x20], eax
mov al, 1
jmp 0x50fc40
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005a13d9
sub eax, dword [ebp + 0x10]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x511350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd14b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x104
push ebx
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x108]
cmp dword [eax], 0xffffffff
je 0x5114f3
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5114f3
push 0x24
call fcn.0055dbcb
add esp, 4
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x5113fd
mov ecx, dword [ebp - 0x20]
call fcn.00511520
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
jmp 0x511407
mov dword [ebp - 0x114], 0
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx]
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x51145f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
push 0x6626f0
lea eax, [ebp - 0x24]
push eax
call fcn.005a3b61
mov ecx, dword [ebp - 0x108]
add ecx, 0x10
push ecx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x108]
add edx, 4
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x94], edx
mov eax, 1
test eax, eax
je 0x5114ba
cmp dword [ebp - 0x104], 0
jne 0x5114ba
call fcn.005a3b51
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x98], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.005116e0
mov edx, dword [ebp - 0x108]
add edx, 0x10
push edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x511502
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x511b00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd1f0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x511b54
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
jmp 0x511b63
mov dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x511b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd210
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10c]
cmp dword [eax], 0xffffffff
je 0x511cab
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x511cab
push 0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x511c34
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
push 0x6626f0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.005a3b61
mov edx, dword [ebp - 0x10c]
add edx, 0x10
push edx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10c]
add ecx, 4
call fcn.005120c0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x511c91
mov ecx, dword [ebp - 0x24]
call fcn.00511cd0
mov eax, 1
and eax, 1
je 0x511c86
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0055dbfb
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x110], edx
jmp 0x511c9b
mov dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x10c]
add eax, 0x10
push eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x511cb3
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522247
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x5fd6e9
call fcn.005a4d20
sub esp, 0xc
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
mov dword [ebp - 0x10], esp
je 0x5222d4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x5222d4
push 0x4c
call fcn.0055dbcb
test eax, eax
pop ecx
je 0x52228e
mov ecx, eax
call fcn.005220ed
jmp 0x522290
xor eax, eax
push eax
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x5222b7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x6626f0
lea eax, [ebp - 0x18]
push eax
call fcn.005a3b61
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 4]
call fcn.0052221e
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x5286a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6963f4]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.005283b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5286c8
xor eax, eax
jmp 0x5287c0
mov eax, dword [ebp - 4]
mov dword [eax], 0xb
push 0xc
call fcn.00523ea0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5286f7
mov ecx, dword [ebp - 4]
push ecx
call fcn.005288a0
add esp, 4
xor eax, eax
jmp 0x5287c0
mov edx, dword [ebp - 8]
mov dword [edx], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x38], eax
lea ecx, [ebp - 0x118]
push ecx
push 0x101
call dword [sym.imp.kernel32.dll_GetTempPathA]
push 0x68ca48
lea edx, [ebp - 0x118]
push edx
call fcn.005a6111
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x1b6
push 0x8702
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call fcn.005a5f42
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jge 0x52877f
mov eax, dword [ebp - 4]
push eax
call fcn.005288a0
add esp, 4
xor eax, eax
jmp 0x5287c0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.005a610c
add esp, 4
test eax, eax
je 0x5287a1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
push 0
push 0
push 2
mov eax, dword [ebp - 4]
push eax
call fcn.00529410
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], 0x68ca18
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0059e0c2
mov esp, ebp
pop ebp
ret
Function at 0x55da1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x55da2c
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x55db0d
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x61d460]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x61d460]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x61d460]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x61d460]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x61d460]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x61d460]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x61d460]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x61d460]
xor eax, esi
inc edx
dec edi
jne 0x55da49
pop ebx
cmp dword [ebp + 0x10], 0
je 0x55db2e
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x61d460]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x55db13
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x561a0d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x561a46
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005619d0
push eax
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d6d0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x5630d0
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x639ce8
mov ecx, edi
call fcn.004015d0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x563123
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x563136
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.005619d0
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0045d6d0
jmp 0x563136
mov ecx, esi
call fcn.00565090
test eax, eax
je 0x563136
push edi
mov ecx, eax
call fcn.00561a0d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8
Function at 0x56371a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x56375d
call fcn.00568851
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x56375d
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x563778
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.005632d1
test ebx, ebx
mov esi, eax
je 0x563776
test edi, edi
je 0x563776
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x563e51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x5fde55
call fcn.005a33e6
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00568851
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x563e9c
call fcn.00568851
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x563ead
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x563eba
or eax, 0xffffffff
jmp 0x564016
mov ecx, esi
call fcn.005639a3
mov dword [ebp - 0x14], eax
call fcn.0056078c
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x563f38
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x563f38
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x563f38
push 0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00401d70
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x563f38
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x563f38
mov ecx, ebx
call fcn.00565309
test eax, eax
je 0x563f38
push 0
mov ecx, ebx
call fcn.00565324
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.005624fb
push dword [ebp - 0x14]
call fcn.005606e4
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00563c59
xor edi, edi
cmp eax, edi
je 0x563f95
test byte [esi + 0x3c], 0x10
je 0x563f7f
push 4
pop edi
mov ecx, esi
call fcn.005651a3
test ax, 0x100
je 0x563f75
push 5
pop edi
push edi
mov ecx, esi
call fcn.005602ac
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x563f95
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.005654f3
or dword [ebp - 4], 0xffffffff
jmp 0x563fc0
cmp dword [ebp - 0x28], edi
je 0x563fce
push 1
mov ecx, ebx
call fcn.00565324
cmp dword [ebp - 0x2c], edi
je 0x563fde
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x563ff7
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x563ff7
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.005639dd
cmp dword [esi + 0x58], edi
je 0x564013
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.005a348b
ret