joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ed99
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4516f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040b4b0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40128a
push 0x80004005
call fcn.004021b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
cmp edi, ebx
je 0x401343
push 0x20a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x401343
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
push ebx
push esi
call fcn.0042af90
add esp, 0xc
push 1
push 0x23
push esi
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x401312
lea edi, [ebp - 0x10]
mov ecx, 0x105
mov edx, esi
call fcn.00401950
cmp eax, ebx
jge 0x401307
xor ecx, ecx
jmp 0x40130a
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x401330
cmp ecx, ebx
je 0x401330
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401317
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00401f80
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x401343
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
je 0x40135b
push 0xc
push str.EPSONRYOGA
mov ecx, esi
call fcn.00401820
mov eax, esi
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 0x401b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b1b
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 0x401b54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401b50
jmp 0x401b40
cmp esi, eax
jae 0x401b54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401b40
cmp esi, eax
jb 0x401b5b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403550
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x800
push 0x40
mov dword [ebp - 8], 0
mov edi, 0x400
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4035d3
mov dword [ebp - 4], 0x3fe
nop
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebx
push eax
push 0
push esi
call fcn.0042af90
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
push eax
push esi
call ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp dword [ebp - 4], ebx
jne 0x4035dc
add dword [ebp - 4], 0x400
push esi
add edi, 0x400
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [edi + edi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x403580
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4035f0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + edi]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4035e0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.0042af90
add esp, 0xc
test ebx, ebx
jle 0x403696
mov eax, esi
jmp 0x403620
cmp word [eax], 0
jne 0x403630
inc dword [ebp - 8]
cmp word [eax + 2], 0
je 0x403635
add eax, 2
jmp 0x403620
cmp dword [ebp - 8], 0
jle 0x403696
mov dword [ebp - 4], esi
mov ebx, esi
mov eax, dword [ebp - 4]
cmp word [eax], 0
jne 0x403690
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.0042af90
mov ecx, dword [ebp - 4]
sub ecx, ebx
add esp, 0xc
sar ecx, 1
inc ecx
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
call fcn.0042934c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov ebx, dword [ebp - 4]
add esp, 0x10
push edi
push edx
add ebx, 2
call fcn.0040d177
cmp word [ebx], 0
je 0x403696
add dword [ebp - 4], 2
jmp 0x403640
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ecx + 8]
je 0x4036b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ecb9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4516f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.0040b4b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403980
push 0x80004005
call fcn.004021b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 0x14], 1
mov edi, 0x400
call fcn.0040b4b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403a64
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
mov eax, dword [esi - 8]
mov ebx, dword [ebp + 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4039e4
push edi
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push edi
push esi
push 0x4460c8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00428f86
add esp, 8
test eax, eax
jl 0x403b19
cmp eax, dword [esi - 8]
jg 0x403b19
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [edi - 1]
lea edx, [eax - 1]
cmp ebx, edx
je 0x403a31
cmp ebx, eax
jne 0x403a6e
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403a51
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x400
call fcn.0040b4b0
test eax, eax
jne 0x4039b1
push 0x80004005
call fcn.004021b0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.004019d0
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403a9c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403abf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
push 0x80070057
call fcn.004021b0
int3
Function at 0x404130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eac1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4516f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov edi, 1
mov dword [ebp - 4], edi
call fcn.0040b4b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404182
push 0x80004005
call fcn.004021b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push ecx
mov dword [ebp - 0x10], edi
call ebx
mov edi, eax
test edi, edi
jle 0x4041fa
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x4041c7
push edi
mov ecx, esi
call fcn.00401ed0
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
push edi
push eax
push edx
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4041e8
push ecx
push eax
call fcn.00428f86
add esp, 8
test eax, eax
jl 0x404231
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x404231
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40421d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004021b0
int3
Function at 0x405610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4516f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
xor esi, esi
mov dword [ebp + 0x10], esi
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp + 0x10], esi
push eax
cmp dword [edi + 8], esi
jne 0x405674
call fcn.00401a60
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401a60
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x40573d
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
lea edx, [ebp + 0x10]
push edx
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 0x10]
cmp eax, esi
jbe 0x405700
add eax, 2
push eax
call fcn.0040b49a
mov esi, eax
add esp, 4
test esi, esi
je 0x405700
mov edx, dword [ebp + 0x10]
add edx, 2
push edx
push 0
push esi
call fcn.0042af90
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4056f7
push esi
lea ecx, [ebp - 0x10]
call fcn.004020a0
mov ebx, dword [ebp - 0x10]
push esi
call fcn.0040b4a5
add esp, 4
lea esi, [ebx - 0x10]
push esi
call fcn.00401a60
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4057cc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4057cc
add eax, 2
push eax
call fcn.0040b49a
mov esi, eax
add esp, 4
test esi, esi
jne 0x40575d
lea esi, [ebx - 0x10]
push esi
call fcn.00401a60
add esp, 4
jmp 0x4057a8
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
push 0
push esi
call fcn.0042af90
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405796
push esi
lea ecx, [ebp - 0x10]
call fcn.004020a0
mov ebx, dword [ebp - 0x10]
push esi
call fcn.0040b4a5
lea esi, [ebx - 0x10]
push esi
call fcn.00401a60
add esp, 8
mov edi, dword [ebp + 8]
or edx, 0xffffffff
add eax, 0x10
mov dword [ebp - 4], edx
lea ecx, [esi + 0xc]
mov dword [edi], eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057cc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 0xc
Function at 0x4057f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 8], 0
push esi
mov esi, eax
jne 0x405804
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 4]
call fcn.004020f0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov edx, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.TaskGUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ef60
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4516f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push eax
push str._GetVersionSys32__input_path___s_r_n
mov eax, 0x4556b4
call fcn.00401370
add esp, 8
push 0x4460c8
lea ecx, [ebp - 0x10]
call fcn.004020f0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x40869f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00401a60
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408766
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x408727
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40870c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x408705
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 0x30]
mov ecx, edx
movzx esi, dx
mov edx, dword [eax + 0x34]
mov eax, edx
movzx edx, dx
push edx
shr eax, 0x10
push eax
shr ecx, 0x10
push esi
push ecx
lea ecx, [ebp - 0x10]
push str._d._d._d._d
push ecx
call fcn.004049b0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408739
push str._GetVersionSys32__Failed_LoadResource__r_n
jmp 0x408711
push str._GetVersionSys32__Failed_FindResource__r_n
mov eax, 0x4556b4
call fcn.00401370
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408739
push str._GetVersionSys32__Failed_LoadLibrary__r_n
mov eax, 0x4556b4
call fcn.00401370
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00401a60
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408798
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409830
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4516f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0042af90
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 5
jbe 0x40988b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004288f2
mov esp, ebp
pop ebp
ret
jne 0x4098a6
cmp dword [ebp - 0x110], 1
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004288f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004288f2
mov esp, ebp
pop ebp
ret

Function at 0x40abc0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
lea ecx, [ebp - 8]
push ecx
push 1
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x40ac64
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor edi, edi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], ebx
jbe 0x40ac64
xor esi, esi
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [esi + ecx]
lea eax, [ebp - 4]
push eax
push 5
push edx
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40ac64
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
cmp dword [esi + eax], ecx
je 0x40ac44
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40ac39
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
mov dword [ebp - 4], eax
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0xc]
jb 0x40ac01
jmp 0x40ac67
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [edi + edi*2]
mov dword [ebp - 4], ebx
mov edx, dword [eax + ecx*4]
push 7
push edx
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov eax, dword [ebp - 4]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x40ac74
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40ebc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40ec0c
call fcn.0040ce17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ec0c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ec4f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40ec38
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 0x40ec38
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40ec4c
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 0x41552f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43d839
call fcn.0042a4f0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x415554
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41559a
lea ecx, [ebp - 0x10]
call fcn.00402220
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.0040b8cc
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402200
mov eax, esi
call fcn.0042a5c8
ret 8

Function at 0x4236f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42373c
call fcn.0040ce17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42373c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x423758
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042326d
mov esi, eax
test edi, edi
je 0x423756
test ebx, ebx
je 0x423756
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4279e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x427a08
cmp dword [edi + 0x54], 0
jne 0x427a08
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040ce17
mov esi, dword [eax + 0xc]
push 5
push ebx
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 ebx, eax
push ebx
mov ecx, edi
call fcn.004279a5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4288f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4516f8]
jne 0x4288fc
repz ret
jmp fcn.0042e409

Function at 0x435df0
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.0042de15
and dword [ebp - 4], 0
cmp dword [0x455600], 0
mov ebx, eax
jne 0x435ea1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435f52
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x435f52
push eax
call fcn.0042dda3
mov dword [esp], 0x444538
push edi
mov dword [0x455600], eax
call esi
push eax
call fcn.0042dda3
mov dword [esp], 0x444524
push edi
mov dword [0x455604], eax
call esi
push eax
call fcn.0042dda3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x455608], eax
call esi
push eax
call fcn.0042dda3
pop ecx
mov dword [0x455610], eax
test eax, eax
je 0x435ea1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042dda3
pop ecx
mov dword [0x45560c], eax
mov eax, dword [0x45560c]
cmp eax, ebx
je 0x435ef9
cmp dword [0x455610], ebx
je 0x435ef9
push eax
call fcn.0042de1e
push dword [0x455610]
mov esi, eax
call fcn.0042de1e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435ef9
test edi, edi
je 0x435ef9
call esi
test eax, eax
je 0x435ef0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435ef0
test byte [ebp - 0xc], 1
jne 0x435ef9
or dword [ebp + 0x10], 0x200000
jmp 0x435f32
mov eax, dword [0x455604]
cmp eax, ebx
je 0x435f32
push eax
call fcn.0042de1e
pop ecx
test eax, eax
je 0x435f32
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435f32
mov eax, dword [0x455608]
cmp eax, ebx
je 0x435f32
push eax
call fcn.0042de1e
pop ecx
test eax, eax
je 0x435f32
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455600]
call fcn.0042de1e
pop ecx
test eax, eax
je 0x435f52
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435f54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret