joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41241f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439608]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407986
mov dword [ebp - 0x14], eax
cmp dword [0x670ee4], esi
jne 0x412512
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41249f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4125f2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4125f2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4125f2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x670ee4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x670ee8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x670eec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x670ef4], eax
test eax, eax
je 0x41250f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x670ef0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412537
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41252a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41254c
push 4
pop eax
jmp 0x4125f4
cmp dword [ebp - 0x14], esi
je 0x41254c
push dword [0x670ee4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412531
mov eax, dword [0x670ef0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4125aa
cmp dword [0x670ef4], edi
je 0x4125aa
push eax
call ebx
push dword [0x670ef4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4125aa
test eax, eax
je 0x4125aa
call ecx
test eax, eax
je 0x41259f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41259f
test byte [ebp - 8], 1
jne 0x4125aa
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4125da
mov eax, dword [0x670ee8]
cmp eax, edi
je 0x4125d7
push eax
call ebx
test eax, eax
je 0x4125d7
call eax
mov esi, eax
test esi, esi
je 0x4125d7
mov eax, dword [0x670eec]
cmp eax, edi
je 0x4125d7
push eax
call ebx
test eax, eax
je 0x4125d7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x670ee4]
call ebx
test eax, eax
je 0x4125f2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4125f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bc0
mov esp, ebp
pop ebp
ret
Function at 0x4013ad
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
xor ecx, ecx
movzx eax, byte [ecx + 0x5f0450]
mov esi, dword [ebp + 8]
mov edx, eax
sar edx, 3
and eax, 7
mov dl, byte [edx + esi]
test byte [eax*2 + 0x5f03e0], dl
setne al
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x4013bb
and dword [ebp + 8], 0
mov dword [ebp - 4], 0x1e
cmp word [ebp + 0xc], 1
jne 0x4013fb
mov eax, dword [ebp - 4]
jmp 0x401400
mov eax, dword [ebp + 8]
add eax, eax
and dword [ebp + eax*4 - 0xf0], 0
and dword [ebp + eax*4 - 0xf4], 0
lea ecx, [ebp + eax*4 - 0xf0]
lea esi, [ebp + eax*4 - 0xf4]
mov eax, dword [ebp + 8]
xor edx, edx
movzx eax, byte [eax + 0x5f0488]
mov edi, eax
cmp edi, 0x1c
jge 0x401437
mov bl, byte [ebp + edi - 0x74]
jmp 0x40143e
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + edx - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x40142c
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x401459
mov dl, byte [ebp + eax - 0x74]
jmp 0x401460
mov dl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x40144e
xor edi, edi
mov edx, 0x5f03f0
movzx ebx, byte [edi + 0x5f0498]
lea eax, [edi + 0x5f04b0]
cmp byte [ebp + ebx - 0x3c], 0
je 0x40148a
mov ebx, dword [edx]
or dword [esi], ebx
movzx eax, byte [eax]
cmp byte [ebp + eax - 0x3c], 0
je 0x401498
mov eax, dword [edx]
or dword [ecx], eax
add edx, 4
inc edi
cmp edx, 0x5f0450
jl 0x401472
sub dword [ebp - 4], 2
inc dword [ebp + 8]
cmp dword [ebp - 4], 0xfffffffe
jg 0x4013ef
lea eax, [ebp - 0xf4]
push eax
call fcn.004014c7
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40221a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x405e03
Capabilities:
Parse url

Disassembly:
mov eax, 0x5937c0
call fcn.00423b2c
sub esp, 0x840
push ebx
push esi
push edi
mov esi, ecx
mov edx, 0xff
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x44b]
mov byte [ebp - 0x44c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x84b]
mov byte [ebp - 0x84c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea edx, [ebp - 0x4c]
stosb byte es:[edi], al
pop eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x34], bx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax - 8]
push edx
push ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x405f23
cmp dword [ebp - 0x3c], ebx
je 0x405f23
cmp dword [ebp - 0x20], ebx
je 0x405f23
push dword [ebp - 0x3c]
lea eax, [ebp - 0x44c]
push eax
call fcn.00423c90
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x20]
mov byte [ebp + eax - 0x44c], bl
lea eax, [ebp - 0x84c]
push eax
call fcn.00423c90
mov eax, dword [ebp - 0x1c]
add esp, 0x10
lea edi, [esi + 0xa0]
mov byte [ebp + eax - 0x84c], bl
lea eax, [ebp - 0x44c]
push eax
mov ecx, edi
call fcn.0056c0a6
lea eax, [ebp - 0x84c]
lea ecx, [esi + 0xa8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0056c0a6
movzx eax, word [ebp - 0x34]
mov dword [esi + 0xa4], eax
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x405f23
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x405f23
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4062c9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 1
pop edi
lea eax, [ebp - 0x94]
push 0x94
push 0
push eax
call fcn.004233c0
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x406330
cmp dword [ebp - 0x8c], 0
jne 0x406319
xor edi, edi
jmp 0x406349
cmp dword [ebp - 0x8c], edi
je 0x406349
xor eax, eax
cmp dword [ebp - 0x8c], 2
sete al
inc eax
jmp 0x406347
cmp dword [ebp - 0x90], 6
jne 0x406349
xor eax, eax
cmp dword [ebp - 0x8c], eax
setne al
add eax, 3
mov edi, eax
mov eax, edi
pop edi
leave
ret
Function at 0x407a72
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x593bab
call fcn.00423b2c
sub esp, 0x410
push ebx
push esi
push edi
push 1
pop esi
xor ebx, ebx
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], bl
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x6021f0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x200
stosb byte es:[edi], al
call fcn.0056bf8b
lea eax, [ebp - 0x41c]
push 0x1ff
push eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], esi
sete al
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5f1250
push 0x5f1224
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueA]
test eax, eax
jne 0x407b1a
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0056c0a6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0056bc92
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409b10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x5940d5
call fcn.00423b2c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push 0x1a8
call fcn.0056bc5e
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x409b41
push ebx
call fcn.0040721b
jmp 0x409b43
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ebx
push 0xbb
mov ecx, eax
mov dword [0x602558], eax
call fcn.00570470
mov eax, dword [0x5f2228]
mov dword [ebp - 0x10], eax
push 0x5f1458
lea eax, [ebp - 0x10]
push dword [0x60293c]
mov dword [ebp - 4], 1
push 0x5f12d4
push eax
call fcn.00568f1c
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x230], eax
je 0x409c59
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5f1448
push eax
call edi
push 0x5f143c
mov dword [esi + 0x234], eax
push dword [esi + 0x230]
call edi
push 0x5f1430
mov dword [esi + 0x238], eax
push dword [esi + 0x230]
call edi
push 0x5f1420
mov dword [esi + 0x23c], eax
push dword [esi + 0x230]
call edi
push 0x5f1410
mov dword [esi + 0x240], eax
push dword [esi + 0x230]
call edi
push 0x5f13fc
mov dword [esi + 0x244], eax
push dword [esi + 0x230]
call edi
cmp dword [esi + 0x234], ebx
mov dword [esi + 0x248], eax
pop edi
je 0x409c59
cmp dword [esi + 0x238], ebx
je 0x409c59
mov ecx, dword [esi + 0x23c]
cmp ecx, ebx
je 0x409c59
cmp dword [esi + 0x240], ebx
je 0x409c59
cmp dword [esi + 0x244], ebx
je 0x409c59
cmp eax, ebx
je 0x409c59
push dword [0x60293c]
call ecx
pop ecx
push ebx
push dword [0x5f1318]
push 1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetTimer]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c29e
Capabilities:
Delete file

Disassembly:
mov eax, 0x594518
call fcn.00423b2c
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5f2228]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push dword [ecx + 0x210]
push 0x5f12d4
push eax
call fcn.00568f1c
mov eax, dword [0x5f2228]
mov dword [ebp - 0x10], eax
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5f16ac
call fcn.0056bf8b
lea eax, [ebp - 0x18]
push eax
call fcn.004176e8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0056c056
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0056bf1d
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00417ef8
pop ecx
test eax, eax
pop ecx
jne 0x40c330
xor esi, esi
jmp 0x40c3b7
lea ecx, [ebp - 0x28]
call fcn.0057155b
push ebx
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0057166d
test eax, eax
je 0x40c3a9
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x47]
mov byte [ebp - 0x48], bl
push 0x1f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x28]
push eax
call fcn.0057178a
lea ecx, [ebp - 0x28]
call fcn.00571888
lea eax, [ebp - 0x48]
push 0x5f16a8
push eax
call fcn.00424fe0
pop ecx
test eax, eax
pop ecx
je 0x40c3a9
lea eax, [ebp - 0x48]
push 0x5f16a4
push eax
call fcn.00424fe0
pop ecx
test eax, eax
pop ecx
jne 0x40c3a0
push 1
pop esi
jmp 0x40c3ab
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005715b0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0056bf1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40cc7b
Capabilities:
Reference google public dns server

Disassembly:
mov eax, 0x594644
call fcn.00423b2c
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40cc97
xor eax, eax
jmp 0x40cd46
lea eax, [esi + 0x1b0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0056bf8b
and dword [ebp - 4], 0
lea eax, [esi + 0x1d8]
push eax
lea ecx, [ebp + 8]
call fcn.0056bf8b
lea eax, [esi + 0x1c0]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0056bf8b
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jle 0x40cd1e
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push 0x5f1700
call edi
push dword [ebp - 0x10]
mov ebx, eax
call edi
mov edi, eax
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004233c0
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push edi
push ebx
call sub.iphlpapi.dll_GetBestRoute
pop edi
pop ebx
test eax, eax
jne 0x40cd1e
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi + 0x19c]
jne 0x40cd1e
push 1
pop esi
jmp 0x40cd20
xor esi, esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0056bf1d
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0056bf1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0056bf1d
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e493
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x594938
call fcn.00423b2c
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xec]
test edi, edi
je 0x40e4ab
cmp dword [edi + 4], 0
jne 0x40e5ae
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0056ca20
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.005741ae
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [esi + 0xb0], eax
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00573a07
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00573965
xor eax, eax
cmp esi, eax
mov dword [ebp - 4], eax
je 0x40e512
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00573a1c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.005745e8
test edi, edi
je 0x40e548
mov edi, dword [edi + 4]
push edi
push dword [ebp - 0x28]
call fcn.00573b5d
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
test esi, esi
jne 0x40e567
xor edx, edx
jmp 0x40e56a
mov edx, dword [esi + 4]
push 0xcc0020
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edx
push eax
push ecx
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
je 0x40e58c
mov edi, dword [edi + 4]
push edi
push dword [ebp - 0x28]
call fcn.00573b5d
push dword [esi + 4]
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_ReleaseDC]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00573a9a
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40ebfd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ec6f
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x18]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40ec6f
mov eax, dword [edi + 0x3c]
and dword [ebp + 8], 0
add eax, edi
sub esi, edi
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 6]
test edx, edx
lea ecx, [ecx + eax + 0x18]
jbe 0x40ec6f
lea eax, [ecx + 0x10]
mov edi, dword [eax]
mov ebx, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edi, ebx
ja 0x40ec5a
mov edi, ebx
cmp esi, ecx
jb 0x40ec64
add edi, ecx
cmp esi, edi
jbe 0x40ec76
inc dword [ebp + 8]
add eax, 0x28
cmp dword [ebp + 8], edx
jb 0x40ec4c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
inc eax
sub esi, ecx
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
push 1
mov dword [eax], esi
pop eax
jmp 0x40ec71
Function at 0x413236
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x24b]
mov byte [ebp - 0x24c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5f1d80
push dword [0x60293c]
stosb byte es:[edi], al
lea eax, [ebp - 0x24c]
push 0x5f12d4
push eax
call fcn.0042460f
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
push ebx
push 0x5f0f54
push 0x5f1d78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x413346
xor edx, edx
cmp eax, ebx
jle 0x413346
mov esi, 0x6021f0
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x47]
mov byte [ebp - 0x48], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x147]
mov byte [ebp - 0x148], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [edx + 1]
lea eax, [ebp - 0x48]
push edi
push 0x5f0f24
push eax
call fcn.0042460f
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x148]
push 0xff
push eax
push esi
lea eax, [ebp - 0x48]
push 0x5f1d6c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x148]
push esi
push eax
call fcn.00424fe0
pop ecx
test eax, eax
pop ecx
je 0x413346
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
push ebx
push 0x143
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, edi
cmp edx, dword [ebp - 8]
jl 0x4132ae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4137ec
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x595248
call fcn.00423b2c
sub esp, 0x204
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push 0x5f1dbc
push eax
mov dword [ebp - 0x10], ebx
call fcn.00423c90
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
je 0x4138c3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4138f9
push edi
push 0x3f
pop ecx
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x5f2228]
mov dword [ebp + 8], eax
push 0x5f1bb0
push 0x5f1384
push dword [0x60293c]
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
push 0x5f1db0
push eax
call fcn.00568f1c
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00423c90
mov eax, dword [ebp + 8]
add esp, 0x1c
push dword [eax - 8]
lea eax, [ebp - 0x110]
push eax
push 1
push ebx
push 0x5f1da8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
push dword [ebp - 0x10]
test eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056bf1d
jmp 0x4138f9
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4138f9
push esi
push ebx
push ebx
push ebx
mov esi, 0x5f1da8
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4138ef
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x415953
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x41596e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret 4
Function at 0x41748e
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x595814
call fcn.00423b2c
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00573965
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x4174b8
xor eax, eax
jmp 0x4174bb
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00573a1c
lea eax, [esi + 0x44]
cmp eax, ebx
jne 0x4174d6
xor eax, eax
jmp 0x4174d9
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x18]
call fcn.00573b5d
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0x7c]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [ebp - 0x18]
push ebx
push ebx
push eax
push ecx
push edx
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x417517
mov ebx, dword [eax + 4]
push ebx
push dword [ebp - 0x18]
call fcn.00573b5d
mov eax, dword [edi]
lea ecx, [esi + 0x4c]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push 1
mov ecx, edi
mov ebx, eax
call fcn.00573c25
mov eax, dword [edi]
push dword [esi + 0x78]
mov ecx, edi
call dword [eax + 0x30]
mov eax, dword [esi + 0x60]
push dword [esi + 0x74]
mov edx, dword [edi]
add esi, 0x64
push esi
push 0xffffffffffffffff
push eax
mov ecx, edi
call dword [edx + 0x68]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00573a9a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4