joyce8/EMBER2024-capa huggingface dataset:
Function at 0x602176b3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x602176d6
push esi
push esi
push esi
push 0x60206da0
call dword [sym.imp.GDI32.dll_CreateDCA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x602176dd
xor eax, eax
jmp 0x6021778b
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push dword [ebp - 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], esi
call edi
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
je 0x60217714
push dword [ebp + 8]
push ebx
call esi
mov dword [ebp - 8], eax
push dword [ebp - 4]
and dword [ebp + 8], 0
call edi
mov edi, eax
test edi, edi
je 0x6021773c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp + 8], eax
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 8], 0
je 0x60217761
push dword [ebp - 8]
push ebx
call esi
cmp dword [ebp + 8], 0
je 0x6021776d
push dword [ebp + 8]
push edi
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
test ebx, ebx
je 0x6021777f
push ebx
call esi
test edi, edi
je 0x60217786
push edi
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x6021d695
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, ecx
je 0x6021d74f
mov eax, dword [edi + 4]
sub eax, 0x200
je 0x6021d6cc
dec eax
je 0x6021d6c0
sub eax, 3
je 0x6021d6c0
sub eax, 3
jne 0x6021d74f
mov ecx, esi
call fcn.6021d302
jmp 0x6021d74f
cmp dword [esi + 0x38], 0
je 0x6021d74f
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call ebx
test ah, ah
js 0x6021d74e
push 4
call ebx
test ah, ah
js 0x6021d74e
push 2
call ebx
test ah, ah
js 0x6021d74e
movsx ecx, word [edi + 0xe]
movsx eax, word [edi + 0xc]
push ecx
push eax
push dword [edi]
mov ecx, esi
call fcn.6021d2df
mov edi, eax
test edi, edi
je 0x6021d741
cmp dword [esi + 0x8c], edi
je 0x6021d748
mov ebx, dword [esi + 0x3c]
mov ecx, esi
call fcn.6021d302
test ebx, ebx
mov ebx, dword [esi + 0x64]
mov ecx, esi
push 0
je 0x6021d73d
push 1
call fcn.6021d237
push eax
push 0x3216
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x6021d748
push 3
jmp 0x6021d729
mov ecx, esi
call fcn.6021d302
mov dword [esi + 0x8c], edi
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x1000875a
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x1000877b
push eax
call dword [sym.imp.MSVCR80.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x10008769
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000878b
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x100087b6
mov ecx, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test ecx, ecx
je 0x100087be
push eax
call dword [sym.imp.MSVCR80.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1000879a
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x100092fa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push edi
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esi]
cmp ecx, 1
je 0x10009329
cmp ecx, 7
je 0x10009329
cmp ecx, 2
jne 0x1000933e
test eax, eax
jne 0x1000933e
test edi, edi
je 0x1000933e
mov ecx, dword [edi]
test ecx, ecx
je 0x1000933e
lea eax, [ecx + ecx]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x10009a6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1000f15c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
cmp dword [0x1000f134], ebx
je 0x10009ab0
push dword [ebp + 0x1c]
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_RegQueryValueExW]
jmp 0x10009bc1
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.10009504
test eax, eax
jl 0x10009bb5
cmp dword [ebp + 0x14], ebx
jne 0x10009ad4
lea eax, [ebp - 0x14]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x18], ebx
jne 0x10009af2
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.100092fa
jmp 0x10009bb2
mov edi, dword [ebp + 0x1c]
mov esi, dword [edi]
push edi
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_RegQueryValueExA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10009b3f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x10009b2c
cmp eax, 7
je 0x10009b2c
cmp eax, 2
jne 0x10009bb5
cmp dword [ebp - 8], 0x7a
je 0x10009b3b
cmp dword [ebp - 8], 0xea
jne 0x10009bb5
shl dword [edi], 1
jmp 0x10009bb5
mov ecx, dword [edi]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
je 0x10009bb5
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x10009b5c
cmp eax, 7
je 0x10009b5c
cmp eax, 2
jne 0x10009bb5
push ebx
push ebx
push ecx
push dword [ebp + 0x18]
push ebx
push ebx
call fcn.1000937e
cmp eax, ebx
je 0x10009bac
add eax, eax
cmp esi, eax
mov dword [edi], eax
jae 0x10009b7e
mov dword [ebp - 8], 0x7a
jmp 0x10009bb5
mov eax, dword [ebp - 0x10]
call fcn.1000c2c0
mov edi, esp
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push edi
call fcn.1000c00e
add esp, 0xc
shr esi, 1
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push edi
push ebx
push ebx
call fcn.1000937e
test eax, eax
jne 0x10009bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call fcn.10004f2a
mov eax, dword [ebp - 8]
pop ecx
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c020
leave
ret 0x18
Function at 0x40cfda
Capabilities:
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, 0x811c9dc5
jmp 0x40cffb
mov ecx, dword [ebp + 8]
imul eax, eax, 0x1000193
add dword [ebp + 8], 2
movzx ecx, word [ecx]
xor eax, ecx
cmp dword [ebp + 8], edx
jne 0x40cfe9
pop ebp
ret 8

Function at 0x40ef61
Capabilities:
Terminate process

Disassembly:
add eax, 0
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x489f59d1
mov dword [ebp - 8], 5
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 4], eax
cmp eax, 0
je 0x40ee31
jmp 0x40ee62
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040eb0a
lea ecx, [ebp + 8]
push ecx
call fcn.0040e6a3
jmp 0x40ee86
push dword [ebp - 8]
jmp 0x40ee0c
add esp, 4
mov esp, ebp
pop ebp
ret 0x10
call fcn.004101f0
jmp 0x40edbb

Function at 0x40efee
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x20], pe_nt_image_headers32
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x28], 0x489f59d1
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x14], 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x40f037
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x40f153
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
mov dword [ebp - 0x1c], 0x2db59e81
cmp edx, 0x5a4d
je 0x40f05b
mov dword [ebp - 0x1c], 0x9db38964
mov eax, dword [ebp - 0x18]
jmp 0x40f153
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x40f07d
mov eax, dword [ebp - 0x18]
jmp 0x40f153
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x6e9530b5
mov dword [ebp - 0x2c], ecx
jmp 0x40f121
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
je 0x40f0bf
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x40f0f2
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0xf0092b1b
mov edx, dword [ebp - 0x10]
jmp 0x40f0f0
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
je 0x40f150
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
jmp 0x40f14d
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
jmp 0x40f0a8
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x10a96c37
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x71ba5655
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x273440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x273480
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x27e0bc]
test eax, eax
jne 0x2734a4
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0x93231e3
mov ecx, eax
call fcn.002740f0
mov dword [0x27e0bc], eax
call eax
mov ebx, eax
mov eax, dword [0x27dddc]
test eax, eax
jne 0x2734cc
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0xe96e8f4f
mov ecx, eax
call fcn.002740f0
mov dword [0x27dddc], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x273582
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x273572
cmp ebx, 8
jb 0x273557
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x273516
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x273557
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x273530
cmp edx, ebx
jae 0x273572
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x273560
mov edx, dword [esp + 0x18]
test edx, edx
je 0x273580
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2735f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x273619
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x27e0bc]
test eax, eax
jne 0x27363d
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0x93231e3
mov ecx, eax
call fcn.002740f0
mov dword [0x27e0bc], eax
call eax
mov edi, eax
mov eax, dword [0x27dddc]
test eax, eax
jne 0x273665
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0xe96e8f4f
mov ecx, eax
call fcn.002740f0
mov dword [0x27dddc], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x2736e5
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x2736da
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x2736a0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x2736f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x27371a
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x27e0bc]
test eax, eax
jne 0x27373e
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0x93231e3
mov ecx, eax
call fcn.002740f0
mov dword [0x27e0bc], eax
call eax
mov edi, eax
mov eax, dword [0x27dddc]
test eax, eax
jne 0x273766
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0xe96e8f4f
mov ecx, eax
call fcn.002740f0
mov dword [0x27dddc], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x2737d2
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x2737ca
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x2737a0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x273ce0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], 0x3d42
shr dword [esp + 4], 4
imul eax, dword [esp + 4], 0x5d
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
imul eax, dword [esp + 8], 0x57
mov dword [esp + 8], eax
xor dword [esp + 8], 0x4ecad597
or dword [esp + 8], 0x3c04465
mov eax, dword [esp + 8]
shl eax, 6
mov dword [esp + 8], eax
shr dword [esp + 8], 7
add dword [esp + 8], 0xffff768f
xor dword [esp + 8], 0x1f8ad06
mov dword [esp + 4], 0x727d
imul eax, dword [esp + 4], 0x6d
mov dword [esp + 4], eax
mov eax, 0x6c16c16d
shl dword [esp + 4], 0xf
xor dword [esp + 4], 0xf3d1e7b4
mov ecx, dword [esp + 4]
mul ecx
mov eax, 0xf0f0f0f1
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
mov dword [esp + 4], ecx
shr dword [esp + 4], 1
add dword [esp + 4], 0xb65
mov ecx, dword [esp + 4]
mul ecx
shr edx, 5
mov dword [esp + 4], edx
xor dword [esp + 4], 0xe6a8e
mov dword [esp + 4], 0x5917
add dword [esp + 4], 0xac1f
shr dword [esp + 4], 3
shl dword [esp + 4], 0xa
xor dword [esp + 4], 0xbfc66964
xor dword [esp + 4], 0x8e435246
shl dword [esp + 4], 0xc
imul eax, dword [esp + 4], 0x35
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, eax
shl ecx, 5
add ecx, eax
mov dword [esp + 4], ecx
xor dword [esp + 4], 0xd874a010
cmp byte [ebx], 0
je 0x273ed7
push esi
push edi
jmp 0x273df0
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0x727d
imul eax, dword [esp + 0xc], 0x6d
mov dword [esp + 0xc], eax
mov eax, 0x6c16c16d
shl dword [esp + 0xc], 0xf
xor dword [esp + 0xc], 0xf3d1e7b4
mov ecx, dword [esp + 0xc]
mul ecx
mov eax, 0xf0f0f0f1
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
mov dword [esp + 0xc], ecx
shr dword [esp + 0xc], 1
add dword [esp + 0xc], 0xb65
mov ecx, dword [esp + 0xc]
mul ecx
shr edx, 5
mov dword [esp + 0xc], edx
xor dword [esp + 0xc], 0xe6a8e
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x5917
add dword [esp + 0xc], 0xac1f
shr dword [esp + 0xc], 3
shl dword [esp + 0xc], 0xa
xor dword [esp + 0xc], 0xbfc66964
xor dword [esp + 0xc], 0x8e435246
shl dword [esp + 0xc], 0xc
imul eax, dword [esp + 0xc], 0x35
shl esi, cl
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
shl ecx, 5
add ecx, eax
mov dword [esp + 0xc], ecx
xor dword [esp + 0xc], 0xd874a010
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x273df0
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x2740f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x27414c
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00273ce0
xor eax, 0x4d07de46
cmp eax, dword [esp + 0x10]
je 0x274156
inc esi
cmp esi, dword [edi + 0x18]
jb 0x274130
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x274184
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x274184
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x274400
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x274426
cmp al, 0x2e
je 0x274423
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x274413
jmp 0x274426
mov byte [edx], 0
mov eax, dword [0x27dc34]
test eax, eax
jne 0x27444a
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0xba3f6171
mov ecx, eax
call fcn.002740f0
mov dword [0x27dc34], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x274491
mov eax, dword [0x27dd68]
test eax, eax
jne 0x27447b
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0x922c65aa
mov ecx, eax
call fcn.002740f0
mov dword [0x27dd68], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x274491
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00273ce0
xor eax, 0x4d07de46
mov ecx, edi
mov edx, eax
call fcn.002740f0
pop edi
pop esi
add esp, 0x104
ret
Function at 0x2746c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x27485e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x27485e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x27485e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x27485e
mov eax, dword [0x27db70]
test eax, eax
jne 0x27472b
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0x74d6780c
mov ecx, eax
call fcn.002740f0
mov dword [0x27db70], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x274855
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x27dac0]
test eax, eax
jne 0x27478b
mov ecx, 0xad0f0712
call fcn.00274190
mov edx, 0x70ba0131
mov ecx, eax
call fcn.002740f0
mov dword [0x27dac0], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x27480e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x27dac0]
test eax, eax
jne 0x2747f6
mov ecx, 0xad0f0712
call fcn.00274190
mov edx, 0x70ba0131
mov ecx, eax
call fcn.002740f0
mov dword [0x27dac0], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x2747b5
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00274990
mov edx, edi
mov ecx, ebx
call fcn.002748a0
pop esi
test eax, eax
jne 0x274855
mov eax, dword [0x27dcc0]
test eax, eax
jne 0x274849
mov ecx, 0xf05fc174
call fcn.00274190
mov edx, 0xb7f50111
mov ecx, eax
call fcn.002740f0
mov dword [0x27dcc0], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x40c31d
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4aa8be
call fcn.00468fdc
mov esi, ecx
mov eax, 0xfeff
xor ebx, ebx
mov word [ebp - 0x78], ax
mov eax, vtable.ATL::CAccessToken.0
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0x4cdb0c
push eax
call fcn.0040c91e
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040c837
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040c7b1
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040c779
push ebx
cmp byte [ebp - 0x71], bl
je 0x40c403
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x40c45d
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x40c40b
push 0x80
push 1
push ebx
push ebx
push 0x40000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c45d
push ebx
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c45d
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.00484e5d
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40c46e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040ca32
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.0040cab0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.0040cab0
mov eax, ebx
call fcn.00468f86
ret