joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4582c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x458332
mov eax, ebx
call fcn.0045a4ec
test al, al
jne 0x458332
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405318
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45831f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45833f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040527c
jmp 0x45833f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040527c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x459700
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45976e
mov eax, esi
call fcn.004434c8
test al, al
je 0x45976e
mov eax, dword [ebx + 0x84]
call fcn.004431bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45976e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x459762
push 0
mov eax, dword [ebx + 0x84]
call fcn.004431bc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043b378
jmp 0x45976e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045953c
pop esi
pop ebx
ret
Function at 0x45bb20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x45bc55
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
test ebx, ebx
jle 0x45bc4b
push 0
lea eax, [ebp - 0xc]
push eax
push 0x16
lea eax, [ebp - 0x2a]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.00402ea0
mov esi, eax
mov eax, 0x22
call fcn.00402ea0
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x26
push esi
push ebx
call sub.kernel32.dll_ReadFile_1
mov edx, edi
mov eax, esi
mov ecx, 0x14
call fcn.0040309c
mov eax, dword [esi + 6]
mov dword [edi + 6], eax
mov eax, dword [esi + 0xa]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0xe]
mov dword [edi + 0xe], eax
mov word [edi + 0x12], 1
mov eax, dword [esi + 0xe]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00402ea0
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, dword [esi + 0x12]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebx, eax
test ebx, ebx
jle 0x45bc35
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 1
push 3
push ebx
call sub.kernel32.dll_UpdateResourceA
push 0
push ebx
call sub.kernel32.dll_EndUpdateResourceA
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x14]
call fcn.00402ebc
mov eax, edi
call fcn.00402ebc
mov eax, esi
call fcn.00402ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bc5f
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bc6c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a8
mov eax, dword [ebp - 8]
call fcn.004056a8
mov eax, dword [ebp - 0xc]
call fcn.004056a8
xor eax, eax
push ebp
push 0x45bd77
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45bd52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4232c8]
call fcn.0042adac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45bd41
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
mov eax, dword [0x4787f8]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.0042b180
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 8]
call fcn.004056b8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004056b8
pop edx
call fcn.0045bb20
mov eax, dword [ebp - 0xc]
call fcn.00409938
test al, al
je 0x45bd2b
mov eax, dword [ebp - 0xc]
call fcn.004056b8
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd48
mov eax, dword [ebp - 0x10]
call fcn.004043fc
ret
Function at 0x45bd88
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x45bd90
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a8
xor eax, eax
push ebp
push 0x45bf9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.00458724
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x45bf67
mov eax, dword [ebp - 4]
call fcn.0045bfc4
test al, al
jne 0x45bf67
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.00458724
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409b44
push dword [ebp - 0x14]
push 0x45bfb4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409b78
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004055bc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45be26
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
sub ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405720
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ecx, 0x45bfc0
call fcn.00405540
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00409b78
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x45be69
sub ebx, 4
mov ebx, dword [ebx]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00409b44
push dword [ebp - 0x28]
push 0x45bfb4
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00409b78
mov eax, dword [ebp - 0x30]
mov ecx, ebx
mov edx, 2
call fcn.00405720
push dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004055bc
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x45bf67
mov eax, dword [ebp - 8]
call fcn.00409938
test al, al
jne 0x45bf67
mov eax, dword [ebp - 0xc]
call fcn.00409938
test al, al
jne 0x45bf67
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.00458724
xor eax, eax
push ebp
push 0x45bf51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004056b8
push eax
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp - 8]
call fcn.0045b960
lea edx, [ebp - 0x34]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.0045b9d8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0045bc6c
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.00458724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bf5b
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.00458724
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.00458724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bfa2
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040524c
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.0040524c
ret
Function at 0x45c080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 7], cl
mov byte [ebp - 6], dl
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x45c1b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x416500]
call fcn.004043cc
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x45c18c
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x10b]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00405228
jmp 0x45c10d
lea eax, [ebp - 0x110]
movzx edx, byte [ebp + ebx - 0x10c]
call fcn.00405410
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 4]
call fcn.004054f4
inc ebx
cmp ebx, 0xff
jg 0x45c11f
cmp byte [ebp + ebx - 0x10c], 0
jne 0x45c0eb
inc ebx
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x45c13c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45c172
cmp edx, 5
sete al
and al, byte [ebp - 5]
cmp al, 1
je 0x45c167
cmp edx, 3
sete al
and al, byte [ebp - 6]
cmp al, 1
je 0x45c167
cmp edx, 4
sete al
and al, byte [ebp - 7]
cmp al, 1
jne 0x45c172
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
call fcn.004054e8
test eax, eax
jne 0x45c0e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c196
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c1be
lea eax, [ebp - 0x110]
call fcn.00405228
lea eax, [ebp - 4]
call fcn.00405228
ret

Function at 0x45c850
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a8
mov eax, dword [ebp - 8]
call fcn.004056a8
xor eax, eax
push ebp
push 0x45c979
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x45c94c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x421ca8]
call fcn.00421da8
mov dword [ebp - 0x10], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0x10]
call fcn.00421e48
xor eax, eax
push ebp
push 0x45c93b
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x45c994
mov eax, dword [ebp - 0x10]
call fcn.00421eac
test al, al
je 0x45c91d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004223e0
test al, al
je 0x45c90b
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00422248
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00405650
je 0x45c919
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00422218
jmp 0x45c919
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00422218
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.00421e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c942
mov eax, dword [ebp - 0x10]
call fcn.004043fc
ret
Function at 0x45fb90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45fbbe
mov eax, ebx
call fcn.00460644
cmp dword [ebx + 0x40], 0
je 0x45fbb7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45fc2f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45fc21
cmp dword [ebx + 8], 0
je 0x45fbe0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45fbf2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45fc21
cmp dword [ebx + 8], 0
je 0x45fbd3
cmp eax, 3
je 0x45fc05
dec eax
jne 0x45fbd3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45fbd3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45fbd3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45fc4d
cmp dword [ebx + 0x14], 0xcc
je 0x45fc4d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045fc58
pop ebx
ret

Function at 0x470638
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x470765
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x470740
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409b44
push dword [ebp - 4]
push 0x47077c
lea edx, [ebp - 0x10]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409b78
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055bc
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x4706e4
push 1
push 0x470780
push 0x470780
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
push 0x470784
mov eax, ebx
call fcn.004431bc
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x470736
lea edx, [ebp - 0x14]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00409b44
mov eax, dword [ebp - 4]
test eax, eax
je 0x47070a
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x470736
push 1
push 0x470780
push 0x470780
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
push 0x470784
mov eax, ebx
call fcn.004431bc
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47074a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47076c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040524c
ret
Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x11125d8b
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3d8b4e04
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401420
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jle 0x40149c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
sub dword [ebp + 0xc], ebx
push esi
push edi
jmp 0x401440
inc byte [eax + 0x100]
movzx edi, byte [eax + 0x100]
lea ebx, [ebx + 1]
movzx ecx, byte [edi + eax]
add byte [eax + 0x101], cl
movzx esi, byte [eax + 0x101]
mov dl, byte [edi + eax]
movzx ecx, byte [esi + eax]
mov byte [edi + eax], cl
mov byte [esi + eax], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
movzx ecx, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp + 0xc]
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor cl, byte [edx + ebx - 1]
dec dword [ebp + 0x14]
mov byte [ebx - 1], cl
jne 0x401440
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4014a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
jmp 0x4014b0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4014b0
xor edi, edi
mov word [esi + 0x100], 0
xor bh, bh
mov eax, edi
cdq
idiv dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov bl, byte [edi + esi]
inc edi
movzx eax, byte [edx + eax]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi - 1], al
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x4014c8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4019d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x4019fd
mov ecx, esi
call fcn.00401870
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x401a62
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x401a1a
push edi
mov ecx, esi
call fcn.00401d40
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x401a30
xor ecx, ecx
jmp 0x401a42
push dword [eax - 8]
push eax
call fcn.00403c96
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x401a62
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x401a62
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
pop edi
xor edx, edx
mov ebx, 1
mov word [eax + ecx*2], dx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004017d0
int3
Function at 0x401ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ef5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401f30
lea ebx, [ebx]
cmp esi, edx
jae 0x401f34
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401f20
cmp esi, edx
jb 0x401f39
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4088be
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x481200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00405484
mov dword [ebp - 0x14], eax
cmp dword [0x482fa4], edi
jne 0x4089af
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40893c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408a8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x408a8f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408a8f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x482fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x482fa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x482fac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fb4], eax
test eax, eax
je 0x4089ac
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fb0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4089d4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4089c7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4089e9
push 4
pop eax
jmp 0x408a91
cmp dword [ebp - 0x14], edi
je 0x4089e9
push dword [0x482fa4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4089ce
mov eax, dword [0x482fb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x408a47
cmp dword [0x482fb4], esi
je 0x408a47
push eax
call ebx
push dword [0x482fb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408a47
test eax, eax
je 0x408a47
call ecx
test eax, eax
je 0x408a3c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408a3c
test byte [ebp - 8], 1
jne 0x408a47
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x408a77
mov eax, dword [0x482fa8]
cmp eax, esi
je 0x408a74
push eax
call ebx
test eax, eax
je 0x408a74
call eax
mov edi, eax
test edi, edi
je 0x408a74
mov eax, dword [0x482fac]
cmp eax, esi
je 0x408a74
push eax
call ebx
test eax, eax
je 0x408a74
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x482fa4]
call ebx
test eax, eax
je 0x408a8f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x408a91
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004033d4
leave
ret
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00468009
leave
ret 4