joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
jmp 0x409871
cmp dword [esi + 0x10], 0x1000
jne 0x40985d
test byte [esi + 0x15], 1
jne 0x40985d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40981c
cmp eax, 2
je 0x40981c
cmp eax, 0x10
je 0x40981c
cmp eax, 0x20
jne 0x409831
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409831
mov bl, 1
xor ebp, ebp
jmp 0x409842
mov eax, dword [esi]
add eax, ebp
call fcn.004097c0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409835
test bl, bl
je 0x40985d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097f4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xd71930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x699000]
push edi
jmp 0xd7194a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd71951
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd71940
mov eax, 1
add ebx, ebx
jne 0xd71963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd71974
jne 0xd71993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd71993
dec eax
add ebx, ebx
jne 0xd71980
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd71958
add ebx, ebx
jne 0xd7198f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd719e5
xor ecx, ecx
sub eax, 3
jb 0xd719ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd71a1a
sar eax, 1
mov ebp, eax
jmp 0xd719b6
add ebx, ebx
jne 0xd719b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd71984
inc ecx
add ebx, ebx
jne 0xd719c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd71984
add ebx, ebx
jne 0xd719d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd719c6
jne 0xd719e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd719c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd71a04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd719f6
jmp 0xd71946
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd71a04
add edi, ecx
jmp 0xd71946
pop esi
mov edi, esi
mov ecx, 0x224f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd71a22
cmp byte [edi], 0x4d
jne 0xd71a22
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 0xd71a27
lea edi, [esi + 0x946000]
mov eax, dword [edi]
or eax, eax
je 0xd71a9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x97b91c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x97b96c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd71a54
mov ecx, edi
jns 0xd71a83
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 + 0x97b970]
or eax, eax
je 0xd71a99
mov dword [ebx], eax
add ebx, 4
jmp 0xd71a71
call dword [esi + 0x97b980]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xd71ad0
cmp al, 0xef
ja 0xd71ac3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xd71aa5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xd71ab2
mov ebp, dword [esi + 0x97b974]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0xd71b04
sub esp, 0xffffff80
jmp 0x78d74d
Function at 0x4af1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4af211
call fcn.0047eb2f
mov dword [eax], esi
call fcn.0047eb1c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00476701
add esp, 0x14
push 0x16
pop eax
jmp 0x4af266
test dword [ebp + 0xc], 0xfffffff9
jne 0x4af1ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4af23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047eb42
pop ecx
call fcn.0047eb1c
mov eax, dword [eax]
jmp 0x4af266
test al, 0x10
jne 0x4af264
test al, 1
je 0x4af264
test byte [ebp + 0xc], 2
je 0x4af264
call fcn.0047eb2f
mov dword [eax], 5
call fcn.0047eb1c
mov dword [eax], 0xd
jmp 0x4af235
xor eax, eax
pop esi
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x41c5f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x41c607.2
jmp dword [eax*4 + 0x41c6e4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
or dword [esi + 0x68], 4
test eax, eax
je 0x41c638
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
jne 0x41c638
mov eax, dword [esi + 0x5c]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffb8
cmp edx, 0xfffffffc
sete al
push eax
call fcn.0041cd90
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x41c698
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x41c698
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x41c698
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x41c6c5
push 0x30e
push 0x4b22bc
call fcn.0041bb10
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x31a
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.0041bb10
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x422020
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x422010
call fcn.004726c7
add esp, 4
call fcn.00421ed0
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4220ae
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x422074
mov edx, dword [ebp - 0x18]
push edx
jmp 0x4220a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.0044c290
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ef01
mov esp, ebp
pop ebp
ret
Function at 0x422350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ebx
sub esp, 0x10
lea edx, [eax + 1]
jmp 0x422360
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422360
push esi
push edi
sub eax, edx
lea esi, [eax + ebx]
push 0x5c
push ebx
mov dword [ebp - 4], esi
call fcn.00472750
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test eax, eax
jne 0x422390
mov dword [ebp - 0xc], ebx
jmp 0x422390
cmp byte [esi], 0x5c
jne 0x4223a6
inc esi
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov byte [esi], 0x5f
mov eax, dword [0x49b038]
mov dword [ecx + esi], eax
mov edx, dword [0x49b03c]
mov dword [ecx + esi + 4], edx
mov al, byte [0x49b040]
mov byte [ecx + esi + 8], al
test ebx, ebx
je 0x42240f
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x42240c
lea ecx, [esi + esi + 2]
push ecx
call fcn.00470c80
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor edx, edx
mov word [edi + esi*2 - 2], dx
mov esi, dword [ebp - 4]
jmp 0x422411
mov esi, dword [ebp - 4]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push edi
mov dword [ebp - 0x10], eax
call fcn.00470c46
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x42244b
mov eax, dword [ebp - 0xc]
push 0x2e
push eax
call fcn.00471e30
add esp, 8
test eax, eax
je 0x422453
cmp eax, esi
ja 0x422453
mov ecx, dword [ebp - 8]
mov byte [eax], 0x5c
jmp 0x422390
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46ef01
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b09fc]
jne 0x46ef0b
repz ret
jmp fcn.0047883c

Function at 0x4724a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4724cd
call fcn.00472d6b
mov dword [eax], esi
call fcn.00472d58
push 0x16
pop esi
mov dword [eax], esi
call fcn.00472740
mov eax, esi
jmp 0x472522
test dword [ebp + 0xc], 0xfffffff9
jne 0x4724b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4724fa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00472d7e
pop ecx
call fcn.00472d58
mov eax, dword [eax]
jmp 0x472522
test al, 0x10
jne 0x472520
test al, 1
je 0x472520
test byte [ebp + 0xc], 2
je 0x472520
call fcn.00472d6b
mov dword [eax], 5
call fcn.00472d58
mov dword [eax], 0xd
jmp 0x4724f1
xor eax, eax
pop esi
pop ebp
ret

Function at 0x482454
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x48247b
call fcn.00472d6b
mov dword [eax], esi
call fcn.00472d58
push 0x16
pop esi
mov dword [eax], esi
call fcn.00472740
mov eax, esi
jmp 0x4824d0
test dword [ebp + 0xc], 0xfffffff9
jne 0x482461
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4824a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00472d7e
pop ecx
call fcn.00472d58
mov eax, dword [eax]
jmp 0x4824d0
test al, 0x10
jne 0x4824ce
test al, 1
je 0x4824ce
test byte [ebp + 0xc], 2
je 0x4824ce
call fcn.00472d6b
mov dword [eax], 5
call fcn.00472d58
mov dword [eax], 0xd
jmp 0x48249f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x488507
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047b0f3
and dword [ebp - 0x14], 0
cmp dword [0x4b32ec], 0
mov dword [ebp - 0x18], eax
jne 0x4885ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x488662
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x497bb8
push ebx
call edi
test eax, eax
je 0x488662
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x497ba8
push ebx
mov dword [0x4b32ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b32f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b32f4], eax
call edi
push eax
call esi
mov dword [0x4b32fc], eax
test eax, eax
je 0x4885ba
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b32f8], eax
mov eax, dword [0x4b32f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x488613
cmp dword [0x4b32fc], ecx
je 0x488613
push eax
call esi
push dword [0x4b32fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x488613
test ebx, ebx
je 0x488613
call edi
test eax, eax
je 0x48860a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48860a
test byte [ebp - 8], 1
jne 0x488613
or dword [ebp + 0x10], 0x200000
jmp 0x488646
mov eax, dword [0x4b32f0]
cmp eax, dword [ebp - 0x18]
je 0x488646
push eax
call esi
test eax, eax
je 0x488646
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x488646
mov eax, dword [0x4b32f4]
cmp eax, dword [ebp - 0x18]
je 0x488646
push eax
call esi
test eax, eax
je 0x488646
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b32ec]
call esi
test eax, eax
je 0x488662
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x488664
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ef01
leave
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4f293387
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x702a6182
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404bef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
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.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, reloc.glu32.dll_gluQuadricTexture
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0xae2370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xae238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb0b074
push ecx
mov edi, eax
call fcn.00af6198
mov esi, eax
add esp, 8
test esi, esi
jne 0xae23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00af602e
push esi
call fcn.00af5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xae5850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xae58ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xb10720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xae58ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00af61e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xae58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb10720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xae592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00af7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xae5957
mov word [eax], si
add eax, 2
push eax
call fcn.00af7030
add esp, 4
jmp 0xae5959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xae58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xae58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xae5ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xae6080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xae60c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb0b458
push ecx
call fcn.00af61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00af61e1
add esp, 0x10
jmp 0xae60d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00af620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00af5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ae6050
mov eax, dword [0xb10728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xae613b
push esi
call fcn.00ae5fb0
add esp, 4
mov dword [0xb10728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xae614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00ae5ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xae9440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xae94b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xae948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xae9471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xae947e
add edx, ecx
cmp ebx, edx
jb 0xae948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xae9467
xor ecx, ecx
jmp 0xae94a2
test eax, eax
jne 0xae9492
xor ecx, ecx
jmp 0xae94a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ae93c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret