joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494a20
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.00489522
and dword [ebp - 4], 0
cmp dword [0x4db578], 0
mov ebx, eax
jne 0x494ad1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x494b82
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x494b82
push eax
call fcn.004894b0
mov dword [esp], 0x4c17c0
push edi
mov dword [0x4db578], eax
call esi
push eax
call fcn.004894b0
mov dword [esp], 0x4c17ac
push edi
mov dword [0x4db57c], eax
call esi
push eax
call fcn.004894b0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4db580], eax
call esi
push eax
call fcn.004894b0
pop ecx
mov dword [0x4db588], eax
test eax, eax
je 0x494ad1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004894b0
pop ecx
mov dword [0x4db584], eax
mov eax, dword [0x4db584]
cmp eax, ebx
je 0x494b29
cmp dword [0x4db588], ebx
je 0x494b29
push eax
call fcn.0048952b
push dword [0x4db588]
mov esi, eax
call fcn.0048952b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x494b29
test edi, edi
je 0x494b29
call esi
test eax, eax
je 0x494b20
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x494b20
test byte [ebp - 0xc], 1
jne 0x494b29
or dword [ebp + 0x10], 0x200000
jmp 0x494b62
mov eax, dword [0x4db57c]
cmp eax, ebx
je 0x494b62
push eax
call fcn.0048952b
pop ecx
test eax, eax
je 0x494b62
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x494b62
mov eax, dword [0x4db580]
cmp eax, ebx
je 0x494b62
push eax
call fcn.0048952b
pop ecx
test eax, eax
je 0x494b62
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4db578]
call fcn.0048952b
pop ecx
test eax, eax
je 0x494b82
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x494b84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002c0a
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10031e0
call fcn.01002db4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004bd8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002a1f
cmp eax, esi
jne 0x1002a12
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002a22
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10029f9
xor esi, esi
inc esi
mov eax, dword [0x1004bd4]
cmp eax, esi
jne 0x1002a35
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002a70
mov eax, dword [0x1004bd4]
test eax, eax
jne 0x1002a6a
mov dword [0x1004bd4], esi
push 0x1001140
push 0x1001134
call fcn.01002976
pop ecx
pop ecx
test eax, eax
je 0x1002a70
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002b3a
mov dword [0x1004894], esi
mov eax, dword [0x1004bd4]
cmp eax, esi
jne 0x1002a94
push 0x1001130
push 0x1001128
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004bd4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002aa1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004bdc], ebx
je 0x1002ac2
push 0x1004bdc
call fcn.01002d29
pop ecx
test eax, eax
je 0x1002ac2
push ebx
push 2
push ebx
call dword [0x1004bdc]
push dword [0x100487c]
push dword [0x1004880]
push dword [0x1004878]
call fcn.01001bab
add esp, 0xc
mov dword [0x1004890], eax
cmp dword [0x1004884], ebx
jne 0x1002b20
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004894], ebx
jne 0x1002b2e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004890]
call fcn.01002df9
ret
call fcn.01002f01
jmp 0x10029d7
Function at 0x4030e7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x41d250]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x417425
call fcn.0040bf26
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040b600
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.004029c4
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x4031c5
cmp byte [ebp - 0xd], bl
je 0x40317f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00402eb1
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x4031aa
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00402eb1
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x40315f
mov eax, dword [ebp - 0x14]
cmp dword [0x41e5ec], eax
jne 0x4031ec
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x4031e2
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.00402a4f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040b67a
add ebp, 0x124
leave
ret 4

Function at 0x40479a
Capabilities:
Create thread

Disassembly:
cmp byte [0x41e61d], 1
jne 0x4047e7
push edi
xor edi, edi
cmp dword [0x41e620], edi
jne 0x4047e6
push esi
push 0x41e620
push edi
push edi
push 0x4045f4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
jne 0x4047d1
mov dword [0x41e620], edi
jmp 0x4047e5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4047e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
ret

Function at 0x4047e8
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x40486b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x404881
push 0x80004005
call fcn.00403fde
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404884
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x404ebe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push str.SoftwareIntelDisplayigfxcuiigfxcfg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f19
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x418830
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], 1
pop esi
sete al
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41d250]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040424b
mov edi, eax
cmp edi, esi
je 0x40596b
lea ecx, [ebp - 0x70]
call fcn.004041e6
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b67a
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405983
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00405903
cmp eax, esi
jne 0x4059b6
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x405973
lea ecx, [ebp - 0x70]
call fcn.004041e6
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004041e6
mov eax, esi
jmp 0x405951
Function at 0x407a06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x41d250]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x4176ca
call fcn.0040bf59
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x41d178]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x407ac0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403e99
add esp, 0xc
test eax, eax
jl 0x407ac0
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x407aa8
push edi
call fcn.004057f4
test al, al
pop ecx
je 0x407aa8
mov eax, edi
call fcn.0040c7f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x407ab1
push edi
lea ecx, [ebp - 0x20]
call fcn.00406108
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.00403f7a
cmp eax, ebx
jne 0x407b05
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407ad0
lea ecx, [ebp]
call fcn.0040575e
lea ecx, [ebp - 0x20]
call fcn.00405698
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040b67a
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x407b24
call fcn.00404102
mov esi, eax
jmp 0x407be7
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x407b41
call fcn.00404102
jmp 0x407bdc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x407b37
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x407b88
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407b74
lea ecx, [ebp]
call fcn.0040575e
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00405698
mov eax, esi
jmp 0x407add
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00406d04
mov dword [ebp - 4], 1
jmp 0x407ba9
cmp dword [ebp], ebx
jne 0x407bb5
mov esi, 0x8007000e
jmp 0x407bde
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.0040402b
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.00407897
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407b79
lea ecx, [ebp]
call fcn.0040575e
jmp 0x407b79
Function at 0x408581
Capabilities:
Check os version

Disassembly:
push 0xa0
mov eax, 0x4177d0
call fcn.0040bf8f
mov ebx, dword [ebp + 8]
and dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], ebx
xor edi, edi
lea eax, [ebp + 0xc]
inc edi
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00402e6e
push 0x94
lea eax, [ebp - 0xa4]
push 0
push eax
mov dword [ebp - 0xa8], edi
call fcn.0040b600
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x408611
cmp dword [ebp - 0xa0], 5
jne 0x408611
push str.Global_
mov ecx, ebx
call fcn.00402eb1
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00402c22
push 0
push edi
lea ecx, [ebp + 0xc]
call fcn.00402a4f
mov eax, ebx
call fcn.0040bfd9
ret

Function at 0x408863
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x41e62c], ebx
mov byte [ebp - 1], 1
jne 0x4088a0
push 0x41e62c
push ebx
push ebx
push 0x408624
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x408899
mov dword [0x41e62c], ebx
mov byte [ebp - 1], bl
jmp 0x4088a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x4096a0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41d250]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00409635
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040b600
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4096ef
cmp dword [ebp - 0x1c], 5
jb 0x409707
jmp 0x409703
cmp dword [ebp - 0x10], 1
jne 0x409707
cmp dword [ebp - 0x1c], 4
ja 0x409703
jne 0x409707
cmp dword [ebp - 0x18], 0
jbe 0x409707
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x418c48
call fcn.004040b7
test eax, eax
jge 0x409728
mov byte [0x41e69c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b67a
add ebp, 0x78
leave
ret

Function at 0x40b67a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d250]
jne 0x40b684
repz ret
jmp fcn.0040d5bb
Function at 0x412901
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e5c7
xor ebx, ebx
cmp dword [0x41f158], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4129d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x412941
xor eax, eax
jmp 0x412a9a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41293a
push eax
call fcn.0040e564
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f158], eax
call esi
push eax
call fcn.0040e564
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f15c], eax
call esi
push eax
call fcn.0040e564
mov dword [0x41f160], eax
lea eax, [ebp - 8]
push eax
call fcn.0040fa99
test eax, eax
pop ecx
pop ecx
je 0x4129a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cf82
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4129d6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e564
cmp eax, ebx
pop ecx
mov dword [0x41f168], eax
je 0x4129d6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e564
pop ecx
mov dword [0x41f164], eax
mov eax, dword [0x41f164]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x412a4f
cmp dword [0x41f168], esi
je 0x412a4f
push eax
call fcn.0040e5d0
pop ecx
call eax
cmp eax, ebx
je 0x412a1c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41f168]
call fcn.0040e5d0
pop ecx
call eax
test eax, eax
je 0x412a1c
test byte [ebp - 0x18], 1
jne 0x412a4f
lea eax, [ebp - 0xc]
push eax
call fcn.0040fad0
test eax, eax
pop ecx
je 0x412a37
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cf82
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x412a46
or dword [ebp + 0x10], 0x200000
jmp 0x412a80
or dword [ebp + 0x10], 0x40000
jmp 0x412a80
mov eax, dword [0x41f15c]
cmp eax, esi
je 0x412a80
push eax
call fcn.0040e5d0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412a80
mov eax, dword [0x41f160]
cmp eax, esi
je 0x412a80
push dword [ebp - 4]
push eax
call fcn.0040e5d0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41f158]
call fcn.0040e5d0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422377
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.004195c7
and dword [ebp - 4], 0
cmp dword [0x42efe8], 0
mov ebx, eax
jne 0x422428
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4224d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4224d9
push eax
call fcn.00419555
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42efe8], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42efec], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42eff0], eax
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff8], eax
test eax, eax
je 0x422428
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff4], eax
mov eax, dword [0x42eff4]
cmp eax, ebx
je 0x422480
cmp dword [0x42eff8], ebx
je 0x422480
push eax
call fcn.004195d0
push dword [0x42eff8]
mov esi, eax
call fcn.004195d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422480
test edi, edi
je 0x422480
call esi
test eax, eax
je 0x422477
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422477
test byte [ebp - 0xc], 1
jne 0x422480
or dword [ebp + 0x10], 0x200000
jmp 0x4224b9
mov eax, dword [0x42efec]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4224b9
mov eax, dword [0x42eff0]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42efe8]
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4224db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x7c0555a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x1e1b060d
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402a04
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a41
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a61
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ad0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c28
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404868
test esi, esi
jne 0x402c5e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404958
jmp 0x402c7c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402adc
mov edi, eax
test esi, esi
je 0x402c7c
cmp dword [ebx], 0
je 0x402c7c
dec esi
jmp 0x402c65
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x59400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40387c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40385c
xor eax, eax
push ebp
push 0x403855
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403898
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40385c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x59400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x59400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404668
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59904c], 0
je 0x4046c9
cmp word [0x599220], 0xd7b2
jne 0x404691
cmp dword [0x599228], 0
jbe 0x404691
mov eax, 0x59921c
call dword [0x599238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x594054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59401c], 0
jne 0x4046e5
push 0
push 0x594074
push 0x594054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40481c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402828
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047e4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc