joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408625
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304a0]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304a4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x408687
mov ecx, dword [0x42746c]
call fcn.0040c77c
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d43c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304a4], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x4086d7
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x408721
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41d788
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408b5a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d7f0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408b75
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408b7f
mov byte [eax], 0
test edi, edi
je 0x408c28
movzx eax, word [edi]
test ax, ax
je 0x408c28
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408bb8
cmp dword [ebp + 0xc], 0
je 0x408bc4
test esi, esi
jne 0x408bc4
test ebx, ebx
je 0x408bb4
mov byte [ebx], 1
mov esi, edx
jmp 0x408bd3
cmp ax, 0xd
je 0x408be6
cmp ax, 0xa
je 0x408be8
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408bde
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408b98
jmp 0x408be8
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408be8
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408c23
mov word [ebx], ax
test esi, esi
je 0x408c23
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b382
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408c2a
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408c6f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d7f0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d24f
cmp byte [0x4304a5], 0
jne 0x408d04
push 6
push dword [0x422024]
lea eax, [ebp - 0x1020]
push eax
call fcn.00406350
push eax
call fcn.0040c233
test eax, eax
jne 0x408d04
push 0x41d480
call fcn.0040d23c
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d77a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d700
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x408e65
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d7f0
push ebx
xor ebx, ebx
cmp byte [0x4304e8], bl
je 0x408eea
cmp word [0x427470], bx
je 0x408eea
push esi
push 0x427470
lea esi, [ebp - 0x1008]
call fcn.00408e28
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x408eea
push dword [ebp + 8]
call fcn.0040d77a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x408eef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d7f0
cmp byte [0x4304e8], 0
je 0x408f96
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00408e28
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x408f96
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408f8d
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x408f71
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b382
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x40b88f
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x44f244]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x43dbb8]
mov ecx, dword [0x44f24c]
mov dword [0x44f244], eax
movzx eax, al
add eax, dword [0x44f248]
imul eax, eax, 0x8088405
inc eax
mov dword [0x44f248], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x43dbb8]
mov eax, dword [esp + 4]
mov dword [0x44f24c], ecx
ret 4

Function at 0x40b92c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040b8e9
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040dfe0
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040b86f
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040b88f
inc esi
cmp esi, 0xc
jl 0x40b94e
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x43e10c]
test byte [eax + 0x40], 2
movzx eax, byte [0x44e177]
jne 0x40b989
movzx eax, byte [0x44e17f]
movzx ecx, cx
cmp ecx, eax
je 0x40b995
or eax, 0xffffffff
jmp 0x40b9da
mov ecx, dword [0x44e120]
mov eax, ecx
cdq
cmp edx, dword [0x43e0ec]
push edi
jl 0x40b9b7
mov edx, dword [0x43e0e8]
jg 0x40b9b3
cmp eax, edx
jbe 0x40b9b7
mov edi, edx
jmp 0x40b9b9
mov edi, ecx
mov esi, dword [0x44e11c]
jmp 0x40b9d3
dec edi
call fcn.0040b86f
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040b88f
inc esi
test edi, edi
jne 0x40b9c1
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40c793
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x40c7c5
cmp dword [ebp - 4], edi
jne 0x40c806
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40c806
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c7b2
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c7b2
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40c85c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41de58
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40c853
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40c84a
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40d027
Capabilities:
Hide graphical window
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040cfc0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40d08e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
sub edi, eax
lea ecx, [eax + 1]
lea eax, [ebp + 0x18]
push eax
push 0x41ded8
push 4
push 0
dec edi
push 0x41dee8
mov dword [ebp + 8], ecx
dec edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40d0f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x40d137
cmp dword [ebp + 0xc], ecx
je 0x40d15d
cmp dword [esi + 0x14], ecx
jne 0x40d15d
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x40d15d
push eax
mov ecx, esi
call fcn.0040cc8e
mov esi, eax
test esi, esi
je 0x40d15d
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040d81b
pop ecx
jmp 0x40d15d
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x40d150
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x40d15d
mov ecx, esi
call fcn.0040c998
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d164
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41de48
push 1
xor ebx, ebx
push ebx
push 0x41df08
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d235
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41def8
push eax
call dword [ecx]
test eax, eax
jl 0x40d22c
cmp byte [ebp + 8], bl
je 0x40d1b7
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d1d4
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d1e6
push 0x41d43c
jmp 0x40d1e9
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d1fe
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d20f
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d223
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d24f
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x412945
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223e4]
jne 0x41294f
repz ret
jmp fcn.004176e5
Function at 0x418d07
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.004129c6
and dword [ebp - 4], 0
cmp dword [0x44fcb4], 0
mov ebx, eax
jne 0x418db8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418e69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418e69
push eax
call fcn.00412954
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fcb4], eax
call esi
push eax
call fcn.00412954
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fcb8], eax
call esi
push eax
call fcn.00412954
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44fcbc], eax
call esi
push eax
call fcn.00412954
pop ecx
mov dword [0x44fcc4], eax
test eax, eax
je 0x418db8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412954
pop ecx
mov dword [0x44fcc0], eax
mov eax, dword [0x44fcc0]
cmp eax, ebx
je 0x418e10
cmp dword [0x44fcc4], ebx
je 0x418e10
push eax
call fcn.004129cf
push dword [0x44fcc4]
mov esi, eax
call fcn.004129cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418e10
test edi, edi
je 0x418e10
call esi
test eax, eax
je 0x418e07
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418e07
test byte [ebp - 0xc], 1
jne 0x418e10
or dword [ebp + 0x10], 0x200000
jmp 0x418e49
mov eax, dword [0x44fcb8]
cmp eax, ebx
je 0x418e49
push eax
call fcn.004129cf
pop ecx
test eax, eax
je 0x418e49
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418e49
mov eax, dword [0x44fcbc]
cmp eax, ebx
je 0x418e49
push eax
call fcn.004129cf
pop ecx
test eax, eax
je 0x418e49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fcb4]
call fcn.004129cf
pop ecx
test eax, eax
je 0x418e69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418e6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
xor ecx, ecx
mov edi, 0x7733
lea ebx, [esi + 0x6c]
mov dword [ebp - 8], edi
mov edx, 0x500f
mov dword [ebp - 4], ecx
test eax, eax
je 0x4011a5
cmp dword [ebp + 0xc], ecx
je 0x4011a5
cmp eax, dword [ebp + 0xc]
jae 0x4011a5
mov esi, dword [ebp + 0xc]
mov ebx, eax
sub esi, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 8], eax
mov edx, eax
jne 0x401134
mov ecx, 0xf41
mov eax, 0x3159721f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401151
mov ecx, dword [ebp - 4]
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x401176
dec eax
or eax, 0xfffffffc
inc eax
jne 0x401179
inc ecx
cmp ecx, 0x3c75
jl 0x401167
xor ecx, ecx
test esi, esi
je 0x40125b
jmp 0x401190
mov al, byte [ecx + ebx + 1]
sub al, 0x5c
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x401190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x78f7
lea ebx, [ebx]
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011b0
inc esi
mov eax, esi
and eax, 0x80000007
jns 0x4011d4
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4011d7
inc esi
cmp esi, 0x1b9c
jl 0x4011c5
mov ecx, 0x331f
mov eax, 0x95a02569
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011e4
mov eax, 0x2684
mov ecx, 0x7f
cmp ebx, ecx
cmovl ebx, ecx
dec eax
jne 0x401203
mov edi, 0x28c7
mov eax, 0x2aaaaaab
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401210
mov eax, 0x2b5e
dec eax
jne 0x401228
mov edi, 0x64be
mov eax, 0x94f2095
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401230
mov edi, dword [ebp - 8]
mov eax, 0xf2b9d649
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401246
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
inc byte [esi + 0x122]
movzx eax, byte [esi + 0x122]
lea edx, [esi + 0x11]
add eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
movzx edx, byte [eax]
movzx eax, byte [esi + 0x12e]
add eax, edx
mov byte [esi + 0x12e], al
movzx eax, al
add esi, 0x11
add eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp + 8], eax
movzx eax, byte [eax]
mov dl, byte [esi]
mov byte [esi], al
mov eax, dword [ebp + 8]
push edi
mov ebx, 0x5a95
mov edi, 0x130a
mov byte [eax], dl
lea esp, [esp]
inc ecx
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*4]
sub edx, eax
jne 0x402c2d
add ecx, 5
cmp ecx, 0x74d1
jl 0x402c10
mov ecx, 0x7298
mov edx, 0xd9
mov eax, 0x15
cmp eax, 0xd9
cmovl eax, edx
dec ecx
jne 0x402c44
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov al, byte [eax]
add al, byte [esi]
movzx eax, al
mov cl, byte [eax + ecx]
mov eax, 0x2b5e
dec eax
jne 0x402c64
jmp 0x402c70
mov eax, 0x5397829d
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402c70
mov eax, 0x7e07e07f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402c83
movzx eax, cl
movzx ecx, byte [ebp + 0xc]
pop edi
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042ed
Capabilities:
Load windows common language runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10080d8]
push esi
push 0x1001268
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
cmp eax, esi
mov dword [0x1008148], eax
jne 0x100434d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1004327
call esi
jmp 0x1004333
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [section..data]
cmp byte [ecx + 0x19], 2
jb 0x10044c2
push eax
push 0x1001240
push 0xa
jmp 0x1004396
push 0x1001250
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x1008150], eax
jne 0x10043a6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1004372
call esi
jmp 0x100437e
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [section..data]
cmp byte [ecx + 0x19], 2
jb 0x10044c2
push eax
push 0x1001240
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003cc1
jmp 0x10044c2
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [ebp - 0x50], esi
mov word [ebp - 0x44], si
call edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
push 0x20
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push 0x51
push esi
push esi
push esi
push esi
call dword [0x1008150]
push dword [ebp - 0x48]
mov ebx, eax
call edi
cmp ebx, esi
jge 0x1004407
mov eax, dword [section..data]
cmp byte [eax + 0x19], 2
jb 0x10044c0
push ebx
push 0x1001240
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003cc1
jmp 0x10044c0
lea eax, [ebp - 0x44]
push eax
call fcn.0100428e
test al, al
jne 0x1004433
mov eax, dword [section..data]
cmp byte [eax + 0x19], 2
jb 0x10044c0
lea ecx, [ebp - 0x44]
push ecx
push 0x1001240
push 0xd
jmp 0x10044b5
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x1008168
call fcn.01006fcb
cmp eax, esi
jge 0x100446a
mov ecx, dword [section..data]
cmp byte [ecx + 0x19], 2
jb 0x10044c0
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1001240
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003c58
jmp 0x10044c0
push 0x100814c
push 0x10011bc
push 0x10011cc
push esi
push esi
push esi
call sub.mscoree.dll_CorBindToRuntimeEx
cmp eax, esi
jge 0x100449f
mov ecx, dword [section..data]
cmp byte [ecx + 0x19], 2
jb 0x10044c0
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1001240
push 0xf
jmp 0x100445d
mov eax, dword [section..data]
cmp byte [eax + 0x19], 4
jb 0x10044c0
lea ecx, [ebp - 0x44]
push ecx
push 0x1001240
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003bf5
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
pop esi
call fcn.01005f07
leave
ret
Function at 0x1004501
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10080d8]
push esi
xor esi, esi
cmp dword [0x100815c], esi
mov dword [ebp - 4], eax
jne 0x1004598
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x25
push esi
mov word [ebp - 0x20c], si
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jge 0x100455d
mov ecx, dword [section..data]
cmp byte [ecx + 0x19], 2
jb 0x1004598
push eax
push 0x1001240
push 0x1e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003cc1
jmp 0x1004598
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x1008154
call fcn.01006fcb
cmp eax, esi
jge 0x1004598
mov ecx, dword [section..data]
cmp byte [ecx + 0x19], 2
jb 0x1004598
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001240
push 0x1f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003c58
mov ecx, dword [ebp - 4]
mov eax, 0x1008154
pop esi
call fcn.01005f07
leave
ret
Function at 0x1005136
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
xor esi, esi
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10051c5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1005193
call esi
mov esi, eax
jmp 0x10051a3
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [section..data]
cmp byte [eax + 0x19], 2
jb 0x1005299
push esi
push dword [ebx + 4]
push dword [edi + 4]
push 0x1001374
push 0x15
jmp 0x100528e
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1005216
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10051e7
call esi
mov esi, eax
jmp 0x10051f7
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [section..data]
cmp byte [eax + 0x19], 2
jb 0x1005299
push esi
push dword [ebx + 4]
push dword [edi + 4]
push 0x1001374
push 0x16
jmp 0x100528e
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1005268
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100523d
call esi
mov esi, eax
jmp 0x100524d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [section..data]
cmp byte [eax + 0x19], 2
jb 0x1005299
push esi
push dword [ebx + 4]
push dword [edi + 4]
push 0x1001374
push 0x17
jmp 0x100528e
cmp dword [ebp + 8], 0
je 0x1005299
mov eax, dword [section..data]
cmp byte [eax + 0x19], 2
mov esi, 0x80004005
jb 0x1005299
push dword [ebp + 8]
push dword [ebx + 4]
push dword [edi + 4]
push 0x1001374
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004fb1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8