joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037e0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x43b090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, dl
mov esi, ecx
mov dword [ebp - 4], 0
cmp esi, 0x102
je 0x403850
cmp esi, 0x101
je 0x403850
cmp esi, 0x202
je 0x403850
cmp esi, 0x201
je 0x403850
cmp esi, 0x302
je 0x403850
cmp esi, 0x301
jne 0x403a05
call fcn.0040a1b0
mov ecx, eax
test ecx, ecx
jne 0x403865
push 0x80004005
call fcn.00409f70
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
test bl, bl
je 0x403884
push 0xa
push str._UserCheck
jmp 0x4038df
cmp esi, 0x102
je 0x4038d8
cmp esi, 0x101
je 0x4038d8
cmp esi, 0x202
je 0x4038c6
cmp esi, 0x201
je 0x4038c6
cmp esi, 0x302
je 0x4038b4
cmp esi, 0x301
jne 0x4038ea
push str._ForceUpdate
lea ecx, [ebp - 0x220]
call fcn.00404e80
jmp 0x4038ea
push str._TipUpdate
lea ecx, [ebp - 0x220]
call fcn.00404e80
jmp 0x4038ea
push 0xd
push str._SlientUpdate
lea ecx, [ebp - 0x220]
call fcn.00407cc0
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0040f360
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0040f104
xor ecx, ecx
push str.SoHuLiveUpdate.exe
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
call fcn.00413470
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004134e5
add esp, 0x1c
test eax, eax
jne 0x4039e3
push 0x3c
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040f360
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x25c], 0x3c
mov dword [ebp - 0x24c], eax
add esp, 0xc
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x254], 0
push eax
mov dword [ebp - 0x250], str.open
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x258], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x4039e3
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4039e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x403a14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cc34
mov esp, ebp
pop ebp
ret
Function at 0x403a30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428ca8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43b090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 3
jge 0x403a72
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
call fcn.004133e2
push dword [esi + 8]
mov edi, eax
call fcn.004133e2
add esp, 8
mov ebx, eax
call fcn.0040a1b0
mov ecx, eax
test ecx, ecx
jne 0x403aa1
push 0x80004005
call fcn.00409f70
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea ecx, [esi + 0x10]
mov dword [ebp + 8], ecx
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004033e0
test eax, eax
je 0x403ad2
push 0x436810
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 1
jmp 0x403aec
push 0x436820
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 1
mov ecx, edi
sete dl
call fcn.004037e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x403b08
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43b090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040cc53
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040af19
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a440
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4293b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x43b090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0040a9f0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x40a496
mov eax, dword [esi]
jmp 0x40a498
mov eax, esi
push 0
push eax
call fcn.004134e5
add esp, 8
test eax, eax
je 0x40a4b5
push 2
push 0x436bcc
mov ecx, esi
call fcn.00405c20
push 5
push 0x436bd4
mov ecx, esi
call fcn.00408940
cmp dword [esi + 0x14], 8
jb 0x40a4cd
mov eax, dword [esi]
jmp 0x40a4cf
mov eax, esi
push 0
push eax
call fcn.004134e5
add esp, 8
test eax, eax
je 0x40a4f3
cmp dword [esi + 0x14], 8
jb 0x40a4e8
mov eax, dword [esi]
jmp 0x40a4ea
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a8e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a926
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a922
nop word [eax + eax]
cmp esi, edx
jae 0x40a926
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a910
cmp esi, edx
jb 0x40a92d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a9f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43b090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0040f360
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x40aa5f
xor ecx, ecx
jmp 0x40aa7f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00405c20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040cc34
mov esp, ebp
pop ebp
ret

Function at 0x421742
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004213f0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1f973a0a
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x145b26e3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100027e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x101f9fe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x4b
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], 0x78
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x118]
mov dl, byte [ecx]
mov byte [ebp - 0x111], dl
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x111], 0
jne 0x1000284b
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], eax
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x112], cl
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x112], 0
jne 0x10002896
mov edi, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x1000297c
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
push edx
call fcn.10035013
add esp, 4
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x13c], 0
push 0
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x124], 0
je 0x1000297c
mov edx, dword [ebp - 0x124]
push edx
call fcn.10001ba0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016c4c1
mov esp, ebp
pop ebp
ret
Function at 0x10037e58
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10188f22
call fcn.1016caa3
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x10037f02
push dword [ebp + 8]
mov ecx, eax
call fcn.10038192
mov esi, eax
test esi, esi
je 0x10037f95
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x10037eeb
push edx
call fcn.10035013
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10037eeb
xor edi, edi
inc edi
jmp 0x10037ef5
push dword [ebx]
call fcn.1003500e
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10037d1d
jmp 0x10037f93
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1016ca66
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10037f8b
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.10035013
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x10037f85
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10037cf9
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.10037cf9
add al, bl
mov edx, edi
test edx, edx
jns 0x10037f76
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x10037f4d
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.100376ee
mov eax, edi
call fcn.1016ca6c
ret 0x10

Function at 0x10037f9f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x10037ff2
push esi
push dword [ebp + 8]
call fcn.10038192
mov edi, eax
test edi, edi
jne 0x10037fc2
mov eax, dword [ebp + 0x10]
jmp 0x10038004
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10037fbd
mov eax, dword [ebp - 8]
jmp 0x10038004
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003cdfa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1003ce3f
call fcn.1003a0a7
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003ce3f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1003ce5b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1004acfd
mov ebx, eax
test edi, edi
je 0x1003ce59
test esi, esi
je 0x1003ce59
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003d888
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1003d946
cmp dword [esi + 0x20], 0
je 0x1003d946
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1003d946
cmp dword [ebp + 8], 0
je 0x1003d946
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.1003a0a7
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1003d917
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003d946
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1004b8ad
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1003d937
test edi, edi
je 0x1003d937
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1003d942
mov ecx, esi
call fcn.1003d627
mov eax, ebx
jmp 0x1003d948
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10041e56
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1018b429
call fcn.1016caa3
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10041e7c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10041edb
call fcn.10043673
push eax
lea ecx, [ebp - 0x10]
call fcn.10036196
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1016ca66
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10173e6b
push eax
call fcn.100367aa
add esp, 0x14
test esi, esi
je 0x10041ece
push esi
call fcn.1017217f
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100376ee
mov eax, ebx
call fcn.1016ca6c
ret 8
Function at 0x1004bf14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x1004bf3f
cmp dword [ebx + 0x80], 0
jne 0x1004bf3f
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.1003a0a7
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.1004c1d2
push edi
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 0x1004bf79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1003a0a7
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1004bfb0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1004bfd1
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1004e0b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x1004e0d2
mov edi, dword [esi + 0xc]
jmp 0x1004e112
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1004e0eb
call fcn.10047f67
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1004e100
call fcn.10047f67
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1004e112
call fcn.10047f67
call fcn.1003a0a7
cmp dword [eax + 0x3c], 0
je 0x1004e127
push edi
mov ecx, ebx
call fcn.1004d74c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1004e304
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1004e150
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1004e15c
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005411a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10041da0
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10054156
call fcn.1005433c
mov dword [esi + 0xc], 1
jmp 0x1005415b
call fcn.1005433c
cmp dword [esi], 0
je 0x100541a4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1005417e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1003ced0
jmp 0x1005418f
push 0xff
mov ecx, esi
call fcn.10037339
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100382ce
jmp 0x100541c8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100541c8
push dword [esi]
push dword [ebp - 4]
call fcn.10042325
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10054291
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1005433c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100542d9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1003ced0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100382ce
jmp 0x100542e4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10042325
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10065a16
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100b42a2
call fcn.1003a0fb
cmp dword [eax + 0x14], 0
jne 0x10065a31
mov ecx, esi
pop esi
jmp fcn.10064d61
pop esi
ret

Function at 0x100668da
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.100af114
call fcn.1003a0fb
cmp dword [eax + 0x14], 0
jne 0x100668f5
mov ecx, esi
pop esi
jmp fcn.10066158
pop esi
ret
Function at 0x100751aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x100751c3
call fcn.1003a0a7
mov esi, dword [eax + 0xc]
push 0x101b06d4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10075219
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10075218
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100751f9
xor esi, esi
jmp 0x1007520f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.10075221
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10184c4c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1018490c