joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e2b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c77b0
jne 0x43c50d
mov ecx, dword [0x4c781c]
cmp ecx, 0xffffffff
je 0x402ec4
mov eax, dword [0x4c7810]
xor edx, edx
push esi
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
cmp byte [esi + 0x3a], dl
je 0x402e6f
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x43c524
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x43c566
je 0x402e97
test edi, edi
je 0x402ee5
cmp edi, 1
je 0x402e97
cmp edi, 2
je 0x402edc
cmp edi, 3
je 0x402ed3
jle 0x402ebb
cmp edi, 5
jg 0x402ec8
cmp byte [esi + 0x38], 0
jne 0x402ef3
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x402eb7
cmp edi, 4
je 0x402eb7
push dword [ebp + 0xc]
call fcn.00415eda
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x402ebf
cmp edi, 6
je 0x43c54e
jmp 0x402ebb
mov byte [esi + 0x38], 1
jmp 0x43c5bb
mov byte [esi + 0x38], 1
jmp 0x43c54e
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x402ebb
xor eax, eax
jmp 0x402ebe
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004029e2
mov ecx, eax
mov dword [0x4c781c], ecx
jmp 0x402e44
cmp byte [esi + 0x198], dl
je 0x402e6f
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0048bd10
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x402e6f
cmp byte [esi + 0x38], 0
je 0x402ef3
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402ebb
mov eax, edi
sub eax, 9
je 0x43c5bb
sub eax, 0x37
je 0x43c5ad
dec eax
je 0x43c5aa
dec eax
je 0x43c59a
dec eax
jne 0x402ebb
push edx
mov byte [esi + 0x39], dl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x402ebb
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x402ebb
push edx
jmp 0x43c5af
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402ebb
cmp byte [esi + 0x38], 0
je 0x402ef3
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
call fcn.00415eda
jmp 0x402ebb
Function at 0x414220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x414293
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x414256
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x414266
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x414237
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414256
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414256
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x41423f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004142ae
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x41422e

Function at 0x41453d
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x414565
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x414557
pop edi
pop esi
pop ebp
ret 4

Function at 0x414ab2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x450945
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425802
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x414ad8
Function at 0x415240
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20030
call fcn.00431b70
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00411207
lea eax, [ebp - 0x1002c]
xor ebx, ebx
push eax
push 0x7fff
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 7]
push eax
push dword [ebp + 8]
call fcn.00414ec8
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x450b21
xor edi, edi
mov esi, 0x4c8290
inc edi
cmp dword [0x4c72e0], edi
je 0x450b39
lea eax, [ebp - 6]
push eax
push ecx
push 0x4c72e0
push 0x4c72f8
mov ecx, esi
call fcn.004131bf
test al, al
je 0x41537d
mov al, byte [0x4c8290]
mov byte [0x4c72e4], al
mov al, byte [0x4c8291]
mov byte [ebp - 5], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2002c]
push eax
push 0x7fff
push dword [0x4c72f8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [ebp - 0xc]
mov ecx, 0x4c72d0
call fcn.00411821
mov bl, byte [ebp - 6]
push dword [0x4c72e0]
push 0x4c72f8
call fcn.0040bbc6
test eax, eax
jne 0x450b58
cmp byte [ebp - 5], 1
je 0x450b77
call fcn.0041514c
call fcn.004150db
cmp byte [0x4c72e4], 0
mov ebx, 0x4c7890
jne 0x41533d
mov ecx, ebx
call fcn.004159d3
push edi
mov ecx, 0x4c7310
call fcn.0040bc70
cmp byte [0x4c72e4], 0
jne 0x415358
mov ecx, ebx
call fcn.00415ac3
mov ecx, esi
call fcn.00413215
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.00411cb6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x4c727c], edi
jmp 0x41535f
push 0x10
push str.AutoIt
push str.It_is_a_violation_of_the_AutoIt_EULA_to_attempt_to_reverse_engineer_this_program.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41536c
push 0xffffffffffffffff
push dword [0x4c72e8]
mov ecx, esi
push edi
call fcn.0041314d
mov al, byte [0x4c7284]
mov byte [0x4c8292], al
jmp 0x4152fc
mov ecx, esi
call fcn.00413215
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4c727c], edi
jmp 0x41536c
call fcn.00464f1c
test al, al
jne 0x41531e
cmp byte [ebp - 7], al
jne 0x41531e
lea ecx, [ebp - 0x2c]
call fcn.004200cf
push 0x4b6d10
lea ecx, [ebp - 0x1c]
call fcn.00411a36
lea ecx, [ebp - 0x1c]
test bl, bl
je 0x450bce
mov edi, 0x4ba41c
push edi
call fcn.00411900
push 0x4c72f8
lea ecx, [ebp - 0x1c]
call fcn.004117e0
push edi
lea ecx, [ebp - 0x1c]
call fcn.00411900
push 1
jmp 0x450bd7
push dword [ebp + 8]
call fcn.00411900
push edi
lea eax, [ebp - 0x1002c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x4ba420
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.00411cb6
jmp 0x415358
Function at 0x415eda
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x4510ca
xor eax, eax
inc eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x4510df
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4510f3
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4511ce
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4511aa
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x4511af
push 4
jmp 0x4511ac
push 3
pop ebx
jmp 0x4511b2
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x4511d1
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x415ef8
Function at 0x420654
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
xor ebx, ebx
mov dword [ebp - 4], edx
push esi
inc ebx
mov dword [ebp - 0x10], edx
push edi
cmp dword [eax + 4], edx
je 0x4567fa
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov edi, edx
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov byte [ecx], dl
mov dword [ebp - 8], 0x23
push edi
mov ecx, esi
call fcn.004115d7
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x456801
cmp ax, cx
je 0x456801
cmp ax, dx
je 0x456801
cmp ax, word [ebp - 8]
je 0x456801
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.004115d7
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x45687c
push 0x40
lea ecx, [ebp - 0x20]
call fcn.0041162d
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.0042076b
test al, al
je 0x420767
push dword [ebp - 0x20]
push dword [esi*4 + 0x4a5cc0]
call fcn.0042312d
pop ecx
pop ecx
test eax, eax
je 0x420733
inc esi
cmp esi, 0x63
jl 0x420718
cmp esi, 0x63
je 0x456833
cmp byte [esi + 0x4a5c58], 0
jne 0x420767
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00411cb6
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor bl, bl
jmp 0x42074e
lea ecx, [ebp - 0x20]
call fcn.00411cb6
xor al, al
jmp 0x42075e
cmp ax, word [ebp - 0xc]
jne 0x45680c
mov eax, dword [ebp + 0x10]
jmp 0x45682b
cmp ax, cx
jne 0x456816
mov eax, dword [ebp + 0x14]
jmp 0x45682b
cmp ax, dx
jne 0x456820
mov eax, dword [ebp + 0x18]
jmp 0x45682b
push 0x23
pop ecx
cmp ax, cx
jne 0x45682d
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x4206a0
push 0
lea ecx, [ebp - 0x20]
call fcn.00411609
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4567f2
test eax, 0x200
je 0x45685b
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x456867
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x42074e
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x42074e
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4567fa
test eax, 0x200
je 0x45689b
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x4568a7
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x420756
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x420756
Function at 0x4207bb
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x420bc0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c7283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.00424906
pop ecx
push eax
call fcn.00424734
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x456920
lea ecx, [ebp - 0x18]
call fcn.004140cd
mov ecx, edi
call fcn.00404d37
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041402a
push dword [ebp - 0x18]
push 0x492ca8
push esi
call fcn.00424b05
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x456940
lea ecx, [ebp - 0x18]
call fcn.00411cb6
mov edi, dword [ebp - 8]
push esi
call fcn.00424cca
pop ecx
cmp ebx, 0xffffffff
je 0x420c5e
push ebx
push esi
call fcn.00424906
pop ecx
push eax
call fcn.00424734
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x420c46
push esi
mov ecx, edi
call fcn.00468d13
push eax
push 1
call fcn.00468cd0
push eax
call fcn.00424a83
add esp, 0x10
mov edi, eax
jmp 0x420c39
mov ecx, edi
call fcn.00404d37
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x420c2e
Function at 0x435cac
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c0d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042a089
mov dword [ebp - 0x14], eax
cmp dword [0x4c60e8], esi
jne 0x435d9f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x435d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435e7f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x435e7f
push 0x4a1d80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435e7f
push eax
call ebx
push 0x4a1d8c
push edi
mov dword [0x4c60e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4c60ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4c60f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c60f8], eax
test eax, eax
je 0x435d9c
push 0x4a1dcc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c60f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x435dc4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435db7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x435dd9
push 4
pop eax
jmp 0x435e81
cmp dword [ebp - 0x14], esi
je 0x435dd9
push dword [0x4c60e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435dbe
mov eax, dword [0x4c60f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435e37
cmp dword [0x4c60f8], edi
je 0x435e37
push eax
call ebx
push dword [0x4c60f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435e37
test eax, eax
je 0x435e37
call ecx
test eax, eax
je 0x435e2c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x435e2c
test byte [ebp - 8], 1
jne 0x435e37
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435e67
mov eax, dword [0x4c60ec]
cmp eax, edi
je 0x435e64
push eax
call ebx
test eax, eax
je 0x435e64
call eax
mov esi, eax
test esi, esi
je 0x435e64
mov eax, dword [0x4c60f0]
cmp eax, edi
je 0x435e64
push eax
call ebx
test eax, eax
je 0x435e64
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c60e8]
call ebx
test eax, eax
je 0x435e7f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x435e81
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c826
mov esp, ebp
pop ebp
ret
Function at 0x4583fa
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 8], ebx
call fcn.00411207
lea ecx, [ebp - 0x20]
call fcn.00411207
lea ecx, [ebp - 0x40]
call fcn.00411207
push 0x4ba378
lea ecx, [ebp - 0x30]
call fcn.00411821
push esi
lea ecx, [ebp - 0x30]
call fcn.00411900
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.00411900
lea ecx, [ebp - 0x20]
call fcn.004119e1
test edi, edi
je 0x45847d
push 0x5c
pop eax
cmp word [edi], ax
je 0x45847d
cmp word [edi + 2], ax
je 0x45847d
push 0x4ba3ac
lea ecx, [ebp - 0x20]
call fcn.00411821
push edi
lea ecx, [ebp - 0x20]
call fcn.00411900
cmp dword [ebp + 0xc], ebx
je 0x4584ce
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00423010
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.00411c9c
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.00411900
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x45855a
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x45855a
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x458555
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x458550
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00411cb6
lea ecx, [ebp - 0x20]
call fcn.00411cb6
lea ecx, [ebp - 0x30]
call fcn.00411cb6
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458d28
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push esi
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x458d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x458d82
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x458d82
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x458d82
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4591cf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x4591e7
inc edi
jmp 0x4591f0
test byte [ebp + 0x14], 2
je 0x4591f0
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x45922f
push esi
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x45925b
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x400
push eax
push dword [ebp + 0x1c]
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x45926a
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x28

Function at 0x459369
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x1c]
movsx eax, al
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18

Function at 0x4594d9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 2
push 0
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x45954a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc