joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407743
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4077e0
push ebx
push esi
call fcn.0040770c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004076a0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40778d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4077df
push edi
push eax
call fcn.00408360
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4077ad
call fcn.00406201
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4077de
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004076a0
add esp, 0x20
test eax, eax
jne 0x4077cc
push edi
call fcn.00406201
jmp 0x4077d4
push ebx
call fcn.00406201
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408add
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411080
push 0x411078
push str.FlsAlloc
push 0x1f
call fcn.0040899c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b11
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f120]
call esi
jmp 0x408b17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408b5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411090
push 0x411088
push str.FlsGetValue
push 0x21
call fcn.0040899c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b92
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408b9a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411098
push 0x411090
push str.FlsSetValue
push 0x22
call fcn.0040899c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bd4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e05d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e05d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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 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 0x445788
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445860
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48a1ec], 0
jne 0x445844
lea eax, [ebp - 4]
mov edx, 0x445878
call fcn.0045ec7c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045f028
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x445844
mov eax, ebx
call fcn.0045da38
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44583d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x445827
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x445888
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x445827
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x48a1ec], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445844
mov eax, dword [ebp - 0xc]
call fcn.0045da50
ret
mov ebx, dword [0x48a1ec]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445867
lea eax, [ebp - 4]
call fcn.0045ebe4
ret

Function at 0x44b834
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x48a210], 0
jne 0x44b857
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x44b7b8
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x48a210], eax
ret

Function at 0x459648
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x459681
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0045eccc
jmp 0x45968a
mov eax, ebx
mov edx, esi
call fcn.0045ec38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x459694
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4596b5
mov al, byte [esp]
jmp 0x4596b7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45dc7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x45dcab
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0045eccc
jmp 0x45dcc9
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0045dc04
mov edi, eax
test ebx, ebx
je 0x45dcc9
cmp dword [esi], 0
je 0x45dcc9
dec ebx
jmp 0x45dcb2
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x467cb4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48b18c], 0
jne 0x467d35
cmp dword [0x48b1ac], 0
jne 0x467ce4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48b1ac], eax
test eax, eax
jne 0x467ce4
push str.GetEnvironmentStrings_failed
call fcn.00467534
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48b1ac]
jmp 0x467cf8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0046129c
pop ecx
mov edi, eax
test eax, eax
jne 0x467cf0
lea edi, [ebp + 1]
push edi
call fcn.00460cdc
pop ecx
mov ebx, eax
mov dword [0x48b190], ebx
test ebx, ebx
jne 0x467d22
xor eax, eax
jmp 0x467df8
push edi
mov edx, dword [0x48b1ac]
push edx
push ebx
call fcn.0046114c
add esp, 0xc
jmp 0x467d55
xor esi, esi
mov ebx, dword [0x48b18c]
jmp 0x467d4f
push eax
call fcn.0046129c
pop ecx
test eax, eax
jne 0x467d4b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x467d3f
lea ebx, [esi + 4]
push 4
mov dword [0x48b194], ebx
inc ebx
push ebx
call fcn.004607b4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x467d78
xor eax, eax
jmp 0x467df8
cmp dword [0x48b18c], 0
jne 0x467da9
xor esi, esi
mov ebx, dword [0x48b190]
mov eax, dword [esp]
mov ebp, eax
jmp 0x467d9a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0046129c
pop ecx
mov edi, eax
test eax, eax
jne 0x467d90
jmp 0x467dda
xor esi, esi
mov ebx, dword [0x48b18c]
mov eax, dword [esp]
mov edi, eax
jmp 0x467dd4
push eax
call fcn.0046129c
pop ecx
test eax, eax
je 0x467dc9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x467dcd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x467db8
mov eax, dword [0x48b18c]
test eax, eax
je 0x467dea
push eax
call fcn.00460cec
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48b18c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46e2a4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46e2d2
mov eax, ebx
call fcn.0046ed48
cmp dword [ebx + 0x3c], 0
je 0x46e2cb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46e343
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x46e335
cmp dword [ebx + 8], 0
je 0x46e2f4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x46e306
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46e335
cmp dword [ebx + 8], 0
je 0x46e2e7
cmp eax, 3
je 0x46e319
dec eax
jne 0x46e2e7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46e2e7
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x46e2e7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46e361
cmp dword [ebx + 0x10], 0xcc
je 0x46e361
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046e36c
pop ebx
ret
Function at 0x401f21
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_gethostbyname]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x401f63
push 6
call fcn.0052f6e1
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402097
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x54b2c1]
fstp qword [ebp - 0x1c]
push 0x80000301
push 0
push 2
fld qword [ebp - 0x1c]
call fcn.00401efa
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.005300a0
add esp, 0x1c
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 2
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x401fd8
mov eax, 0x54b2c9
push eax
push 3
mov ebx, 0x19c
call fcn.005301f0
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402004
push ebx
call fcn.0052f6db
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x80000101
jne 0x40201c
and eax, 0xff
jmp 0x402064
cmp ecx, 0x80000201
je 0x402064
cmp ecx, 0x80000301
je 0x402064
cmp ecx, 0x80000401
je 0x402064
mov dword [ebp - 0x34], eax
cmp ecx, 0x80000501
je 0x402054
cmp ecx, 0x80000601
je 0x402059
push 2
call fcn.0052f6e1
add esp, 4
fld dword [ebp - 0x34]
jmp 0x40205f
mov dword [ebp - 0x30], edx
fld qword [ebp - 0x34]
call fcn.00401efa
mov word [ebp - 8], ax
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x54b2d1]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401efa
push eax
call fcn.004020a5
push eax
call fcn.004020a5
push eax
call fcn.004020a5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x40209f
mov esp, ebp
pop ebp
ret 4

Function at 0x40265f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x80000301
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x1bc
call fcn.00530050
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40269d
push ebx
call fcn.0052f6db
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4026ba
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4026da
push 6
call fcn.0052f6e1
add esp, 4
jmp 0x4026df
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404bf1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push VariantCopy
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x404c2b
mov eax, 0x54b2c9
push eax
push 1
mov ebx, 0x194
call fcn.00530940
add esp, 0x10
mov dword [ebp - 4], eax
push VariantCopy
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0xc
mov eax, 0x535210
call fcn.0052f9f0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jge 0x404d31
fild dword [ebp - 8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x20]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
mov dword [ebp - 0x44], esp
push 0
fld qword [ebp - 0x40]
call fcn.00401efa
push eax
fld qword [ebp - 0x28]
call fcn.00401efa
push eax
push dword [0x62e378]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x404cd7
push 6
call fcn.0052f6e1
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x404cec
mov eax, dword [ebp - 0x10]
jmp 0x404d39
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401efa
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fsub qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401efa
mov dword [ebp - 4], eax
jmp 0x404c65
mov eax, dword [ebp - 0xc]
jmp 0x404d39
mov esp, ebp
pop ebp
ret 8
Function at 0x405e5b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x54b290
push 0x54b290
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x56e8ff
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x405ea1
push 6
call fcn.0052f6e1
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40c2a5
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 0x40c2e5
push 6
call fcn.0052f6e1
add esp, 4
jmp 0x40c2ea
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40c2f0
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 0x40c330
push 6
call fcn.0052f6e1
add esp, 4
jmp 0x40c335
mov esp, ebp
pop ebp
ret 0x14
Function at 0x51835e
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 0x518399
push 6
call fcn.0052f6e1
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.00530080
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5183fc
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00530fe0
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 0x518420
push 6
call fcn.0052f6e1
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.00530080
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x518483
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00530fe0
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 0x5184a7
push 6
call fcn.0052f6e1
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.00530080
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x51850a
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00530fe0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x518512
mov esp, ebp
pop ebp
ret
Function at 0x51b3d9
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 0x51b41f
push 6
call fcn.0052f6e1
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x56e8e6]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401efa
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00531030
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51b472
push ebx
call fcn.0052f6db
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 0x51b4ab
push 6
call fcn.0052f6e1
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x51b4c7
push eax
mov ebx, eax
call fcn.00401378
inc eax
push eax
call fcn.0052f6d5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x51b4cc
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51b4dd
push ebx
call fcn.0052f6db
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x530ba0
Capabilities:
Encode data using xor

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

Function at 0x530dd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x530e53
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x530e53
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 0x530e46
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 0x531b40
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 0x531b59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00534da0
add esp, 4
test eax, eax
jne 0x531b6e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x531b88
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x531b88
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 0x531c70
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 0x531bc0
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 0x531bd7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x531bdb
mov esi, dword [esp + 0x2c]
push esi
call fcn.0053c14c
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 0x531c14
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.0053bb32
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 0x531c30
mov al, byte [ecx]
test al, al
je 0x531c30
cmp al, 0x1a
je 0x531c30
inc edi
inc ecx
cmp edi, edx
jb 0x531c20
lea ecx, [edi + 1]
push ecx
call fcn.0052f870
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.0053bf70
push ebx
mov byte [edi + esi], 0
call fcn.0053bb32
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x531ceb
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x531c8a
or eax, 0xffffffff
jmp 0x531c8e
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 0x531cbd
mov cl, byte [edx]
test cl, cl
je 0x531cbd
cmp cl, 0x1a
je 0x531cbd
inc edi
inc edx
cmp edi, eax
jb 0x531cac
lea edx, [edi + 1]
push edx
call fcn.0052f870
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.0053bf70
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 0x531ff0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0053c14c
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 0x53205a
push esi
lea edi, [eax + 0x400]
call fcn.0053bb32
push edi
call fcn.0053c14c
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 0x53202a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x532076
push ecx
push esi
call fcn.00533e90
add esp, 8
mov ebx, eax
push esi
call fcn.0053bb32
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret