joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4020
call fcn.004397d0
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
lea ebx, [esi + 0x10]
mov dword [ebp - 0x4018], ebx
cmp edi, 0x1c
jb 0x4034cb
mov eax, dword [esi]
mov dword [ebp - 0x401c], eax
cmp eax, 0x80000001
je 0x40330a
cmp eax, 0x80000002
jne 0x4034cb
cmp dword [esi + 4], 0
mov dword [ebp - 0x4014], 0
jbe 0x403485
nop
mov eax, dword [ebx]
cmp edi, eax
jbe 0x403331
cmp byte [esi + eax], 0
je 0x403331
inc eax
cmp edi, eax
ja 0x403326
mov ecx, dword [ebx + 8]
add ecx, dword [ebx + 4]
cmp edi, ecx
jb 0x4034cb
cmp edi, eax
je 0x4034cb
xor eax, eax
push 0x2000
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x4004]
push eax
call fcn.0040ae00
mov eax, dword [ebx]
push 0x1000
add eax, esi
mov dword [ebp - 0x4008], 0
push eax
push 0x1000
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x4008]
push eax
call fcn.00410d03
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0040c94c
add esp, 0x2c
cmp dword [ebp - 0x401c], 0x80000002
jne 0x4033d5
lea eax, [ebp - 0x4004]
push 0x5c
push eax
call fcn.0040a6a4
add esp, 8
test eax, eax
je 0x4033d5
lea ecx, [ebp - 0x2004]
call fcn.004031a0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4010], eax
mov eax, dword [ebx + 4]
add eax, esi
mov dword [ebp - 0x4020], eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x2006], 0x5c
je 0x403466
push 0
push 0x8000080
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034b5
push 0
lea eax, [ebp - 0x400c]
push eax
push dword [ebp - 0x4010]
push dword [ebp - 0x4020]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403498
mov eax, dword [ebp - 0x4010]
cmp dword [ebp - 0x400c], eax
jne 0x403498
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x4018]
mov ecx, dword [ebp - 0x4014]
add ebx, 0xc
inc ecx
mov dword [ebp - 0x4018], ebx
mov dword [ebp - 0x4014], ecx
cmp ecx, dword [esi + 4]
jb 0x403320
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x1d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x52
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xd
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x405bf2
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0x444338
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405c18
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x405c04
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x405c0c
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x405c2b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405c22
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405c37
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x18], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0x444338
push esi
push eax
call fcn.00405ff0
add esp, 0xc
cmp dword [esp + 0xc], 3
je 0x405c7f
push str.boost::filesystem::create_directory
push edi
push esi
push ebx
call fcn.004065f0
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x405ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441d10
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x406031
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406051
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00405dc0
add esp, 0xc
jmp 0x40616b
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x406069
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x444338
push esi
push ebx
call fcn.00404980
add esp, 8
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x406148
push ebx
call fcn.00405cb0
add esp, 4
test al, al
jne 0x4060a2
mov eax, dword [ebp - 0x64]
mov dword [edi], 9
mov dword [edi + 4], eax
jmp 0x40616b
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4060ac
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405860
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401090
cmp esi, 0xffffffff
jne 0x406102
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00405dc0
add esp, 0xc
jmp 0x40616b
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x40612e
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00405dc0
add esp, 0xc
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40616b
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x406152
mov edx, dword [ebp - 0x68]
jmp 0x406157
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [edi], eax
cmove ecx, edx
mov dword [edi + 4], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x416600
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41664b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041679f
test al, al
jne 0x416645
sub edx, 2
cmp edx, edi
jne 0x41662b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41666d
lea eax, [edi + 2]
cmp edx, eax
je 0x41666d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041654c
add esp, 0x10
jmp 0x416767
push esi
lea ecx, [ebp - 0x255]
call fcn.0041679f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4166b0
push dword [ebp - 0x25c]
jmp 0x41665d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4166ed
cmp word [ebp - 0x226], 0
je 0x41670e
cmp word [ebp - 0x226], ax
jne 0x4166ed
cmp word [ebp - 0x224], 0
je 0x41670e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041654c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41675a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4166c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416742
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416767
push 0x4162ad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041d820
add esp, 0x10
jmp 0x416737
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
leave
ret

Function at 0x41739f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4173b0
pop esi
ret
push ebx
push edi
push esi
call fcn.00417368
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004147d5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4173d8
push ebx
push esi
push edi
call fcn.0040a880
add esp, 0xc
push 0
call fcn.0041479b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41779c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004173ed
Function at 0x41a792
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4480a0
push 0x448098
push str.FlsAlloc
push 0x1e
call fcn.0041a5ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a7c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4441fc]
call esi
jmp 0x41a7cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a810
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4480b0
push 0x4480a8
push str.FlsGetValue
push 0x20
call fcn.0041a5ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a847
push dword [ebp + 8]
mov ecx, esi
call dword [0x4441fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x438c87
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov esi, dword [esp]
add esp, 4
push 0x10828d6
sub byte [eax], cl
add dword [ebx - 0x3b7cdbe4], ecx
add al, 0x21
leave
mov ebx, ebx
call fcn.00438cc8
mov ebx, 0x585e787f
or ebx, ebx
xor dword [edi], esi
sub ecx, 0xa67c4f9d
inc edi
or ecx, ecx
or ecx, ebx
push ebx
pop ecx
cmp edi, eax
jne fcn.00438c87
mov ecx, ebx
and ecx, ecx
and ebx, ebx
ret

Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x405fc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x405fe1
cmp dword [esi], 2
jae 0x405fe1
push 0x7a
pop eax
jmp 0x40603f
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40603f
cmp dword [ebp + 0x10], 7
je 0x40600f
push 0xd
jmp 0x405fde
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x406039
test cl, 1
jne 0x40600b
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x40600b
cmp word [edi + eax*2 - 2], 0
jne 0x40600b
cmp eax, 1
jbe 0x406039
cmp word [edi + eax*2 - 4], 0
jne 0x40600b
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40a8f7
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40a948
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x40a959
push 0xd
pop eax
jmp 0x40a986
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40a95c
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40b2fb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x482910]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x45c670
call fcn.00444bf4
mov eax, dword [ebp + 0x20c]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
lea ecx, [ebp - 0x14]
call fcn.00405f87
mov ebx, eax
cmp ebx, esi
je 0x40b383
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405f6c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00444be5
add ebp, 0x204
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40b39b
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b2fb
cmp eax, esi
jne 0x40b3cd
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call ebx
test eax, eax
je 0x40b38b
lea ecx, [ebp - 0x14]
call fcn.00405f6c
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0040a842
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405f6c
mov eax, esi
jmp 0x40b35e
Function at 0x40e357
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x482910]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x45cc76
call fcn.00444c27
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
mov edi, dword [ebp + 0x418]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40e3bf
call fcn.00409e2e
mov esi, eax
jmp 0x40e4c4
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40e3d8
call fcn.00409e2e
jmp 0x40e4b9
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x40e3ce
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x20], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40e44a
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40e412
lea ecx, [ebp]
call fcn.0040afaf
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040762b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00444be5
add ebp, 0x408
leave
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp]
call fcn.0040c623
mov dword [ebp - 4], 1
jmp 0x40e47a
cmp dword [ebp], ebx
jne 0x40e486
mov esi, 0x8007000e
jmp 0x40e4bb
push esi
push dword [ebp]
push esi
push dword [ebp - 0x18]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40e3ce
xor ecx, ecx
mov edx, dword [ebp]
mov word [edx + eax*2], cx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.0040dd3c
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40e417
lea ecx, [ebp]
call fcn.0040afaf
jmp 0x40e417
Function at 0x4102c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410330
cmp dword [ebp + 0x10], 1
je 0x410308
cmp dword [ebp + 0x10], 2
je 0x410308
push 0xd
pop eax
jmp 0x410330
mov eax, dword [ebp - 4]
test edi, edi
je 0x41032a
test eax, eax
je 0x410325
test al, 1
jne 0x410303
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41032a
jmp 0x410303
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x41106c
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push dword [0x4840f8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x417123
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
jne 0x41712f
xor eax, eax
ret
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
ret

Function at 0x4175b5
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
cmp eax, esi
jne 0x4175d0
push esi
push 0x466974
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x4175db
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
jmp 0x4175dd
xor eax, eax
shr eax, 0x16
test al, 1
je 0x4175e9
mov esi, 0x180000
mov eax, esi
pop esi
ret
Function at 0x41b70c
Capabilities:
Get system information on windows

Disassembly:
push 4
mov eax, 0x45e6f5
call fcn.00444bf4
mov esi, ecx
push 0x24
lea eax, [esi + 4]
push 0
push eax
call fcn.00445180
mov ebx, 0x11c
push ebx
lea edi, [esi + 0x28]
push 0
push edi
call fcn.00445180
add esp, 0x18
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [edi], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
call ebx
mov dword [esi + 0x144], eax
test eax, eax
jne 0x41b77a
push edi
mov dword [edi], 0x114
call ebx
test eax, eax
jne 0x41b77a
push 0x464ed2
lea ecx, [ebp - 0x10]
call fcn.0040915c
and dword [ebp - 4], 0
jmp 0x41b78c
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0041af88
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x148]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402594
xor eax, eax
call fcn.00444ccc
ret
Function at 0x41bb2f
Capabilities:
Get token membership

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x482910]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x6c
mov eax, 0x45e7ac
call fcn.00444bf4
call fcn.004185aa
test eax, eax
je 0x41bb64
xor eax, eax
inc eax
jmp 0x41bcb6
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x1c], bl
mov byte [ebp + 0x1d], bl
mov byte [ebp + 0x1e], bl
mov byte [ebp + 0x1f], bl
mov byte [ebp + 0x20], bl
mov byte [ebp + 0x21], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41bc9c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0x1fe
mov word [ebp + 0x24], ax
lea eax, [ebp + 0x26]
push ebx
push eax
call fcn.00445180
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
push str.__04d__02d__02d__02d:_02d:_02d:_04d_
lea eax, [ebp + 0x24]
push 0x100
push eax
call fcn.00401353
add esp, 0x34
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.004017c7
mov dword [ebp - 4], ebx
push str.Error__Failed_to_initialize_security_identifier
lea ecx, [ebp - 0x5c]
call fcn.0040329d
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040329d
mov byte [ebp - 4], 2
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004032bf
add esp, 0xc
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
call fcn.00402ed6
mov byte [ebp - 4], 2
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x40]
call fcn.0040236c
mov byte [ebp - 4], 1
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.0040236c
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040236c
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x41bc85
lea eax, [ebp + 4]
push eax
call fcn.0044529f
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp]
call fcn.0040236c
jmp 0x41bcb3
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00444be5
add ebp, 0x228
leave
ret