joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521846
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
pop esi
add byte [eax], al
ret
stc
jmp 0x52181e
pushal
clc
jmp 0x52182a
loopne 0x52185b
imul ebp, dword [edx - 6], 0x17e8
add byte [esp + esi*8 - 0x64], dh
call 0x521846
je 0x521825
pushfd
fld xword [ecx + 0xd]
stosd dword es:[edi], eax
loope 0x521833
imul ecx, dword [0xacfbe1ab], 0x70fa2911
mov esi, 0xec387771
sti
lodsb al, byte [esi]
adc dword [ecx], ebp
cli
jo 0x5217fc
jno 0x5218b7
cmp ah, ch
cwde
sub esi, ebp
test al, 0x5e
jmp 0x52185f
loope 0x521837
mov al, 0x5d
add esi, 0xffffffbd
jmp 0x52187b
cmp dword [esi], 0
clc
jmp 0x521899
je 0x521a81
stc
jmp 0x5218c5
adc ah, bl
invalid
mov ecx, esi
jmp 0x5218ed
add esi, 4
jmp 0x52190d
mov eax, dword [esi]
jmp 0x52193f
add eax, esi
jmp 0x521945
mov edx, dword [esi + 4]
jmp 0x521974
sub dword [eax], 0x17c29268
jmp 0x521993
add eax, 4
jmp 0x5219c1
fisub word [esi]
dec esi
sar bl, cl
adc eax, 0xf801ea83
sub edx, 1
clc
jmp 0x5219f0
lodsb al, byte [esi]
add dword [edi], ebp
push eax
pop esi
xchg ecx, eax
sar dword [ecx - 0x73468b85], 1
mov byte [0x2f451860], al
int3
jne 0x521948
jmp 0x5219fa
add esi, 8
jmp 0x521a24
sub dword [ecx], 1
stc
jb 0x521a4d
std
jbe 0x5219ba
pop ds
mov dword [0x8516f28a], eax
aad 0x7a
jl 0x5219d1
or dh, dl
retf
jne 0x5218f0
jb 0x521a5c
sal ch, 1
mov dword [ebp - 0x745b1c59], esi
fsubp st(3)
sbb al, 0x97
stc
adc al, 0x6d
adc dword [ecx], ecx
movsb byte es:[edi], byte [esi]
mov ebp, 0x50457867
xchg ecx, ecx
jl 0x521add
mov ebx, esi
jmp 0x521a7c
das
pop ss
or bl, byte [edx + 0x6009b45c]
add al, 0xf
cmp byte [esi - 0x18], cl
inc edx
add byte [eax], al
add bl, ch
or eax, 0x644194db
insd dword es:[edi], dx
sub dl, ah
test al, 0x66
and eax, 0x6193ad6f
call 0x521ac3
jmp 0x521a90
popal
stc
jb 0x521abe
or eax, 0x41b5a380
les esi, [ebp - 0x56]
pop ebp
mov esp, 0xc2315cee
invalid
jmp fcn.004fa728
add edx, dword [ebx - 0x7f]
jmp 0x521aee
call fcn.00521b47
add esp, 8
pop ebx
pop eax
mov esi, ebx
sub esi, 0x400000
je 0x521b46
mov edx, dword [eax + 4]
add edx, ebx
mov ecx, dword [eax + 8]
cmp ecx, 0
jle 0x521b46
mov eax, dword [edx]
add eax, ebx
mov edi, dword [edx + 4]
sub ecx, edi
push ecx
sub edi, 8
shr edi, 1
add edx, 8
xor ecx, ecx
cmp edi, 0
je 0x521b43
mov cx, word [edx]
add edx, 2
test ecx, 0xf000
je 0x521b40
and ecx, 0xfff
add ecx, eax
add dword [ecx], esi
dec edi
jmp 0x521b23
pop ecx
jmp 0x521b0a
ret

Function at 0x40896f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
sub eax, eax
call fcn.004089a1
or eax, eax
sub edi, 0xceaf79bc
xor dword [esi], ecx
inc edi
add edi, 0xa10a80ba
inc esi
cmp esi, ebx
jne fcn.0040896f
sub eax, eax
ret
Function at 0x4025a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcl eax, 0xac
add esi, 0x27
imul esi
ror esi, 0xf5
mov ebx, 0x50
not ebx
rcr ebx, 0x5d
inc eax
dec esi
neg ebx
add edi, 0x17
inc edx
imul esi
imul ebx
and ebx, 0x89
dec ebx
inc eax
inc eax
ror edx, 0x93
add edi, 0x22
not ebx
imul eax
add edi, 0xa3
bswap edx
dec esi
inc edx
not eax
rcr ebx, 0xd7
imul edi
sub eax, 0x4d
neg esi
rcr edx, 0x3e
inc esi
not edx
not ebx
neg edx
imul edx
neg ebx
inc eax
add ebx, 4
dec esi
inc ebx
ror esi, 0x4c
imul edx
dec eax
neg eax
bswap ebx
or ebx, 0xf0
and edx, 0xb3
not edi
xor ecx, ecx
xor edi, edi
not esi
inc eax
bswap edx
sbb eax, 0x31
imul esi
not edx
mov edi, 0xba
not edi
sbb edx, 0x99
not edx
and esi, 0x5a
not edx
rol eax, 0xfa
or esi, 0xf5
bswap edx
imul edx
not esi
mov edi, 0xdd
bswap esi
dec esi
bswap ebx
not eax
or eax, 0x35
not edx
dec edx
inc eax
rol esi, 0xc0
imul ebx
rcl edx, 0xaa
sbb eax, 0x49
not eax
bswap ebx
neg eax
sub eax, 0xad
rcl esi, 0x48
sbb edx, 0x68
bswap edi
rol edx, 0x40
not edx
inc eax
sub edi, 0x60
or eax, 0xe9
add ebx, 0x76
rcl eax, 0xaf
not edi
dec ebx
not eax
inc edx
neg ebx
add eax, 0x51
mov ecx, dword [ebp + 0xc]
inc ebx
ror eax, 0x47
mov eax, 0x2e
rcl esi, 0x88
inc ebx
rcr ebx, 0x7a
dec esi
imul esi
imul edx
dec esi
rcr esi, 0xd6
imul edi
ror eax, 0xbf
bswap ebx
inc ebx
inc eax
mov ebx, 0x8f
and esi, 0xc8
rol eax, 0x1f
not eax
and esi, 0xbb
dec eax
rcr eax, 0xb0
rcl eax, 0x4a
and esi, 0xde
sbb ebx, 0x34
dec edi
mov edi, 0x46
bswap eax
or edi, 0x1c
dec esi
rol eax, 0x70
or eax, 0x46
ror edi, 0x78
mov eax, 0x10
neg esi
sbb edx, 0xbf
rcl eax, 0x57
neg edi
and esi, 0xeb
not eax
neg eax
neg esi
rcl edx, 0x4c
sub edi, 0x69
imul esi
neg esi
inc esi
rcr eax, 0x10
bswap esi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, esi
xor eax, eax
not byte [edi]
mov ebx, eax
xor ebx, eax
xor eax, eax
xor eax, ebx
mov esi, eax
xor esi, esi
xor esi, ebx
xor esi, eax
mov ebx, eax
add byte [edi], 0x87
xor eax, esi
mov eax, ebx
xor eax, eax
mov esi, esi
mov esi, esi
xor esi, esi
mov ebx, eax
xor esi, eax
mov ebx, ebx
sub byte [edi], 0x54
xor esi, eax
xor esi, esi
mov eax, eax
mov esi, esi
xor eax, eax
mov ebx, ebx
xor eax, ebx
mov eax, ebx
xor eax, ebx
imul byte [edi]
inc edi
loop 0x402736
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407fba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c094]
jne 0x407fc4
repz ret
jmp fcn.0040c995
Function at 0x40e19d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040af5f
and dword [ebp - 4], 0
cmp dword [0x46d614], 0
mov ebx, eax
jne 0x40e24e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e2ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e2ff
push eax
call fcn.0040aeed
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46d614], eax
call esi
push eax
call fcn.0040aeed
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46d618], eax
call esi
push eax
call fcn.0040aeed
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46d61c], eax
call esi
push eax
call fcn.0040aeed
pop ecx
mov dword [0x46d624], eax
test eax, eax
je 0x40e24e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aeed
pop ecx
mov dword [0x46d620], eax
mov eax, dword [0x46d620]
cmp eax, ebx
je 0x40e2a6
cmp dword [0x46d624], ebx
je 0x40e2a6
push eax
call fcn.0040af68
push dword [0x46d624]
mov esi, eax
call fcn.0040af68
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e2a6
test edi, edi
je 0x40e2a6
call esi
test eax, eax
je 0x40e29d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e29d
test byte [ebp - 0xc], 1
jne 0x40e2a6
or dword [ebp + 0x10], 0x200000
jmp 0x40e2df
mov eax, dword [0x46d618]
cmp eax, ebx
je 0x40e2df
push eax
call fcn.0040af68
pop ecx
test eax, eax
je 0x40e2df
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e2df
mov eax, dword [0x46d61c]
cmp eax, ebx
je 0x40e2df
push eax
call fcn.0040af68
pop ecx
test eax, eax
je 0x40e2df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46d614]
call fcn.0040af68
pop ecx
test eax, eax
je 0x40e2ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e301
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40230c
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x15
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402313
mov edx, dword [esp + 0x60]
lea ecx, [esp]
call fcn.00404060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 4]
call fcn.00404060
mov edx, dword [esp + 0x68]
lea ecx, [esp + 8]
call fcn.00404060
mov edx, dword [esp]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, 0x40f01f
call fcn.0040cef0
mov edx, dword [esp + 0xc]
call fcn.0040cef0
lea eax, [esp + 0x10]
push eax
call fcn.0040ce40
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x40f0b4
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, str.wscript
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0xc]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0x10]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [esp + 0x4c], eax
push 0x19
call fcn.00408752
lea eax, [esp + 0x50]
push eax
lea ebp, [esp + 0x14]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x4023ef
mov ebx, dword [esp + 0x50]
cmp ebx, 0x103
je 0x4023ef
jmp 0x4023f1
jmp 0x4023c2
mov eax, 1
jmp 0x4023fa
push dword [esp]
call fcn.0040cf50
push dword [esp + 4]
call fcn.0040cf50
push dword [esp + 0xc]
call fcn.0040cf50
push dword [esp + 8]
call fcn.0040cf50
add esp, 0x54
pop ebx
pop ebp
ret 0xc

Function at 0x402425
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040a280
mov dword [esp], eax
push dword [0x4105e8]
push dword [0x4105e8]
call fcn.0040a553
lea eax, [esp + 8]
push eax
call fcn.0040ce40
push dword [esp]
push 0
push 0x40f01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x4105e8]
push dword [0x4105e8]
push dword [esp + 8]
call fcn.0040a2a0
lea eax, [0x4102f8]
push eax
call fcn.0040ce40
push dword [esp]
call fcn.0040a2f0
push dword [0x4102f8]
call fcn.0040a47b
push dword [0x4102f8]
call fcn.0040a5b4
push dword [0x4105e8]
push dword [0x4105e8]
call fcn.0040a385
lea eax, [0x4102a8]
push eax
call fcn.0040ce40
push dword [esp + 0x14]
pop eax
call fcn.0040a310
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x4024fe
mov edx, dword [0x4102f8]
push dword [0x4105e8]
call fcn.0040cef0
lea eax, [0x4102a8]
push eax
call fcn.0040ce40
mov dword [esp + 0xc], 2
jmp 0x402510
mov ebx, 1
cmp ebx, dword [esp]
jne 0x402510
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040a310
mov dword [0x4102d0], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040a310
mov dword [0x410250], eax
mov eax, 1
jmp 0x402543
push dword [esp + 4]
call fcn.0040cf50
add esp, 0xc
pop ebx
ret 4
Function at 0x402c6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x402cc5
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x410254], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x410268], eax
push dword [esp]
mov edx, 0x40f0a4
pop ecx
call fcn.0040cec0
jne 0x402cf7
push dword [esp]
mov edx, 0x40f0aa
pop ecx
call fcn.0040cec0
jne 0x402cf7
push dword [esp]
mov edx, 0x40f0ac
pop ecx
call fcn.0040cec0
jne 0x402cf7
jmp 0x402cfe
mov eax, 1
jmp 0x402d00
xor eax, eax
and eax, eax
je 0x402d6b
push dword [0x410268]
call fcn.0040a280
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x410268]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x402d61
mov ebx, dword [0x410254]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.0040a310
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040a320
inc dword [esp + 0xc]
jno 0x402d1b
push dword [esp + 8]
pop eax
mov dword [0x410254], eax
mov eax, dword [esp + 4]
jmp 0x402d73
push dword [esp]
call fcn.0040cf50
add esp, 0x18
pop ebx
ret 8
Function at 0x40302f
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x4102d0]
cmp ebx, 1
jne 0x4030ec
push dword [0x41030c]
call fcn.0040789b
mov ebx, eax
and ebx, ebx
jle 0x403093
push dword [0x41030c]
call fcn.004078a5
push dword [0x41030c]
call fcn.004078ba
or eax, eax
je 0x403093
mov ebp, dword [0x410310]
push dword [ebp + 8]
call fcn.0040b9b0
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x403091
mov ebp, dword [0x410310]
push dword [ebp + 8]
call fcn.0040a47b
jmp 0x40305f
push dword [0x410314]
call fcn.0040789b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x4030ec
push 5
push 0
push 1
push dword [0x410314]
call fcn.004068d0
push dword [0x410314]
call fcn.004078a5
push dword [0x410314]
call fcn.004078ba
or eax, eax
je 0x4030ec
mov ebp, dword [0x410318]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x4030cd
mov eax, 1
jmp 0x4030f5
add esp, 4
pop ebx
pop ebp
ret

Function at 0x4071ed
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40723c
push dword [esp + 0x10]
push 0x40716b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x410324]
cmp esi, ebx
je 0x407290
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x407234
cmp byte [esi + 0x10], bl
je 0x407234
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x407211
jmp 0x407290
mov esi, dword [0x410324]
cmp esi, ebx
je 0x407290
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x407289
cmp byte [esi + 0x11], bl
je 0x407266
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40727c
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x410324
call fcn.0040ca6d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x407247
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4082d4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x41065c]
call fcn.0040c39a
mov edi, eax
test edi, edi
je 0x408336
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4082fd
push dword [esp + 0xc]
push edi
call eax
jmp 0x408336
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040d080
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040d1b0
pop esi
pop ebx
pop edi
ret 8
Function at 0x40865f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x408748
mov eax, dword [ebp - 0xc]
dec eax
je 0x40872b
dec eax
jne 0x408748
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x4086be
cmp byte [ebp - 0x1e], 1
jne 0x4086be
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x408727
dec eax
je 0x408723
dec eax
je 0x408701
dec eax
jne 0x408748
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4086f5
dec eax
je 0x4086e9
dec eax
jne 0x408748
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x408748
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x408748
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x408748
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40871f
dec eax
je 0x40871b
dec eax
jne 0x408748
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x408748
push 0x3c
jmp 0x408747
push 0x32
jmp 0x408747
push 0x14
jmp 0x408747
push 5
jmp 0x408747
cmp dword [ebp - 0x14], 0
je 0x408745
cmp dword [ebp - 0x14], 0xa
je 0x408741
cmp dword [ebp - 0x14], 0x5a
jne 0x408748
push 0x28
jmp 0x408747
push 0x1e
jmp 0x408747
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x4096b1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40972d
push 9
call esi
test bl, al
je 0x40972d
push 0x11
call esi
test bl, al
jne 0x40972d
push 0x10
call esi
test bl, al
jne 0x40972d
push 0x12
call esi
test bl, al
jne 0x40972d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40972d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40972d
xor eax, eax
jmp 0x4097af
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x409756
push 0x11
call esi
test bl, al
jne 0x40974e
push 0x10
call esi
test bl, al
jne 0x40974e
push 0x12
call esi
test bl, al
je 0x409756
push 1
push ebp
call fcn.0040966a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40976c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x4097ac
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x4097ac
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4097ac
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x4097ac
dec esi
push esi
push dword [0x410664]
call fcn.0040c39a
test eax, eax
je 0x4097ac
mov eax, dword [eax + 8]
jmp 0x4097ae
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x409871
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x410574], eax
cmp eax, edi
je 0x4098a4
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x410578], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x410570], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4098e2
cmp dword [ebp - 0xc], 1
je 0x4098f3
cmp dword [ebp - 0xc], 2
jne 0x4098e2
cmp dword [ebp - 0x18], 5
jb 0x4098f3
jne 0x4098e2
cmp dword [ebp - 0x14], edi
jne 0x4098e2
mov dword [0x410570], edi
cmp dword [0x410570], edi
je 0x4098f9
call fcn.004097b8
test eax, eax
jne 0x4098f9
mov dword [0x410570], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40a44d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40a476
test byte [esp + 8], 2
je 0x40a46a
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a478
xor eax, eax
ret 8

Function at 0x40a5b4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40a624
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40a606
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40a605
cmp dl, 0x5c
je 0x40a605
cmp dl, 0x2f
jne 0x40a610
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40a5f3
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40a626
xor eax, eax
leave
ret 4

Function at 0x40a630
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40a665
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40aa10
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40aa69
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40aa68
mov eax, dword [esp + 0x10]
mov ecx, dword [0x410704]
push eax
push ecx
call fcn.0040c39a
test eax, eax
je 0x40aa64
cmp dword [eax + 4], 0
je 0x40aa52
push esi
push edi
push eax
call fcn.0040aa70
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x40aa70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40aaa5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40ab1a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40ab07
dec ecx
je 0x40aaf2
sub ecx, 2
je 0x40aadf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040a630
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40ab47
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc