joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4689ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46fc84
call fcn.0045d384
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046e115
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4689ea
call fcn.0046e115
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4689f8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x468a06
or eax, 0xffffffff
jmp 0x468aee
mov ecx, esi
call fcn.00468921
mov dword [ebp - 0x14], eax
call fcn.00469998
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x468a3d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x468a3d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0046994c
push dword [ebp - 0x14]
call fcn.0046947d
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004686b9
cmp eax, edi
je 0x468ab0
test byte [esi + 0x24], 0x10
je 0x468a7e
push 4
mov ecx, esi
pop ebx
call fcn.00468e7d
test ah, 1
je 0x468a76
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046b4a3
cmp dword [esi + 0x1c], edi
je 0x468ab0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00468eb1
jmp 0x468ab0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x468ac4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x468add
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x468add
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046895b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x46b351
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46b393
call fcn.0046e115
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b393
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b38a
xor eax, eax
jmp 0x46b39b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b3a1
pop edi
pop esi
pop ebx
ret 4
Function at 0x46e6ab
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e6d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e6f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e611
jmp 0x46e6f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e6f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e611
test edi, edi
mov eax, edi
jne 0x46e6e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b1a70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
jmp 0x4b1a8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b1a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1a80
mov eax, 1
add ebx, ebx
jne 0x4b1aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b1ab4
jne 0x4b1ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad3
dec eax
add ebx, ebx
jne 0x4b1ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b1a98
add ebx, ebx
jne 0x4b1acf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b1b25
xor ecx, ecx
sub eax, 3
jb 0x4b1aeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b1b5a
sar eax, 1
mov ebp, eax
jmp 0x4b1af6
add ebx, ebx
jne 0x4b1af6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ac4
inc ecx
add ebx, ebx
jne 0x4b1b04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ac4
add ebx, ebx
jne 0x4b1b11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b1b06
jne 0x4b1b22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b1b06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b1b44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b1b36
jmp 0x4b1a86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b1b44
add edi, ecx
jmp 0x4b1a86
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b1b62
cmp byte [edi], 0x11
jne 0x4b1b62
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 0x4b1b67
lea edi, [esi + 0xad000]
mov eax, dword [edi]
or eax, eax
je 0x4b1bdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb2c94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb2de8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b1b94
mov ecx, edi
jns 0x4b1bc3
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 + 0xb2dec]
or eax, eax
je 0x4b1bd9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b1bb1
call dword [esi + 0xb2dfc]
mov ebp, dword [esi + 0xb2df0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b1c13
sub esp, 0xffffff80
jmp 0x416310
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x49f56dc9
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x34ff1008
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1000df93
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000dfd2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000dfd2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000dfd2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000dfd2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000dfd2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10010c4f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10010cec
push ebx
push esi
call fcn.10010c18
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10010bac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10010c99
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010ceb
push edi
push eax
call fcn.10011c0a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10010cb9
call fcn.1000f6f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010cea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10010bac
add esp, 0x20
test eax, eax
jne 0x10010cd8
push edi
call fcn.1000f6f4
jmp 0x10010ce0
push ebx
call fcn.1000f6f4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10010f59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018888
push 0x10018880
push str.FlsAlloc
push 0x1f
call fcn.10010e75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010f8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
jmp 0x10010f93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10010fd7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018898
push 0x10018890
push str.FlsGetValue
push 0x21
call fcn.10010e75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001100e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011016
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100188a0
push 0x10018898
push str.FlsSetValue
push 0x22
call fcn.10010e75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011050
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100166d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100166fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100166fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4323b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5c0f59
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x63727c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0xffffffffffffffff
push 0x5d33c0
lea ecx, [esi + 4]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call dword [sym.imp.soui.dll_public:_class_SOUI::CRect___thiscall_SOUI::SWindow::GetWindowRect_void_]
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ClientToScreen_struct_tagRECT__const]
lea ecx, [esp + 8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SMenu::constructor_void_]
push str.SMENU
push str.XML_MENU_SHARE
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SMenu::LoadMenuW_wchar_t_const___wchar_t_const__]
mov eax, dword [esi + 0x248]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 0x64
push 0
push eax
push ecx
push edx
push 0x100
lea ecx, [esp + 0x20]
call dword [sym.imp.soui.dll_public:_unsigned_int___thiscall_SOUI::SMenu::TrackPopupMenu_unsigned_int__int__int__struct_HWND_____struct_tagRECT_const___int_]
sub eax, 1
mov dword [esi + 0x3b4], 0
je 0x43246a
sub eax, 1
jne 0x432470
call dword [sym.imp.Register.dll_GoShareTwitter]
jmp 0x432470
call dword [sym.imp.Register.dll_GoShareFacebook]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SMenu::destructor_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x450230
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5c3021
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63727c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
push 0xffffffffffffffff
lea edi, [esi + 4]
push 0x5d3458
mov ecx, edi
call ebp
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [sym.imp.soui.dll_public:_class_SOUI::CRect___thiscall_SOUI::SWindow::GetWindowRect_void_]
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ClientToScreen_struct_tagRECT__const]
lea ecx, [esp + 0x18]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SMenu::constructor_void_]
push str.SMENU
push str.XML_MENU_MAIN_SCAN
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SMenu::LoadMenuW_wchar_t_const___wchar_t_const__]
mov eax, dword [esi + 0x248]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push 0x64
push 0
push eax
push ecx
push edx
push 0x100
lea ecx, [esp + 0x30]
call dword [sym.imp.soui.dll_public:_unsigned_int___thiscall_SOUI::SMenu::TrackPopupMenu_unsigned_int__int__int__struct_HWND_____struct_tagRECT_const___int_]
push 1
push 0xffffffffffffffff
push 0x5d3350
mov ecx, edi
mov ebx, eax
mov dword [esi + 0x3b4], 0
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00431390
mov eax, ebx
sub eax, 1
mov byte [esp + 0x38], 1
je 0x45032b
sub eax, 1
jne 0x45033c
call fcn.00483d80
test eax, eax
je 0x45031f
push 0
mov ecx, esi
call fcn.0043e990
test eax, eax
jne 0x45033c
mov dword [esi + 0x5a0], 1
jmp 0x450335
mov dword [esi + 0x5a0], 0
mov ecx, esi
call fcn.0044fca0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x38], 0
mov dword [0x638fc4], 0
test ecx, ecx
je 0x45035d
push 1
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SMenu::destructor_void_]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x5aba50
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.00593739
and dword [ebp - 4], 0
cmp dword [0x64430c], 0
mov ebx, eax
jne 0x5abb01
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5abbb2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5abbb2
push eax
call fcn.005936c7
mov dword [esp], 0x5fddfc
push edi
mov dword [0x64430c], eax
call esi
push eax
call fcn.005936c7
mov dword [esp], 0x5fdde8
push edi
mov dword [0x644310], eax
call esi
push eax
call fcn.005936c7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x644314], eax
call esi
push eax
call fcn.005936c7
pop ecx
mov dword [0x64431c], eax
test eax, eax
je 0x5abb01
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005936c7
pop ecx
mov dword [0x644318], eax
mov eax, dword [0x644318]
cmp eax, ebx
je 0x5abb59
cmp dword [0x64431c], ebx
je 0x5abb59
push eax
call fcn.00593742
push dword [0x64431c]
mov esi, eax
call fcn.00593742
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5abb59
test edi, edi
je 0x5abb59
call esi
test eax, eax
je 0x5abb50
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5abb50
test byte [ebp - 0xc], 1
jne 0x5abb59
or dword [ebp + 0x10], 0x200000
jmp 0x5abb92
mov eax, dword [0x644310]
cmp eax, ebx
je 0x5abb92
push eax
call fcn.00593742
pop ecx
test eax, eax
je 0x5abb92
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5abb92
mov eax, dword [0x644314]
cmp eax, ebx
je 0x5abb92
push eax
call fcn.00593742
pop ecx
test eax, eax
je 0x5abb92
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x64430c]
call fcn.00593742
pop ecx
test eax, eax
je 0x5abbb2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5abbb4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404640
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4972c5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 4]
mov ebx, dword [ebp + 0xc]
cmp edi, dword [esi + 8]
je 0x40472d
push dword [ebp + 0x10]
cmp ebx, edi
jne 0x4046b9
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.00403aa0
push dword [ebp + 0x14]
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 1
call fcn.00403aa0
mov eax, dword [ebp + 8]
add dword [esi + 4], 0x30
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00403aa0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
call fcn.00403aa0
lea edx, [edi - 0x30]
mov ecx, edi
push edx
call fcn.00405310
add dword [esi + 4], 0x30
mov ecx, ebx
push edi
call fcn.00404f20
add esp, 4
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00403880
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x18]
call fcn.00403880
lea ecx, [ebp - 0x40]
call fcn.004029d0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.004044a0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov 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 0x10
Function at 0x409c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4971e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
movups xmm0, xmmword [esi + 0xc]
movups xmmword [edi + 0xc], xmm0
movq xmm0, qword [esi + 0x1c]
movq qword [edi + 0x1c], xmm0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
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 4

Function at 0x40a0f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
push esi
mov esi, edx
test eax, eax
je 0x40a181
cmp eax, 0x104
ja 0x40a181
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a11e
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], 0
mov word [eax], dx
cmp dword [ecx + 0x14], 8
jb 0x40a132
mov ecx, dword [ecx]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40a181
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a152
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00403bf0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0046e348
mov esp, ebp
pop ebp
ret