joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6da35c40
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x6da4dc8c]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 1
mov ecx, 0x6da4eb1c
call fcn.6da35a90
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x70]
push eax
push 0x6da46778
mov byte [ebp + 0x98], 0
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [ebp - 0x70]
mov ebx, eax
cmp eax, edi
jne 0x6da35c93
xor eax, eax
jmp 0x6da35cd4
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x6da35cd0
lea edi, [eax + eax]
mov eax, edi
call fcn.6da3d3e0
mov esi, esp
test esi, esi
je 0x6da35cd0
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x6da35cd2
xor eax, eax
xor edi, edi
push eax
lea ecx, [ebp + 0x98]
push 0x6da46ae8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp - 0x70]
add esp, 0xc
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xf003f
lea eax, [ebp + 0x98]
push eax
push SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.6da32ae0
test eax, eax
je 0x6da35d2f
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x6da35d28
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80040201
jmp 0x6da35d71
mov edx, dword [0x6da4eb60]
push 0x104
lea ecx, [ebp - 0x6c]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, dword [ebp - 0x7c]
inc eax
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 1
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, edi
je 0x6da35d6e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
call fcn.6da3ca24
lea esp, [ebp + 0x1a0]
pop ebp
ret

Function at 0x6da37d20
Capabilities:
Hide graphical window

Disassembly:
push esi
test ecx, ecx
je 0x6da37d2a
lea esi, [ecx - 0x7c]
jmp 0x6da37d2c
xor esi, esi
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 0x88]
push eax
call edx
mov esi, dword [esi + 0x50]
test esi, esi
je 0x6da37d4e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x6da38e40
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
je 0x6da38e50
add eax, 0xffffff80
jmp 0x6da38e52
xor eax, eax
mov eax, dword [eax + 0x14]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, 7
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0
test eax, eax
jne 0x6da38e7f
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, 0x80004005
jmp 0x6da38e94
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x6da46e10
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x28]
test eax, eax
js 0x6da38ee7
test ecx, ecx
je 0x6da38ee2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jns 0x6da38eb2
mov esi, 1
push 0x11
call edi
test ax, ax
jns 0x6da38ebe
add esi, 2
push 0x12
call edi
test ax, ax
jns 0x6da38eca
add esi, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x28]
jmp 0x6da38ee7
mov eax, 1
xor edx, edx
test eax, eax
setne dl
mov esi, edx
test ecx, ecx
je 0x6da38efc
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret 8
Function at 0x6da3c646
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6da4ebbc], 0
push esi
push edi
jne 0x6da3c5bc
call fcn.6da3c528
test eax, eax
je 0x6da3c601
mov eax, dword [0x6da4ebbc]
cmp eax, 1
jne 0x6da3c5dd
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6da3c601
jmp 0x6da3c643
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x6da3c643
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6da3c605
xor eax, eax
jmp 0x6da3c643
mov eax, dword [esi]
push dword [0x6da4ebbc]
call edi
mov edi, eax
test edi, edi
je 0x6da3c627
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x6da3c643
lea edi, [esi + 0xff0]
push esi
push dword [0x6da4ebbc]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x6da3c62d
mov eax, esi
pop edi
pop esi
ret
jmp 0x6da3c5a8

Function at 0x6da3ca24
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6da4dc8c]
jne 0x6da3ca2e
repz ret
jmp fcn.6da3ece8

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 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40345b
pop dword [ebp - 0x4c]
mov eax, 0x89134299
add eax, 0x772cf1c2
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x2ed468de
sub dword [ebp - 0x5c], 0xe0822393
mov dword [ebp - 0x58], 0x41004710
add dword [ebp - 0x58], 0xf1330535
mov dword [ebp - 0x54], 0x18e90afc
add dword [ebp - 0x54], 0x33633932
mov dword [ebp - 0x50], 0xe72618d3
add dword [ebp - 0x50], 0x18d9e72d
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x53884000
add dword [ebp - 0x5c], 0x20ea2956
mov dword [ebp - 0x58], 0xb9297e49
sub dword [ebp - 0x58], 0x77bd1cd4
mov dword [ebp - 0x54], 0x59259b72
sub dword [ebp - 0x54], 0xf5b62f06
mov dword [ebp - 0x50], 0x6abcb086
add dword [ebp - 0x50], 0x95434f7a
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x14583be5
sub eax, 0x1417fb95
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x38033
push 0
call eax
mov ecx, 0x1ac4f086
sub ecx, 0x1ac4a3ef
mov ebx, eax
mov edi, 0x408400
add edi, dword [ebp - 0x4c]
mov edx, 0xd5962cae
add dword [ebp - 0x48], 0xb2501719
mov esi, dword [edi]
add dword [ebp - 0x44], 0x2df71b07
sub esi, edx
xor dword [ebp - 0x30], ebx
mov dword [ebx], esi
sub dword [ebp - 0x14], edx
add ebx, 4
add edi, 0xd136eb66
add edi, 0x2ec9149e
loop 0x40356c
add eax, 0x7d296f1e
add eax, 0x82d7b611
mov ebx, eax
add eax, 0x51a0a4d4
add eax, 0xae5f5b31
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4010d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, str._ccav_
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401224
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401108
push ebx
call fcn.0040fae3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x41bef1]
test ebx, ebx
je 0x40111f
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [0x41bef1], eax
push 0x41b216
push dword [0x41bef1]
call fcn.00401037
add esp, 8
cmp eax, 0
jne 0x401165
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401448
call fcn.00403124
call main
call fcn.004033f7
call fcn.0040d441
mov eax, str._36b09ad0773b46d1_
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401194
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40119d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4011ad
push ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x500
mov dword [ebp - 0x30], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
call dword [sym.imp.ole32.dll_OleUninitialize]
leave
ret 0x10

Function at 0x44ef54
Capabilities:
Encode data using xor

Disassembly:
aas
add ebx, esi
push 0xffffff76
invalid
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2c7c74a9
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x34494cc8
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x386c46ba
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x26fc2d26
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x574c11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f01b4]
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.0056750f
and dword [ebp - 0x14], 0
cmp dword [0x5f85b0], 0
mov dword [ebp - 0x18], eax
jne 0x574cc4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x574d6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x574d6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5bd718
push ebx
mov dword [0x5f85b0], eax
call edi
push eax
call esi
push 0x5bd704
push ebx
mov dword [0x5f85b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5f85b8], eax
call edi
push eax
call esi
mov dword [0x5f85c0], eax
test eax, eax
je 0x574cc4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5f85bc], eax
mov eax, dword [0x5f85bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x574d1d
cmp dword [0x5f85c0], ecx
je 0x574d1d
push eax
call esi
push dword [0x5f85c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x574d1d
test ebx, ebx
je 0x574d1d
call edi
test eax, eax
je 0x574d14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x574d14
test byte [ebp - 8], 1
jne 0x574d1d
or dword [ebp + 0x10], 0x200000
jmp 0x574d50
mov eax, dword [0x5f85b4]
cmp eax, dword [ebp - 0x18]
je 0x574d50
push eax
call esi
test eax, eax
je 0x574d50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x574d50
mov eax, dword [0x5f85b8]
cmp eax, dword [ebp - 0x18]
je 0x574d50
push eax
call esi
test eax, eax
je 0x574d50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5f85b0]
call esi
test eax, eax
je 0x574d6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x574d6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055db96
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 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x10366
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047950e
Function at 0x662152e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.6620d3f6
and dword [ebp - 4], 0
cmp dword [0x66242a40], 0
mov ebx, eax
jne 0x66215399
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621544a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621544a
push eax
call fcn.6620d384
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a40], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a44], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a48], eax
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a50], eax
test eax, eax
je 0x66215399
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a4c], eax
mov eax, dword [0x66242a4c]
cmp eax, ebx
je 0x662153f1
cmp dword [0x66242a50], ebx
je 0x662153f1
push eax
call fcn.6620d3ff
push dword [0x66242a50]
mov esi, eax
call fcn.6620d3ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662153f1
test edi, edi
je 0x662153f1
call esi
test eax, eax
je 0x662153e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662153e8
test byte [ebp - 0xc], 1
jne 0x662153f1
or dword [ebp + 0x10], 0x200000
jmp 0x6621542a
mov eax, dword [0x66242a44]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621542a
mov eax, dword [0x66242a48]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a40]
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621544a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621544c
xor eax, eax
pop edi
pop esi
pop ebx
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 0x10003450
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 1
jne 0x1000359e
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x100251a0], eax
cmp dword [0x1002512c], 0
jne 0x100034cc
mov eax, dword [0x100251a0]
and eax, 0xff
cmp eax, 3
jne 0x1000349b
mov ecx, dword [0x100251a0]
shr ecx, 0x1f
and ecx, 1
test ecx, ecx
je 0x1000349b
push 2
call fcn.10007c90
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100034cc
push str.IsTNT
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100034cc
push 1
call fcn.10007c90
add esp, 4
call fcn.100052f0
test eax, eax
jne 0x100034dc
xor eax, eax
jmp 0x1000360c
mov eax, dword [0x100251a0]
shr eax, 8
and eax, 0xff
mov dword [0x100251ac], eax
mov ecx, dword [0x100251a0]
and ecx, 0xff
mov dword [0x100251a8], ecx
mov edx, dword [0x100251a8]
shl edx, 8
add edx, dword [0x100251ac]
mov dword [0x100251a4], edx
mov eax, dword [0x100251a0]
shr eax, 0x10
and eax, 0xffff
mov dword [0x100251a0], eax
call fcn.10006670
test eax, eax
jne 0x1000353c
call fcn.10005340
xor eax, eax
jmp 0x1000360c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10026a8c], eax
call fcn.10007a20
mov dword [0x10025120], eax
cmp dword [0x10026a8c], 0
je 0x10003563
cmp dword [0x10025120], 0
jne 0x10003574
call fcn.10006700
call fcn.10005340
xor eax, eax
jmp 0x1000360c
call fcn.10006900
call fcn.10007790
call fcn.10006e10
call fcn.10006cd0
call fcn.10005390
mov ecx, dword [0x1002511c]
add ecx, 1
mov dword [0x1002511c], ecx
jmp 0x10003607
cmp dword [ebp + 0xc], 0
jne 0x100035f7
cmp dword [0x1002511c], 0
jle 0x100035f1
mov edx, dword [0x1002511c]
sub edx, 1
mov dword [0x1002511c], edx
cmp dword [0x100251d8], 0
jne 0x100035ca
call fcn.10005410
push 0xffffffffffffffff
call fcn.100029f0
add esp, 4
and eax, 0x20
test eax, eax
je 0x100035e0
call fcn.10003300
call fcn.10006c30
call fcn.10006700
call fcn.10005340
jmp 0x100035f5
xor eax, eax
jmp 0x1000360c
jmp 0x10003607
cmp dword [ebp + 0xc], 3
jne 0x10003607
push 0
call fcn.100067f0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100067f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10022e98], 0xffffffff
je 0x100068d8
cmp dword [ebp + 8], 0
jne 0x10006815
mov eax, dword [0x10022e98]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x100068c9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
je 0x10006839
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
call fcn.10001f70
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], 0
je 0x10006853
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call fcn.10001f70
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x30], 0
je 0x1000686d
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
push eax
call fcn.10001f70
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
je 0x10006887
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
push eax
call fcn.10001f70
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x40], 0
je 0x100068a1
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
call fcn.10001f70
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x44], 0
je 0x100068bb
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
push eax
call fcn.10001f70
add esp, 8
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.10001f70
add esp, 8
push 0
mov edx, dword [0x10022e98]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret