joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0xbc8a60
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xbc8980]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4f357b
push 0x4c
push 1
call fcn.00508475
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f3543
push 0xbc8a60
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0xbc8980]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0xbbdcc4]
inc eax
lea edx, [esi + 0xc]
mov dword [0xbbdcc4], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004f7000
add esp, 8
mov byte [esi + 0x3c], 1
push 0xbc8a60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4f3a00
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0050804d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0050a75c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4f3afa
call fcn.0050804d
cmp dword [eax], 0
je 0x4f3a47
call fcn.0050804d
mov ebp, dword [eax]
jmp 0x4f3a4a
or ebp, 0xffffffff
call fcn.004f3590
test esi, esi
mov dword [eax], ebp
jne 0x4f3a5f
call fcn.0050804d
cmp dword [eax], 4
je 0x4f3aaf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4f3a92
cmp esi, 0xffffffff
je 0x4f3ad4
test al, 6
je 0x4f3a92
call fcn.004f3590
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004f7030
add esp, 4
push eax
push 0x24
push 9
call fcn.004f3de0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4f3af2
test al, 6
je 0x4f3aa0
test ah, 2
je 0x4f3af2
test esi, esi
jbe 0x4f3afe
test ah, 2
je 0x4f3afe
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0050804d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.0050a75c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4f3afa
jmp 0x4f3a34
call fcn.004f3590
mov eax, dword [eax]
push eax
push ebx
call fcn.004f7030
add esp, 4
push eax
push 0x24
push 2
call fcn.004f3de0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4f3b0b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4f3b14
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x508978
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x508998
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00507fda
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5089bb
test byte [esp + 8], 2
je 0x5089bb
call fcn.0050804d
mov dword [eax], 0xd
call fcn.00508056
mov dword [eax], 5
jmp 0x508994
xor eax, eax
ret
Function at 0x51de38
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51de70
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051be4a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051be22
jmp 0x51de7c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51f7bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51f7fd
call fcn.00526274
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51f7fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51f7f4
xor eax, eax
jmp 0x51f805
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051f80b
pop edi
pop esi
pop ebx
ret 4

Function at 0x5267a4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5267d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5267f0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052670a
jmp 0x5267f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5267f0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052670a
test edi, edi
mov eax, edi
jne 0x5267da
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5290b6
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5290de
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5290ef
push 2
call edi
test ax, ax
jge 0x5290ef
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0051d46d
cmp dword [esi + 0x30], ebx
jne 0x5291c9
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0051d46d
cmp eax, dword [esp + 0x34]
jne 0x5291c9
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x529165
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5291aa
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5291c9
cmp eax, 0x205
je 0x5291c9
cmp eax, 0x201
je 0x5291c9
cmp eax, 0x204
je 0x5291c9
cmp eax, ebx
jne 0x529190
cmp dword [esp + 0x1c], 0x1b
je 0x5291c9
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0xbc8174]
jbe 0x5291bf
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x529122
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4080a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x408107
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458353
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x4080f5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x4080f5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.0045ab57
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00458353
mov esp, ebp
pop ebp
ret
Function at 0x4081a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.00470260
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], eax
mov eax, dword [0x47fec0]
mov esi, ecx
mov ecx, dword [str.SoftwareClasses_]
mov ebx, edx
mov edx, dword [0x47febc]
push 0x26fe
mov dword [ebp - 0x270c], eax
mov dword [ebp - 0x2714], ecx
mov ecx, dword [0x47fec4]
mov dword [ebp - 0x2710], edx
mov dx, word [0x47fec8]
lea eax, [ebp - 0x2702]
push 0
push eax
mov byte [ebp - 0x2715], 0
mov dword [ebp - 0x2708], ecx
mov word [ebp - 0x2704], dx
call fcn.00463710
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408224
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408235
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x408298
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408256
mov cx, word [0x47fecc]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408270
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408282
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40833d
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x4082f7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082d4
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408318
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458353
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458353
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00458353
mov esp, ebp
pop ebp
ret
Function at 0x408360
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00470260
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x47fec0]
mov eax, dword [str.SoftwareClasses_]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x47febc]
push 0x26fe
mov dword [ebp - 0x270c], edx
mov dword [ebp - 0x2714], eax
mov eax, dword [0x47fec4]
mov dword [ebp - 0x2710], ecx
mov cx, word [0x47fec8]
lea edx, [ebp - 0x2702]
push 0
push edx
mov dword [ebp - 0x2708], eax
mov word [ebp - 0x2704], cx
call fcn.00463710
mov eax, esi
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083d1
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4083e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x2714]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.00458353
mov esp, ebp
pop ebp
ret
Function at 0x40d4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a89b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4969d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x47f298]
mov dword [esi + 0xc], ecx
mov edx, dword [0x47f29c]
mov dword [esi + 0x10], edx
mov ecx, dword [0x47f2a0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x47f2a4]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40d594
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40d585
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40d594
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40d594
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40d594
cmp eax, ebx
je 0x40d594
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.00459cf6
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40d5c5
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40d5c7
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40d5c7
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40d5d2
mov eax, dword [0x4991f0]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x4991f0], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x416b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x416b73.2
jmp dword [eax*4 + 0x416c1c]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.00417290
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x416bd1
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x416bd1
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x416bd1
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x416bfe
push 0x30b
push 0x498244
call fcn.00416050
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00416050
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41c080
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041bf70
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41c101
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41c0c7
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41c0fb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043fa60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458353
mov esp, ebp
pop ebp
ret
Function at 0x41c730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x41c748
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test esi, esi
jne 0x41c766
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41c75d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41c75d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c75d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edi, eax
push edi
push edx
call fcn.0041aeb0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x480a98
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42f2e8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f2f8
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42f338
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42f315
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42f3a6
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42f3a0
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42f374
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42f398
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42f360
test ecx, ecx
je 0x42f3e6
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42f398
cmp ecx, 1
jbe 0x42f3e6
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42f398
cmp ecx, 2
jbe 0x42f3e6
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42f3e6
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42f350
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.00430940
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42f2e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42f3b5
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42f3b5
Function at 0x430a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x430a51
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x430a2f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x430aba
cmp dword [eax + 0xc], edi
jne 0x430ab4
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x430a8c
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x430ab0
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x430a78
test ecx, ecx
je 0x430ad3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x430ab0
cmp ecx, 1
jbe 0x430ad3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x430ab0
cmp ecx, 2
jbe 0x430ad3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x430ad3
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x430a66
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.00430940
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x430acc
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret