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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x405021
push edi
push 0
push 0x48faf0
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push eax
pop edi
or edi, edi
jne 0x43dd5c
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x405020
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
pop edi
or edi, edi
je 0x405020
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x405020
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x405020
Function at 0x405d20
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 0x405d93
mov ebx, dword [ebp + 0xc]
sub edi, edi
test ebx, ebx
je 0x405d56
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x405d66
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 0x405d37
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 0x405d56
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x405d56
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x405d3f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00405dae
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x405d2e
Function at 0x415e58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
sub esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415e80
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415e72
pop edi
pop esi
pop ebp
ret 4
Function at 0x42023b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push esp
pop ebp
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 0x455d4d
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.00407b20
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x455d54
cmp ax, cx
je 0x455d54
cmp ax, dx
je 0x455d54
cmp ax, word [ebp - 8]
je 0x455d54
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.00407b20
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x455dcf
push 0x40
lea ecx, [ebp - 0x20]
call fcn.00407b76
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.00420352
test al, al
je 0x42034e
push dword [ebp - 0x20]
push dword [esi*4 + 0x4a4cf0]
call fcn.0042313d
pop ecx
pop ecx
test eax, eax
je 0x42031a
inc esi
cmp esi, 0x63
jl 0x4202ff
cmp esi, 0x63
je 0x455d86
cmp byte [esi + 0x4a4c88], 0
jne 0x42034e
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00405a64
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor bl, bl
jmp 0x420335
lea ecx, [ebp - 0x20]
call fcn.00405a64
xor al, al
jmp 0x420345
cmp ax, word [ebp - 0xc]
jne 0x455d5f
mov eax, dword [ebp + 0x10]
jmp 0x455d7e
cmp ax, cx
jne 0x455d69
mov eax, dword [ebp + 0x14]
jmp 0x455d7e
cmp ax, dx
jne 0x455d73
mov eax, dword [ebp + 0x18]
jmp 0x455d7e
push 0x23
pop ecx
cmp ax, cx
jne 0x455d80
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x420287
push 0
lea ecx, [ebp - 0x20]
call fcn.00407b52
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x455d45
test eax, 0x200
je 0x455dae
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x455dba
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x420335
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x420335
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x455d4d
test eax, 0x200
je 0x455dee
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x455dfa
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x42033d
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x42033d
Function at 0x4203a2
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub 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 0x420bd0
Capabilities:
Print debug messages

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
mov al, byte [0x4c6283]
push ebx
push esi
push edi
push ecx
pop esi
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.00424916
pop ecx
push eax
call fcn.00424744
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x456305
lea ecx, [ebp - 0x18]
call fcn.00405c18
mov ecx, edi
call fcn.00409997
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00405b75
push dword [ebp - 0x18]
push 0x491d28
push esi
call fcn.00424b15
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x456325
lea ecx, [ebp - 0x18]
call fcn.00405a64
mov edi, dword [ebp - 8]
push esi
call fcn.00424cda
pop ecx
cmp ebx, 0xffffffff
je 0x420c6e
push ebx
push esi
call fcn.00424916
pop ecx
push eax
call fcn.00424744
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x420c56
push esi
push edi
pop ecx
call fcn.004689e2
push eax
push 1
call fcn.0046899f
push eax
call fcn.00424a93
add esp, 0x10
mov edi, eax
jmp 0x420c49
push edi
pop ecx
call fcn.00409997
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x420c3e
Function at 0x425efc
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
or ebx, ebx
jne 0x425f1f
call fcn.00428d68
mov dword [eax], 0x16
call fcn.00428ff6
or eax, 0xffffffff
jmp 0x425f87
push edi
push 0x3bc
push 1
call fcn.00428a15
push eax
pop edi
pop ecx
pop ecx
or edi, edi
je 0x425f71
call fcn.00429bec
push dword [eax + 0x6c]
push edi
call fcn.00429c73
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
push edi
push 4
push edi
push 0x426007
push dword [ebp + 0xc]
mov dword [edi + 0x54], ebx
push esi
mov dword [edi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
pop esi
mov dword [edi + 4], esi
test esi, esi
jne 0x425f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
pop esi
push edi
call fcn.00422f95
pop ecx
or esi, esi
je 0x425f83
push esi
call fcn.00428d47
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x425f69
mov eax, esi
jmp 0x425f86

Function at 0x42800a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x4bbd38
call fcn.00428b40
call fcn.0042a048
movzx esi, ax
push 2
call fcn.0043508a
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x427ec1
sub ebx, ebx
jmp 0x427ef4
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x427ebd
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x427ebd
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x427ef4
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.00428dbc
or eax, eax
jne 0x427f08
push 0x1c
call fcn.00427fe3
pop ecx
call fcn.00429d26
test eax, eax
jne 0x427f19
push 0x10
call fcn.00427fe3
pop ecx
call fcn.00429e0b
and dword [ebp - 4], 0
call fcn.0042d812
or eax, eax
jns 0x427f33
push 0x1b
call fcn.00427fe3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x4c5228], eax
call fcn.00435173
mov dword [0x4c41f0], eax
call fcn.00434d6b
or eax, eax
jns 0x427f59
push 8
call fcn.004232f5
pop ecx
call fcn.00434fa8
or eax, eax
jns 0x427f6a
push 9
call fcn.004232f5
pop ecx
push 1
call fcn.0042332f
pop ecx
or eax, eax
je 0x427f7d
push eax
call fcn.004232f5
pop ecx
call fcn.004351d0
push esi
push eax
push 0
push 0x400000
call main
push eax
pop esi
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x427f9f
push esi
call fcn.00423598
call fcn.00423320
jmp 0x427fd4
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00428b85
ret
call fcn.004350d7
jmp 0x427e93

Function at 0x42a5d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
or ebx, ebx
je 0x42a60c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42a604
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42a60e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42a5f4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42a6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x42a6f4
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x42a70f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x435173
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
pop edi
or edi, edi
je 0x4351cb
push ebx
sub ebx, ebx
push esi
push edi
pop esi
cmp word [edi], bx
je 0x43519f
add esi, 2
cmp word [esi], bx
jne 0x43518f
add esi, 2
cmp word [esi], bx
jne 0x43518f
sub esi, edi
add esi, 2
push esi
call fcn.00428a5d
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x4351c0
push esi
push edi
push eax
call fcn.00421080
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
push ebp
pop esp
pop ebp
ret
Function at 0x435ccc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bfd50]
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.0042a099
mov dword [ebp - 0x14], eax
cmp dword [0x4c50e8], esi
jne 0x435dbf
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push eax
pop edi
or edi, edi
jne 0x435d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435e9f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
or edi, edi
je 0x435e9f
push 0x4a0db0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435e9f
push eax
call ebx
push 0x4a0dbc
push edi
mov dword [0x4c50e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4c50ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4c50f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c50f8], eax
or eax, eax
je 0x435dbc
push 0x4a0dfc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c50f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x435de4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435dd7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x435df9
push 4
pop eax
jmp 0x435ea1
cmp dword [ebp - 0x14], esi
je 0x435df9
push dword [0x4c50e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435dde
mov eax, dword [0x4c50f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435e57
cmp dword [0x4c50f8], edi
je 0x435e57
push eax
call ebx
push dword [0x4c50f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435e57
test eax, eax
je 0x435e57
call ecx
or eax, eax
je 0x435e4c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
or eax, eax
je 0x435e4c
test byte [ebp - 8], 1
jne 0x435e57
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435e87
mov eax, dword [0x4c50ec]
cmp eax, edi
je 0x435e84
push eax
call ebx
test eax, eax
je 0x435e84
call eax
push eax
pop esi
test esi, esi
je 0x435e84
mov eax, dword [0x4c50f0]
cmp eax, edi
je 0x435e84
push eax
call ebx
or eax, eax
je 0x435e84
push esi
call eax
push eax
pop esi
mov edi, dword [ebp + 0x10]
push dword [0x4c50e8]
call ebx
or eax, eax
je 0x435e9f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x435ea1
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c836
push ebp
pop esp
pop ebp
ret
Function at 0x4399f2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
sub esi, esi
push 1
push esi
push esi
push edi
mov ebx, esi
mov dword [ebp - 8], esi
call fcn.00431b11
mov ecx, edx
mov dword [ebp - 0x18], eax
and eax, ecx
mov dword [ebp - 0x14], ecx
add esp, 0x10
cmp eax, 0xffffffff
je 0x439a7a
push 2
push esi
push esi
push edi
call fcn.00431b11
push eax
pop ecx
add esp, 0x10
and eax, edx
cmp eax, 0xffffffff
je 0x439a7a
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x439b13
jg 0x439a54
test esi, esi
je 0x439b13
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x439a88
call fcn.00428d68
mov dword [eax], 0xc
call fcn.00428d68
mov eax, dword [eax]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
push 0x8000
push edi
call fcn.00424849
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
or eax, eax
jl 0x439ab0
jg 0x439aa9
cmp esi, 0x1000
jb 0x439ab0
mov eax, 0x1000
jmp 0x439ab2
push esi
pop eax
push eax
push dword [ebp - 0xc]
push edi
call fcn.0042dbb5
add esp, 0xc
cmp eax, 0xffffffff
je 0x439ad9
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x439af4
jg 0x439a9b
or esi, esi
je 0x439af4
jmp 0x439a9b
call fcn.00428d34
cmp dword [eax], 5
jne 0x439aee
call fcn.00428d68
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00424849
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439b79
or eax, eax
jg 0x439b85
jl 0x439b1d
or esi, esi
jae 0x439b85
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00431b11
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x439a7a
push edi
call fcn.0042d703
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
push edx
pop eax
mov ecx, ebx
mov dword [ebp - 8], eax
and ecx, eax
cmp ecx, 0xffffffff
jne 0x439b85
call fcn.00428d68
mov dword [eax], 0xd
call fcn.00428d34
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x439a7a
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.00431b11
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x439a7a
sub eax, eax
jmp 0x439a81
Function at 0x457d24
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push ecx
pop esi
sub ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 8], ebx
call fcn.004077c7
lea ecx, [ebp - 0x20]
call fcn.004077c7
lea ecx, [ebp - 0x40]
call fcn.004077c7
push 0x4b93a8
lea ecx, [ebp - 0x30]
call fcn.00407d2c
push esi
lea ecx, [ebp - 0x30]
call fcn.00407e0b
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.00407e0b
lea ecx, [ebp - 0x20]
call fcn.00407eec
or edi, edi
je 0x457da7
push 0x5c
pop eax
cmp word [edi], ax
je 0x457da7
cmp word [edi + 2], ax
je 0x457da7
push 0x4b93dc
lea ecx, [ebp - 0x20]
call fcn.00407d2c
push edi
lea ecx, [ebp - 0x20]
call fcn.00407e0b
cmp dword [ebp + 0xc], ebx
je 0x457df8
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00423020
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.004081a7
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.00407e0b
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 0x457e84
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
or esi, esi
jne 0x457e84
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]
push eax
pop esi
or esi, esi
jne 0x457e7f
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
or esi, esi
jne 0x457e7a
mov eax, dword [ebp - 0xc]
sub 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]
push eax
pop esi
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00405a64
lea ecx, [ebp - 0x20]
call fcn.00405a64
lea ecx, [ebp - 0x30]
call fcn.00405a64
pop edi
push esi
pop eax
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x458652
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]
or eax, eax
jne 0x4586a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4586ac
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
or eax, eax
je 0x4586ac
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
or eax, eax
je 0x4586ac
sub ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x458af9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
sub ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x458b11
inc edi
jmp 0x458b1a
test byte [ebp + 0x14], 2
je 0x458b1a
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x458b59
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]
or esi, esi
pop esi
je 0x458b85
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 0x458b94
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 0x458c93
Capabilities:
Impersonate user

Disassembly:
push ebp
push esp
pop ebp
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 0x458e03
Capabilities:
Create thread

Disassembly:
push ebp
push esp
pop ebp
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
sub eax, eax
push eax
push eax
push ebx
push 0x458e74
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc