joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6030
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f8731
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4c606d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004ed7e3
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004ecb2b
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.004bf040
lea ecx, [esp + 8]
call fcn.004eda8e
lea ecx, [esp + 0x30]
call fcn.004ecc8f
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004ecb2b
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.004bf4e0
lea ecx, [esp + 0x74]
call fcn.004ecc8f
lea ecx, [esp + 8]
call fcn.004eda8f
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.004bcc50
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.004bef50
mov ecx, esi
call fcn.004bfb20
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.004bef50
mov ecx, esi
call fcn.004bfb20
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.004bef50
mov ecx, esi
call fcn.004bfb20
mov ecx, dword [edi + 0x5c]
call fcn.004bc430
push eax
mov ecx, esi
call fcn.004bc440
mov ecx, dword [edi + 0x5c]
call fcn.004bc9f0
push eax
mov ecx, esi
call fcn.004bc990
mov ecx, dword [edi + 0x5c]
call fcn.004bcb10
push eax
mov ecx, esi
call fcn.004bcac0
mov ecx, dword [edi + 0x5c]
push 0
call fcn.004bbd10
push eax
mov ecx, esi
call fcn.004bbd20
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004ecc07
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004ecc07
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004ed8a8
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4c78d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f8957
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004e38a2
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004e38a2
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004c83f0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4c8440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f8a30
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004ef933
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4c8473
xor al, al
jmp 0x4c859f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4c8495
xor al, al
jmp 0x4c859f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4c84a8
xor al, al
jmp 0x4c859f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4c84bc
xor al, al
jmp 0x4c859f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004e3967
test eax, eax
jne 0x4c84f0
xor al, al
jmp 0x4c859f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x584fc4
mov dword [esp + 0x20], ebp
call fcn.004ef933
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004ec7e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004ec837
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4c8584
mov ax, word [ebx]
test ax, ax
je 0x4c8576
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004c85c0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4c855a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004ec837
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4c8b00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004edecc
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4c8b46
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004d4478
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5a49b4
push ecx
call fcn.004d5e91
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4e7ccf
Capabilities:
Get graphical window text

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

Function at 0x4e94c6
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 0x4e9508
call fcn.004ef933
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e9508
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e94ff
xor eax, eax
jmp 0x4e9510
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e9516
pop edi
pop esi
pop ebx
ret 4

Function at 0x4efe63
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 0x4efe91
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4efeaf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004efdc9
jmp 0x4efeaf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4efeaf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004efdc9
test edi, edi
mov eax, edi
jne 0x4efe99
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409c64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040a578
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x409d72
cmp ebx, edx
jge 0x409cb9
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x409cbb
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409c9e
cmp ecx, edx
jne 0x409cc3
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x409c8a
cmp eax, 0xa
jg 0x409d72
mov dword [ebp - 4], 0x41aeb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41afd0]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x409d1e
add eax, edx
dec edi
jne 0x409d1c
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x409d72
cmp ebx, edx
jge 0x409d5b
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x409d5d
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409d3f
cmp ecx, edx
jne 0x409d64
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x409d31
cmp dword [ebp + 8], 0xa
jle 0x409cd7
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409d79
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x417eb0]
xor dl, byte [eax + ebx*4 + 0x4186b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x418ab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4182b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x409da1
inc eax
cmp eax, edi
jl 0x409d94
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040a578
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x409d92
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409df8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xb4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00409c32
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x419ab0]
movzx ecx, byte [ebp - 3]
xor eax, dword [ecx*4 + 0x4196b0]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x4192b0]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x418eb0]
mov esi, dword [ebp + 0xc]
movzx ecx, byte [ebp - 0xf]
mov dword [esi], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x419ab0]
xor eax, dword [ecx*4 + 0x4196b0]
movzx ecx, byte [ebp - 2]
xor eax, dword [ecx*4 + 0x4192b0]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x418eb0]
mov es, word [ecx]

Function at 0x40a0a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
xor eax, eax
xor ecx, ecx
inc eax
mov esi, 0x11b
push edi
mov edx, eax
and dl, 0x80
movsx edx, dl
mov byte [ebp + ecx - 0x304], al
mov byte [ebp + ecx - 0x205], al
mov byte [ebp + eax - 0x104], cl
inc ecx
neg edx
sbb edx, edx
and edx, esi
lea edi, [eax + eax]
xor edx, edi
xor eax, edx
cmp eax, 1
jne 0x40a0b8
xor ecx, ecx
pop edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x41aeb0], al
and edx, esi
add eax, eax
xor eax, edx
inc ecx
cmp ecx, 0x1e
jb 0x40a0eb
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x40a113
Function at 0x401000
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 4], 0
cmp dx, word [eax + 6]
jae 0x4010c5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
lea esi, [ecx + 0x10]
mov ecx, dword [esi]
test ecx, ecx
jne 0x40106e
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x4010a4
mov eax, dword [esi - 4]
add eax, ebp
cmp dword [0x5dedd0], ecx
je 0x401055
test eax, eax
jne 0x401060
push 4
push 0x1000
push edi
push eax
call ebx
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00410d00
jmp 0x4010a1
mov eax, dword [esi - 4]
add eax, ebp
cmp dword [0x5dedd0], 0
je 0x401080
test eax, eax
jne 0x40108b
push 4
push 0x1000
push ecx
push eax
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [esp + 0x18]
push ecx
mov edi, eax
push edx
push edi
call fcn.0040cb60
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
inc eax
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401033
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret

Function at 0x4010d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x401199
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401130
cmp dword [0x5dedd0], 0
jne 0x401181
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401181
test ecx, ecx
jne 0x401139
mov esi, 1
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov esi, dword [ecx*4 + 0x5de03c]
test eax, 0x4000000
je 0x401153
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40116e
test al, 0x40
je 0x401165
mov ecx, dword [ebx + 0x20]
jmp 0x40116c
test al, al
jns 0x401181
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401181
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x4010f4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401410
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x5dedc8]
sub esp, 0x100
test eax, eax
jne 0x4014b4
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor esi, esi
lea ecx, [ecx]
push 1
push 0x2000
push 1
push 0
call edi
or dword [0x5dedc8], eax
mov dword [esp + esi*4 + 8], eax
inc esi
cmp esi, 0x40
jl 0x401430
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov eax, dword [esp + esi*4 + 8]
push 0x8000
push 1
push eax
call edi
inc esi
cmp esi, 0x40
jl 0x401455
mov eax, dword [0x5dedc8]
xor ecx, ecx
mov edx, 1
shl edx, cl
test eax, edx
jne 0x401483
inc ecx
cmp ecx, 0x20
jl 0x401470
jmp 0x4014a4
mov edx, 1
rol edx, cl
cmp ecx, 0x20
jge 0x4014a4
mov esi, 0x20
sub esi, ecx
or eax, edx
rol edx, 1
sub esi, 1
jne 0x401496
mov dword [0x5dedc8], eax
pop edi
pop esi
test eax, eax
jne 0x4014b4
mov eax, 0x10000
mov dword [0x5dedc8], eax
add esp, 0x100
ret
Function at 0x402f20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
mov esi, 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jne 0x402fad
cmp eax, dword [esp + 0x20]
jne 0x402fad
cmp eax, esi
jb 0x402f8f
add esi, esi
inc edi
cmp esi, eax
jbe 0x402f88
cmp dword [esp + 0x24], edi
jne 0x402fad
cmp dword [esp + 0x3c], 0
je 0x402fa2
cmp dword [esp + 0x38], edi
jne 0x402fad
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret

Function at 0x403ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [0x5f5234]
test edi, edi
je 0x403f31
cmp edi, esi
jae 0x403f09
mov esi, edi
test esi, esi
je 0x403f31
mov eax, dword [ebp + 0xc]
mov ebx, dword [0x5f5238]
push esi
push eax
push ebx
call fcn.0040cb60
sub edi, esi
add esp, 0xc
add ebx, esi
mov dword [0x5f5234], edi
mov dword [0x5f5238], ebx
mov ecx, dword [ebp + 0x10]
jcxz 0x403f54
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lodsb al, byte [esi]
xor al, bl
and eax, 0xff
shr ebx, 8
xor ebx, dword [eax*4 + 0x5f5240]
loop 0x403f3d
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408ce0
Capabilities:
Encode data using xor

Disassembly:
movzx eax, word [0x41a218]
cmp eax, 0x4b50
je 0x408d1c
mov ecx, 0xc21a5ce5
xor eax, eax
jmp 0x408d00
xor dword [eax + 0x41a218], ecx
add ecx, 0xcb714b84
add eax, 4
xor ecx, 0x8cd5354f
cmp eax, 0x1c2fc4
jb 0x408d00
movzx ecx, word [0x41a218]
cmp ecx, 0x4b50
je 0x408d2e
xor eax, eax
ret
mov edx, dword [esp + 4]
mov dword [edx], 0x1c2fc4
mov eax, 0x41a218
ret
Function at 0x409cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x410
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebp
push esi
push edi
push 0x10
mov esi, ecx
xor ebp, ebp
push 1
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebp
je 0x409d8e
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebp
je 0x409d8d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x409d86
cmp ebx, 0x34
jbe 0x409d86
mov ecx, 0x34
sub ecx, eax
cmp dword [eax], 0xfeef04bd
je 0x409d6a
inc eax
lea edx, [ecx + eax]
cmp edx, ebx
jb 0x409d58
jmp 0x409d86
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xe]
movzx ebp, word [eax + 0xa]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push ebp
lea ecx, [esp + 0x28]
push str.UZC_version__i._i._i._i_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409db8
mov ecx, dword [0x5f9730]
sub eax, edx
lea esi, [ecx + eax]
cmp esi, 0x4000
jae 0x409def
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [ecx + 0x5f5640]
push eax
call fcn.0040cb60
mov ecx, esi
add esp, 0xc
mov dword [0x5f9730], ecx
lea eax, [ecx + 9]
cmp eax, 0x4000
jae 0x409e22
mov edx, dword [str.Windows:]
mov dword [ecx + 0x5f5640], edx
mov edx, dword [0x417724]
mov dword [ecx + 0x5f5644], edx
mov dl, byte [0x417728]
mov byte [ecx + 0x5f5648], dl
mov dword [0x5f9730], eax
lea eax, [esp + 0x18]
push eax
call fcn.00409040
lea eax, [esp + 0x1c]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e36
mov ecx, dword [0x5f9730]
sub eax, edx
lea esi, [ecx + eax]
cmp esi, 0x4000
jae 0x409e6d
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [ecx + 0x5f5640]
push eax
call fcn.0040cb60
mov ecx, esi
add esp, 0xc
mov dword [0x5f9730], ecx
pop edi
lea eax, [ecx + 2]
pop esi
pop ebp
cmp eax, 0x4000
jae 0x409e8d
mov dx, word [0x41772c]
mov word [ecx + 0x5f5640], dx
mov dword [0x5f9730], eax
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0040b281
add esp, 0x410
ret