joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0ea0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x505de6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x600838]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004f436e
cmp dword [0x62a3a8], ebx
je 0x4d0f10
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004f1f34
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x600838]
push ebp
push edi
mov edi, 1
mov dword [0x62a3a8], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4d0f39
mov dword [esp + 0x20], ebx
jmp 0x4d0f40
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004f64b5
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004f2021
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4d0f9e
mov dword [esp + 0x14], ebx
jmp 0x4d0fa5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4d0fbf
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4d0fb9
cmp eax, 2
jne 0x4d0fbf
mov dword [esp + 0x18], edi
jmp 0x4d0fc3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4d0fd1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004f39a3
mov edi, eax
cmp edi, ebx
jne 0x4d0fe1
xor eax, eax
jmp 0x4d0fe4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4d100c
mov ecx, esi
call fcn.004f64b5
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4d1024
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x62a3a8], 0
test eax, eax
je 0x4d104d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4d104d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004f1f34
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004f1f34
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4d2f00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x505fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004f8ba2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004d2e40
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004f8ad0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4d2fc7
cmp dword [esp + 0x40], 1
jne 0x4d2fc5
cmp ecx, eax
jge 0x4d2fc7
mov eax, ecx
cmp eax, 0x12c
jge 0x4d2fd3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004d3020
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f8c14
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4d7260
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5064c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x600838]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004f436e
mov edx, dword [0x600838]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4d72ba
mov dword [esp + 0x1c], ebx
jmp 0x4d72c1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004f64b5
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004f2021
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4d7312
mov dword [esp + 0x14], ebx
jmp 0x4d7319
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4d7334
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4d732e
cmp eax, 2
jne 0x4d7334
mov dword [esp + 0x18], edi
jmp 0x4d7338
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4d7346
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004f39a3
mov edi, eax
cmp edi, ebx
jne 0x4d7356
xor eax, eax
jmp 0x4d7359
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4d7381
mov ecx, esi
call fcn.004f64b5
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4d739d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d73bc
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4d73bc
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004f1f34
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004f1f34
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4da270
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5fe8b4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4da283
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4da2c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5fe95c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4da2f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4da2fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4da2eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4da318
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4da31c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4da30d
xor ecx, ecx
mov eax, 0x5fe8c4
xor ebx, ebx
mov bl, byte [ecx + 0x5fe96c]
cmp byte [esp + ebx + 0x14], 0
je 0x4da347
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5fe984]
cmp byte [esp + ebx + 0x14], 0
je 0x4da35e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4da32e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4da2b7
lea edx, [esp + 0x84]
push edx
call fcn.004da3a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4f436e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f43a6
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.004f238f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f2367
jmp 0x4f43b2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f5bdf
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 0x4f5c21
call fcn.004fc511
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f5c21
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f5c18
xor eax, eax
jmp 0x4f5c29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f5c2f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fca41
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 0x4fca6f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fca8d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fc9a7
jmp 0x4fca8d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fca8d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fc9a7
test edi, edi
mov eax, edi
jne 0x4fca77
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4ff33a
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 0x4ff362
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4ff373
push 2
call edi
test ax, ax
jge 0x4ff373
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.004f39a3
cmp dword [esi + 0x30], ebx
jne 0x4ff44d
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004f39a3
cmp eax, dword [esp + 0x34]
jne 0x4ff44d
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4ff3e9
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4ff42e
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4ff44d
cmp eax, 0x205
je 0x4ff44d
cmp eax, 0x201
je 0x4ff44d
cmp eax, 0x204
je 0x4ff44d
cmp eax, ebx
jne 0x4ff414
cmp dword [esp + 0x1c], 0x1b
je 0x4ff44d
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 [0x647a94]
jbe 0x4ff443
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4ff3a6
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 0x401016
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + edx + 0x78]
add edi, eax
mov edx, edi
mov ebx, dword [edi + 0x1c]
mov esi, dword [edi + 0x20]
mov edx, dword [edx + 0x18]
mov edi, dword [edi + 0x24]
add ebx, eax
add esi, eax
add edx, edx
add edi, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [edx + edi]
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x24]
cmp edi, ecx
je 0x4010d6
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebx]
add ecx, eax
mov dword [ebp - 0x20], ecx
xor ecx, ecx
cmp byte [edx], 0
je 0x4010b1
mov esi, dword [ebp - 0x20]
mov bl, byte [edx]
test bl, bl
je 0x401081
cmp bl, byte [esi]
jne 0x401086
inc esi
inc edx
jmp 0x401073
cmp byte [esi], 0
je 0x401090
inc edx
cmp byte [edx - 1], 0
jne 0x401086
inc ecx
jmp 0x40106b
movsx edx, word [edi]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [esi + edx*4]
add ebx, eax
cmp dword [ebp + 8], 1
mov edx, ebx
jne 0x4010c4
cmp byte [ebx], 0xb8
jne 0x4010b1
mov edx, dword [ebx + 1]
mov ebx, dword [ebp - 0x18]
mov dword [ebx + ecx*4], edx
cmp dword [ebp - 0x10], ecx
cmovge ecx, dword [ebp - 0x10]
add edi, 2
add dword [ebp - 0x14], 4
mov dword [ebp - 0x10], ecx
jmp 0x401055
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 8], 2
lea esi, [esi + ecx*4]
jne 0x4010d2
mov edx, dword [ebx]
mov dword [esi], edx
jmp 0x4010b1
mov eax, dword [ebp - 0x10]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4027f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
xor ecx, ecx
push ebx
mov ebx, eax
mov eax, edx
or ah, 1
mov edi, eax
shr eax, 1
and edi, 1
movzx edx, word [ebx + eax*2]
neg edi
and edi, 0x7ff
xor edx, edi
shr edx, 4
add ecx, dword [esi + edx*4]
cmp eax, 1
jne 0x402809
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret

Function at 0x402830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, 0x100
push ebx
push ebx
mov dword [ebp - 0x10], eax
mov eax, edx
mov edx, ecx
or ah, 1
add edx, edx
mov ecx, esi
mov ebx, eax
and ecx, edx
shr ebx, 8
add ecx, esi
add ecx, ebx
mov ebx, dword [ebp - 0x10]
movzx ecx, word [ebx + ecx*2]
mov ebx, eax
add eax, eax
shl ebx, 0x18
sar ebx, 0x1f
and ebx, 0x7ff
xor ecx, ebx
mov ebx, dword [ebp + 8]
shr ecx, 4
add edi, dword [ebx + ecx*4]
mov ecx, edx
xor ecx, eax
not ecx
and esi, ecx
cmp eax, 0xffff
jbe 0x402848
pop edx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4028b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [ebp - 0x1c], edx
movzx eax, word [eax + 2]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
shr ecx, 2
mov edx, ecx
movzx ecx, word [ebx + ecx*2 + 4]
neg edx
and edx, 0x7ff
xor edx, esi
mov esi, dword [ebp - 0x1c]
shr edx, 4
add esi, dword [edi + edx*4]
mov edx, esi
mov esi, eax
shr esi, 1
mov dword [ebp - 0x10], esi
and esi, 1
neg esi
and esi, 0x7ff
xor ecx, esi
shr ecx, 4
add edx, dword [edi + ecx*4]
mov edi, dword [ebp - 0x10]
movzx ecx, word [ebx + edi*2 + 8]
mov edi, dword [ebp + 8]
shr ecx, 4
mov esi, dword [edi + ecx*4]
mov edi, dword [ebp - 0x14]
xor ecx, 0x7f
add esi, edx
mov dword [edi + eax*4], esi
mov edi, dword [ebp + 8]
add edx, dword [edi + ecx*4]
mov edi, dword [ebp - 0x14]
mov dword [edi + eax*4 + 4], edx
add eax, 2
cmp eax, 8
jne 0x4028d1
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402a76
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [eax + 0x548]
lea eax, [eax + 0x1c1c]
sub esp, 0x14
mov dword [ebp - 0x14], eax
movzx eax, word [edx + 0x1c1e]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
shr eax, 1
and ecx, 1
and eax, 1
mov edi, eax
mov eax, dword [ebp - 0x10]
shr eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx esi, word [eax + ecx*2 + 4]
mov eax, edi
neg eax
and eax, 0x7ff
xor esi, eax
mov eax, ecx
lea ecx, [edi + ecx*2 + 4]
mov edi, dword [ebp - 0x14]
shr esi, 4
neg eax
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x1c]
and eax, 0x7ff
xor eax, esi
mov esi, dword [ebp - 0x20]
shr eax, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
movzx esi, word [edi + ecx*2]
mov edi, dword [ebp - 0x18]
add ecx, ecx
neg edi
and edi, 0x7ff
xor esi, edi
mov edi, dword [ebp - 0x18]
shr esi, 4
add ecx, edi
mov edi, dword [ebp - 0x14]
add eax, dword [ebx + esi*4]
movzx ecx, word [edi + ecx*2]
mov edi, dword [ebp - 0x10]
inc dword [ebp - 0x10]
shr ecx, 4
mov esi, dword [ebx + ecx*4]
xor ecx, 0x7f
add esi, eax
mov dword [edx + edi*4 + 0xfdc], esi
add eax, dword [ebx + ecx*4]
cmp dword [ebp - 0x10], 8
mov dword [edx + edi*4 + 0xffc], eax
jne 0x402a9f
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403175
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
or dword [esp - 0x1000], 0
mov ebp, esp
or dword [esp - 0x1028], 0
xor ecx, ecx
sub esp, 0x28
mov eax, dword fs:[0x30]
lea edx, [ebp + 0x14]
mov eax, dword [eax + 0xfe8]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp], 0x25
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call dword [eax + 0x4b8]
leave
ret

Function at 0x4031ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
or dword [esp - 0x1000], 0
or dword [esp - 0x1020], 0
sub esp, 0x20
mov edi, eax
movzx eax, word [ecx]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 0x10], ecx
mov edx, eax
mov eax, dword [esi + eax*4]
xor edx, 0x7f
mov dword [ebp - 0x24], eax
mov ax, word [ecx + 0x10]
mov ebx, dword [ebx + edx*4]
shr ax, 4
mov word [ebp - 0x14], ax
movzx eax, ax
mov dword [ebp - 0x1c], ebx
add ebx, dword [esi + eax*4]
xor eax, eax
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x28], ebx
lea ebx, [edi + 4]
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x18], ecx
je 0x403299
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [esp], eax
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.004028b7
mov edx, dword [ebp + 8]
lea ecx, [ebx + 0x20]
lea eax, [esi + 0x10]
add ebx, 0x440
add esi, 0x20
mov dword [esp], edx
mov edx, dword [ebp - 0x28]
call fcn.004028b7
inc dword [ebp - 0x18]
jmp 0x40325d
mov eax, dword [edi]
cmp eax, 0x10
jbe 0x40335e
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, 0xf
shr eax, 1
lea ebx, [esi + 0x200]
xor edx, 0x7f
mov esi, dword [ebp + 8]
add eax, 0x7f
mov dword [ebp - 0x18], ebx
movzx edx, dx
lea ebx, [edi + 0x44]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x1c]
add ebx, dword [esi + edx*4]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
mov ebx, eax
mov esi, ebx
mov ecx, dword [ebp - 0x18]
shr ebx, 1
and esi, 1
movzx ecx, word [ecx + ebx*2]
neg esi
and esi, 0x7ff
xor ecx, esi
mov esi, dword [ebp + 8]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add dword [ebp - 0x14], ecx
cmp ebx, 1
jne 0x4032db
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov esi, dword [ebp - 0x14]
movzx ecx, word [ecx + eax*2 + 0x200]
shr ecx, 4
add esi, dword [edx + ecx*4]
xor ecx, 0x7f
mov dword [edi + eax*8 - 0x3bc], esi
mov esi, dword [ebp - 0x14]
add esi, dword [edx + ecx*4]
mov dword [edi + eax*8 - 0x3b8], esi
dec eax
cmp eax, 0x7f
jne 0x4032d3
mov eax, dword [edi]
lea edx, [eax*4 - 0x40]
lea eax, [edi + 0x484]
mov edi, dword [ebp - 0x20]
cmp ebx, edi
jae 0x40335e
mov edi, eax
mov esi, dword [ebp - 0x24]
mov ecx, edx
inc ebx
rep movsb byte es:[edi], byte [esi]
add eax, 0x440
jmp 0x403346
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405069
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
or dword [esp - 0x1000], 0
or dword [esp - 0x1018], 0
sub esp, 0x18
mov eax, dword [ebp + 0xc]
call fcn.00404af1
test eax, eax
jne 0x4050bc
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
xor edx, edx
mov dword [esp], edx
call dword [eax + 0x39c]
sub esp, 0x10
leave
ret
Function at 0x405614
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
or dword [esp - 0x1000], 0
mov ebp, esp
or dword [esp - 0x1028], 0
xor ecx, ecx
sub esp, 0x28
mov eax, dword fs:[0x30]
lea edx, [ebp + 0x10]
mov eax, dword [eax + 0xfe8]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x40c022
mov dword [esp + 0xc], 0xffffffff
mov edx, dword [ebp + 8]
mov dword [esp], 0x25
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call dword [eax + 0x4b8]
leave
ret

Function at 0x405a89
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
or dword [esp - 0x1000], 0
or dword [esp - 0x103c], 0
mov ebx, eax
xor eax, eax
sub esp, 0x3c
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword fs:[0x30]
xor edx, edx
mov edi, ecx
xor ecx, ecx
mov eax, dword [eax + 0xfe8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [eax + 0x25c]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x405b3b
mov ebx, eax
mov eax, dword fs:[0x30]
xor edx, edx
mov eax, dword [eax + 0xfe8]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x3c4]
mov eax, dword fs:[0x30]
sub esp, 0x14
mov eax, dword [eax + 0xfe8]
mov dword [esp], ebx
call dword [eax + 0x248]
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret