joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcbd0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x4bcbe0
mov esi, 1
push esi
call fcn.004d3197
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4bcc32
call fcn.004d3cad
mov edi, eax
call fcn.004bf720
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x4bcc16
mov edx, dword [0x5d6de0]
mov dword [0x5d6ddc], edx
test al, 0x18
je 0x4bcc27
push esi
push 0x24
push 5
call fcn.004bff70
add esp, 0xc
test edi, edi
je 0x4bcc4d
push 1
call fcn.004d4a17
test byte [esp + 0x14], 0x20
je 0x4bcc4d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4bdd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x4bde44
cmp byte [edx], 0
je 0x4bde37
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004bdcd0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004bdcd0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004bdc40
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x4bde01
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004bdc80
fmul qword [0x5b79e0]
push ecx
fstp qword [esp]
call fcn.004d1b08
fadd qword [0x5b79d8]
add esp, 8
call fcn.004d1bd8
mov byte [ebx], al
inc ebx
dec edi
jne 0x4bddd4
lea ecx, [esp + 0x20]
push ecx
call fcn.004bdc80
fmul qword [0x5b79e0]
push ecx
fstp qword [esp]
call fcn.004d1b08
add esp, 8
call fcn.004d1bd8
cmp esi, ebx
je 0x4bde2d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x4bde26
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4be210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4be240
mov byte [edi + esi], 2
jmp 0x4be277
test al, 4
je 0x4be24a
mov byte [edi + esi], 0xd
jmp 0x4be277
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4be263
mov byte [edi + esi], 2
jmp 0x4be277
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4be273
mov byte [edi + esi], 0x19
jmp 0x4be277
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4be227
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4be2eb
cmp dl, 0xd
je 0x4be2eb
xor edx, edx
jmp 0x4be2f0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4be2db
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4be310
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004bcbd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4be331
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.004bf960
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4be356
push esi
call fcn.004bcc60
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004d6210
push ebx
push edi
mov ebp, eax
call fcn.004bf9d0
push 0x4be390
push ebp
push esi
call fcn.004c0d00
push esi
call fcn.004bcc60
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x4bf4a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
call fcn.004bf500
test al, al
je 0x4bf4ef
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4bf4cb
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x4bf4dd
cmp word [esp], 2
je 0x4bf4e8
call sub.WS2_32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4bf4ef
mov byte [0x6a86c8], 1
xor al, al
add esp, 0x190
ret
Function at 0x4bf690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x6b3700
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6b3628]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4bf70b
push 0x4c
push 1
call fcn.004d40d5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bf6d3
push 0x6b3700
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x6b3628]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x6a86cc]
inc eax
lea edx, [esi + 0xc]
mov dword [0x6a86cc], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004c31d0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x6b3700
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4bfb90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004d3cad
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004d6210
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4bfc8a
call fcn.004d3cad
cmp dword [eax], 0
je 0x4bfbd7
call fcn.004d3cad
mov ebp, dword [eax]
jmp 0x4bfbda
or ebp, 0xffffffff
call fcn.004bf720
test esi, esi
mov dword [eax], ebp
jne 0x4bfbef
call fcn.004d3cad
cmp dword [eax], 4
je 0x4bfc3f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4bfc22
cmp esi, 0xffffffff
je 0x4bfc64
test al, 6
je 0x4bfc22
call fcn.004bf720
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004c3200
add esp, 4
push eax
push 0x24
push 9
call fcn.004bff70
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4bfc82
test al, 6
je 0x4bfc30
test ah, 2
je 0x4bfc82
test esi, esi
jbe 0x4bfc8e
test ah, 2
je 0x4bfc8e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004d3cad
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004d6210
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4bfc8a
jmp 0x4bfbc4
call fcn.004bf720
mov eax, dword [eax]
push eax
push ebx
call fcn.004c3200
add esp, 4
push eax
push 0x24
push 2
call fcn.004bff70
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4bfc9b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4bfca4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d5eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004d3c3a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4d5ed7
test byte [esp + 8], 2
je 0x4d5ed7
call fcn.004d3cad
mov dword [eax], 0xd
call fcn.004d3cb6
mov dword [eax], 5
jmp 0x4d5eb0
xor eax, eax
ret
Function at 0x4e79c5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e79fd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e5a7c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e5a54
jmp 0x4e7a09
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e90ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e90fc
call fcn.004eeb74
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e90fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e90f3
xor eax, eax
jmp 0x4e9104
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e910a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ef0a4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ef0d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ef0f0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ef00a
jmp 0x4ef0f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ef0f0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ef00a
test edi, edi
mov eax, edi
jne 0x4ef0da
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438c97
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub ecx, 0x87056968
call fcn.00438cde
and edx, edx
xor dword [ebx], esi
sub ecx, edx
add ecx, 0x3c811bbf
add ebx, 1
mov edx, 0xa457237f
mov ecx, 0xf7fee0c6
cmp ebx, edi
jne fcn.00438c97
and ecx, edx
sub ecx, 0x4392a0ef
sub ecx, 1
ret
Function at 0x402e5a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040300a
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x402f58
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402efb
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x402f3e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x402f12
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x402f2d
test al, 0x40
je 0x402f24
mov ecx, dword [edi + 0x20]
jmp 0x402f2b
test al, 0x80
je 0x402f3e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x402f3e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x402eca
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4077be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x5c33bb
push 0x5c33bb
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x5e6ae8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x407804
push 6
call fcn.005a1d9c
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa38
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40aa78
push 6
call fcn.005a1d9c
add esp, 4
jmp 0x40aa7d
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40aa83
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40aac3
push 6
call fcn.005a1d9c
add esp, 4
jmp 0x40aac8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x58eef0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x58ef2b
push 6
call fcn.005a1d9c
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.005a2c00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x58ef8e
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.005a30f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x58efb2
push 6
call fcn.005a1d9c
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.005a2c00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x58f015
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.005a30f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x58f039
push 6
call fcn.005a1d9c
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.005a2c00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x58f09c
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.005a30f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x58f0a4
mov esp, ebp
pop ebp
ret
Function at 0x591ff3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x592039
push 6
call fcn.005a1d9c
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x5d0e0a]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004018da
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.005a3140
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x59208c
push ebx
call fcn.005a1d96
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x5920c5
push 6
call fcn.005a1d9c
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x5920e1
push eax
mov ebx, eax
call fcn.0040125a
inc eax
push eax
call fcn.005a1d90
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5920e6
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x5920f7
push ebx
call fcn.005a1d96
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x5a2a70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x5a2a8e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x5a2a83
pop esi
ret

Function at 0x5a3750
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x5a37d3
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5a37d3
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x5a37c6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x5a41e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x5a41f9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.005a5e30
add esp, 4
test eax, eax
jne 0x5a420e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x5a4228
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x5a4228
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x5a4310
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x5a4260
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x5a4277
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x5a427b
mov esi, dword [esp + 0x2c]
push esi
call fcn.005b6c16
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a42b4
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.005b6c3f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x5a42d0
mov al, byte [ecx]
test al, al
je 0x5a42d0
cmp al, 0x1a
je 0x5a42d0
inc edi
inc ecx
cmp edi, edx
jb 0x5a42c0
lea ecx, [edi + 1]
push ecx
call fcn.005a1fb0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.005ab4b0
push ebx
mov byte [edi + esi], 0
call fcn.005b6c3f
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x5a438b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x5a432a
or eax, 0xffffffff
jmp 0x5a432e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x5a435d
mov cl, byte [edx]
test cl, cl
je 0x5a435d
cmp cl, 0x1a
je 0x5a435d
inc edi
inc edx
cmp edi, eax
jb 0x5a434c
lea edx, [edi + 1]
push edx
call fcn.005a1fb0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.005ab4b0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5a43f0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.005b6c16
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x5a445a
push esi
lea edi, [eax + 0x400]
call fcn.005b6c3f
push edi
call fcn.005b6c16
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x5a442a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5a4476
push ecx
push esi
call fcn.005a5710
add esp, 8
mov ebx, eax
push esi
call fcn.005b6c3f
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5a8390
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x67b68c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5a83a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5a83e4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x67b734]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5a8416
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5a841a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5a840b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5a8438
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5a843c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5a842d
xor ecx, ecx
mov eax, 0x67b69c
xor ebx, ebx
mov bl, byte [ecx + 0x67b744]
cmp byte [esp + ebx + 0x14], 0
je 0x5a8467
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x67b75c]
cmp byte [esp + ebx + 0x14], 0
je 0x5a847e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5a844e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5a83d7
lea edx, [esp + 0x84]
push edx
call fcn.005a84c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret