joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c770
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c7a3
push esi
call fcn.0043f860
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c79c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c829
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c812
mov eax, dword [esi + 8]
test eax, eax
je 0x43c7c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c80e
cmp eax, 2
je 0x43c812
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c7ba
cmp eax, 3
je 0x43c7ed
cmp eax, 1
jne 0x43c7ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c7ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c7ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c850
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c838
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c850
add esp, 4
pop esi
ret

Function at 0x4646dd
Capabilities:
Get graphical window text

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

Function at 0x465dd3
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 0x465e15
call fcn.0046bab4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465e15
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465e0c
xor eax, eax
jmp 0x465e1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465e23
pop edi
pop esi
pop ebx
ret 4

Function at 0x46bfe4
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 0x46c012
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c030
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046bf4a
jmp 0x46c030
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c030
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046bf4a
test edi, edi
mov eax, edi
jne 0x46c01a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011b5
Capabilities:
Create directory
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
xor ebp, ebp
push ebp
push ebp
push 0x1c
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._temp_
push esi
call ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call ebp
push str.WebSaver_
push esi
call ebx
push 0
push esi
call ebp
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0040100d

Function at 0x4011fc
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xfd8]
mov eax, 0x1058
call fcn.00401720
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp + 0xfd4], eax
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push eax
mov esi, ecx
call fcn.00401750
push dword [esi]
lea eax, [esi + 0x210]
push dword [esi + 0x20c]
mov dword [ebp - 0x80], 0x44
push eax
lea eax, [esi + 0xa10]
push eax
lea eax, [ebp - 0x2c]
push str._s___s___d__d
push eax
call fcn.0040152c
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40127d
push 0xffffffffffffff9f
pop eax
jmp 0x401291
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x1210], eax
xor eax, eax
mov ecx, dword [ebp + 0xfd4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401702
add ebp, 0xfd8
leave
ret
Function at 0x4012a8
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push esi
mov ecx, 0x40ef80
call fcn.004011b5
xor esi, esi
cmp eax, esi
jne 0x4013e9
push ebx
push edi
push 0x103
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x10000080
push 4
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
mov edi, eax
push 0x1c
push edi
mov dword [ebp - 0x64], edi
call ebx
push esi
lea eax, [ebp - 0x80]
push eax
push 0x10
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x7c], 0x20081010
je 0x40133e
push edi
jmp 0x4013de
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
lea edi, [ecx + eax]
push edi
call fcn.004014c7
pop ecx
push esi
push esi
push esi
push dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
call ebx
mov ebx, dword [ebp - 0x6c]
push esi
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013d4
cmp edi, dword [ebp - 0x68]
jne 0x4013d4
push 0x10
lea eax, [ebx + 0x1c]
push esi
push eax
call fcn.00401750
add esp, 0xc
xor eax, eax
mov dword [0x40ef80], esi
cmp edi, esi
jbe 0x40139f
movzx ecx, byte [eax + ebx]
add dword [0x40ef80], ecx
inc eax
cmp eax, edi
jb 0x401390
push ebx
call fcn.00401452
mov eax, dword [0x40ef80]
pop ecx
cmp eax, dword [ebp - 0x70]
je 0x4013c8
push 0x14
push 0x40b244
push str.S_MR5uP_fN
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4013e4
mov ecx, 0x40ef80
call fcn.004011fc
jmp 0x4013e7
push ebx
call fcn.00401452
pop ecx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffff9d
pop eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1a8]
xor ecx, ebp
pop esi
call fcn.00401702
add ebp, 0x1ac
leave
ret 0x10

Function at 0x401702
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e040]
jne 0x40170c
repz ret
jmp fcn.0040395c
Function at 0x40792b
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.00402d86
and dword [ebp - 4], 0
cmp dword [0x410b24], 0
mov ebx, eax
jne 0x4079dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407a8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407a8d
push eax
call fcn.00402d14
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410b24], eax
call esi
push eax
call fcn.00402d14
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410b28], eax
call esi
push eax
call fcn.00402d14
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x410b2c], eax
call esi
push eax
call fcn.00402d14
pop ecx
mov dword [0x410b34], eax
test eax, eax
je 0x4079dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402d14
pop ecx
mov dword [0x410b30], eax
mov eax, dword [0x410b30]
cmp eax, ebx
je 0x407a34
cmp dword [0x410b34], ebx
je 0x407a34
push eax
call fcn.00402d8f
push dword [0x410b34]
mov esi, eax
call fcn.00402d8f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407a34
test edi, edi
je 0x407a34
call esi
test eax, eax
je 0x407a2b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407a2b
test byte [ebp - 0xc], 1
jne 0x407a34
or dword [ebp + 0x10], 0x200000
jmp 0x407a6d
mov eax, dword [0x410b28]
cmp eax, ebx
je 0x407a6d
push eax
call fcn.00402d8f
pop ecx
test eax, eax
je 0x407a6d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407a6d
mov eax, dword [0x410b2c]
cmp eax, ebx
je 0x407a6d
push eax
call fcn.00402d8f
pop ecx
test eax, eax
je 0x407a6d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410b24]
call fcn.00402d8f
pop ecx
test eax, eax
je 0x407a8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407a8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004367
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100e65c]
push 0x1001324
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_getenv]
test eax, eax
pop ecx
je 0x100443b
push esi
mov esi, dword [sym.imp.msvcrt.dll_strncpy]
push edi
mov edi, 0x100
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
add esp, 0xc
mov byte [ebp - 8], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10043b6
sub eax, ecx
push ebx
sub edi, eax
push edi
lea eax, [ebp + eax - 0x108]
push 0x1001314
push eax
call esi
lea eax, [ebp - 0x108]
push 0x1001310
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1004438
mov esi, dword [sym.imp.msvcrt.dll_fgets]
mov edi, 0x101
jmp 0x100441e
lea eax, [ebp - 0x108]
push 0xa
push eax
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
pop ecx
pop ecx
je 0x1004412
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.01003da2
push ebx
lea eax, [ebp - 0x108]
push edi
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x10043fa
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.01009d42
leave
ret
Function at 0x10068ff
Capabilities:
Execute command

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e65c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100691b
sub eax, ecx
cmp eax, 0x100
jb 0x1006938
push 0x32
push 2
call fcn.01009110
pop ecx
pop ecx
jmp 0x100697c
lea eax, [ebp - 0x104]
push eax
push 0x1001f7c
push esi
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x100697c
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push 0x1001f68
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_system]
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
call fcn.01009d42
leave
ret 4
Function at 0x100a181
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
xor edi, edi
test eax, eax
je 0x100a244
mov ecx, dword [ebp + 8]
push 0x3f
pop esi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
push ebx
movzx ebx, byte [ecx]
shl edx, 8
add edx, ebx
inc ecx
inc edi
cmp edi, 3
jne 0x100a1f2
mov edi, edx
shr edi, 0x12
and edi, esi
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov edi, edx
shr edi, 0xc
and edi, esi
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, edx
inc eax
mov byte [eax], bl
shr edi, 6
and edi, esi
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
and edx, esi
mov byte [eax], bl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
inc eax
xor edx, edx
xor edi, edi
dec dword [ebp + 0xc]
jne 0x100a1a4
test edi, edi
pop ebx
je 0x100a247
push 3
pop ecx
sub ecx, edi
shl ecx, 3
shl edx, cl
mov ecx, edx
shr ecx, 0x12
and ecx, esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp edi, 2
jne 0x100a23a
shr edx, 6
and edx, esi
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
jmp 0x100a23d
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
jmp 0x100a247
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100a298
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x100a2ae
or dword [ebp + 0x18], 0xffffffff
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_sprintf]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x13e]
cmp edi, eax
mov dword [ebp - 0x10], eax
jae 0x100a372
mov cl, byte [esi]
mov al, cl
inc esi
and al, 0xc0
mov byte [ebp + 0xb], cl
jne 0x100a31e
movzx eax, cl
push eax
push 0x1003010
push edi
mov dword [ebp - 0xc], eax
call ebx
add edi, eax
add esp, 0xc
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], edi
je 0x100a3c5
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x18]
jae 0x100a37e
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]
mov ecx, edx
add dword [ebp - 8], ecx
mov edi, dword [ebp - 8]
jmp 0x100a367
cmp al, 0xc0
jne 0x100a3b1
cmp esi, dword [ebp + 0x18]
jae 0x100a391
xor eax, eax
mov ah, cl
mov al, byte [esi]
inc esi
movzx eax, ax
push eax
push 0x1003008
push edi
mov dword [ebp + 8], eax
call ebx
add esp, 0xc
add edi, eax
cmp dword [ebp + 0x14], 0
je 0x100a3ab
cmp dword [ebp - 4], 0
jne 0x100a355
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
xor eax, 0xc000
add eax, dword [ebp + 0x14]
lea ecx, [esi - 2]
cmp eax, ecx
jae 0x100a399
cmp edi, dword [ebp - 0x10]
mov esi, eax
jb 0x100a2ce
push 0x1002fd8
push edi
call ebx
pop ecx
pop ecx
jmp 0x100a3c0
movzx eax, byte [ebp + 0xb]
push esi
push eax
push 0x1002f9c
push edi
call ebx
add esp, 0x10
jmp 0x100a3c0
push esi
push 0x1002f68
jmp 0x100a3ba
push eax
lea eax, [esi - 2]
push eax
push 0x1002f34
push edi
call ebx
add esp, 0x10
jmp 0x100a3c3
mov byte [edi], 0
inc edi
jmp 0x100a3c5
movzx eax, cl
push eax
push 0x1002f18
push edi
call ebx
add esp, 0xc
mov esi, dword [ebp + 0x10]
add edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100a3ce
mov dword [eax], edi
cmp dword [ebp - 4], 0
je 0x100a3d7
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
sub eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0x14
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x455f5c
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x455f62
pop ebx
sub ebx, 0x1a2
mov ecx, 0x16dc0
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3e000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.00455e11
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x455f94
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x2171e
call fcn.00455f32
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x45601e
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x456019
pushal
test eax, 0x80000000
je 0x456003
and eax, 0x7fffffff
jmp 0x456007
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x455fee
add esi, 0x14
jmp 0x455fd4
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x456068
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x456067
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x45605f
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x45604e
jmp 0x456031
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x456075
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x42438c
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x4243ac
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x424399
ret
Function at 0x5ee2db
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005ee48b
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x5ee3d9
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
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 0x5ee37c
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x5ee3bf
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x5ee393
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5ee3ae
test al, 0x40
je 0x5ee3a5
mov ecx, dword [edi + 0x20]
jmp 0x5ee3ac
test al, 0x80
je 0x5ee3bf
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x5ee3bf
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x5ee34b
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40b120
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a21b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ec27
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b1a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c99d
mov eax, dword [eax]
push 0x5e31c0
push eax
call fcn.0044f784
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045eeb2
test bl, bl
je 0x40b1a2
push 0x5e31c0
lea ecx, [esp + 0xc]
call fcn.0045f242
push 0x5e6d3c
lea ecx, [esp + 0xc]
call fcn.0045f242
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b1de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045eeb2
jmp 0x40b2a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b262
lea edx, [esp + 0x7c]
push 0x5e6d38
push edx
call fcn.0044f784
add esp, 8
test eax, eax
je 0x40b262
lea eax, [esp + 0x7c]
push 0x5e6d34
push eax
call fcn.0044f784
add esp, 8
test eax, eax
je 0x40b262
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b1f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045eeb2
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40baa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40bb02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc