joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
mov eax, dword [0x4496d0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov al, 0x45
mov byte [esp + 0x21], al
mov byte [esp + 0x24], al
mov eax, dword [edi]
mov byte [esp + 0x20], 0x4b
mov byte [esp + 0x22], 0x52
mov byte [esp + 0x23], 0x4e
mov byte [esp + 0x25], 0x4c
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0x6c
mov byte [esp + 0x2c], 0
movzx ecx, word [eax + 0x14]
lea edx, [esp + 0x30]
lea esi, [ecx + eax + 0x18]
push edx
lea eax, [esp + 0x24]
mov bl, 0x74
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x38], 0x56
mov byte [esp + 0x39], 0x69
mov byte [esp + 0x3a], 0x72
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], 0x75
mov byte [esp + 0x3d], 0x61
mov byte [esp + 0x3e], 0x6c
mov byte [esp + 0x3f], 0x46
mov byte [esp + 0x40], 0x72
mov byte [esp + 0x41], 0x65
mov byte [esp + 0x42], 0x65
mov byte [esp + 0x43], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [edi]
cmp word [ebp + 6], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
jbe 0x4040cb
add esi, 0x24
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov edi, eax
and ecx, 1
and edx, 1
shr edi, 0x1f
test eax, 0x2000000
je 0x404007
mov ecx, dword [esi - 0x14]
mov edx, dword [esi - 0x1c]
push 0x4000
push ecx
push edx
call dword [esp + 0x20]
jmp 0x4040ab
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [edi + ecx*2]
mov edi, dword [edx*4 + 0x44aa78]
je 0x404021
or edi, 0x200
mov ecx, dword [esi - 0x14]
test ecx, ecx
jne 0x40403a
test al, 0x40
je 0x404031
mov ecx, dword [ebp + 0x20]
jmp 0x404038
test al, al
jns 0x4040ab
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jbe 0x4040ab
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x44], 0x56
mov byte [esp + 0x45], 0x69
mov byte [esp + 0x46], 0x72
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x75
mov byte [esp + 0x49], 0x61
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x50
mov byte [esp + 0x4c], 0x72
mov byte [esp + 0x4d], 0x6f
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], 0x65
mov byte [esp + 0x50], 0x63
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi - 0x14]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi - 0x1c]
push edi
push ecx
push edx
call eax
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx]
mov eax, dword [esp + 0x10]
movzx edx, word [ebp + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x403fd3
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421900
add esp, 0x40
ret
Function at 0x404880
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
movzx eax, byte [esp + 8]
push edi
cdq
mov edi, 0x5ab
idiv edi
add dl, 0x3d
test esi, esi
jbe 0x4048a8
mov al, byte [ecx]
xor al, dl
add al, dl
mov byte [ecx], al
add ecx, 1
sub esi, 1
jne 0x404898
pop edi
pop esi
ret

Function at 0x4048b0
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
sub esp, 0x10
mov eax, dword [0x4496d0]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
mov eax, edi
mov ecx, ebx
call fcn.00404880
add esp, 4
call fcn.00404330
push 0x8000
push 0
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test ebp, ebp
je 0x4049a6
mov dl, byte [0x43f250]
mov ecx, dword [0x43f24c]
lea eax, [esp + 0x14]
mov byte [esp + 0x18], dl
mov dword [esp + 0x14], ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404960
sub eax, edx
push 0x18
lea ecx, [esp + 0x18]
call fcn.00404880
lea eax, [esp + 0x18]
push eax
mov eax, ebp
call fcn.004045d0
add esp, 8
test eax, eax
je 0x40499f
sub esp, 0x2a8
mov edi, esp
mov ecx, 0xaa
mov esi, str._._______..
rep movsd dword es:[edi], dword [esi]
call eax
mov edi, ebp
call fcn.00404670
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4066d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40671a
call fcn.0041167d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40671a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40675d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406746
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406746
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40675a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e761
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e7a4
call fcn.0041167d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e7a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e7bf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e318
test ebx, ebx
mov esi, eax
je 0x40e7bd
test edi, edi
je 0x40e7bd
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x410a2a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x410a53
call fcn.0041167d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x410a76
push eax
push dword [esi + 4]
call fcn.0041099b
push esi
push eax
mov ecx, 0x44c878
call fcn.004106f8
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x410dfe
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x43685d
call fcn.00422cef
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.00410dc0
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [esi], vtable.CFtpConnection.0
call fcn.00403860
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004035e0
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x410e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.0041099b
push dword [esi + 0xc]
mov ecx, 0x44c878
push eax
call fcn.004106f8
mov eax, esi
call fcn.00422dc7
ret 0x1c

Function at 0x421900
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4496d0]
jne 0x42190a
repz ret
jmp fcn.00426c31
Function at 0x431557
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00426d98
xor ebx, ebx
cmp dword [0x44d67c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43162c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x431597
xor eax, eax
jmp 0x4316f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43e42c
push edi
call esi
cmp eax, ebx
je 0x431590
push eax
call fcn.00426d35
mov dword [esp], 0x43e41c
push edi
mov dword [0x44d67c], eax
call esi
push eax
call fcn.00426d35
mov dword [esp], 0x43e408
push edi
mov dword [0x44d680], eax
call esi
push eax
call fcn.00426d35
mov dword [0x44d684], eax
lea eax, [ebp - 8]
push eax
call fcn.00422ea2
test eax, eax
pop ecx
pop ecx
je 0x4315fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042789f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43162c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00426d35
cmp eax, ebx
pop ecx
mov dword [0x44d68c], eax
je 0x43162c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426d35
pop ecx
mov dword [0x44d688], eax
mov eax, dword [0x44d688]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4316a5
cmp dword [0x44d68c], esi
je 0x4316a5
push eax
call fcn.00426da1
pop ecx
call eax
cmp eax, ebx
je 0x431672
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44d68c]
call fcn.00426da1
pop ecx
call eax
test eax, eax
je 0x431672
test byte [ebp - 0x18], 1
jne 0x4316a5
lea eax, [ebp - 0xc]
push eax
call fcn.00422ed9
test eax, eax
pop ecx
je 0x43168d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042789f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43169c
or dword [ebp + 0x10], 0x200000
jmp 0x4316d6
or dword [ebp + 0x10], 0x40000
jmp 0x4316d6
mov eax, dword [0x44d680]
cmp eax, esi
je 0x4316d6
push eax
call fcn.00426da1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4316d6
mov eax, dword [0x44d684]
cmp eax, esi
je 0x4316d6
push dword [ebp - 4]
push eax
call fcn.00426da1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44d67c]
call fcn.00426da1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4357c8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4496d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043575d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004232c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x435817
cmp dword [ebp - 0x1c], 5
jb 0x43582f
jmp 0x43582b
cmp dword [ebp - 0x10], 1
jne 0x43582f
cmp dword [ebp - 0x1c], 4
ja 0x43582b
jne 0x43582f
cmp dword [ebp - 0x18], 0
jbe 0x43582f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43ecd0
call fcn.00435631
test eax, eax
jge 0x435850
mov byte [0x44d7bc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421900
add ebp, 0x78
leave
ret
Function at 0x401b40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
call fcn.004014d0
test eax, eax
jne 0x401ba2
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.pyjju.ime
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42636c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.IMM32.dll_ImmInstallIMEA
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x401bb0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41d256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4268b8]
push esi
mov dword [esp + 8], eax
mov dword [esp + 0x12c], 0
mov dword [esp + 4], eax
mov esi, dword [esp + 0x134]
lea ecx, [esp + 8]
mov byte [esp + 0x12c], 1
lea eax, [esi + 0x24]
push eax
call fcn.00414191
add esi, 0x14
lea ecx, [esp + 4]
push esi
call fcn.00414191
push 0x42639c
lea ecx, [esp + 8]
call fcn.0041435a
push 0x42639c
lea ecx, [esp + 0xc]
call fcn.0041435a
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.004146a8
test eax, eax
pop esi
jne 0x401c4f
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push eax
call fcn.004146a8
test eax, eax
je 0x401c7b
mov al, byte [esp + 0x18]
mov edx, dword [esp]
lea ecx, [esp + 8]
and al, 0xfe
push ecx
push edx
mov byte [esp + 0x20], al
call fcn.0041480d
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov byte [esp + 0x128], 0
call fcn.004140a4
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.004140a4
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret

Function at 0x401cc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004146a8
mov edi, str.IMEROVASOfT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x114]
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 + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.004146a8
mov edx, dword [esp + 0x114]
not ebx
and edx, 0x7fff
and ebx, 0xffff
shl edx, 0x10
and ebx, 0x7fffffff
or edx, ebx
push edx
push str.BookID
push str.SOFTWAREROVASOFT
push 0x80000002
call fcn.004039e0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x401d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x42628c
push str.SOFTWAREROVASOFT
push 0x80000002
call fcn.00403980
add esp, 0x10
test eax, eax
jne 0x401e04
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call fcn.004146a8
mov eax, dword [esp + 0x10c]
and esi, 0x7fffffff
and eax, 0x1ff
shl eax, 0x16
xor eax, esi
push eax
push 0x42628c
push str.SOFTWAREROVASOFT
push 0x80000002
mov dword [esp + 0x14], eax
call fcn.004039e0
add esp, 0x10
pop esi
add esp, 0x220
ret

Function at 0x401e60
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41d281
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, dword [esp + 0x124]
push esi
call fcn.00401bb0
add esp, 4
add esi, 0x24
lea eax, [esp + 8]
push 0x426410
push esi
push eax
call fcn.00414287
mov ecx, dword [esp + 0x128]
mov esi, dword [esi]
mov edx, dword [esp + 8]
push ecx
push esi
push edx
mov dword [esp + 0x128], 0
call fcn.004022a0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
pop esi
jne 0x401eff
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.004140a4
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
call fcn.00401b40
call fcn.004016a0
call fcn.0041bb70
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
jne 0x401f29
mov ecx, dword [eax + 0x19c]
test ecx, ecx
jne 0x402003
push 0x426400
lea ecx, [esp + 0xc]
call fcn.00414112
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallPYJJ]
push eax
push str.DisplayName
push ecx
push 0x80000002
mov byte [esp + 0x128], 1
call fcn.00403ae0
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call fcn.004140a4
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x4268b8]
mov dword [esp], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x118], 2
push ecx
lea ecx, [esp + 4]
call fcn.004141e1
push str.IMERovasoftPyjjUninst.exe
lea ecx, [esp + 4]
call fcn.0041435a
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallPYJJ]
lea edx, [esp]
push edx
push str.UninstallString
push eax
push 0x80000002
call fcn.00403ae0
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallPYJJ]
add esp, 0x10
push ecx
lea ecx, [esp + 4]
call fcn.004141e1
push 0x4263c0
lea ecx, [esp + 4]
call fcn.0041435a
mov edx, dword [esp]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp]
mov byte [esp + 0x118], 0
call fcn.004140a4
call fcn.00401d80
call fcn.00401e10
call fcn.00401cc0
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.004140a4
mov ecx, dword [esp + 0x110]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x402040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d2a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and eax, 0xffff
push 0x426464
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40208c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4020aa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4020c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
lea ecx, [ebp - 0x28]
call fcn.0041493a
mov ecx, dword [ebp + 8]
push 0
push 0x9001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00414a4c
test eax, eax
jne 0x402113
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041498f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov ebx, 1
call fcn.00414fe1
mov edx, dword [ebp - 0x28]
push edi
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call dword [edx + 0x38]
jmp 0x402155
mov dword [ebp - 4], 0
call fcn.0041501f
lea ecx, [ebp - 0x28]
call fcn.00414c46
lea ecx, [ebp - 0x28]
call fcn.00414c67
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041498f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028a0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.IME
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.004146a8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40290c
lea edx, [esp + 0xc]
push 0
push edx
call ebx
mov edi, str.Rovasoft
or ecx, 0xffffffff
xor eax, eax
push ebp
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 + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.004146a8
test eax, eax
pop ebp
jne 0x40295a
lea edx, [esp + 0xc]
push eax
push edx
call ebx
mov edi, str.PYSET.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
add esp, 0x21c
ret
Function at 0x4029f0
Capabilities:
Check os version

Disassembly:
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x108]
mov dword [edi], 0x94
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
xor ebp, ebp
push edi
mov word [esi + 0x1b0], ax
mov dword [esi + 0x19c], ebp
mov dword [esi + 0x1a0], ebp
mov dword [esi + 0x1a4], ebp
mov dword [esi + 0x1a8], ebp
mov dword [esi + 0x1ac], ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402afb
mov ecx, dword [esi + 0x118]
xor eax, eax
cmp ecx, 2
sete al
mov edi, eax
mov eax, 1
cmp ecx, eax
mov dword [esi + 0x19c], edi
jne 0x402a75
mov edx, dword [esi + 0x10c]
cmp edx, 4
ja 0x402a71
jne 0x402a75
cmp dword [esi + 0x110], ebp
jbe 0x402a75
mov edx, eax
jmp 0x402a77
xor edx, edx
cmp edx, ebp
mov dword [esi + 0x1a4], edx
jne 0x402a90
push ebx
xor ebx, ebx
cmp ecx, eax
sete bl
mov dword [esi + 0x1a8], ebx
pop ebx
cmp edi, ebp
jne 0x402ab0
cmp edx, ebp
jne 0x402ad8
cmp dword [esi + 0x1a8], ebp
jne 0x402ad8
mov dword [esi + 0x104], 0x69
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x10c]
cmp ecx, 4
jae 0x402acb
mov dword [esi + 0x104], 0x68
pop edi
pop esi
xor eax, eax
pop ebp
ret
cmp ecx, 5
jne 0x402ad6
mov dword [esi + 0x1a0], eax
ja 0x402afb
mov cx, word [esi + 0x1b0]
cmp cx, 0x804
je 0x402aed
cmp cx, 0x404
jne 0x402af3
mov dword [esi + 0x1ac], eax
cmp dword [esi + 0x1ac], ebp
jne 0x402b07
mov dword [esi + 0x104], 0x69
xor eax, eax
pop edi
pop esi
pop ebp
ret