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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [esp + 8], 0x17
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], 0x1314154
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 8]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00de2d80

Function at 0xde2d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, ecx
mov dword [ebp - 4], edi
mov edi, edx
jne 0xde2da6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0xde2e3a
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0xde2df5
cmp eax, 4
je 0xde2df5
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0xde2d99
cmp eax, 4
je 0xde2d99
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0xde2d99
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00de2d20
lea esi, [esi]
lea edi, [edi]
Function at 0x4018b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 1], al
mov dword [ebp - 8], 0
jmp 0x4018dc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jge 0x401a29
movzx eax, byte [ebp - 2]
add eax, 1
cdq
mov ecx, 0xfa
idiv ecx
mov byte [ebp - 2], dl
movzx edx, byte [ebp - 2]
mov eax, dword [0x47e358]
movzx eax, byte [eax + edx]
movzx ecx, byte [ebp - 1]
add eax, ecx
cdq
mov ecx, 0xfa
idiv ecx
mov byte [ebp - 1], dl
movzx edx, byte [ebp - 1]
add edx, dword [0x47e358]
push edx
movzx eax, byte [ebp - 2]
add eax, dword [0x47e358]
push eax
call fcn.00401a40
add esp, 8
movzx ecx, byte [ebp - 2]
mov edx, dword [0x47e358]
movzx eax, byte [edx + ecx]
movzx ecx, byte [ebp - 1]
mov edx, dword [0x47e358]
movzx ecx, byte [edx + ecx]
add eax, ecx
cdq
mov ecx, 0xfa
idiv ecx
mov byte [ebp - 9], dl
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x28], eax
push 0xa
mov ecx, dword [ebp - 0x28]
call fcn.004023c0
mov ecx, dword [ebp - 0x28]
call fcn.004029d0
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x44], eax
push 0xa
mov ecx, dword [ebp - 0x44]
call fcn.004023c0
mov ecx, dword [ebp - 0x44]
call fcn.004029d0
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x60], eax
push 0xa
mov ecx, dword [ebp - 0x60]
call fcn.004023c0
mov ecx, dword [ebp - 0x60]
call fcn.004029d0
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x168], eax
push 0xa
mov ecx, dword [ebp - 0x168]
call fcn.004023c0
mov ecx, dword [ebp - 0x168]
call fcn.004029d0
movzx edx, byte [ebp - 9]
mov eax, dword [0x47e358]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x4018d3
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 2]
mov byte [edx], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx + 1], dl
mov esp, ebp
pop ebp
ret
Function at 0x407f40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407f84
jmp 0x4080d3
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
call fcn.00410812
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x407fa7
jmp 0x4080d3
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x407fc0
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x4080c1
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4080bc
cmp dword [ebp - 0x1c], 0
je 0x4080bc
cmp dword [ebp - 0x34], 0
jbe 0x4080bc
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x34]
mov byte [eax], 0
push 0xffff0002
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
push 1
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 0x23
mov ecx, dword [ebp + 8]
call fcn.0042751b
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4080bc
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4080bc
mov dword [ebp - 0x40], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4080b2
cmp dword [ebp - 0x40], 0
jbe 0x4080b2
push 0xffff0002
mov edx, dword [ebp - 0x38]
push edx
push 0
push 0
push 0
push 4
push 4
push str.faked_item
push 0x23
mov ecx, dword [ebp + 8]
call fcn.0042751b
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407fb7
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.00410807
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40bc10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460958
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47ccc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x40bc40
jmp 0x40bdbb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
push str._Default_
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00446dd2
add esp, 8
test eax, eax
jne 0x40bc66
mov dword [ebp - 0x60], 0
jmp 0x40bca8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x30]
or eax, dword [ebp - 0x34]
jge 0x40bc9a
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004015f0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00409a60
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00408e50
add esp, 0x10
cmp dword [ebp - 0x20], 0
je 0x40bd2b
cmp dword [ebp - 0x18], 0
jbe 0x40bd2b
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00410807
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x40bd2b
jmp 0x40bdbb
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x14]
call fcn.004064b0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x4c]
or edx, dword [ebp - 0x50]
jge 0x40bd82
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004015f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
push str.couldnt_set_value__s
lea eax, [ebp - 0x14]
push eax
call fcn.00406a90
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00421a14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41d63c
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 0x41d683
call fcn.0042a14b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d683
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41d69f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d1b6
mov esi, eax
test edi, edi
je 0x41d69d
test ebx, ebx
je 0x41d69d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e58a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x462559
call fcn.00447abb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41e5af
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41e5f5
lea ecx, [ebp - 0x10]
call fcn.004064b0
mov ecx, dword [esi + 0x50]
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.0041ddc2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407a90
mov eax, esi
call fcn.00447b93
ret 8

Function at 0x4225e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42262d
call fcn.0042a14b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42262d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x422670
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x422659
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x422659
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42266d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42389f
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.0042a14b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4238d8
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.004234f0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x423936
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42395a
cmp dword [edi + 0x54], 0
jne 0x42395a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042a14b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004238f7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43377a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4623f9
call fcn.00447abb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406510
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4337dc
call fcn.00429a25
cmp eax, 1
jne 0x4337dc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00405c30
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004068b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407a90
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407a90
mov eax, esi
call fcn.00447b93
ret 0x10

Function at 0x433805
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4623f9
call fcn.00447abb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406510
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x433867
call fcn.00429a25
cmp eax, 1
jne 0x433867
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00405c30
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004068b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407a90
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407a90
mov eax, esi
call fcn.00447b93
ret 0x14
Function at 0x4461d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47ccc0]
jne 0x4461dd
repz ret
jmp fcn.0044dabc

Function at 0x457573
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044d4af
and dword [ebp - 4], 0
cmp dword [0x480d3c], 0
mov ebx, eax
jne 0x457624
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4576d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46ce20
push edi
call esi
test eax, eax
je 0x4576d5
push eax
call fcn.0044d43d
mov dword [esp], 0x46ce10
push edi
mov dword [0x480d3c], eax
call esi
push eax
call fcn.0044d43d
mov dword [esp], 0x46cdfc
push edi
mov dword [0x480d40], eax
call esi
push eax
call fcn.0044d43d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x480d44], eax
call esi
push eax
call fcn.0044d43d
pop ecx
mov dword [0x480d4c], eax
test eax, eax
je 0x457624
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044d43d
pop ecx
mov dword [0x480d48], eax
mov eax, dword [0x480d48]
cmp eax, ebx
je 0x45767c
cmp dword [0x480d4c], ebx
je 0x45767c
push eax
call fcn.0044d4b8
push dword [0x480d4c]
mov esi, eax
call fcn.0044d4b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45767c
test edi, edi
je 0x45767c
call esi
test eax, eax
je 0x457673
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x457673
test byte [ebp - 0xc], 1
jne 0x45767c
or dword [ebp + 0x10], 0x200000
jmp 0x4576b5
mov eax, dword [0x480d40]
cmp eax, ebx
je 0x4576b5
push eax
call fcn.0044d4b8
pop ecx
test eax, eax
je 0x4576b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4576b5
mov eax, dword [0x480d44]
cmp eax, ebx
je 0x4576b5
push eax
call fcn.0044d4b8
pop ecx
test eax, eax
je 0x4576b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480d3c]
call fcn.0044d4b8
pop ecx
test eax, eax
je 0x4576d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4576d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, dword [section..data]
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x404d16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404ce5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x404cd2
push 0
push 0
push dword [0x527004]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x404d02
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x404d0f
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00404780
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042788a
mov esp, ebp
pop ebp
ret

Function at 0x409530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409589
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409589
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40957a
cmp esi, edx
jae 0x409589
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x409568
cmp esi, edx
jae 0x409589
cmp word [esi], 0
je 0x409589
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40c8e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7f96
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.0041d825
push 0
push 0x989680
push edx
push eax
call fcn.00427940
test edx, edx
jg 0x40c949
jl 0x40c92a
test eax, eax
jae 0x40c949
neg eax
adc edx, 0
neg edx
push edx
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.0040b8d0
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x40c956
push edx
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.0040b8d0
mov ecx, eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x54], si
add esp, 0xc
lea esi, [ebp - 0x12]
mov dword [ebp - 0x44], eax
mov edx, 7
mov dword [ebp - 0x40], edx
cmp ecx, esi
je 0x40c989
mov eax, esi
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040e0f0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
cmp edx, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
cmovae ecx, dword [ebp - 0x54]
add eax, eax
push eax
push ecx
push 1
push str.unistdate
push dword [0x527088]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [0x52b310]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
jne 0x40ca18
push 0x527094
call esi
cmp dword [0x52b310], 0
jne 0x40ca07
push 4
call fcn.004278fc
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40c9f4
mov ecx, eax
call fcn.0041e3c0
jmp 0x40c9f6
xor eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x52b310], eax
push 0x527094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x52b310]
push 0
push 0
push 1
push 0
push 0x4f7c28
call fcn.0041e770
push 0
push 0x4f7bf4
push 0x4f7c30
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [0x52b314]
test ecx, ecx
jne 0x40ca9a
push 0x5270b0
call esi
cmp dword [0x52b314], 0
jne 0x40ca89
push 0x14
call fcn.004278fc
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40ca76
mov ecx, eax
call fcn.00409bf0
jmp 0x40ca78
xor eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x52b314], eax
push 0x5270b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x52b314]
call fcn.0040a380
test eax, eax
je 0x40cab2
push 0
push 0
push 0x10
push dword [ebx - 0x6c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x40cae8
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cade
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb05
push edx
push ecx
call fcn.0042747a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret 4
call fcn.0047b0d8
int3