joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x424
push 0
push 0x670318
mov byte [0x66fe03], 0
mov byte [0x66fe02], 0
call fcn.005bb320
xor eax, eax
add esp, 0xc
mov dword [0x670310], 0
mov dword [0x66fe04], eax
mov dword [0x66fe08], eax
mov dword [0x66fe0c], eax
call fcn.004a7ac0
test eax, eax
je 0x4a6cd1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.004a7610
push 1
call fcn.004a7630
push 1
call fcn.004a7650
movzx ecx, word [ebp + 8]
push 0
push ecx
push 0x400
push 0x3e8
call fcn.004a7670
mov edi, eax
test edi, edi
jne 0x4a6d4b
push esi
lea edx, [ebp - 4]
push edx
push eax
push 0x670318
push 0x4a6b70
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push 1
push edi
mov dword [0x670310], eax
call esi
push edi
push edi
push edi
push edi
mov dword [0x670754], eax
call esi
mov dword [0x670758], eax
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4a72f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.005bce40
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1008], esi
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x100c], 0
xor ebx, ebx
mov dword [ebp - 0x1010], 1
cmp dword [esi + 4], 0
je 0x4a7455
mov dword [ebp - 0x1014], 0
lea edi, [esi + 0x18]
jmp 0x4a7356
mov esi, dword [ebp - 0x1008]
mov ecx, dword [esi + 0x85c]
push 0
lea eax, [esi + 0x880]
push eax
push 0x800
push edi
push ecx
mov dword [ebp - 0x101c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a7391
push eax
mov eax, dword [esi + 0x85c]
lea edx, [ebp - 0x1020]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0x101c]
mov esi, dword [ecx]
test esi, esi
je 0x4a73b2
push esi
lea edx, [ebp - 0x1004]
push edi
push edx
call fcn.005bc350
add esp, 0xc
test esi, esi
jg 0x4a73cc
mov eax, dword [ebp - 0x1014]
inc eax
mov dword [ebp - 0x1014], eax
cmp eax, 1
jl 0x4a7350
test esi, esi
jle 0x4a744f
xor ecx, ecx
test esi, esi
jle 0x4a7421
mov al, byte [ebp + ecx - 0x1004]
cmp al, 0xa5
jne 0x4a73e7
xor ebx, ebx
mov dword [ebp - 0x100c], ebx
jmp 0x4a741c
cmp al, 0xae
je 0x4a743a
cmp al, 0xaa
jne 0x4a73fb
mov dword [ebp - 0x100c], 1
jmp 0x4a741c
cmp dword [ebp - 0x100c], 0
mov edx, dword [ebp - 0x1018]
je 0x4a7418
and al, 0xf
mov dword [ebp - 0x100c], 0
or al, 0xa0
mov byte [edx + ebx], al
inc ebx
inc ecx
cmp ecx, esi
jl 0x4a73d2
mov esi, dword [ebp - 0x1008]
mov eax, dword [ebp - 0x1010]
test eax, eax
jg 0x4a7331
cmp eax, 0xffffffff
jne 0x4a745d
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x1008]
dec dword [ebp - 0x1010]
jmp 0x4a7427
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005bb30e
mov esp, ebp
pop ebp
ret 8
Function at 0x4aacb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004bf945
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4aace3
xor eax, eax
jmp 0x4aad8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4aacdc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4aacdc
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a800e
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4aad3b
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x4aad29
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004a99c7
push edi
mov ebx, eax
call fcn.004a803d
pop ecx
test ebx, ebx
je 0x4aad7d
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004aa02b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004aa0df
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4b1f21
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 0x4b1f68
call fcn.004bf945
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4b1f68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4b1f84
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004b1a26
mov esi, eax
test edi, edi
je 0x4b1f82
test ebx, ebx
je 0x4b1f82
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4b443c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5e6794
call fcn.005c1e2e
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4b4461
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4b44b3
call fcn.004b5c24
push eax
lea ecx, [ebp - 0x10]
call fcn.00427370
mov ecx, dword [esi + 0x6c]
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.005c1f38
push eax
call fcn.00404750
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405ab0
mov eax, esi
call fcn.005c1f06
ret 8
Function at 0x4b656e
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004b6020
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4b65b8
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004382a0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004380f0
jmp 0x4b65c3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004deda9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4b65c9
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004b3cac
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4b6606
call fcn.004b6020
mov dword [esi + 0xc], 1
jmp 0x4b660b
call fcn.004b6020
cmp dword [esi], 0
je 0x4b6654
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4b662c
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004382a0
jmp 0x4b663e
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00406080
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004380f0
jmp 0x4b6678
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4b6678
push dword [esi]
push dword [ebp + 8]
call fcn.004deda9
pop esi
pop ebp
ret 0xc

Function at 0x4b6b70
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x4b6b94
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x4b6ba2
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x4b6b8e
xor eax, eax
inc eax
pop esi
ret

Function at 0x4bbeae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004bf945
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4bbee7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004bbaf0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4bbf45
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x4bbf69
cmp dword [edi + 0x74], 0
jne 0x4bbf69
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004bf945
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.004bbf06
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 0x4caa52
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4caa90
push 0x60ec08
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4caa9e
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4caa9e
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4caaa0
cmp dword [esi + 4], 0
je 0x4caa9e
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4cbbd7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b02dc
call fcn.00443a30
cmp eax, esi
pop esi
jne 0x4cbbf3
mov ecx, 0x672850
jmp fcn.004e2c9a
ret

Function at 0x4cd0ae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4cd0f6
push 0x60f3d0
push 4
push eax
call fcn.005bda18
push eax
call fcn.00404750
add esp, 0x10
jmp 0x4cd10c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4cd18f
push edi
call fcn.005c212a
mov edi, dword [eax]
call fcn.005c212a
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005bc014
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.005c212a
cmp dword [eax], 0
je 0x4cd163
call fcn.005c212a
push dword [eax]
call fcn.004a89b5
pop ecx
jmp 0x4cd16a
call fcn.005c212a
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x4cd18f
cmp dword [ebp - 0x11c], esi
jae 0x4cd18f
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4cd191
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005bb30e
leave
ret
Function at 0x4cd19e
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004ad186
pop ecx
cmp eax, esi
je 0x4cd288
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4cd288
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005bb320
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4cd288
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4cd288
cmp esi, 0x14
jge 0x4cd288
push 0x10
push 0
push edi
call fcn.005c4d25
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4cd277
call fcn.005c212a
cmp dword [eax], 0x22
je 0x4cd277
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005c1f55
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4cd24d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x672490], 0
jne 0x4cd313
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4cd33c
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004cd0ae
pop ecx
pop ecx
test eax, eax
jne 0x4cd33e
inc edi
cmp edi, esi
jl 0x4cd319
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb30e
leave
ret 8
Function at 0x4cf654
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 0x4cf69c
call fcn.004bf945
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4cf69c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4cf6df
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 0x4cf6c8
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 0x4cf6c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4cf6dc
mov ecx, dword [esi + 0x68]
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 0x4d54d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d54e8
mov edi, dword [esi + 0xc]
jmp 0x4d5528
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d5501
call fcn.004bd459
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d5516
call fcn.004bd459
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d5528
call fcn.004bd459
call fcn.004bf945
cmp dword [eax + 0x3c], 0
je 0x4d553d
push edi
mov ecx, ebx
call fcn.004d438e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d53ea
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d555b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d5567
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4de814
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5e7242
call fcn.005c1e2e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406c70
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4de876
call fcn.004bf208
cmp eax, 1
jne 0x4de876
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043f400
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406510
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405ab0
mov dword [ebp + 8], reloc.oledlg.dll_OleUIAddVerbMenuA
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405ab0
mov eax, esi
call fcn.005c1f06
ret 0x10
Function at 0x4de89f
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5e7242
call fcn.005c1e2e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406c70
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4de901
call fcn.004bf208
cmp eax, 1
jne 0x4de901
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043f400
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406510
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405ab0
mov dword [ebp + 8], reloc.oledlg.dll_OleUIAddVerbMenuA
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405ab0
mov eax, esi
call fcn.005c1f06
ret 0x14

Function at 0x4e2214
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4e2249
xor eax, eax
jmp 0x4e229c
lea eax, [ebp - 0x210]
push eax
call fcn.005c1f55
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4e227a
push 0x60dbb0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005c5290
add esp, 0xc
test eax, eax
jne 0x4e2245
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005c5290
add esp, 0xc
test eax, eax
jne 0x4e2245
lea eax, [ebp - 0x210]
push eax
call fcn.004ad20c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005bb30e
leave
ret

Function at 0x535435
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x53544f
call fcn.004bf945
mov esi, dword [eax + 0xc]
push dword [0x6742c4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x53546d
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x535465
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x53549a
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x535467
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00535363
mov esi, eax
jmp 0x53548c

Function at 0x5bb30e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x66c0e0]
jne 0x5bb318
repz ret
jmp fcn.005c7598
Function at 0x5d5db6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x66c0e0]
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.005c8493
and dword [ebp - 0x14], 0
cmp dword [0x676b18], 0
mov dword [ebp - 0x18], eax
jne 0x5d5e69
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5d5f11
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5d5f11
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x638af8
push ebx
mov dword [0x676b18], eax
call edi
push eax
call esi
push 0x638ae4
push ebx
mov dword [0x676b1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x676b20], eax
call edi
push eax
call esi
mov dword [0x676b28], eax
test eax, eax
je 0x5d5e69
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x676b24], eax
mov eax, dword [0x676b24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5d5ec2
cmp dword [0x676b28], ecx
je 0x5d5ec2
push eax
call esi
push dword [0x676b28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5d5ec2
test ebx, ebx
je 0x5d5ec2
call edi
test eax, eax
je 0x5d5eb9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5d5eb9
test byte [ebp - 8], 1
jne 0x5d5ec2
or dword [ebp + 0x10], 0x200000
jmp 0x5d5ef5
mov eax, dword [0x676b1c]
cmp eax, dword [ebp - 0x18]
je 0x5d5ef5
push eax
call esi
test eax, eax
je 0x5d5ef5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5d5ef5
mov eax, dword [0x676b20]
cmp eax, dword [ebp - 0x18]
je 0x5d5ef5
push eax
call esi
test eax, eax
je 0x5d5ef5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x676b18]
call esi
test eax, eax
je 0x5d5f11
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5d5f13
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb30e
leave
ret