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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1004120c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x10034610
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1002d579
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x1002d67b
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x1002d629
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002d67c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002d61e
cmp dword [ebp - 0x24], 1
jne 0x1002d61e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x100345ac
push eax
call fcn.10017bf8
add esp, 0xc
cmp eax, 1
jne 0x1002d61e
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002d67c
push 0x100345a0
call edi
cmp eax, ebx
je 0x1002d67c
lea ecx, [ebp - 0x18]
push ecx
push 0x1002d4c1
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x1002d67c
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x1002d6a2
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.1002d442
cmp eax, ebx
pop ecx
pop ecx
jne 0x1002d6a4
inc edi
cmp edi, esi
jl 0x1002d68b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.10016f88
leave
ret 4
Function at 0x1002d6b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x10040694
je 0x1002d76f
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002d757
mov esi, dword [ebx + 4]
jmp 0x1002d751
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002d741
cmp dword [ebp - 0xc], 4
jne 0x1002d741
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x1002d739
or dword [eax + 0x9c], ecx
jmp 0x1002d741
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x1002d705
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x1002d6e8
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x100309e7
call fcn.100174cc
sub esp, 0x11c
mov eax, dword [0x1004120c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x1002dd26
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1002dcfa
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.100034c0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.1002dc2d
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10003160
test bl, bl
jne 0x1002dcfa
or dword [ebp - 4], 0xffffffff
jmp 0x1002dc6b
cmp esi, 0x103
je 0x1002dd0a
cmp esi, 0x3f2
jne 0x1002dd1a
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.10016f88
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1002dd41
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x10030a12
call fcn.100174cc
sub esp, 0x124
mov eax, dword [0x1004120c]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x120], edi
call fcn.1002be19
cmp eax, edi
mov dword [ebp - 0x128], eax
je 0x1002dd9b
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
lea edx, [ebp - 0x128]
push edx
call dword [eax + 0x14]
cmp eax, edi
je 0x1002dd93
mov edx, dword [eax]
push edi
push edi
push 0xfffffffffffffffc
push edi
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp - 0x128], edi
jne 0x1002dd74
cmp dword [esi + 0x50], edi
je 0x1002de9b
push str.Software_
lea ecx, [ebp - 0x11c]
call fcn.100034c0
push dword [esi + 0x50]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], edi
call fcn.10004f60
push 0x10034b08
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.10002d40
push dword [esi + 0x64]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.10002d40
add esp, 0x18
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10003160
lea eax, [ebp - 0x124]
push eax
mov esi, SysReAllocString
push esi
call fcn.1002dc2d
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002de69
push 0x104
lea eax, [ebp - 0x118]
push eax
push edi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x1002de5d
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.1002dc2d
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [edi - 0x10]
call fcn.10003160
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.10003160
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop esi
call fcn.10016f88
leave
ret

Function at 0x1002e4d9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x1002e50e
cmp edi, dword [esi + 0xc]
jge 0x1002e50e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002e50e
cmp edi, dword [eax + 8]
jge 0x1002e50e
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x1002e510
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x1002e614
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1002e648
jmp fcn.10022fcf
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x1002e6b9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x1002e7b2
cmp eax, dword [edi + 0xc]
jge 0x1002e7b2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x1002e70a
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x1002e79b
cmp dword [ebp + 0xc], ebx
je 0x1002e79b
jmp 0x1002e734
push 0x10
call fcn.1002e3a5
cmp eax, ebx
je 0x1002e720
mov ecx, eax
call fcn.1002e60b
mov esi, eax
jmp 0x1002e722
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1002e74b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1002e75b
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x1002e76d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10022fcf
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.10016fa0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1002e7ad
cmp ecx, dword [esi + 8]
jge 0x1002e7ad
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x1002e7b3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40117c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x4021d0
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4021e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402224
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402220
lea ebx, [ebx]
cmp esi, eax
jae 0x402224
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402210
cmp esi, eax
jb 0x40222a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40125d
Capabilities:
Get number of processors

Disassembly:
jmp 0x40ad80
push 0xffffffffffffffff
push 0x493f98
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c9b4c]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c9b4c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
push 8
xor ebx, ebx
push str.tnCcNAH4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401217
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov al, 0x6c
push ebx
mov byte [esp + 0x56], al
mov byte [esp + 0x58], al
mov byte [esp + 0x59], al
mov byte [esp + 0x45], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x4b], al
mov cl, 0x75
push ebx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x58], 0x56
mov byte [esp + 0x59], 0x69
mov byte [esp + 0x5a], 0x72
mov byte [esp + 0x5b], 0x74
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], 0x61
mov byte [esp + 0x5f], 0x41
mov byte [esp + 0x62], 0x6f
mov byte [esp + 0x63], 0x63
mov byte [esp + 0x64], 0x45
mov byte [esp + 0x65], 0x78
mov byte [esp + 0x66], 0x4e
mov byte [esp + 0x67], cl
mov byte [esp + 0x68], 0x6d
mov byte [esp + 0x69], 0x61
mov byte [esp + 0x6a], bl
mov byte [esp + 0x48], 0x6b
mov byte [esp + 0x49], 0x65
mov byte [esp + 0x4a], 0x72
mov byte [esp + 0x4b], 0x6e
mov byte [esp + 0x4c], 0x65
mov byte [esp + 0x4e], 0x33
mov byte [esp + 0x4f], 0x32
mov byte [esp + 0x50], 0x2e
mov byte [esp + 0x51], 0x64
mov byte [esp + 0x54], bl
call esi
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
mov edi, eax
mov byte [esp + 0x3c], 0x74
mov byte [esp + 0x3d], 0x61
mov byte [esp + 0x3e], 0x73
mov byte [esp + 0x3f], 0x6b
mov byte [esp + 0x40], 0x6d
mov byte [esp + 0x41], 0x67
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x2e
mov byte [esp + 0x44], 0x65
mov byte [esp + 0x45], 0x78
mov byte [esp + 0x46], 0x65
mov byte [esp + 0x47], bl
call esi
test eax, eax
jne 0x40aef6
cmp dword [esp + 0x2c], 0x10
jb 0x40aeef
mov eax, dword [esp + 0x18]
push eax
call fcn.0040eac0
add esp, 4
xor al, al
jmp 0x40af84
push ebx
push 0x49e948
call fcn.0044c841
add esp, 4
push eax
push str.8192
call fcn.0044c841
add esp, 4
or eax, 0x1000
push eax
push 0x8344
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40af45
cmp dword [esp + 0x2c], 0x10
jb 0x40aeef
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040eac0
add esp, 4
xor al, al
jmp 0x40af84
push 0x8344
push 0x4be0c8
push esi
call fcn.0044c880
mov edx, dword [esp + 0x84]
push 0x8344
push esi
push edx
push ebp
call fcn.004014f1
add esp, 0x1c
call esi
cmp dword [esp + 0x2c], 0x10
jb 0x40af82
mov eax, dword [esp + 0x18]
push eax
call fcn.0040eac0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0044bcf1
add esp, 0x5c
ret
Function at 0x40ad80
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
jmp 0x40ad80
push 0xffffffffffffffff
push 0x493f98
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c9b4c]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c9b4c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
push 8
xor ebx, ebx
push str.tnCcNAH4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401217
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov al, 0x6c
push ebx
mov byte [esp + 0x56], al
mov byte [esp + 0x58], al
mov byte [esp + 0x59], al
mov byte [esp + 0x45], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x4b], al
mov cl, 0x75
push ebx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x58], 0x56
mov byte [esp + 0x59], 0x69
mov byte [esp + 0x5a], 0x72
mov byte [esp + 0x5b], 0x74
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], 0x61
mov byte [esp + 0x5f], 0x41
mov byte [esp + 0x62], 0x6f
mov byte [esp + 0x63], 0x63
mov byte [esp + 0x64], 0x45
mov byte [esp + 0x65], 0x78
mov byte [esp + 0x66], 0x4e
mov byte [esp + 0x67], cl
mov byte [esp + 0x68], 0x6d
mov byte [esp + 0x69], 0x61
mov byte [esp + 0x6a], bl
mov byte [esp + 0x48], 0x6b
mov byte [esp + 0x49], 0x65
mov byte [esp + 0x4a], 0x72
mov byte [esp + 0x4b], 0x6e
mov byte [esp + 0x4c], 0x65
mov byte [esp + 0x4e], 0x33
mov byte [esp + 0x4f], 0x32
mov byte [esp + 0x50], 0x2e
mov byte [esp + 0x51], 0x64
mov byte [esp + 0x54], bl
call esi
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
mov edi, eax
mov byte [esp + 0x3c], 0x74
mov byte [esp + 0x3d], 0x61
mov byte [esp + 0x3e], 0x73
mov byte [esp + 0x3f], 0x6b
mov byte [esp + 0x40], 0x6d
mov byte [esp + 0x41], 0x67
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x2e
mov byte [esp + 0x44], 0x65
mov byte [esp + 0x45], 0x78
mov byte [esp + 0x46], 0x65
mov byte [esp + 0x47], bl
call esi
test eax, eax
jne 0x40aef6
cmp dword [esp + 0x2c], 0x10
jb 0x40aeef
mov eax, dword [esp + 0x18]
push eax
call fcn.0040eac0
add esp, 4
xor al, al
jmp 0x40af84
push ebx
push 0x49e948
call fcn.0044c841
add esp, 4
push eax
push str.8192
call fcn.0044c841
add esp, 4
or eax, 0x1000
push eax
push 0x8344
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40af45
cmp dword [esp + 0x2c], 0x10
jb 0x40aeef
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040eac0
add esp, 4
xor al, al
jmp 0x40af84
push 0x8344
push 0x4be0c8
push esi
call fcn.0044c880
mov edx, dword [esp + 0x84]
push 0x8344
push esi
push edx
push ebp
call fcn.004014f1
add esp, 0x1c
call esi
cmp dword [esp + 0x2c], 0x10
jb 0x40af82
mov eax, dword [esp + 0x18]
push eax
call fcn.0040eac0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0044bcf1
add esp, 0x5c
ret
Function at 0x413059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41309f
call fcn.004202ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41309f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4130e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4130cb
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 0x4130cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4130df
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 0x418996
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4189cf
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00412a4a
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00401609
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41a8f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41a937
call fcn.004202ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a937
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a952
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041a4ab
test ebx, ebx
mov esi, eax
je 0x41a950
test edi, edi
je 0x41a950
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41b3ca
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x49510c
call fcn.0044dad5
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41b3ef
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41b43b
call fcn.00420dc8
push eax
lea ecx, [ebp - 0x10]
call fcn.004014ec
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.0041a95e
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.004014c4
mov eax, esi
call fcn.0044dbad
ret 8
Function at 0x44bcf1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c9b4c]
jne 0x44bcfb
repz ret
jmp fcn.00454fdc

Function at 0x46c6f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454a0a
xor ebx, ebx
cmp dword [0x4ce8e0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x46c7c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x46c730
xor eax, eax
jmp 0x46c889
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x46c729
push eax
call fcn.004549a7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ce8e0], eax
call esi
push eax
call fcn.004549a7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ce8e4], eax
call esi
push eax
call fcn.004549a7
mov dword [0x4ce8e8], eax
lea eax, [ebp - 8]
push eax
call fcn.0044dc88
test eax, eax
pop ecx
pop ecx
je 0x46c793
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e39
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x46c7c5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004549a7
cmp eax, ebx
pop ecx
mov dword [0x4ce8f0], eax
je 0x46c7c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004549a7
pop ecx
mov dword [0x4ce8ec], eax
mov eax, dword [0x4ce8ec]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x46c83e
cmp dword [0x4ce8f0], esi
je 0x46c83e
push eax
call fcn.00454a13
pop ecx
call eax
cmp eax, ebx
je 0x46c80b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4ce8f0]
call fcn.00454a13
pop ecx
call eax
test eax, eax
je 0x46c80b
test byte [ebp - 0x18], 1
jne 0x46c83e
lea eax, [ebp - 0xc]
push eax
call fcn.0044dd37
test eax, eax
pop ecx
je 0x46c826
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e39
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x46c835
or dword [ebp + 0x10], 0x200000
jmp 0x46c86f
or dword [ebp + 0x10], 0x40000
jmp 0x46c86f
mov eax, dword [0x4ce8e4]
cmp eax, esi
je 0x46c86f
push eax
call fcn.00454a13
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46c86f
mov eax, dword [0x4ce8e8]
cmp eax, esi
je 0x46c86f
push dword [ebp - 4]
push eax
call fcn.00454a13
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 [0x4ce8e0]
call fcn.00454a13
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret