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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5eed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5eed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5eed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5eed94
push eax
push esi
call fcn.005f120b
add esp, 8
pop esi
ret 0x10

Function at 0x5eeda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5eee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5eee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x607320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005f0dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5eedda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5eee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5eeec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5eeeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x607320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005f0dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5eeeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5eee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5ef000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5ef131
push esi
call fcn.005f2145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.005e1080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5ef131
push 0
push ebp
call fcn.005e13a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005e1260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5ef08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005e12f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5ef121
push 0x607918
push edi
call fcn.005f03f0
push eax
push ebx
push esi
call fcn.005eef60
push 0x6078f8
push edi
call fcn.005f03f0
push eax
push ebx
push esi
call fcn.005eef60
push 0x6078d8
push edi
call fcn.005f03f0
push eax
push ebx
push esi
call fcn.005eef60
push 0x6078c0
push edi
call fcn.005f03f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005eef60
push 0x6078a0
push edi
call fcn.005f03f0
push eax
push ebx
push esi
call fcn.005eef60
push 0x607888
push edi
call fcn.005f03f0
push eax
push ebx
push esi
call fcn.005eef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5f01b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005f0140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005f0140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005f0140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005f0140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5f0bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5f0c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x60287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f0c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5f0c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x526008], 0x8088405
inc edx
mov dword [ebx + 0x526008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50da63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50da6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x50e473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x5282a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x5282a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x52710c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e47a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40a09d
Capabilities:
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, 0x44263c
call fcn.00420734
sub esp, 0x874
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [ebp - 0x80]
push 0x4561c8
push eax
call fcn.00420b49
add esp, 0xc
test byte [ebp - 0x20], 4
push ebx
push ebx
push ebx
jne 0x40a0f3
push 4
jmp 0x40a0f4
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40a10d
or esi, 0xffffffff
jmp 0x40a22a
mov esi, 0x4561d4
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0043a0b9
push ebx
lea eax, [ebp - 0x40]
push 0x84000100
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.0040171f
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x40a15f
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40a17a
push esi
push 0x1001
lea ecx, [ebp + 0xc]
call fcn.0040171f
push eax
lea ecx, [ebp - 0x30]
call fcn.0043a1cb
test eax, eax
jne 0x40a182
or esi, 0xffffffff
jmp 0x40a21e
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000005
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40a1a8
mov dword [ebp - 0x18], esi
mov esi, 0x200
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x880]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x880]
push esi
push eax
push ebx
call edi
test eax, eax
je 0x40a1f9
cmp dword [ebp - 0x14], 0
je 0x40a206
push dword [ebp - 0x14]
lea eax, [ebp - 0x880]
lea ecx, [ebp - 0x30]
push eax
call fcn.0043a322
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x880]
push esi
push eax
push ebx
jmp 0x40a1cc
lea ecx, [ebp - 0x30]
call fcn.0043a3e6
jmp 0x40a17a
lea ecx, [ebp - 0x30]
call fcn.0043a3e6
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
xor esi, esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0043a10e
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00439384
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00439384
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a253
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00420760
mov al, byte [0x4603f8]
push edi
mov byte [ebp - 0x2008], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x2007]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
pop edi
je 0x40a308
lea ecx, [ebp - 0x2008]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a308
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2008]
push 0x4561e4
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a308
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call fcn.00433751
mov eax, dword [ebp + 8]
add esp, 0x18
push dword [eax + 0x20]
push 0x4561f4
push dword [ebp + 0x10]
call fcn.00433751
add esp, 0xc
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40a54b
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
mov eax, 0x442690
call fcn.00420734
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a620
push ebx
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
and byte [ebp - 0xd], 0
mov esi, 0x128
push esi
mov ebx, eax
call fcn.004390c5
pop ecx
mov edi, eax
push edi
push ebx
mov dword [edi], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a60c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40a5a8
and byte [ebp - 0xd], 0
jmp 0x40a60c
lea ecx, [ebp - 0x14]
call fcn.004040e1
and dword [ebp - 4], 0
push edi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40a600
lea esi, [edi + 0x24]
push esi
lea eax, [ebp - 0x14]
push 0x45621c
push eax
call fcn.00433751
add esp, 0xc
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.004333cb
cmp eax, 0xffffffff
jne 0x40a5f1
push edi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40a5c2
jmp 0x40a600
push str.find_special_exe
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00439384
push edi
call fcn.004390ee
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xd]
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40c2d1
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
mov esi, ecx
push str.OnBack
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x61c]
add esi, 0x61c
xor ebx, ebx
cmp eax, ebx
je 0x40c30f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c30f
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x7d
xor eax, eax
pop ecx
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
push 0x46042c
lea eax, [ebp - 0x200]
push 0x1f4
push eax
push 0x460400
push 0x4567c4
push 0x4567cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [ebp - 0x200]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c39b
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], 2
push eax
push esi
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], 0x2a
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 4], 1
call fcn.0041d042
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4103d2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x442c60
call fcn.00420734
sub esp, 0x108
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
xor esi, esi
lea ebx, [ecx + 0x1e]
lea ecx, [ebp - 0x10]
call fcn.004040e1
and dword [ebp - 4], 0
lea eax, [esi + 0x190]
mov word [ebx], ax
lea ecx, [ebp - 0x10]
movzx eax, ax
push eax
call fcn.0043a00e
push 0x46042c
lea eax, [ebp - 0x114]
push 0xff
push eax
push 0x460548
lea ecx, [ebp - 0x10]
call fcn.0040171f
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [ebp - 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x410459
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ecx + 4]
push eax
call fcn.00410491
jmp 0x410469
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.004104e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00439384
inc esi
add ebx, 0x1c
cmp esi, 7
jl 0x4103ed
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41873f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4433fb
call fcn.00420734
sub esp, 0x18
push ebx
push esi
push edi
mov esi, str.handstar.htm
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00401674
push dword [eax + 0x8c]
lea ecx, [ebp - 0x10]
call fcn.004393f2
xor ebx, ebx
push 0x4597e4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004395f9
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
call fcn.004395f9
push 0x4597e8
push 0x4597ec
lea ecx, [ebp - 0x10]
call fcn.004330de
lea ecx, [ebp - 0x14]
call fcn.004040e1
push 0x12c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043964d
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040171f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043969c
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00439384
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00439384
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41a02f
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4434dc
call fcn.00420734
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00401674
mov ecx, eax
call fcn.004016d0
lea edi, [esi + 0x274]
mov dword [ebp - 0x14], eax
mov ecx, edi
mov dword [ebp - 0x10], ebx
call fcn.0041a800
test eax, eax
jbe 0x41a09b
push 2
push ebx
mov ecx, edi
call fcn.0041a813
mov ecx, eax
call fcn.0040171f
push eax
lea ecx, [ebp + 8]
call fcn.0040171f
push eax
call fcn.004219d0
add esp, 0xc
test eax, eax
je 0x41a103
mov ecx, edi
inc ebx
call fcn.0041a800
cmp ebx, eax
jb 0x41a068
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._find
call edi
push 0x461b58
lea ecx, [esi + 0x26c]
call fcn.004394c1
cmp dword [0x4614d8], 0
je 0x41a0dc
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.
call fcn.004393f2
mov ecx, dword [0x4614d8]
call fcn.004087d2
push str._find2
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00439384
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0x14]
xor eax, eax
lea edi, [esi + 0x284]
push eax
cmp dword [ecx + 0x3b0], eax
mov dword [ebp - 0x10], 1
push ebx
mov ecx, edi
je 0x41a136
call fcn.0041a813
mov ecx, eax
call fcn.0043964d
push eax
call fcn.004178b2
pop ecx
jmp 0x41a149
call fcn.0041a813
mov ecx, eax
call fcn.0043964d
mov ecx, eax
call fcn.00417932
cmp dword [0x4614d8], 0
je 0x41a171
push ebx
mov ecx, edi
call fcn.0041a813
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004390f9
mov ecx, dword [0x4614d8]
call fcn.004087d2
push ebx
mov ecx, edi
call fcn.0041a813
push eax
lea ecx, [esi + 0x26c]
call fcn.00439471
jmp 0x41a0e3