joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401980
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 8]
call fcn.00424def
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x4019ca
push 0x74
call ebx
test ax, ax
jns 0x4019ca
lea ecx, [ebp - 8]
call fcn.004244fe
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x401a14
cmp dword [esi + 4], edi
jne 0x401a14
push 0x4f
call ebx
test ax, ax
js 0x4019b7
cmp dword [esi + 4], edi
jne 0x401a14
push 0x50
call ebx
test ax, ax
js 0x4019b7
cmp dword [esi + 4], edi
jne 0x401a14
push 0x4e
call ebx
test ax, ax
js 0x4019b7
cmp dword [esi + 4], edi
jne 0x401a14
push 0x41
call ebx
test ax, ax
js 0x4019b7
cmp dword [esi + 8], 8
lea ecx, [ebp - 8]
je 0x4019ba
call fcn.004244fe
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401beb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c22
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401c1e
jmp 0x401c10
cmp esi, eax
jae 0x401c22
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c10
cmp esi, eax
jb 0x401c29
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00515860
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0x44
cmp byte [ebp + 0x14], al
je 0x40593d
xor ecx, ecx
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], cx
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
push ecx
push 0
push 0x20
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x405976
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b42
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x405b11
cmp eax, 2
jne 0x405b2c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x405b3c
test eax, eax
je 0x405b37
test al, 1
jne 0x405b2c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405b3c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x406070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push 0
push 0
push eax
push ecx
push 0x53ead0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4060cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4060e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d411
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58e188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 3
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40612d
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x406168
push 0x104
mov ecx, esi
call fcn.00401fa0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push 0x104
push eax
push 0x53df2c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40619f
push ecx
push eax
call fcn.00516005
add esp, 8
test eax, eax
js 0x406231
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x406231
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40621e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401040
int3
Function at 0x406240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d451
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58e188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40628c
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x4062c4
push 0x200
mov ecx, esi
call fcn.00401fa0
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
push 0x200
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4062ed
push ecx
push eax
call fcn.00516005
add esp, 8
test eax, eax
js 0x406333
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x406333
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], cl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406321
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401040
int3
Function at 0x407ee0
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d74b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x53df2c
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x224], ebx
call fcn.00402730
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407f7c
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40808a
push esi
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x40803e
push esi
push 2
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
je 0x40803e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x224]
mov ebx, eax
push ebx
push esi
push ecx
lea edx, [ebp - 0x21c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0x53ea60
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40803c
mov eax, dword [ebp - 0x228]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov si, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, si
push eax
movzx edx, dx
movzx eax, cx
push edx
push eax
lea ecx, [ebp - 0x220]
push str._d._d._d._d
push ecx
call fcn.00402570
add esp, 0x18
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x408056
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00514c0e
mov esp, ebp
pop ebp
ret
Function at 0x409a90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52da68
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x58e188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
mov dword [ebp - 4], 0
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
add esp, 4
push eax
call fcn.00406240
add esp, 8
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str._SystemRoot_System32_regsvr32.exe__s
mov byte [ebp - 4], 1
call fcn.00402730
lea ecx, [ebp - 0x14]
push ecx
call fcn.00406240
add esp, 8
push eax
lea edx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 2
call fcn.00406dc0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44
lea ecx, [ebp - 0x70]
push 0
push ecx
call fcn.00515860
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x70]
push ecx
push edx
push edx
push 0x20
push edx
push edx
push edx
mov word [ebp - 0x40], dx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409bbb
mov eax, dword [ebp - 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ac30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dd00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x58e188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x58f9ac]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RunFirstExe
mov dword [ebp - 4], 0
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x53ec40
mov byte [ebp - 4], 1
call fcn.00402730
lea eax, [ebp - 0x10]
or edi, 0xffffffff
push eax
mov dword [ebp - 4], edi
call fcn.004060e0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
mov dword [ebp - 4], 2
call fcn.00402000
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00406240
add esp, 8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004024c0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ada2
mov eax, dword [0x58f9ac]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RunFirstParam
mov byte [ebp - 4], 4
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x53ec40
mov byte [ebp - 4], 5
call fcn.00402730
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 2
call fcn.004060e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add esp, 0x10
push eax
push 0
push ecx
push edx
push 0x53ead0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ada2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40adc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c2b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x58f9ac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c342
lea ecx, [ebp - 4]
push ecx
call fcn.00408ab0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c2ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00409080
call fcn.00409340
call fcn.00409c20
call fcn.004075e0
call fcn.00409e80
call fcn.0040a350
call fcn.0040aa40
push 1
call fcn.0040ac30
mov ecx, dword [0x58f9ac]
add esp, 4
push ecx
push 0
push 0x53f5c4
push 0x53ec40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret
Function at 0x40ce30
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d9d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x138]
call fcn.0042a018
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x58f990]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x138]
test eax, eax
je 0x40db00
mov edx, dword [0x58f990]
push 0
push 0x2001
push edx
call fcn.0042a488
test eax, eax
je 0x40dafa
movzx eax, word [ebp - 0x116]
movzx ecx, word [ebp - 0x118]
movzx edx, word [ebp - 0x11a]
push esi
push eax
movzx eax, word [ebp - 0x11c]
push ecx
movzx ecx, word [ebp - 0x11e]
push edx
movzx edx, word [ebp - 0x122]
push eax
movzx eax, word [ebp - 0x124]
push ecx
push edx
push eax
lea ecx, [ebp - 0x114]
push str.__04d__02d__02d__02d:_02d:_02d._02d_____s
push ecx
call fcn.00402df0
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x2c]
add esp, 0x28
push 2
push 0
push 0
lea ecx, [ebp - 0x138]
call eax
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dac1
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x138]
call fcn.00429d4f
push 2
push 0x53f8b0
lea ecx, [ebp - 0x138]
call fcn.00429d4f
lea ecx, [ebp - 0x138]
call fcn.00429fb3
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a148
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514c0e
mov esp, ebp
pop ebp
ret
Function at 0x412e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 2
jne 0x412e7e
movzx eax, word [ebp + 8]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
push 0x10
mov edi, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x412e6d
lea edx, [ebp - 4]
push edx
push 0
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x412e8d
call fcn.00424da5
mov esi, dword [eax + 0xc]
movzx ecx, word [ebp + 8]
push ebx
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
mov esi, eax
push 0
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.005154f0
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
push 0
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x412f10
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x412f12
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414720
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0042561f
mov eax, dword [0x58f9b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414764
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
mov dword [ebp - 0x30], 0x2c
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], eax
call fcn.00415aac
push 0
push 0
push esi
push 0x414690
push 0
push 0
call fcn.00516850
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 0x108], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00514c0e
mov esp, ebp
pop ebp
ret

Function at 0x41b65c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41b6a3
call fcn.00424da5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41b6a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b6bf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b15c
mov esi, eax
test edi, edi
je 0x41b6bd
test ebx, ebx
je 0x41b6bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41c91f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x535f8b
call fcn.00516a6c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41c944
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41c996
call fcn.0041b722
push eax
lea ecx, [ebp - 0x10]
call fcn.004012e0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051699f
push eax
call fcn.00401b40
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401080
mov eax, esi
call fcn.00516b44
ret 8

Function at 0x425b31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00424da5
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425b6a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042576e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8