joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452fdc
Capabilities:
Create thread
Get disk size
Get hostname
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp dword [0x8c5094], 0x598
push ebx
push esi
push edi
jne 0x453067
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x401498
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
lea eax, [ebp - 4]
push eax
push ebx
push 0x4014a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push ebx
call fcn.004538b7
push ebx
push ebx
push ebx
call fcn.00453695
add esp, 0x10
call fcn.004534f4
push ebx
call fcn.0045345c
mov esi, 0xa4808
xor ebx, ebx
cmp dword [0x8c5094], 0x57c
jne 0x4530db
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
dec esi
jne 0x45306e
mov esi, dword [0x45d6d4]
add esi, 0xb2d3b
mov eax, 0x45f700
mov dword [0x8c5094], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4530f8
sub eax, edx
cmp eax, 0x1515
jne 0x453167
cmp esi, 0x18
jne 0x453133
push ebx
push ebx
push ebx
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov esi, dword [0x8c5094]
cmp esi, 0x9e6
jne 0x453157
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
call fcn.0045317c
push ebx
call fcn.004538b7
add esp, 0xc
call fcn.00452e41
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x45510a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45ebd0]
jne 0x455114
repz ret
jmp fcn.00457fea
Function at 0x4574d1
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.00453cfc
and dword [ebp - 4], 0
cmp dword [0x8c56ec], 0
mov ebx, eax
jne 0x457582
push 0x401c7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x457633
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c70
push edi
call esi
test eax, eax
je 0x457633
push eax
call fcn.00453c8a
mov dword [esp], 0x401c60
push edi
mov dword [0x8c56ec], eax
call esi
push eax
call fcn.00453c8a
mov dword [esp], 0x401c4c
push edi
mov dword [0x8c56f0], eax
call esi
push eax
call fcn.00453c8a
mov dword [esp], 0x401c30
push edi
mov dword [0x8c56f4], eax
call esi
push eax
call fcn.00453c8a
pop ecx
mov dword [0x8c56fc], eax
test eax, eax
je 0x457582
push 0x401c18
push edi
call esi
push eax
call fcn.00453c8a
pop ecx
mov dword [0x8c56f8], eax
mov eax, dword [0x8c56f8]
cmp eax, ebx
je 0x4575da
cmp dword [0x8c56fc], ebx
je 0x4575da
push eax
call fcn.00453d05
push dword [0x8c56fc]
mov esi, eax
call fcn.00453d05
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4575da
test edi, edi
je 0x4575da
call esi
test eax, eax
je 0x4575d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4575d1
test byte [ebp - 0xc], 1
jne 0x4575da
or dword [ebp + 0x10], 0x200000
jmp 0x457613
mov eax, dword [0x8c56f0]
cmp eax, ebx
je 0x457613
push eax
call fcn.00453d05
pop ecx
test eax, eax
je 0x457613
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x457613
mov eax, dword [0x8c56f4]
cmp eax, ebx
je 0x457613
push eax
call fcn.00453d05
pop ecx
test eax, eax
je 0x457613
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8c56ec]
call fcn.00453d05
pop ecx
test eax, eax
je 0x457633
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x457635
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5cca3a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005ccab9
jae 0x5cca46
xor ecx, ecx
call fcn.005ccab9
jae 0x5cca70
xor eax, eax
call fcn.005ccab9
jae 0x5cca81
mov al, 0x10
call fcn.005ccab9
adc al, al
jae 0x5cca62
jne 0x5ccaae
stosb byte es:[edi], al
jmp 0x5cca47
call fcn.005ccac5
dec ecx
loop 0x5cca8d
mov eax, ebp
call fcn.005ccac3
jmp 0x5ccaaf
lodsb al, byte [esi]
shr eax, 1
je 0x5ccad5
adc ecx, 2
mov ebp, eax
jmp 0x5ccaaf
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005ccac3
cmp eax, 0x7d00
jae 0x5ccaad
cmp eax, 0x500
jae 0x5ccaae
cmp eax, 0x7f
ja 0x5ccaaf
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5cca47
pop ebp
ret 8
Function at 0x401836
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4307a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.004074e0
push fcn.00407510
push fcn.004074e0
lea edi, [esi + 0x18]
push 0xd
push 8
push edi
mov dword [esp + 0x28], 0
call fcn.0041569a
push 0x93
push 0xd7
push 0xea
mov ecx, edi
mov byte [esp + 0x20], 1
mov dword [esi], 0x436120
mov dword [esi + 4], 0x16
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
call fcn.00407540
push 0x2f
push 0x3e
push 0x3e
lea ecx, [esi + 0x20]
call fcn.00407540
push 0xa7
push 0xe5
push 0xdf
lea ecx, [esi + 0x28]
call fcn.00407540
push 4
push 5
push 5
lea ecx, [esi + 0x30]
call fcn.00407540
push 0x96
push 0xd6
push 0xe9
lea ecx, [esi + 0x38]
call fcn.00407540
push 0x93
push 0xd6
push 0xe9
lea ecx, [esi + 0x40]
call fcn.00407540
push 0x33
push 0xca
push 0xa3
lea ecx, [esi + 0x48]
call fcn.00407540
push 0x16
push 0x64
push 0x44
lea ecx, [esi + 0x50]
call fcn.00407540
push 0
push 0xd2
push 0x8b
lea ecx, [esi + 0x58]
call fcn.00407540
push 0x16
push 0x3d
push 0x6c
lea ecx, [esi + 0x60]
call fcn.00407540
push 0x56
push 0xfd
push 0x67
lea ecx, [esi + 0x68]
call fcn.00407540
push 0x2a
push 0x7e
push 0x32
lea ecx, [esi + 0x70]
call fcn.00407540
push 0x10
push 0x2c
push 0xff
lea ecx, [esi + 0x78]
call fcn.00407540
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x445a40
jmp 0x401820
Function at 0x408aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x408ac5
pop edi
pop esi
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x408ad8
pop edi
pop esi
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408ae9
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x408afa
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x18]
push ebp
push 0x44160c
push edx
xor ebp, ebp
call fcn.004159c2
mov esi, eax
add esp, 8
test esi, esi
je 0x408b34
push esi
push edi
push 1
push ebx
call fcn.00415858
add esp, 0x10
cmp edi, eax
jne 0x408b2b
mov ebp, 1
push esi
call fcn.004157db
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409da0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x4317bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x441b8c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], 1
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409e31
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x409e2a
push 0x104
push 0x104
lea ecx, [esp + 0xc]
call fcn.00428c9e
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00428ced
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0042872e
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.004289b9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40c520
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 8], 0x128
cmp esi, 0xffffffff
je 0x40c57e
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40c577
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.00415c60
add esp, 8
test eax, eax
jne 0x40c589
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c556
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
add esp, 0x128
ret
Function at 0x423800
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00417160
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4238cb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4238cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42387e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423889
or bh, 8
and edi, 0x8000000
je 0x4238a4
mov eax, dword [0x4497fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4238cb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x423ccb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x423cef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x423d0a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42780e
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 0x427850
call fcn.0042d855
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x427850
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x427847
xor eax, eax
jmp 0x427858
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042785e
pop edi
pop esi
pop ebx
ret 4

Function at 0x42e30b
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 0x42e339
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42e357
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042e271
jmp 0x42e357
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42e357
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042e271
test edi, edi
mov eax, edi
jne 0x42e341
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401790
Capabilities:
Encode data using xor

Disassembly:
sbb byte [ecx], bl
sbb dl, byte [eax - 0x6fa26fe2]
aaa
nop
dec ebp
nop
nop
pop eax
nop
nop
nop
xlatb
inc esp
in al, dx
mov edi, dword [eax]
mov cl, byte [ebx + 0x40c00e0d]
add byte [eax - 0x7d], dl
rol dword [eax + 0x68], 4
rol byte [eax + 0x56], cl
push ecx
call dword [0xb040c180]
mov bl, 0x4c
add al, byte [ecx - 0x5c]
add esp, 0xc
test eax, eax
je 0x401787
push eax
push 0x40d2c0
call dword [0xeb403a64]
add esp, 8
push 0xffffffffffffffe6
unpckhps xmm6, xmmword [eax - 0x3f]
inc eax
add byte [ecx - 0x7e1374ab], al
in al, dx
mov eax, 0xa1000000
arpl word [edx], ax
inc ecx
test eax, eax
mov eax, dword [0x41404c]
je 0x40173f
push 0x47413c07
push eax
jo 0x40174d
inc eax
invalid

Function at 0x404f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
in al, dx
or dword [edi + 0x21], 0x3fa356b4
xor ebx, ebp
or byte [eax + 0x63], bh
sal byte [edx], cl
push esi
cdq
mov al, byte [0xacc03149]
Function at 0x4066e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x406702
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4066f8
mov eax, 1
add ebx, ebx
jne 0x40671b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406710
jne 0x40672c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406710
xor ecx, ecx
sub eax, 3
jb 0x406740
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4067b2
mov ebp, eax
add ebx, ebx
jne 0x40674b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40677c
inc ecx
add ebx, ebx
jne 0x406768
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40675d
jne 0x406779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40675d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40679c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40678d
jmp 0x4066fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40679c
add edi, ecx
jmp 0x4066fe
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4067ba
cmp byte [edi], 1
jne 0x4067ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4067bf
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x406837
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6878]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x68b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4067ec
mov ecx, edi
jns 0x40681b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x68b8]
or eax, eax
je 0x406831
mov dword [ebx], eax
add ebx, 4
jmp 0x406809
call dword [esi + 0x68c0]
mov ebp, dword [esi + 0x68bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40686b
sub esp, 0xffffff80
jmp 0x401128
Function at 0x77dc316b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.77dc331b
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 0x77dc3269
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 0x77dc320c
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x77dc324f
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x77dc3223
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x77dc323e
test al, 0x40
je 0x77dc3235
mov ecx, dword [edi + 0x20]
jmp 0x77dc323c
test al, 0x80
je 0x77dc324f
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x77dc324f
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 0x77dc31db
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x77dc5e99
Capabilities:
Encode data using xor

Disassembly:
pop edi
mov eax, dword [ebp + 8]
xor ecx, ecx
not eax
cmp dword [ebp + 0x10], ecx
jbe 0x77dc5ec3
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
add esi, 8
movzx edx, byte [ecx + esi]
xor dl, al
and dl, 0xff
shr eax, 8
xor eax, dword [edi + edx*4]
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x77dc5eae
not eax
pop ebp
ret 0xc

Function at 0x77dc74ca
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.77dc74d3

Function at 0x77dc86db
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
leave
ret
Function at 0x77dd32a0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x77e6a628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x77f09930]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.77dd2d70
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x77dd3342
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x77dd33fb
mov edx, dword [esi + 8]
push edx
call fcn.77de7c30
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x77dd3392
cmp eax, 0x80000301
jne 0x77dd3360
mov eax, dword [esi]
jmp 0x77dd336d
push 0
push esi
push 0x7d1
call fcn.77ded2b0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x77dd33f0
jmp 0x77dd33ea
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x77dd33c1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x77dd33f0
jmp 0x77dd33ea
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x77dd33f0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x77dd33f0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.77e5d813
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret