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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404628
xor eax, eax
push ebp
push 0x4de17f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417604]
call fcn.00403334
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404638
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4de159
xor esi, esi
mov eax, 0xff
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
cmp ebx, 0x103
je 0x4de14d
test ebx, ebx
jne 0x4de145
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10c]
call fcn.00409324
mov eax, dword [ebp - 0x110]
mov edx, 0x4de198
call fcn.00404584
je 0x4de144
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10c]
call fcn.00409324
mov eax, dword [ebp - 0x114]
mov edx, 0x4de1ac
call fcn.00404584
je 0x4de144
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x10c]
call fcn.00409324
cmp dword [ebp - 0x118], 0
je 0x4de144
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 4]
call fcn.00404484
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
test ebx, ebx
je 0x4de07f
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de186
lea eax, [ebp - 0x120]
mov edx, 5
call fcn.0040419c
lea eax, [ebp - 4]
call fcn.00404178
ret
Function at 0x4de1b8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404628
xor eax, eax
push ebp
push 0x4de367
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417604]
call fcn.00403334
mov eax, dword [ebp - 4]
call fcn.004de004
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4de22e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4de242
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4de341
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x120]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x120]
call fcn.00404638
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4de341
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0xff
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
cmp ebx, 0x103
je 0x4de326
test ebx, ebx
jne 0x4de31e
lea ecx, [ebp - 0x128]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x128]
push 0x4de380
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x11c]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
push dword [ebp - 0x12c]
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.004044f8
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x14]
test ebx, ebx
je 0x4de29d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x4de25e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de36e
lea eax, [ebp - 0x12c]
mov edx, 4
call fcn.0040419c
lea eax, [ebp - 4]
call fcn.00404178
ret

Function at 0x4df2e4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x20
mov eax, dword [0x4e721c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409324
add esp, 0x104
pop ebx
ret
Function at 0x4df324
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x21
mov eax, dword [0x4e721c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409324
add esp, 0x104
pop ebx
ret

Function at 0x4e3158
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e3160
push ecx
push ebx
mov eax, 0x4e2dc0
call fcn.00406564
mov ebx, dword [0x4e721c]
xor eax, eax
push ebp
push 0x4e32ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
call fcn.0046d440
mov eax, dword [ebx]
mov edx, 0x4e3314
call fcn.0046d038
push 0
push 0x4e3334
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402a54
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00408fa8
push dword [ebp - 0x18]
push 0x4e334c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004044f8
mov eax, dword [ebp - 0x14]
call fcn.00404638
push eax
call sub.kernel32.dll_WinExec
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0x4e3334
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402a54
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00408fa8
push dword [ebp - 0x24]
push 0x4e3364
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004044f8
mov eax, dword [ebp - 0x20]
call fcn.00404638
push eax
call sub.kernel32.dll_WinExec
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0x4e3334
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00402a54
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00408fa8
push dword [ebp - 0x30]
push 0x4e337c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004044f8
mov eax, dword [ebp - 0x2c]
call fcn.00404638
push eax
call sub.kernel32.dll_WinExec
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov ecx, dword [0x4e7044]
mov eax, dword [ebx]
mov edx, dword [0x4dcd9c]
call fcn.0046d458
mov ecx, dword [0x4e738c]
mov eax, dword [ebx]
mov edx, dword [0x4dd6ec]
call fcn.0046d458
mov ecx, dword [0x4e73dc]
mov eax, dword [ebx]
mov edx, dword [0x4d8ac4]
call fcn.0046d458
mov eax, dword [ebx]
mov byte [eax + 0x5b], 0
mov eax, dword [0x4e7044]
mov eax, dword [eax]
call fcn.004dd468
test al, al
jne 0x4e32d7
mov eax, 0x4e3394
call fcn.004330e8
mov eax, dword [ebx]
call fcn.0046d5c4
jmp 0x4e32dd
mov eax, dword [ebx]
mov byte [eax + 0x5b], 1
mov eax, dword [ebx]
call fcn.0046d4d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3306
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.0040419c
ret
Function at 0x1000cba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [0x102c5218], 0xba2
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x102c5218], 0x16ab
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x1000cc4c
jmp 0x1000cc35
mov dword [0x102c5218], 0x3ab
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000ccec
mov dword [0x102c5218], 0x191e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000ccbd
jmp 0x1000ccec
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x1000cbde
mov eax, dword [ebp - 0x18]
mov dword [0x102c5218], 0x193d
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x1000ccec
mov dword [0x102c5218], 0x918
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000ccec
mov dword [0x102c5218], 0x17c4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000ccec
mov dword [0x102c521c], 0x2ac5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1000cbf6
jmp 0x1000ccec
mov dword [0x102c521c], 0x783
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x1d], dl
mov eax, 1
mov cl, byte [ebp - 0x1d]
test cl, 1
mov dword [ebp - 0x24], eax
jne 0x1000ccfb
jmp 0x1000ccec
xor eax, eax
mov dword [0x102c5218], 0xa07
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop ebp
ret
Function at 0x1000dcf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102c5224], 0
mov byte [0x102c5228], 0
mov dword [0x102c5218], 0x434
mov dword [0x102c521c], 0x257b
mov dword [0x102c5220], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000dd5c
xor eax, eax
mov dword [0x102c5218], 0x598
mov dword [0x102c5220], 0
mov dword [ebp - 0x20], eax
jmp 0x1000dd8e
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102c5218], 0x5fa
mov eax, dword [0x102c5220]
add eax, 1
mov dword [0x102c5220], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000dd5c
jmp 0x1000dd41
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x102c522c], 0
mov dword [0x102c5218], 0x25c8
mov edi, dword [0x102c5224]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102c522c], esi
mov dword [0x102c5218], 0x4120
mov eax, esi
cdq
idiv ecx
mov dword [0x102c5224], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x102c5228], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x102c5218], 0xd1c
mov cl, byte [0x102c5228]
mov esi, dword [0x102c5224]
mov byte [ebx + esi], cl
mov esi, dword [0x102c5218]
add esi, 0xf17
mov dword [0x102c521c], esi
mov esi, dword [0x102c5220]
add esi, 1
mov dword [0x102c5220], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1000dd8e
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000de60
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov edx, dword [0x102c521c]
add edx, 0xffffe298
mov dword [0x102c5218], edx
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.1000d850
lea ecx, [0x1000cf00]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x6c], 0x138800
mov edx, dword [0x102c5204]
mov dword [esp + 0x50], edx
mov edx, dword [0x102c5208]
mov dword [esp + 0x58], edx
mov edx, dword [0x102c520c]
mov dword [esp + 0x9c], edx
mov edx, dword [0x102c5210]
mov dword [esp + 0x5c], edx
mov edx, dword [0x102c5214]
mov dword [esp + 0x78], edx
mov edx, dword [0x102c521c]
add edx, 0x1be1
mov dword [0x102c521c], edx
mov dword [0x102c5218], 0xffffd49c
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jmp 0x1000df45
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [0x102c521c], 0x28e7
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x7c], eax
mov dword [0x102c5218], 0x2c22
call fcn.1000cba0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x1000df95
jmp 0x1000dfd3
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x1000df81
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + ecx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
cmp eax, 0x4550
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x1000df06
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x24], eax
jmp 0x1000df45
lea eax, [esp + 0x40]
mov dword [0x102c5218], 0x19bb
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000cf60
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x102c5218], 0x1520
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1000e0f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102c5220], 0
mov dword [0x102c5224], 0
mov dword [0x102c5230], 0
mov dword [0x102c5218], 0x119e
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1000e255
jmp 0x1000e14b
jmp 0x1000e255
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1000e15c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102c5220], edx
mov dword [0x102c5218], 0x1fc8
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102c5224], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102c5228], cl
mov dword [0x102c521c], 0xd89
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x102c5228]
mov edx, dword [0x102c5224]
mov byte [edi + edx], cl
mov dword [0x102c5218], 0x632
mov edx, dword [0x102c5220]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102c5224]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x102c5218], 0xd9f
and ebx, 0xff
mov dword [0x102c5230], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov dword [0x102c5218], 0xe72
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x38], ebx
je 0x1000e146
mov eax, dword [0x102c5220]
mov ecx, dword [0x102c5224]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1000e15c
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
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 0x595f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x103000]
push edi
or ebp, 0xffffffff
jmp 0x595f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x595f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x595f48
mov eax, 1
add ebx, ebx
jne 0x595f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x595f60
jne 0x595f7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x595f60
xor ecx, ecx
sub eax, 3
jb 0x595f90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x596002
mov ebp, eax
add ebx, ebx
jne 0x595f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x595fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x595fcc
inc ecx
add ebx, ebx
jne 0x595fb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x595fad
jne 0x595fc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x595fad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x595fec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x595fdd
jmp 0x595f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x595fec
add edi, ecx
jmp 0x595f4e
pop esi
mov edi, esi
mov ecx, 0x2647
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59600a
cmp byte [edi], 0x13
jne 0x59600a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x59600f
lea edi, [esi + 0x192000]
mov eax, dword [edi]
or eax, eax
je 0x596087
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19aff8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19b0fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59603c
mov ecx, edi
jns 0x59606b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19b100]
or eax, eax
je 0x596081
mov dword [ebx], eax
add ebx, 4
jmp 0x596059
call dword [esi + 0x19b108]
mov ebp, dword [esi + 0x19b104]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5960bb
sub esp, 0xffffff80
jmp 0x447102
Function at 0x403a68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
call fcn.00403b07
test eax, eax
je 0x403a8a
push 0x5c
push dword [ebp + 0x14]
call fcn.0047b7f8
pop ecx
test eax, eax
pop ecx
je 0x403a9e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x403b03
and byte [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
push 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call fcn.00403b68
lea eax, [ebp - 0x208]
push 0x52584c
push eax
call fcn.0047b690
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push eax
call fcn.0047b690
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
leave
ret 0x10

Function at 0x403b07
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x525558], 0xffffffff
jne 0x403b5a
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x403b4f
mov dword [0x525558], 6
jmp 0x403b5a
mov eax, dword [ebp - 0x90]
mov dword [0x525558], eax
xor eax, eax
cmp dword [0x525558], 5
setg al
leave
ret

Function at 0x403b68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x403bf1
cmp dword [ebp + 0xc], 0x104
jl 0x403bf1
cmp byte [0x5341a0], bl
push esi
mov esi, 0x5341a0
jne 0x403be1
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x403be1
lea eax, [ebp - 4]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403bcc
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403bcc
push str.ppStream
push esi
call fcn.0047b690
pop ecx
pop ecx
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047b86a
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x403ca9
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4e6add
call fcn.0047b598
push ecx
mov eax, dword [0x52ba98]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x52ba98]
and dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [edi], eax
mov eax, dword [0x52ba98]
lea ebx, [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x10], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x14], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x18], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x1c], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x20], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x24], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x2c], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0xa
mov dword [esi], 0x4f4d34
call fcn.004dc5f9
mov ecx, edi
call fcn.004dc5f9
mov ecx, ebx
call fcn.004dc5f9
lea ecx, [esi + 0x10]
call fcn.004dc5f9
lea ecx, [esi + 0x14]
call fcn.004dc5f9
lea ecx, [esi + 0x18]
call fcn.004dc5f9
lea ecx, [esi + 0x1c]
call fcn.004dc5f9
lea ecx, [esi + 0x20]
call fcn.004dc5f9
lea ecx, [esi + 0x24]
call fcn.004dc5f9
and dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
call fcn.004dc5f9
lea ecx, [esi + 0x30]
call fcn.004dc5f9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403cba
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4e6add
call fcn.0047b598
push ecx
mov eax, dword [0x52ba98]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x52ba98]
and dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [edi], eax
mov eax, dword [0x52ba98]
lea ebx, [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x10], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x14], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x18], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x1c], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x20], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x24], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x2c], eax
mov eax, dword [0x52ba98]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0xa
mov dword [esi], 0x4f4d34
call fcn.004dc5f9
mov ecx, edi
call fcn.004dc5f9
mov ecx, ebx
call fcn.004dc5f9
lea ecx, [esi + 0x10]
call fcn.004dc5f9
lea ecx, [esi + 0x14]
call fcn.004dc5f9
lea ecx, [esi + 0x18]
call fcn.004dc5f9
lea ecx, [esi + 0x1c]
call fcn.004dc5f9
lea ecx, [esi + 0x20]
call fcn.004dc5f9
lea ecx, [esi + 0x24]
call fcn.004dc5f9
and dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
call fcn.004dc5f9
lea ecx, [esi + 0x30]
call fcn.004dc5f9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret