joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4764e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4764f0
mov eax, esi
call fcn.004535f0
jmp 0x4764fd
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x476558
je 0x476558
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401290
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x476555
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476555
push 1
push 0x8000012f
call fcn.00401290
add esp, 8
push esi
call ebx
test eax, eax
jne 0x476534
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x476730
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.00491c50
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x47675b
cmp cl, 0x61
jne 0x4767ac
cmp byte [edx + 1], bl
jne 0x4767ac
cmp byte [edi], bl
jne 0x4767ac
cmp byte [eax], bl
jne 0x4767ac
cmp byte [esi], bl
jne 0x4767ac
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x47678d
cmp byte [ebp + 0xc6], bl
jne 0x47678d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47678d
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x4767a0
cmp esi, ebx
je 0x4767a0
mov dword [ebp + 0xa0], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x4767cd
cmp byte [edi], bl
jne 0x4767cd
cmp byte [eax], bl
jne 0x4767cd
cmp byte [esi], bl
jne 0x4767cd
mov eax, ebp
call fcn.00476920
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x4997f1
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.004773c0
test eax, eax
je 0x4768de
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x4768ea
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x4768b6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4768de
cmp byte [ebp + 0xc6], bl
jne 0x4768af
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4768af
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4768de
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x4768cf
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00477800
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.004778c0
test eax, eax
jne 0x4768fa
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x476990
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x476914
cmp eax, ebx
je 0x476914
mov dword [ebp + 0xa0], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x476b00
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.00491c50
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x476b29
mov ecx, edi
call fcn.00412c90
cmp dword [esp + 0x8038], 0
jne 0x476b3e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x476b53
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x476b5d
mov ebp, 1
test esi, esi
je 0x476d2a
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x476d2a
cmp ebp, dword [esp + 0x20]
jg 0x476d2a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00473c80
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x476d23
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x476bd0
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x476c47
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x476c9e
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x476c47
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x476c99
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00476080
test al, al
jne 0x476cc4
cmp dword [esp + 0x802c], 0
jne 0x476ca8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476cf7
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x476c7e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476cdc
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401290
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x476bd0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x476cf7
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00475380
mov esi, eax
jmp 0x476cfc
mov eax, dword [0x4ab51c]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push eax
call fcn.00475380
jmp 0x476c9e
mov ecx, dword [0x4ab51c]
push 1
push 0
push 0xffffffffffffffff
push 0x49aee0
push ecx
call fcn.00475380
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x49aee0
test edi, edi
jne 0x476d38
mov eax, 0x49b028
mov ecx, dword [0x4a7440]
cmp byte [ecx + 0xe4], 0
jne 0x476d65
mov edx, dword [0x4ab51c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00475380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ad0f0]
push 0x4997f1
push 0
push eax
call fcn.0042e710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x477800
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x4778b7
mov eax, dword [esi]
test eax, eax
je 0x4778b7
push edi
test al, 1
jne 0x477829
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x477842
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x477842
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x47785d
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x477898
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x477898
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044f2a0
add esp, 4
test eax, eax
jne 0x477898
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x4778b7
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x477f40
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00491c50
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x477fed
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x478680
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x4997f1
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x477fed
mov ecx, dword [0x4a7440]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x477fed
push 1
push eax
call fcn.00401290
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x478000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47801c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4a7440]
push eax
push esi
mov ecx, edi
call fcn.004784c0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x478053
test eax, eax
jne 0x478057
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00478110
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x4780d6
test esi, esi
je 0x4780d6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401290
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x4780b5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4780b5
push 1
push 0x8000012f
call fcn.00401290
add esp, 8
push esi
call edi
test eax, eax
jne 0x478090
mov edx, dword [0x4a7440]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4780ce
push 1
push eax
call fcn.00401290
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x4780f0
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00478110
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00478290
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x478290
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00491c50
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x478410
xor cl, cl
mov eax, edi
call fcn.00478430
test eax, eax
jne 0x4782c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a7440]
push eax
push ebp
mov ecx, edi
call fcn.004784c0
test eax, eax
je 0x4782e8
xor eax, eax
mov dword [0x4acd20], eax
jmp 0x4782ed
mov eax, dword [0x4acd20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x4997f1
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x478333
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x47833b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4acd1c]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x478590
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x4783e8
lea ecx, [esp + 0x10]
push ecx
push 0x4771d0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4783a5
mov edx, dword [esp + 0xc48]
call fcn.00477c50
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00476220
mov edx, dword [esp + 0xc48]
call fcn.00477c50
mov edx, dword [0x4a7440]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x478410
push 1
push eax
call fcn.00401290
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4acd20]
cmp eax, ebx
je 0x478410
cmp eax, 1
setg al
mov dword [0x4acd20], ebx
cmp al, bl
je 0x478410
mov edx, ebp
call fcn.00477c50
push ebx
mov ecx, edi
call fcn.00478290
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48c564
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a6d90]
jne 0x48c56e
repz ret
jmp fcn.00490e97

Function at 0x48eee4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6d90]
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.00489502
and dword [ebp - 0x14], 0
cmp dword [0x4a9554], 0
mov dword [ebp - 0x18], eax
jne 0x48ef97
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48f03f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48f03f
mov esi, dword [fcn.00485070]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a9554], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a9558], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a955c], eax
call edi
push eax
call esi
mov dword [0x4a9564], eax
test eax, eax
je 0x48ef97
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a9560], eax
mov eax, dword [0x4a9560]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00485074]
cmp eax, ecx
je 0x48eff0
cmp dword [0x4a9564], ecx
je 0x48eff0
push eax
call esi
push dword [0x4a9564]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48eff0
test ebx, ebx
je 0x48eff0
call edi
test eax, eax
je 0x48efe7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48efe7
test byte [ebp - 8], 1
jne 0x48eff0
or dword [ebp + 0x10], 0x200000
jmp 0x48f023
mov eax, dword [0x4a9558]
cmp eax, dword [ebp - 0x18]
je 0x48f023
push eax
call esi
test eax, eax
je 0x48f023
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48f023
mov eax, dword [0x4a955c]
cmp eax, dword [ebp - 0x18]
je 0x48f023
push eax
call esi
test eax, eax
je 0x48f023
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a9554]
call esi
test eax, eax
je 0x48f03f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48f041
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c564
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x670258fc
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x756a6905
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x4012c5
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403fa4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403fa0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401196
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403fa0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403fa8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40138f
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401376
mov eax, dword [0x403fa4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.004019dc
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x4044f1]
lea edx, [fcn.00401a50]
sub eax, edx
push eax
push fcn.00401a50
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401335
push esi
call fcn.004018b1
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004018fb
mov eax, esi
add eax, 0x1d600
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov edi, dword [ebp - 0x88]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
push edi
lea edi, [0x4060e4]
mov ebx, esi
dec ebx
and edi, ebx
push edi
call fcn.00401a50
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4017eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov edx, esi
dec edx
mov eax, edi
and eax, edx
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401894
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401825
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x40181f
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401848
mov eax, dword [ebp + 0xc]
mov edx, eax
or dl, 1
mov ecx, esi
imul ecx, edx
sub eax, ecx
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x4018ac
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004017a7
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004017a7
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
xor edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
add edx, esi
add edx, eax
push edx
call fcn.0040178d
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401850
inc dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
cmp dword [ebp - 4], edi
jle 0x401815
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019dc
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
lea eax, [ebp - 0x120]
push eax
call sub.USER32.DLL_GetCursorPos
call sub.KERNEL32.dll_GetLastError
mov eax, edi
pop edi
leave
ret
Function at 0x4013e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4013f9
cmp dword [ebp + 0xc], 0
jne 0x4013fd
xor eax, eax
jmp 0x401454
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401452
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401452
mov eax, dword [ebp + 8]
jmp 0x401454
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x401479
cmp dword [ebp + 0xc], 0
jne 0x40147d
xor eax, eax
jmp 0x4014d6
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014d4
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x4014d4
mov eax, dword [ebp + 8]
jmp 0x4014d6
xor eax, eax
mov esp, ebp
pop ebp
ret