joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4875e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee9ab
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x52a394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push 0x39
xor edi, edi
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x234], edi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
call fcn.00408a80
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], edi
jb 0x487650
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.00413450
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4876e5
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004bff80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x4876e5
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4876f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x487732
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487728
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487751
push edx
push ecx
call fcn.00493ff7
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret 8
call fcn.004c38d4
int3
Function at 0x488110
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eea50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x52a394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x488257
cmp dword [edi + 0x14], 0
je 0x488257
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.004944c0
mov esi, esp
test esi, esi
je 0x488257
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x7c8]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4881a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00408a80
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x4881e6
mov esi, ecx
cmp word [esi], 0xa
je 0x48827a
add esi, 2
sub eax, 1
jne 0x4881d4
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x19c]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x488232
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x488232
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.00428210
lea ecx, [ebp - 0x28]
call fcn.00407760
xor eax, eax
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4881e6
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4881e6
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00465860
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4882ac
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00407760
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00465860
cmp dword [eax + 0x14], 8
jb 0x4882db
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00407760
jmp 0x488232
Function at 0x488c90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x488cbd
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x488d0c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x488d6d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x488d2d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x488d6d
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x488d67
cmp dword [esi + 0x558], 0
je 0x488d6d
cmp byte [esi + 0x578], 0
je 0x488d6d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x488d6d
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.0042d2e0
pop edi
pop esi
pop ebp
ret 4

Function at 0x488d80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x488dcf
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x488dc8
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x488df0
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x488dc9
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x488e22
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x488e22
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x488dc9
cmp byte [esi + 0x564], 0
je 0x488dc9
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.0042d2e0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4901a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eee68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52a394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4901e7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x490223
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4908f0
push 0
push 0
call fcn.004c9b6e
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
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
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0042de20
mov ecx, esi
call fcn.004905b0
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00496790
Function at 0x497e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef1d3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x52a394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00421ef0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x498063
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x498063
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x498063
push eax
call esi
test eax, eax
je 0x498063
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004213f0
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x498054
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004bff80
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x498054
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x497f7b
cmp eax, 2
jne 0x498054
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x497f9c
test cl, 1
jne 0x498054
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x497fa2
jmp 0x498054
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x498054
lea ecx, [ebp - 0x78]
call fcn.00496210
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004962d0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x505eb8
push eax
call fcn.00498460
push 0x2a
push dword [ebp - 0x78]
call fcn.00496790
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x49804c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x498002
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00496060
push dword [0x52a3bc]
lea eax, [ebp - 0x74]
push dword [0x52a3b8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x49803d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.00495580
mov edi, 1
jmp 0x498056
lea ecx, [ebp - 0x78]
call fcn.00495580
xor edi, edi
test esi, esi
je 0x498065
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x498065
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret
Function at 0x4980a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4980b5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4980c0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x49b310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49b381
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x49b34f
cmp eax, 2
jne 0x49b36b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x49b37b
test ecx, ecx
je 0x49b376
test cl, 1
jne 0x49b36b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x49b37b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4e2787
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e2404

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x9450990
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3cc17de4
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x5df81ba5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x40]
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x60], 0
je 0x5df81c0b
cmp byte [ebp + 0x14], 0
je 0x5df81c0b
mov ebx, dword [ebp + 0x10]
lea eax, [ebx + 0xc]
push eax
call fcn.5df81399
mov edi, eax
pop ecx
test edi, edi
je 0x5df81bfa
push ebx
push dword [ebp + 0xc]
lea eax, [edi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, 0x58
push esi
push edi
mov dword [edi + 8], ebx
call fcn.5df83ea8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0xc], ebx
jmp 0x5df81cf9
push edi
mov dword [esi + 0x60], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x10], edi
jbe 0x5df81c91
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x24]
push ecx
lea ecx, [ebp - 4]
push ecx
sub eax, edi
push eax
push ebx
push dword [esi]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5df81ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5df81cb0
push 0x1388
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5df81cb0
push 1
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x5df81c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
add dword [esi + 0x2c], eax
add edi, eax
add ebx, eax
mov dword [ebp + 0xc], edi
cmp edi, dword [ebp + 0x10]
jb 0x5df81c26
cmp byte [ebp + 0x14], 0
je 0x5df81cf9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x58]
jmp 0x5df81ce8
mov eax, dword [ebp - 4]
and dword [esi + 0x60], 0
add eax, edi
jmp 0x5df81cfc
and dword [esi + 0x60], 0
mov eax, edi
jmp 0x5df81cfc
mov ebx, dword [edi]
push ebx
call fcn.5df83ecc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [ebx + 8]
lea eax, [ebx + 0xc]
push eax
push esi
call fcn.5df81ba5
push ebx
call fcn.5df81370
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], edi
jne 0x5df81cb8
push dword [ebp + 8]
and dword [esi + 0x60], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x5df81e5f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x5df81e8e
mov ecx, dword [ebp + 8]
push esi
movzx edx, byte [ecx]
mov esi, dword [ebp + 0x10]
dec dword [ebp + 0xc]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [esi + edx*4]
inc ecx
cmp dword [ebp + 0xc], 0
jne 0x5df81e6f
pop esi
pop ebp
ret 0xc
Function at 0x5df835ca
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
jne 0x5df835e5
mov eax, 0x8000002b
jmp 0x5df83652
mov eax, dword [edi + 8]
cmp eax, esi
jne 0x5df835f3
mov eax, 0x80000018
jmp 0x5df83652
push esi
push esi
push eax
call sub.TAPI32.dll_lineDrop
cmp eax, esi
jl 0x5df83652
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov dword [edi + 0x24], eax
call esi
mov ebx, eax
add ebx, 0x1388
jmp 0x5df83649
xor eax, eax
cmp dword [edi + 0x24], eax
jne 0x5df83622
cmp dword [edi + 0x20], 1
je 0x5df8364f
push 1
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5df83649
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call esi
cmp eax, ebx
jb 0x5df83615
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
aam 0xf2
lea ecx, [ebp + 0x50]
push ecx
loope 0x4016f1
mov dh, dl
push ss
aad 0xda
xchg edi, eax
pop ss
inc ecx
test eax, eax
pop eax
pop ebp
mov ah, 0x27
pop edx
mov eax, 0x68a2a2ca
nop
pop ecx
loop 0x401727
pop edi
invalid
test byte [esi + 0x5a4428be], bl
je 0x4016d1
arpl word [ebp + 0x4b], si
mov dh, 0xdd
fisub dword [edx - 0x38d966b3]
loop 0x401749
invalid
dec esp
cwde
out dx, eax
xchg ebp, eax
jnp 0x4016c4
mov byte [0xd232cbb1], al
and esp, dword [ecx]
in al, dx
push ebp
invalid
loopne 0x4016f1
rcl bh, 0x42
mov ch, byte [ebp + esi*8 - 0x34834e25]
inc ecx
mov esi, dword [0x2ff3d832]
push ds
mov dword [eax], edx
fist word [edx - 2]
or dword [ebp + edx*4 - 0x7298df30], esi
add esi, dword [ecx + 0x211f5c5d]
and dword [0xf9b97fe0], ecx
pop ebp
pop esp
pop ds
and dword [ecx], esp
or eax, 0xf9b97fe0
fpatan
push edx
out 0x87, eax
cdq
jo 0x4017b2
lcall 0xbb93, 0x2cbd2082
sal byte [ebp + edx - 0x19], 1
push 0x7abbfb7f
or dword [ebx + ecx*4 - 0x4d], ebx
sbb al, 0x2f
and ah, byte [edx]
mov ch, byte [ecx - 0x5f]
std
clc
inc ecx
push cs
movsd dword es:[edi], dword [esi]
das
imul ebp, dword [ebp - 0x80], 0x65f45b15
add al, 0x32
mov ebp, 0x6b5e0de1
pop ebp
cmpsd dword [esi], dword es:[edi]
mov byte [0xcfcef51], al
adc dl, byte [edx]
xor cl, ch
and eax, 0xf7d93c2f
imul ebp, dword [esi - 0x62203784], 0x285d7fb9
dec ebx
sal byte [edi + esi*4], 1
ja 0x401762
pop ecx
mov cl, 0xff
inc esi
pop esp
ret
push 0x2e6b5c9c
iretd
Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, str.svchost.exe
mov al, byte [ebx + esi + str.svchost.exe]
push ebp
xor al, 1
mov byte [esi + str.svchost.exe], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + str.svchost.exe], 0
pop edi
pop esi
mov eax, str.svchost.exe
pop ebp
ret
Function at 0x1000521a
Capabilities:
Parse pe header

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

Function at 0x10009a1a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000999c