joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x808
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [esp + 0x814]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0x400
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318_
lea eax, [esp + 0x420]
push str._s_04d
push eax
call fcn.0040160b
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x418]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x4010f6
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.DriverDesc
push edx
mov dword [esp + 0x28], 0x400
call ebx
test eax, eax
jne 0x4010b9
cmp dword [esp + 0x10], 0x400
ja 0x4010b9
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x18]
test eax, eax
push ecx
je 0x40111d
push 0x409104
call fcn.004015ca
add esp, 8
jmp 0x4010d1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4090d4
call fcn.004015ca
add esp, 4
inc esi
cmp esi, 0x63
jl 0x401027
push ebp
push 0x4090b8
call fcn.004015ca
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
lea eax, [esp + 0x418]
push eax
push 0x40909c
push 0x4092f0
call fcn.0040142e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
push 0x409090
call fcn.004015ca
mov ecx, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
mov esi, 0x400
push str.DriverVersion
push ecx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x401193
cmp dword [esp + 0x10], esi
ja 0x401193
lea edx, [esp + 0x18]
push edx
push 0x40bf60
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x4011ab
lea eax, [esp + 0x18]
push eax
push 0x409068
call fcn.004015ca
mov eax, dword [esp + 0x1c]
add esp, 8
mov byte [0x40bf60], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x409040
call fcn.004015ca
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x4011c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x800
lea eax, [esp]
push ebx
push eax
push 0x7ff
mov bl, 0x31
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4011f5
push str.Fatal_Error:_GetTempPath_failed__n
call fcn.004015ca
add esp, 4
or eax, 0xffffffff
pop ebx
add esp, 0x800
ret
push ebp
push esi
push edi
mov edi, str.A9.txt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.path____s__n
call fcn.004015ca
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004012d0
test eax, eax
jne 0x401250
mov bl, 0x31
jmp 0x401277
push str.Web_Caster_FT_STC_Va_g_Wireless_LAN_Card
call section..text
add esp, 4
test eax, eax
je 0x401277
push str.2.4.2.33
push 0x40bf60
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401277
mov bl, 0x30
lea edx, [esp + 0x10]
push 0x409184
push edx
call fcn.0040170b
movsx edi, bl
add esp, 8
mov esi, eax
push edi
push 0x409180
push esi
call fcn.0040142e
add esp, 0xc
push edi
push 0x409180
call fcn.004015ca
push esi
call fcn.0040165d
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
Function at 0x436d64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x44878c], 0
jne 0x436de5
cmp dword [0x4487ac], 0
jne 0x436d94
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4487ac], eax
test eax, eax
jne 0x436d94
push str.GetEnvironmentStrings_failed
call fcn.004364dc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4487ac]
jmp 0x436da8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0042e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x436da0
lea edi, [ebp + 1]
push edi
call fcn.0042d934
pop ecx
mov ebx, eax
mov dword [0x448790], ebx
test ebx, ebx
jne 0x436dd2
xor eax, eax
jmp 0x436ea5
push edi
mov edx, dword [0x4487ac]
push edx
push ebx
call fcn.0042e470
add esp, 0xc
jmp 0x436e07
xor esi, esi
mov ebx, dword [0x44878c]
jmp 0x436dff
push eax
call fcn.0042e7d8
pop ecx
test eax, eax
jne 0x436dfb
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x436def
lea ebx, [esi + 4]
push 4
mov dword [0x448794], ebx
inc ebx
push ebx
call fcn.0042d898
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x436e27
xor eax, eax
jmp 0x436ea5
cmp dword [0x44878c], 0
jne 0x436e56
xor esi, esi
mov ebx, dword [0x448790]
mov ebp, dword [esp]
jmp 0x436e47
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0042e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x436e3d
jmp 0x436e87
xor esi, esi
mov ebx, dword [0x44878c]
mov edi, dword [esp]
jmp 0x436e7f
push eax
call fcn.0042e7d8
pop ecx
test eax, eax
je 0x436e74
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x436e78
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x436e63
mov eax, dword [0x44878c]
test eax, eax
je 0x436e97
push eax
call fcn.0042d944
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x44878c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
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 0x42c1a4
Capabilities:
Terminate process

Disassembly:
jmp 0x444c50
jmp fcn.00455490
cmp ecx, dword [0x496094]
jne 0x444c5a
repz ret
jmp 0x42c627

Function at 0x42e894
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x42e8d9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40198a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4019b8
xor eax, eax
pop esi
leave
ret
push dword [ebp + 0x14]
call fcn.00461980
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4019e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4019b5
xor esi, esi
inc esi
jmp 0x4019d8

Function at 0x4019ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x103
push dword [ebp + 8]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a1a
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401a3d
xor eax, eax
jmp 0x401a4d
mov eax, dword [ebp - 4]
add eax, esi
cmp byte [eax], 0
je 0x401a4a
mov byte [eax], 0
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x401a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
mov dword [ebp - 0x10], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a85
or eax, 0xffffffff
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x401aae
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401a80
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x401bbb
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x401bd8
cmp byte [eax], 0
je 0x401bd8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
not eax
and eax, 1
ret
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x401bfc
cmp byte [eax], 0
je 0x401bfc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401bfc
test al, 0x10
je 0x401bfc
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4022e3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40235c
push edi
call fcn.00401b9d
cmp byte [eax], 0x5c
pop ecx
jne 0x40235c
push edi
call fcn.00401bdb
pop ecx
test eax, eax
je 0x40230c
xor eax, eax
inc eax
jmp 0x40235e
push ebx
push esi
push edi
call fcn.00401b9d
push edi
mov dword [ebp - 4], eax
mov byte [eax], 0
call fcn.00401bff
mov esi, eax
mov bl, byte [esi]
push edi
mov byte [esi], 0
call fcn.004022e3
add esp, 0xc
mov byte [esi], bl
pop esi
mov dword [ebp + 8], eax
pop ebx
test eax, eax
je 0x402351
push edi
call fcn.00401bdb
pop ecx
test eax, eax
jne 0x402351
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov byte [eax], 0x5c
mov eax, dword [ebp + 8]
jmp 0x40235e
xor eax, eax
pop edi
leave
ret
Function at 0x40289f
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a4b60]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00461a10
lea eax, [ebp - 0x108]
push eax
call fcn.0040193e
add esp, 0xc
test eax, eax
je 0x4028f3
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040112d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461b8a
leave
ret

Function at 0x4029a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10
mov eax, 0x47df05
call fcn.00462bd7
and dword [ebp - 4], 0
mov esi, 0x482a70
push esi
push dword [ebp + 8]
call fcn.00418a0f
pop ecx
pop ecx
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402aae
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x402aae
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402aa7
lea ecx, [ebp - 0x1c]
push ecx
add eax, 4
push ebx
push eax
call fcn.004185db
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402a73
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402aa7
mov edi, dword [ebp - 0x1c]
jmp 0x402a5f
mov esi, 0x7fff
cmp edi, esi
ja 0x402a4a
movzx esi, di
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x402a8c
sub edi, esi
add dword [ebp - 0x10], esi
test edi, edi
jne 0x402a3e
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x14]
call fcn.00461ccb
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040112d
xor eax, eax
inc eax
jmp 0x402abb
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x14]
call fcn.00461ccb
pop ecx
jmp 0x402aae
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040112d
xor eax, eax
call fcn.00462caf
ret
Function at 0x403347
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x4a4b60]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 0x10
mov eax, 0x47e06a
call fcn.00462bd7
and dword [ebp - 4], 0
call fcn.004459aa
push eax
lea ecx, [ebp - 0x10]
call fcn.00402668
mov byte [ebp - 4], 1
call fcn.004459aa
push eax
lea ecx, [ebp - 0x18]
call fcn.00402668
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp + 0x14c]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.004027d8
call fcn.00402ff7
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp + 0x14c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
jmp 0x40345a
test byte [ebp], 0x10
jne 0x40344f
cmp byte [ebp + 0x2c], 0
je 0x40344f
cmp byte [ebp + 0x2c], 0x2e
je 0x40344f
call fcn.004459aa
push eax
lea ecx, [ebp - 0x14]
call fcn.00402668
push 0x482aac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00402e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402d89
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040112d
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402e72
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi - 0x10]
test eax, eax
je 0x40346e
mov byte [ebp - 4], 2
call fcn.0040112d
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4033d4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x403475
call fcn.0040112d
xor esi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040112d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040112d
mov ecx, dword [ebp + 0x14c]
add ecx, 0xfffffff0
call fcn.0040112d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.00461b8a
add ebp, 0x144
leave
ret
Function at 0x403b4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x114
mov eax, 0x47e1bc
call fcn.00462c40
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.00418a0f
pop ecx
pop ecx
push dword [ebp + 8]
mov edi, eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x403c84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov byte [esi], 0
test ebx, ebx
je 0x403c84
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x403c7d
lea eax, [ebp - 0x114]
push eax
push 0
push str.pssp
push 0x4a9070
call fcn.004038e7
add esp, 0x10
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x118], eax
cmp eax, 0xffffffff
je 0x403c7d
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.00461a10
mov edi, dword [ebp - 0x120]
pop ecx
pop ecx
jmp 0x403c3f
mov esi, 0x7fff
cmp edi, esi
ja 0x403c1f
movzx esi, di
push esi
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x403c71
sub edi, esi
add dword [ebp - 0x11c], esi
test edi, edi
jne 0x403c13
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040112d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040112d
xor eax, eax
inc eax
jmp 0x403c9c
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040112d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040112d
xor eax, eax
call fcn.00462cc3
ret
Function at 0x404542
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40454f
xor eax, eax
pop esi
ret
cmp dword [0x49e118], 0
je 0x40455d
call fcn.004044f6
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x404617
mov edx, edi
shr edx, 3
push ebx
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a62c8]
inc esi
sub edi, 8
dec edx
jne 0x40457c
pop ebx
test edi, edi
je 0x404630
movzx edx, byte [esi]
xor edx, eax
and edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4a62c8]
inc esi
dec edi
jne 0x40461b
pop edi
not eax
pop esi
ret

Function at 0x406570
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x40658c
xor eax, eax
jmp 0x406650
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [esi + 8]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 8
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
mov dword [ebp - 8], eax
call ebx
push 0xa
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jge 0x4065dd
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x4065e5
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x10]
jle 0x4065ed
mov edi, dword [ebp - 0x10]
cmp esi, eax
jle 0x4065f3
mov esi, eax
sub esi, dword [ebp - 8]
sub edi, dword [ebp - 0xc]
push esi
mov ebx, edi
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 0xcc0020
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push edi
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret
Function at 0x407719
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4a66d4]
cmp dword [eax - 0xc], 0
je 0x407745
push eax
call fcn.0040193e
pop ecx
test eax, eax
je 0x407745
push dword [0x4a66d4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x4a66d4
jmp fcn.0040268d
ret
Function at 0x4146f7
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4a4b60]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x47e794
call fcn.00462bd7
xor ebx, ebx
cmp dword [0x4a8a0c], ebx
jne 0x41485d
lea eax, [ebp + 0x104]
push eax
mov edi, 0x482be8
push edi
push str.CLSID6BF52A52_394A_11D3_B153_00C04F79FAA6InprocServer32
mov esi, closesocket
push esi
mov byte [ebp + 0x104], bl
call fcn.004019ea
add esp, 0x10
cmp byte [ebp + 0x104], bl
je 0x41476d
xor esi, esi
inc esi
mov dword [0x4a8a0c], esi
mov dword [0x4a8a08], esi
mov eax, esi
jmp 0x414869
lea eax, [ebp + 0x104]
push eax
push edi
push str.CLSID22D6F312_B0F6_11D0_94AB_0080C74C7E95InprocServer32
push esi
mov dword [0x4a8a08], ebx
call fcn.004019ea
add esp, 0x10
cmp byte [ebp + 0x104], bl
jne 0x4147a2
mov dword [0x4a8a0c], 2
xor eax, eax
jmp 0x414869
call fcn.004459aa
push eax
lea ecx, [ebp - 0x10]
call fcn.00402668
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00402dd6
push dword [ebp - 0x10]
call fcn.0040193e
pop ecx
test eax, eax
je 0x414848
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], ebx
call fcn.00461a10
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x414848
push edi
call fcn.00462114
pop ecx
mov esi, eax
push esi
push edi
push ebx
lea eax, [ebp]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x482aac
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
movzx ebx, word [eax + 0xa]
push esi
call fcn.00461ccb
pop ecx
cmp bx, 6
jb 0x414848
mov ecx, dword [ebp - 0x10]
xor esi, esi
inc esi
add ecx, 0xfffffff0
mov dword [0x4a8a0c], esi
call fcn.0040112d
jmp 0x414766
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [0x4a8a0c], 2
call fcn.0040112d
xor eax, eax
cmp dword [0x4a8a0c], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00461b8a
add ebp, 0x20c
leave
ret

Function at 0x415458
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415488
or eax, 0xffffffff
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x4154b1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415483
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret