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

Disassembly:
push 0xffffffffffffffff
push 0x4361f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4475a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
call fcn.004110f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401af7
push 0x80004005
call fcn.004033c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401b41
push 0
push 0x43cf48
lea ecx, [esp + 0x14]
call fcn.004038d0
mov esi, dword [esp + 0xc]
jmp 0x401bca
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push str.Install
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 1
call edi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x401b97
push 0x104
lea ecx, [esp + 0x10]
call fcn.00403770
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push 0
push str.Install
push eax
call edi
test eax, eax
mov ecx, dword [esp + 0x10]
push ecx
je 0x401bc4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401b28
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
push esi
call fcn.00403820
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401bfc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x4021e0
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43607b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4475a0]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
push edi
mov eax, dword [0x4475a0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push str.CLSID08C90922_0A50_4F8F_BE32_0789F7C361FDInprocServer32
push SysReAllocStringLen
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4023f9
push 0x104
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00422e30
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push 3
push edi
push 3
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4023f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004110f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4022bf
push 0x80004005
call fcn.004033c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 6
push str.__u__s
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0
call fcn.00402e60
push 1
push 0x43cd34
lea ecx, [esp + 0x14]
call fcn.00402e60
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402301
sub eax, edx
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402e60
push 1
push 0x43cd34
lea ecx, [esp + 0x14]
call fcn.00402e60
mov esi, dword [esp + 0xc]
cmp dword [esi - 4], 1
jle 0x402346
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x10]
call fcn.00403330
mov esi, dword [esp + 0xc]
call fcn.00401680
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [esp + 0x128]
push 0
push eax
call fcn.00422e30
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..ocx
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x124]
push ecx
call edi
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0042144a
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
call edi
lea edx, [esp + 0x124]
push edx
call edi
lea eax, [esi - 0x10]
mov edi, 1
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4023f9
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00421100
add esp, 0x230
ret
Function at 0x402430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4475a0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
lea eax, [esp + 8]
push eax
push str.CLSID08C90922_0A50_4F8F_BE32_0789F7C361FDInprocServer32
xor ebx, ebx
push SysReAllocStringLen
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [esp + 8]
cmp esi, ebx
je 0x402532
push 0x104
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00422e30
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x402532
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push ebx
push 0x80
push 3
push ebx
push 2
push 0x40000000
lea ecx, [esp + 0x30]
push ecx
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x402515
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00421100
add esp, 0x114
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00421100
add esp, 0x114
ret
mov ecx, dword [esp + 0x118]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00421100
add esp, 0x114
ret

Function at 0x4036a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 0x4036b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4036f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4036f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4036f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4036e0
cmp esi, eax
jb 0x4036fa
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 0x404460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4362e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x88], ebx
je 0x4044b7
mov ecx, dword [esi + 0x90]
call fcn.004109fe
mov ecx, dword [esi + 0x90]
cmp ecx, ebx
je 0x4044b1
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x80], ebx
call fcn.0040a330
mov edi, dword [eax + 0xc]
push 0x43cba0
push 0x86
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x44b3e4
mov ebp, eax
mov dword [esp + 0x24], vtable.ATL::CImage.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x44b3fc], 1
push 0x44b3e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebp, ebx
mov dword [esp + 0x58], ebx
jne 0x404561
lea ecx, [esp + 0x20]
call fcn.00403cf0
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
je 0x404542
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
push eax
call fcn.00426520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 8
call fcn.00405e25
add esp, 4
cmp eax, ebx
je 0x4045c5
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x4045c7
xor eax, eax
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403ee0
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x90]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], 0xffffffff
mov byte [esp + 0x41], bl
mov byte [esp + 0x40], bl
call fcn.004109ab
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 1
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
call fcn.00404a60
lea ecx, [esp + 0x20]
call fcn.00403cf0
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x405220
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435f88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4475a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x18]
call fcn.00410b1d
mov ebx, dword [ebp + 8]
mov dword [esp + 0x38], 0
mov eax, dword [ebx + 0x18]
push eax
call fcn.004106d6
add ebx, 0x1c
push ebx
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
push 1
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0041007d
cmp dword [esi + 0x110], 1
jne 0x4052bd
cmp dword [esi + 0xf8], 0
je 0x4052b5
lea ebx, [esi + 0x64]
jmp 0x405343
lea ebx, [esi + 0x5c]
jmp 0x405343
cmp dword [esi + 0xf8], 0
je 0x4052d1
cmp dword [esi + 0x60], 0
lea ebx, [esi + 0x5c]
jne 0x4052e6
jmp 0x4052e3
mov ebx, dword [edi]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [ebx + 0x30]
push eax
mov ecx, edi
call edx
lea ebx, [esi + 0x54]
cmp dword [esi + 0xf0], 0
je 0x4052fb
cmp dword [esi + 0x60], 0
lea ebx, [esi + 0x5c]
jne 0x4052fb
lea ebx, [esi + 0x54]
cmp dword [esi + 0xfc], 0
je 0x405310
cmp dword [esi + 0x70], 0
lea ebx, [esi + 0x6c]
jne 0x405310
lea ebx, [esi + 0x54]
mov eax, dword [esi + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x8000000
mov dword [esi + 0xf4], eax
je 0x40532e
lea ebx, [esi + 0x74]
jmp 0x405343
cmp dword [esi + 0x104], 0
je 0x405343
cmp dword [esi + 0x68], 0
lea ebx, [esi + 0x64]
jne 0x405349
lea ebx, [esi + 0x54]
cmp dword [ebx + 4], 0
je 0x405372
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, ebx
mov ebx, edi
mov dword [eax + 0xc], edx
call fcn.00405780
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004109fe
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4055d0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4362c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
call fcn.0040a330
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x64]
push 0x43cba0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebx, ebx
push 0x44b3e4
mov edi, eax
mov dword [esp + 0x24], vtable.ATL::CImage.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x44b3fc], 1
push 0x44b3e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
mov dword [esp + 0x58], ebx
jne 0x405686
lea ecx, [esp + 0x20]
call fcn.00403cf0
xor eax, eax
jmp 0x405764
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x405676
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
push edi
push eax
call fcn.00426520
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBitmap.0
mov byte [esp + 0x58], 1
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403ee0
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], 0xffffffff
mov byte [esp + 0x41], bl
mov byte [esp + 0x40], bl
call fcn.004109ab
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x60]
lea edi, [esp + 0x18]
call fcn.004058d0
mov byte [esp + 0x58], bl
mov ecx, edi
mov esi, eax
mov dword [esp + 0x18], vtable.CGdiObject.0
call fcn.004109fe
lea ecx, [esp + 0x20]
call fcn.00403cf0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
Function at 0x40701d
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 0x407063
call fcn.0040a330
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x407063
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4070a6
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 0x40708f
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 0x40708f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4070a3
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 0x40d9e4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40da1d
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.0040d97f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403410
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40f530
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 0x40f573
call fcn.0040a330
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f573
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f58e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f0e7
test ebx, ebx
mov esi, eax
je 0x40f58c
test edi, edi
je 0x40f58c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x412153
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x412181
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41219f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004120bd
jmp 0x41219f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41219f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004120bd
test edi, edi
mov eax, edi
jne 0x412189
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44a614]
test ecx, ecx
je 0x412262
jmp 0x412152
ret 8
Function at 0x421100
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4475a0]
jne 0x42110a
repz ret
jmp fcn.00425cc2

Function at 0x42faa5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00425e29
xor ebx, ebx
cmp dword [0x44b3bc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42fb7a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42fae5
xor eax, eax
jmp 0x42fc3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c0ac
push edi
call esi
cmp eax, ebx
je 0x42fade
push eax
call fcn.00425dc6
mov dword [esp], 0x43c09c
push edi
mov dword [0x44b3bc], eax
call esi
push eax
call fcn.00425dc6
mov dword [esp], 0x43c088
push edi
mov dword [0x44b3c0], eax
call esi
push eax
call fcn.00425dc6
mov dword [0x44b3c4], eax
lea eax, [ebp - 8]
push eax
call fcn.00422a16
test eax, eax
pop ecx
pop ecx
je 0x42fb48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004218f7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42fb7a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00425dc6
cmp eax, ebx
pop ecx
mov dword [0x44b3cc], eax
je 0x42fb7a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425dc6
pop ecx
mov dword [0x44b3c8], eax
mov eax, dword [0x44b3c8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42fbf3
cmp dword [0x44b3cc], esi
je 0x42fbf3
push eax
call fcn.00425e32
pop ecx
call eax
cmp eax, ebx
je 0x42fbc0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44b3cc]
call fcn.00425e32
pop ecx
call eax
test eax, eax
je 0x42fbc0
test byte [ebp - 0x18], 1
jne 0x42fbf3
lea eax, [ebp - 0xc]
push eax
call fcn.00422a4d
test eax, eax
pop ecx
je 0x42fbdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004218f7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42fbea
or dword [ebp + 0x10], 0x200000
jmp 0x42fc24
or dword [ebp + 0x10], 0x40000
jmp 0x42fc24
mov eax, dword [0x44b3c0]
cmp eax, esi
je 0x42fc24
push eax
call fcn.00425e32
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42fc24
mov eax, dword [0x44b3c4]
cmp eax, esi
je 0x42fc24
push dword [ebp - 4]
push eax
call fcn.00425e32
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 [0x44b3bc]
call fcn.00425e32
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4347a5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4475a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043473a
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.00422e30
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 0x4347f4
cmp dword [ebp - 0x1c], 5
jb 0x43480c
jmp 0x434808
cmp dword [ebp - 0x10], 1
jne 0x43480c
cmp dword [ebp - 0x1c], 4
ja 0x434808
jne 0x43480c
cmp dword [ebp - 0x18], 0
jbe 0x43480c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43c988
call fcn.0043460e
test eax, eax
jge 0x43482d
mov byte [0x44b58c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421100
add ebp, 0x78
leave
ret
Function at 0x401711
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004018c1
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40180f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4017b2
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4017f5
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4017c9
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4017e4
test al, 0x40
je 0x4017db
mov ecx, dword [edi + 0x20]
jmp 0x4017e2
test al, 0x80
je 0x4017f5
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4017f5
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401781
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret