joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40fc64
mov dword [ecx*4 + 0x456400], eax
inc ecx
cmp ecx, 0x100
jb 0x40fc5f
mov edx, 0x800
jmp 0x40fcb1
mov eax, dword [ecx*4 + 0x456000]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x456400]
inc ecx
mov dword [ecx*4 + 0x4563fc], eax
cmp ecx, edx
jb 0x40fc90
mov dword [0x452bf4], 0x440670
call fcn.0040fe65
test eax, eax
pop esi
jne 0x40fcd3
mov dword [0x452bf4], 0x440590
ret
Function at 0x41d017
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d02e
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d030
add eax, eax
dec edx
test edx, edx
jg 0x41d021
mov dword [ecx*4 + 0x452bf8], eax
inc ecx
cmp ecx, 0x100
jb 0x41d019
ret
Function at 0x42bb51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42bb5f
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42bb9b
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42bb79
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42bb9b
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040e103
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x42f1b7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42f303
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42f1f3
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42f1f8
inc esi
cmp esi, dword [ebp - 8]
jb 0x42f1ea
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42f2e4
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42f277
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42f224
cmp cl, 0xff
jne 0x42f2a6
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42f2b7
movzx edi, byte [edx + 0x444bf8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42f267
cmp bl, 0xff
jne 0x42f2b4
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42f23f
dec ecx
shl edx, cl
and edx, 7
je 0x42f211
movzx ecx, byte [edx + 0x444bf8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x444bf0], 0
mov cl, byte [ebx + 4]
je 0x42f2a3
test cl, cl
je 0x42f2a3
cmp cl, 0xff
jne 0x42f211
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42f1e5
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42f1e5
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x42f4ba
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x42f7a1
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x454ff8], al
inc eax
cmp eax, 0x100
jb 0x42f7a9
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0xff
movzx ebx, byte [edi + str.cw]
mov eax, ebx
and al, 0x80
neg al
lea ecx, [ebx + ebx]
sbb eax, eax
and eax, 0x1b
xor eax, ecx
and eax, esi
mov ecx, eax
mov edx, ecx
xor edx, ebx
mov dword [ebp - 8], edx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, edi
shl eax, 2
mov dword [eax + 0x452ff8], edx
mov edx, ebx
shl edx, 8
mov edi, edx
or edi, ebx
or edx, ecx
shl edi, 8
or edi, ecx
shl edx, 8
or edx, dword [ebp - 8]
shl edi, 8
or edi, dword [ebp - 8]
shl ecx, 8
or ecx, dword [ebp - 8]
shl edx, 8
shl ecx, 8
mov dword [eax + 0x4533f8], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x4537f8], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x453bf8], ecx
movzx ecx, byte [edi + 0x454ff8]
mov edx, ecx
and dl, 0x80
neg dl
lea ebx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
sbb edx, edx
and edx, 0x1b
xor edx, ebx
and edx, esi
mov ebx, edx
and bl, 0x80
neg bl
mov dword [ebp - 0x10], edx
sbb ebx, ebx
and ebx, 0x1b
add edx, edx
xor ebx, edx
and ebx, esi
mov edx, ebx
and bl, 0x80
neg bl
mov dword [ebp - 0x14], edx
sbb ebx, ebx
add edx, edx
and ebx, 0x1b
xor ebx, edx
and ebx, esi
mov edx, ebx
xor edx, ecx
mov dword [ebp - 8], edx
mov edx, ebx
xor edx, dword [ebp - 0x10]
xor edx, ecx
mov dword [ebp - 0xc], edx
shl edx, 8
mov ecx, ebx
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
or edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 0x453ff8], edx
mov edx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, dword [ebp - 0xc]
mov dword [eax + 0x4543f8], edx
mov edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl ecx, 8
or ecx, dword [ebp - 0xc]
shl edx, 8
or edx, dword [ebp - 0xc]
shl ecx, 8
or ecx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 4]
shl ecx, 8
or ecx, dword [ebp - 8]
inc edi
cmp edi, 0x100
mov dword [eax + 0x4547f8], edx
mov dword [eax + 0x454bf8], ecx
mov dword [ebp - 0x10], edi
jb 0x42f7cb
mov dword [0x4563e8], 0x430316
mov dword [0x4563f0], 0x43036f
mov dword [0x4563ec], 0x4303f2
call fcn.0040ff22
test eax, eax
pop edi
pop esi
pop ebx
je 0x42f97b
mov dword [0x4563e8], 0x431010
mov dword [0x4563f0], 0x431015
mov dword [0x4563ec], 0x43101a
leave
ret
Function at 0x42f97d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x42f9b4
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x42f9a7
cmp esi, edi
jae 0x42fa84
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x42fa24
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x44f420]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x42fa6c
cmp dword [ebp + 8], 6
jbe 0x42fa6c
cmp edx, 4
jne 0x42fa6c
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x42f9c6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430c86
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.00414ae5
test al, al
je 0x430c9d
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.00431f14
test eax, eax
pop ecx
je 0x430cb8
push esi
push 0x430c39
mov esi, eax
call fcn.0040eef0
jmp 0x430cba
xor eax, eax
push ebx
mov ebx, eax
call fcn.0040bfbb
mov eax, edi
call fcn.0040e4ce
pop ebx
pop edi
pop esi
jmp fcn.0040ef9b

Function at 0x43220f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e4ec]
jne 0x432219
repz ret
jmp fcn.00435107

Function at 0x435990
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44e500]
je 0x4359ab
inc edi
cmp edi, 0x17
jb 0x43599c
cmp edi, 0x17
jae 0x435b2b
push ebp
push 3
call fcn.0043b63e
cmp eax, 1
pop ecx
je 0x435af7
push 3
call fcn.0043b63e
test eax, eax
pop ecx
jne 0x4359df
cmp dword [0x44e0e0], 1
je 0x435af7
cmp ebx, 0xfc
je 0x435b2a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4523d8
push ebp
call fcn.004386ca
add esp, 0xc
test eax, eax
je 0x435a15
push esi
push esi
push esi
push esi
push esi
call fcn.0043205a
add esp, 0x14
push 0x104
mov esi, 0x4523f1
push esi
push 0
mov byte [0x4524f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435a59
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004386ca
add esp, 0xc
test eax, eax
je 0x435a59
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043205a
add esp, 0x14
push esi
call fcn.00431f80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435a9e
push esi
call fcn.00431f80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4526ec
push 0x441a74
sub ecx, eax
push ecx
push eax
call fcn.00435b73
add esp, 0x14
test eax, eax
je 0x435a9e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043205a
add esp, 0x14
jmp 0x435aa0
xor esi, esi
push 0x441a70
push ebx
push ebp
call fcn.0043b5cd
add esp, 0xc
test eax, eax
je 0x435ac0
push esi
push esi
push esi
push esi
push esi
call fcn.0043205a
add esp, 0x14
push dword [edi*8 + 0x44e504]
push ebx
push ebp
call fcn.0043b5cd
add esp, 0xc
test eax, eax
je 0x435ae2
push esi
push esi
push esi
push esi
push esi
call fcn.0043205a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b410
add esp, 0xc
jmp 0x435b2a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435b2a
cmp ebp, 0xffffffff
je 0x435b2a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44e504]
push dword [esi]
call fcn.00431f80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43b410
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00434afa
xor ebx, ebx
cmp dword [0x452b14], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43b4e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b5c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43b5c6
push eax
call fcn.00434a8c
mov dword [esp], 0x4422f0
push edi
mov dword [0x452b14], eax
call esi
push eax
call fcn.00434a8c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452b18], eax
call esi
push eax
call fcn.00434a8c
mov dword [0x452b1c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043542a
test eax, eax
pop ecx
pop ecx
je 0x43b4b4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043205a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43b4e6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00434a8c
cmp eax, ebx
pop ecx
mov dword [0x452b24], eax
je 0x43b4e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434a8c
pop ecx
mov dword [0x452b20], eax
mov eax, dword [0x452b20]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43b56b
cmp dword [0x452b24], ecx
je 0x43b56b
push eax
call fcn.00434b03
push dword [0x452b24]
mov esi, eax
call fcn.00434b03
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43b56b
cmp edi, ebx
je 0x43b56b
call esi
cmp eax, ebx
je 0x43b538
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b538
test byte [ebp - 0x18], 1
jne 0x43b56b
lea eax, [ebp - 0x10]
push eax
call fcn.00435461
test eax, eax
pop ecx
je 0x43b553
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043205a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43b562
or dword [ebp + 0x10], 0x200000
jmp 0x43b5a6
or dword [ebp + 0x10], 0x40000
jmp 0x43b5a6
mov eax, dword [0x452b18]
cmp eax, dword [ebp - 8]
je 0x43b5a6
push eax
call fcn.00434b03
cmp eax, ebx
pop ecx
je 0x43b5a6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b5a6
mov eax, dword [0x452b1c]
cmp eax, dword [ebp - 8]
je 0x43b5a6
push eax
call fcn.00434b03
cmp eax, ebx
pop ecx
je 0x43b5a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452b14]
call fcn.00434b03
cmp eax, ebx
pop ecx
je 0x43b5c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43b5c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402af8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b70
xor eax, eax
push ebp
push 0x402b69
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402bac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4031f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f038], 0
je 0x403259
cmp word [0x40f20c], 0xd7b2
jne 0x403221
cmp dword [0x40f214], 0
jbe 0x403221
mov eax, 0x40f208
call dword [0x40f224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403280
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e020], 0
jne 0x403275
push 0
push 0x40e054
push 0x40e05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403fe8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40404e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004034fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040298c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404038
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404055
lea eax, [ebp - 0x10]
call fcn.0040339c
ret
Function at 0x404f70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x40506b
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x404fc4
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.0040348c
jmp 0x405052
call sub.kernel32.dll_GetCommandLineA_1
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00404ef8
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00404f20
mov dword [edi], eax
test ebx, ebx
je 0x404ff2
dec ebx
test ebx, ebx
jl 0x404ff2
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x404fcb
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.004034cc
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.00403774
mov eax, dword [esi]
call fcn.00403514
cmp eax, 2
jl 0x405052
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x405052
mov eax, dword [esi]
call fcn.00403514
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x405052
push esi
mov eax, dword [esi]
call fcn.00403514
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.00403774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405072
lea eax, [ebp - 0x114]
call fcn.0040339c
ret

Function at 0x405100
Capabilities:
Get file attributes

Disassembly:
call fcn.00404920
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x405114
dec eax
and al, 0x10
sete al
ret

Function at 0x4052cc
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.004034cc
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.0040522c
ret

Function at 0x405380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x405440
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409a54
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x40542a
cmp dword [ebp - 8], 0
jbe 0x405428
mov eax, dword [ebp - 8]
inc eax
call fcn.004027c0
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x405406
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004034cc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00409a44
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x4053e9
mov eax, ebx
call fcn.004027f0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405447
lea eax, [ebp - 0x10]
call fcn.0040339c
ret
Function at 0x405450
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40550f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409a54
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x4054f9
cmp dword [ebp - 8], 0
jbe 0x4054f7
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.004027c0
mov ebx, eax
xor esi, esi
jmp 0x4054d5
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004034cc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00409a44
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x4054b8
mov eax, ebx
call fcn.004027f0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405516
lea eax, [ebp - 0x10]
call fcn.0040339c
ret

Function at 0x4056ec
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x405768
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403714
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403714
push eax
mov eax, dword [ebp - 4]
call fcn.00403714
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403714
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x40575f
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004034fc
jmp 0x405799
mov eax, edi
call fcn.0040339c
jmp 0x405799
mov eax, edi
mov edx, esi
call fcn.004033f0
mov eax, dword [ebx + 0x19]
call fcn.00403714
push eax
mov eax, esi
call fcn.00403714
push eax
mov eax, dword [ebp - 4]
call fcn.00403714
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403714
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4057f8
Capabilities:
Read .ini file

Disassembly:
or eax, 0
je 0x4057ea
lea eax, [esi + 4]
call fcn.00404ee4
mov dword [esi], eax
lea edx, [esi + 4]
inc eax
add esi, eax
mov eax, edi
call fcn.00409a44
cmp byte [esi + 4], 0
jne 0x4057cd
pop eax
call fcn.004027f0
pop ecx
pop ebx
pop edi
pop esi
ret
push esi
push edi
push ebx
push ecx
mov ebx, eax
mov eax, 0x8003
mov edi, edx
call fcn.004027c0
mov esi, eax
push eax
or byte [ebx + 0x18], 0
jne 0x40582d
push dword [ebx + 0x19]
mov eax, 0x7fff
push eax
lea eax, [esi + 4]
push eax
push dword [ebx + 0x1d]
call sub.kernel32.dll_GetPrivateProfileSectionA
jmp 0x4057c8
push ebx
push esi
push edx
push ebp
mov edx, 0
mov ebp, dword [edi + 0x1c]
mov ebx, 0x7ffd
or ebp, ebp
je 0x40586e
or ebx, ebx
je 0x40586e
push edx
mov eax, edi
call fcn.00406a54
push eax
call fcn.00404ee4
pop eax
xor ecx, 0xffffffff
mov edx, esi
sub ebx, ecx
ja 0x405862
add ecx, ebx
xor ebx, ebx
add esi, ecx
call fcn.004028d4
pop edx
inc edx
dec ebp
jmp 0x405840
mov word [esi], 0
pop ebp
pop edx
pop esi
pop ebx
mov eax, ebx
call fcn.004056cc
push dword [ebx + 0x19]
push esi
push dword [ebx + 0x1d]
call sub.kernel32.dll_WritePrivateProfileSectionA
pop eax
call fcn.004027f0
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x40919c
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x4091a8
or byte [eax + 0x37], 0x10
mov byte [eax + 0x56], dl
mov ecx, dword [eax + 0x28]
jecxz 0x4091c4
push eax
je 0x4091c5
call dword [0x40e120]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x178], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40e120]
ret

Function at 0x40a0c4
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040a078
je 0x40a0f6
mov eax, ebx
push edx
call fcn.004073f4
pop edx
cmp eax, edx
je 0x40a0f6
test edx, edx
mov eax, ebx
jne 0x40a0e8
pop ebx
inc edx
jmp fcn.004073e4
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.004073e4
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040a114
ret