joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058f5
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x421a68
push 0x4093a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405944
push 1
push 0
push esi
call fcn.0040584e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a6b
cmp eax, ebx
jg 0x405a6b
mov esi, 0x421e68
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a6b
cmp eax, ebx
jg 0x405a6b
push esi
push edi
push str._s_s_r_n
push 0x421668
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4236f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bdf
push 4
push 0xc0000000
push esi
call fcn.0040584e
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a6b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a64
push edi
push esi
push ebp
call fcn.004058c6
test eax, eax
je 0x405a64
push str._Rename__r_n
push esi
call fcn.004057b3
test eax, eax
jne 0x4059fa
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405a2f
add eax, 0xa
push 0x409388
push eax
call fcn.004057b3
mov ebp, eax
test ebp, ebp
je 0x405a2b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405a1c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405a16
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405a31
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421668
push eax
call fcn.00405809
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405b15
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405b04
cmp dword [ebp + 0x14], 1
je 0x405b06
cmp dword [ebp + 0x14], 2
je 0x405b06
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f5a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42226c], 0
push esi
jne 0x405f91
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f6b
mov dword [ecx*4 + 0x422268], eax
inc ecx
cmp ecx, 0x100
jl 0x405f66
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fc2
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422268]
xor eax, esi
inc ecx
dec edx
jne 0x405fa4
pop edi
not eax
pop esi
ret 0xc
Function at 0x401d13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d2a
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d5f
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401d5b
cmp edi, eax
jae 0x401d5f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401d4d
cmp edi, eax
jb 0x401d63
xor eax, eax
jmp 0x401d6d
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x404b46
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x404b59
push 0x80004005
call fcn.00402877
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x404b60
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x404c21
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x44a020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x404d3e
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x404c8f
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x404d3e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x404d02
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404c21
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x404d61
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x404cc7
cmp dword [ebp - 0x210], esi
je 0x404d28
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x404d4e
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043461c
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x404d71
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x404d50
Function at 0x4068f9
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x30
mov eax, 0x438b80
call fcn.00434fb8
call fcn.0040655f
mov esi, eax
mov eax, dword [0x44b724]
mov ecx, 0x44b724
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x400000
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040659b
test eax, eax
jl 0x406953
mov ebx, 0x43ce40
lea eax, [ebp - 0x10]
call fcn.004073d3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, esi
call fcn.004057b0
jmp 0x406956
mov esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401a71
push str.skincfg.ini
push dword [esi]
lea edi, [esi + 4]
push 0x43ce64
mov eax, edi
call fcn.00405672
add esp, 0xc
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a8f
call fcn.0040685d
xor ecx, ecx
push 2
mov esi, 0x104
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434611
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
pop ecx
push dword [edi]
mov dword [ebp - 0x14], eax
push esi
push eax
call ebx
cmp eax, 0x102
jb 0x4069f7
push dword [ebp - 0x14]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
add esi, esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434611
pop ecx
push dword [edi]
mov dword [ebp - 0x14], eax
push esi
push eax
call ebx
lea ecx, [esi - 2]
cmp eax, ecx
jae 0x4069c5
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
mov dword [ebp - 0x10], eax
je 0x406a88
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.00402b38
mov eax, dword [eax]
push str.selectedskin
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
mov eax, dword [ebp - 0x18]
pop ecx
setne bl
pop ecx
add eax, 0xfffffff0
call fcn.00401a71
test bl, bl
je 0x406a6e
lea edi, [ebp - 0x3c]
call fcn.0040670b
mov ebx, dword [ebp + 8]
mov eax, edi
push eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.00406a97
test eax, eax
je 0x406a62
mov ecx, ebx
add ecx, 0x10
call fcn.00408171
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x3c]
call fcn.00406eeb
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
cmp word [eax], 0
mov dword [ebp - 0x10], eax
jne 0x406a07
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.00435090
ret 4
Function at 0x406a97
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4372cd
call fcn.00434fb8
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
call fcn.00402c06
mov eax, dword [ebx + 4]
push eax
mov edi, 0x104
push edi
add esi, 4
push edi
call fcn.00402a0e
push eax
push 0
push str.SkinDesc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
je 0x406ae1
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.004024d7
mov eax, dword [0x44b724]
mov ecx, 0x44b724
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push dword [ebx + 4]
lea esi, [ebp - 0x10]
push edi
push edi
call fcn.00402a0e
push eax
push 0
push str.SkinDefFileName
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x10], 0
jne 0x406b27
xor eax, eax
jmp 0x406b31
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004024d7
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
add eax, 8
push dword [ebx]
push str._s_s_s
call fcn.00405672
add esp, 0x10
push dword [ebx + 4]
lea esi, [ebp - 0x10]
push edi
push edi
call fcn.00402a0e
push eax
push 0
push str.StyleDefFileName
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x10], 0
jne 0x406b7c
xor eax, eax
jmp 0x406b86
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004024d7
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
add eax, 0x10
push dword [ebx]
push str._s_s_s
call fcn.00405672
add esp, 0x10
push dword [ebx + 4]
lea esi, [ebp - 0x10]
push edi
push edi
call fcn.00402a0e
push eax
push 0
push str.FloatWndSkinDefName
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x10], 0
jne 0x406bd1
xor eax, eax
jmp 0x406bdb
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004024d7
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
add eax, 0x18
push dword [ebx]
push str._s_s_s
call fcn.00405672
add esp, 0x10
push dword [ebx + 4]
lea esi, [ebp - 0x10]
push edi
push edi
call fcn.00402a0e
push eax
xor esi, esi
push esi
push str.FloatWndStyleDefName
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x10], esi
jne 0x406c26
xor eax, eax
jmp 0x406c30
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004024d7
push dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [edi + 0x1c]
push dword [ebx]
push str._s_s_s
call fcn.00405672
add esp, 0x10
push dword [ebx + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.SkinDefFileResID
push dword [ebp + 8]
call esi
mov dword [edi + 0xc], eax
push dword [ebx + 4]
push 0
push str.StyleDefFileResID
push dword [ebp + 8]
call esi
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401a71
xor eax, eax
inc eax
call fcn.00435090
ret 8
Function at 0x406c92
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x14
mov eax, 0x43889a
call fcn.00435021
mov ebx, ecx
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00402b38
mov dword [ebp - 4], edi
push dword [ebx + 4]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x18]
call fcn.00402a0e
push eax
push edi
push str.SkinName
push str.selectedskin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x18], edi
jne 0x406cdc
xor eax, eax
jmp 0x406ce6
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x18]
call fcn.004024d7
xor esi, esi
cmp dword [ebx + 0x14], edi
jbe 0x406d1f
cmp esi, dword [ebx + 0x14]
mov dword [ebp - 0x14], edi
jae 0x406d35
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x406d3f
add dword [ebp - 0x14], 0x24
inc esi
cmp esi, dword [ebx + 0x14]
jb 0x406cfd
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401a71
xor eax, eax
lea esp, [ebp - 0x30]
call fcn.004350a4
ret
push 0x80070057
call fcn.00402877
call dword [section..data]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x44b724]
mov ecx, 0x44b724
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push dword [ebx]
push 0x43ce64
call fcn.00405672
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x406d9d
call fcn.0042c035
cmp dword [ebp - 0x14], 0
je 0x406d9d
push dword [ebp - 0x14]
lea ecx, [eax + 0xbc]
call dword [0x4392d8]
push dword [edi + 8]
call ebx
test eax, eax
je 0x406de4
mov eax, dword [edi + 8]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x406dbf
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x406dc3
xor eax, eax
jmp 0x406ddd
lea esi, [eax + eax]
mov eax, esi
call fcn.004351b0
mov eax, esp
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
mov esi, eax
call fcn.00411dc7
push eax
call fcn.00411dfa
pop ecx
push dword [edi + 0x10]
call ebx
test eax, eax
je 0x406e24
mov edi, dword [edi + 0x10]
test edi, edi
je 0x406e03
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x406e07
xor eax, eax
jmp 0x406e1d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004351b0
mov esi, esp
push dword [ebp - 0x1c]
push ebx
push edi
call fcn.00411dc7
push eax
call fcn.00411d34
pop ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401a71
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401a71
xor eax, eax
inc eax
jmp 0x406d2c
Function at 0x4079dc
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407a23
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x407a1c
cmp dword [esp + 4], 0x1b
jne 0x407a03
push 0
push 2
jmp 0x407a0e
cmp dword [esp + 4], 0xd
jne 0x407a1c
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3a4], 0
ret 4

Function at 0x40ba40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
jne 0x40ba6f
lea eax, [esi + 0xc8]
mov dword [eax], ebx
and dword [edi], 0
cmp dword [eax], 0
je 0x40ba95
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x40bab4
push 0
push dword [esi + 0xcc]
mov dword [esi + 0xc8], ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [edi], 0
cmp dword [esi + 0xc8], 0
jne 0x40ba66
push edi
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a374
jmp 0x40ba68
cmp eax, 0x47
jne 0x40bacb
push dword [ebp + 0x14]
mov eax, esi
mov dword [esi + 0xc8], ebx
call fcn.0040bae0
jmp 0x40ba92
cmp eax, 0x18
jne 0x40ba95
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc8], ebx
call fcn.0040bbba
jmp 0x40ba92

Function at 0x40fde3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
lea esi, [edi + 0x318]
cmp dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40fe05
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi], ebx
mov eax, dword [edi + 0x30c]
cmp eax, ebx
je 0x40fed3
push eax
call fcn.00402326
mov esi, eax
cmp esi, ebx
pop ecx
je 0x40fe88
push ebx
push edi
push 2
pop eax
call fcn.0040fbbc
mov eax, dword [edi + 0x30c]
cmp eax, dword [edi + 0x308]
jne 0x40fe88
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, esi
push 0x202
call fcn.00401ff7
mov eax, dword [esi + 0x88]
cmp eax, ebx
je 0x40fe77
cmp word [eax], bx
je 0x40fe77
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40fe88
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40fe88
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [edi + 0x30c], ebx
je 0x40fed3
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push dword [edi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
leave
ret 0xc
Function at 0x411e86
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411ee9
cmp dword [ebp + 0xc], 1
je 0x411ec2
cmp dword [ebp + 0xc], 2
je 0x411ec2
push 0xd
pop eax
jmp 0x411ee9
test edi, edi
mov eax, dword [ebp - 4]
je 0x411ee3
test eax, eax
je 0x411edf
test al, 1
jne 0x411ebd
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411ee3
jmp 0x411ebd
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4128d6
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x44a020]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc4], 0
and dword [ebp - 0xc0], 0
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xcc], eax
push edi
lea eax, [ebp + 0x10]
push eax
mov esi, ecx
push 4
pop eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.0041e671
push esi
push 8
pop eax
lea ecx, [ebp - 0xc4]
call fcn.0041e671
pop ecx
pop ecx
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0x28]
call fcn.0041e701
mov esi, dword [ebp - 0xcc]
and word [ebp - 0xc], 0
mov word [ebp - 0x14], 0x25
mov word [ebp - 0x12], 0x30
mov word [ebp - 0x10], 0x32
mov word [ebp - 0xe], 0x78
call fcn.00402837
xor edi, edi
movzx eax, byte [ebp + edi - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00413bb5
inc edi
cmp edi, 0x10
pop ecx
pop ecx
jb 0x412996
push 1
push str._04x
mov ecx, esi
call fcn.00413bb5
pop ecx
pop ecx
push 0x43dba0
push esi
call fcn.004077fc
cmp dword [ebp + 0x10], 0
mov edi, 0x43dbac
mov eax, 0x43dba8
je 0x4129dc
mov eax, edi
push eax
push esi
call fcn.004077fc
mov eax, dword [ebp - 0xd0]
push 8
add eax, 8
push eax
push dword [ebp - 0xc8]
call sub.MSVCR80.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x412a06
mov edi, 0x43dba8
push edi
push esi
call fcn.004077fc
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0043461c
leave
ret 0xc
Function at 0x412b58
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44a020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x208
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x412bd2
cmp eax, 3
jb 0x412bd2
cmp word [ebp - 0x20e], 0x3a
jne 0x412bd2
push esi
push esi
push esi
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 0x20a], si
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x412bd2
mov dword [edi], esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043461c
leave
ret

Function at 0x412d1d
Capabilities:
Get mac address on windows

Disassembly:
push ebp
lea ebp, [esp - 0x18f0]
mov eax, 0x1970
call fcn.004350d0
mov eax, dword [0x44a020]
xor eax, ebp
mov dword [ebp + 0x18ec], eax
mov eax, dword [ebp + 0x18f8]
push ebx
push 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18fc]
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x80], 0x1950
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x412e4d
push esi
push edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
lea esi, [ebp - 0x64]
mov eax, dword [esi + 0x190]
cmp eax, 8
jb 0x412d95
push 8
pop eax
push eax
mov eax, dword [ebp - 0x78]
add eax, 8
push eax
lea edi, [esi + 0x194]
push edi
call sub.MSVCR80.dll_memcmp
add esp, 0xc
test eax, eax
je 0x412e06
cmp dword [ebp - 0x74], ebx
je 0x412dd0
mov eax, dword [esi + 0x190]
cmp eax, ebx
je 0x412dd0
push eax
push edi
push dword [ebp - 0x74]
call sub.MSVCR80.dll_memcmp
add esp, 0xc
test eax, eax
je 0x412e1f
lea ebx, [esi + 0x10c]
test ebx, ebx
je 0x412dfd
mov edi, dword [ebp - 0x78]
and dword [ebp - 0x6c], 0
add edi, 0x10
push dword [edi]
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x412e14
inc dword [ebp - 0x6c]
add edi, 4
cmp dword [ebp - 0x6c], 2
jb 0x412de4
cmp dword [ebp - 0x68], 0
jne 0x412e06
mov dword [ebp - 0x68], esi
mov esi, dword [esi]
xor ebx, ebx
cmp esi, ebx
jne 0x412d87
jmp 0x412e22
cmp dword [ebp - 0x70], 0
jne 0x412e06
mov dword [ebp - 0x70], esi
jmp 0x412e06
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x68], ebx
pop edi
pop esi
jne 0x412e33
mov eax, dword [ebp - 0x70]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x412e4d
mov eax, dword [ebp - 0x68]
push dword [eax + 0x190]
add eax, 0x194
push eax
push dword [ebp - 0x7c]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x18ec]
xor ecx, ebp
pop ebx
call fcn.0043461c
add ebp, 0x18f0
leave
ret 8