joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df8e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x40dfa8
push dword [ebp + 8]
push 0x40df20
call sub.USER32.dll_EnumWindows
jmp 0x40dfdf
mov edi, dword [0x414250]
jmp 0x40dfdb
mov esi, dword [edi]
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x40dfd9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x414250
call fcn.00410940
add esp, 8
mov edi, esi
or edi, edi
jne 0x40dfb0
pop edi
pop esi
pop ebp
ret 4

Function at 0x40e140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x40e218
mov dword [ebp - 0x40], esi
push esi
call sub.CRTDLL.dll_strlen
pop ecx
lea edi, [eax + esi - 1]
jmp 0x40e16a
dec edi
cmp edi, esi
jbe 0x40e173
cmp byte [edi], 0x5c
jne 0x40e169
cmp edi, esi
jbe 0x40e1a9
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcpy
push 0x414266
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x40e1ad
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x40e1bc
cmp byte [eax], 0
je 0x40e1bc
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x40e1c7
xor edi, edi
mov dword [ebp - CoUninitialize], 0x3c
mov dword [ebp - 0x38], CoUninitialize
mov dword [ebp - 0x20], edi
lea eax, [0x414261]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or eax, eax
je 0x40e218
cmp dword [ebp - 4], 0
je 0x40e218
test byte [ebp + 0x14], 1
je 0x40e215
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x48e380
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0048e530
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x48e47e
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x48e421
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x48e464
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x48e438
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x48e453
test al, 0x40
je 0x48e44a
mov ecx, dword [edi + 0x20]
jmp 0x48e451
test al, 0x80
je 0x48e464
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x48e464
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x48e3f0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x49015c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.00494028
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x1d780
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.00494028
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x1d780
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
call fcn.0048810b
mov eax, 0
cmp eax, ecx
jl 0x4901d2
push 1
call fcn.00494034
add esp, 4
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
call fcn.0048810b
mov eax, 0
cmp eax, ecx
jl 0x4901fb
push 1
call fcn.00494034
add esp, 4
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x100
mov ebx, 0x100
sub ebx, ecx
mov dword [ebx + eax], ebx
loop 0x490211
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, 0x100
xor ebx, ebx
cmp ebx, edi
jb 0x49023c
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x490236
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, 0x100
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x490255
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.0049403a
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4902b1
push ebx
call fcn.0049402e
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x4902c6
mov ebx, dword [ebp - 4]
push ebx
call fcn.0049402e
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.0049402e
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405f38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x423b3c], esi
push edi
jne 0x405f72
mov ecx, 0x423b38
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405f4e
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x423f38
jl 0x405f49
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405fa7
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x423b38]
xor eax, esi
inc ecx
dec edx
jne 0x405f8a
pop edi
pop esi
not eax
ret 0xc
Function at 0x401000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push edi
and byte [ebp - 0x108], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x318], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
and byte [ebp - 0x210], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [0x424f58], eax
mov eax, dword [0x424f58]
mov dword [0x4252b4], eax
and dword [0x4252b0], 0
and dword [0x424f60], 0
and dword [0x424f54], 0
and dword [0x4253d0], 0
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00408838
push 0x105
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
push 0x4252c0
lea eax, [ebp - 0x108]
push eax
call fcn.00408266
push 0x4252c0
call fcn.00408802
call fcn.00402220
call fcn.004020ed
push dword [ebp + 0x10]
call fcn.004014a3
pop ecx
call fcn.004024c0
test eax, eax
jne 0x4010fa
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
call fcn.004021dd
xor eax, eax
jmp 0x401244
cmp dword [0x42529c], 0
je 0x40114e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x31c], eax
push dword [ebp + 8]
call fcn.00401dc8
pop ecx
test eax, eax
jne 0x401134
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x31c]
cmp eax, 0x7d0
jae 0x401149
jmp 0x401134
call fcn.00401d7d
call fcn.00401413
test eax, eax
jne 0x40116f
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
cmp dword [0x425294], 0
jne 0x4011a2
cmp dword [0x425290], 0
jne 0x4011a2
cmp dword [0x425298], 0
jne 0x4011a2
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
cmp dword [0x4253d4], 0
jne 0x4011bc
push dword [0x4253c8]
push dword [0x4253cc]
call fcn.00405220
lea eax, [ebp - 0x318]
push eax
push dword [0x424650]
call fcn.00407d91
test eax, eax
je 0x401207
push dword [0x424650]
push 0
lea eax, [ebp - 0x318]
push eax
push 0xfffffffffffffff8
call fcn.004019ff
call fcn.0040530e
call fcn.00401485
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
call fcn.004027f3
call fcn.0040133c
mov dword [ebp - 0x320], eax
push dword [ebp - 0x320]
call fcn.0040285a
pop ecx
call fcn.0040530e
call fcn.00401485
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
mov eax, dword [ebp - 0x320]
pop edi
leave
ret 0x10

Function at 0x401d7d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [0x424654]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x424654]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x424658], 0
je 0x401daf
push dword [0x424658]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x42465c], 0
je 0x401dc4
push dword [0x42465c]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop ebp
ret
Function at 0x401dc8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [0x42465c], 0
push 0x1d4c
push dword [0x424f58]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x424658], eax
cmp dword [0x424658], 0
jne 0x401e28
push 0x42465c
call fcn.004022b1
pop ecx
mov dword [0x424658], eax
cmp dword [0x424658], 0
jne 0x401e28
push 0x10
push str.Error
push str.Unable_to_locate_process_internal_binary_resource.__Please_contact_your_software_vendor.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401f49
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x401f4b
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
mov eax, dword [0x424f58]
mov dword [ebp - 0x3c], eax
push 0x3e8
push dword [0x424f58]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x38], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x421038
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x401e91
xor eax, eax
jmp 0x401f49
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [0x424658]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
push 0
push dword [0x424f58]
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x80800000
push str.DeIsAbtWinName
push str.DeIsAbtClsName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401f15
xor eax, eax
jmp 0x401f49
mov eax, dword [ebp - 4]
mov dword [0x424654], eax
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
leave
ret
Function at 0x4022b1
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [ebp - 0xa8], 0
call fcn.004026d5
test eax, eax
je 0x4022ee
push 0x3e8
push 0x3e9
push dword [0x424f58]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xac], eax
jmp 0x40230a
push 0x3e8
push 0x3e8
push dword [0x424f58]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x40231a
xor eax, eax
jmp 0x4024be
push dword [ebp - 0xac]
push dword [0x424f58]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xac]
push dword [0x424f58]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x402360
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4024be
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xa8]
add eax, 0x64
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40238e
xor eax, eax
jmp 0x4024be
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xb0], eax
and dword [ebp - 0xb4], 0
jmp 0x4023b3
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0xa8]
jge 0x4023dc
mov eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xb4]
mov cl, byte [ecx]
mov byte [eax], cl
jmp 0x4023a6
push 1
push 0xaf325de9
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
call fcn.0040ee19
push 0x105
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040831c
push str._bmp23_.bm_
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1001
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0xb8], eax
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll__hwrite]
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040ea5e
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040b363
cmp dword [ebp - 0x1c4], 0
je 0x4024b3
xor eax, eax
jmp 0x4024be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x4025b2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 1
cmp dword [0x424f5c], 0
je 0x4025d4
mov dword [ebp - 4], 1
jmp 0x4026d0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004025a9
test eax, eax
je 0x4025f1
mov dword [ebp - 4], 7
jmp 0x4026d0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1e6
ja 0x40262c
cmp dword [ebp - 0x34], 0x1e6
je 0x4026a5
cmp dword [ebp - 0x34], 0x182
je 0x4026a5
jmp 0x4026d0
cmp dword [ebp - 0x34], 0x259
ja 0x402650
cmp dword [ebp - 0x34], 0x259
je 0x4026c9
cmp dword [ebp - 0x34], 0x24a
je 0x4026a5
jmp 0x4026d0
cmp dword [ebp - 0x34], 0x26c
ja 0x402676
cmp dword [ebp - 0x34], 0x26c
je 0x4026c9
cmp dword [ebp - 0x34], 0x25b
jb 0x4026d0
cmp dword [ebp - 0x34], 0x25c
jbe 0x4026c9
jmp 0x4026d0
cmp dword [ebp - 0x34], 0x35c
je 0x4026ae
cmp dword [ebp - 0x34], 0x7d0
je 0x4026b7
cmp dword [ebp - 0x34], 0xbb8
je 0x4026b7
cmp dword [ebp - 0x34], 0xfa0
je 0x4026b7
cmp dword [ebp - 0x34], 0x5248
je 0x4026c0
jmp 0x4026d0
mov dword [ebp - 4], 2
jmp 0x4026d0
mov dword [ebp - 4], 2
jmp 0x4026d0
mov dword [ebp - 4], 4
jmp 0x4026d0
mov dword [ebp - 4], 3
jmp 0x4026d0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
leave
ret

Function at 0x404830
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov al, byte [esp + 8]
mov cl, 1
test al, al
mov byte [esp], cl
je 0x40484e
mov dl, al
and dl, 1
xor cl, dl
shr al, 1
jne 0x40483f
mov byte [esp], cl
mov eax, dword [esp]
and eax, 0xff
pop ecx
ret 4

Function at 0x4070a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x105
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040831c
mov dword [ebp - 0x10c], 1
push dword [ebp - 0x10c]
push 0x4213d8
lea eax, [ebp - 0x108]
push eax
push 0x4213e0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 8]
call fcn.0040c670
test eax, eax
je 0x40713b
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
push dword [ebp - 0x10c]
push str._detmp
lea eax, [ebp - 0x108]
push eax
push 0x4213f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x4070fd
push 1
pop eax
leave
ret 4
Function at 0x40719e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4071c0
xor eax, eax
jmp 0x407245
mov eax, dword [ebp - 8]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4071e6
xor eax, eax
jmp 0x407245
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4071ff
xor eax, eax
jmp 0x407245
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x1c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40721c
xor eax, eax
jmp 0x407245
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 1
pop eax
leave
ret

Function at 0x407972
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
test eax, eax
jne 0x40798c
xor eax, eax
jmp 0x407a8c
push dword [ebp + 8]
call fcn.004077c9
pop ecx
push 0x421490
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x41c]
push eax
call fcn.0040831c
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x2a6
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx eax, byte [ebp - 0x314]
test eax, eax
jne 0x407a40
push 0x105
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x314]
push eax
call fcn.0040831c
push str.IsUninst.exe
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4214d8
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x13d
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x314]
push eax
push 0xffffffffffffffff
push 1
push str.UninstallString
lea eax, [ebp - 0x41c]
push eax
push dword [0x42137c]
call fcn.0040ff9b
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0x242
push eax
push 0xffffffffffffffff
push 1
push str.DisplayName
lea eax, [ebp - 0x41c]
push eax
push dword [0x42137c]
call fcn.0040ff9b
push 1
pop eax
leave
ret
Function at 0x4085c6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.004092f1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x40860b
xor eax, eax
jmp 0x408620
mov eax, dword [ebp - 0x10c]
and eax, 0x10
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
leave
ret 4

Function at 0x40961d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x254]
push eax
call fcn.0040831c
push 0x421520
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x409681
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x4096f7
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x4096eb
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x4096b3
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x4096b3
mov dword [ebp - 0x258], 1
jmp 0x4096ba
and dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4096d6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4096f7
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 8], eax
jmp 0x409688
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
leave
ret 4