joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156e5
Capabilities:
Send data
Send data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
nop
nop
pop edi
push ebx
dec edi
pop edi
dec edi
add dl, ah
sbb eax, 0xa000200
popal
popfd
mov eax, dword [0x40b190]
jmp loc.00409556

Function at 0x415f66
Capabilities:
Copy file
Receive data
Receive data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push ebx
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
and eax, 0xbfffffff
cmp ax, 6
add esp, 0xc
leave
popal
popfd
call fcn.00404e48
jmp fcn.00405348

Function at 0x41859d
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050a0
push 0x401cd0
push eax
push ebx
push edi
xor edx, edx
mov dl, ah
mov ecx, eax
and ecx, 0xff
shl ecx, 8
add ecx, edx
shr eax, 0x10
pop ecx
test eax, eax
add esp, 0x14
leave
popal
popfd
call sub.wsock32.dll_inet_addr
jmp loc.00409520

Function at 0x41a31f
Capabilities:
Packed with generic packer
Read file on windows
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
salc
add dh, dl
salc
pop edi
push ebx
dec edi
pop edi
dec edi
dec ecx
and al, 0
add al, 0
popal
popfd
mov edx, dword [ebp - 0x974]
jmp loc.00407499

Function at 0x41ab3a
Capabilities:
Packed with generic packer
Read file on windows
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
push 0x8001
push ebx
push 8
push ebx
push 0x160
push eax
push ebx
push 0x41ec80
push 0x409180
push 0x422ec0
push eax
push ebx
add esp, 0x38
leave
popal
popfd
lea edx, [ebp - 0x970]
jmp loc.004073f1

Function at 0x41b0ff
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
mov eax, dword [0x403004]
push edi
push eax
push eax
mov edi, eax
push 0x104
push eax
push 0
test eax, eax
add esp, 0x18
leave
popal
popfd
call fcn.00402774
jmp loc.00409751

Function at 0x41b861
Capabilities:
Copy file
Receive data
Receive data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push ebx
push edi
push 0x20
pop ebx
push 0x8001
push 6
and eax, 0xbfffffff
pop ecx
cmp ax, cx
add esp, 0xc
leave
popal
popfd
mov eax, dword [ebx + 0x1ec]
jmp loc.004055c2

Function at 0x41b93a
Capabilities:
Copy file
Delete file
Packed with generic packer
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0
push 0
push 1
push 0
push 0x427e8c
push 0x427ea8
push eax
add esp, 0x1c
leave
popal
popfd
mov eax, dword [0x40c7ec]
jmp loc.004075ce

Function at 0x41bbde
Capabilities:
Copy file
Create thread
Receive data
Receive data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push ebx
push edi
push 0x20
push 0x8001
push 8
push 0x2b4
push eax
push 0x40861c
push 0x408604
push 0x4685a0
push eax
mov edi, 0x4c10a0
push edi
mov eax, edi
add esp, 0x30
leave
popal
popfd
call fcn.00404e48
jmp fcn.0040556b
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x72fd3db5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5caa4b6f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40176b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017aa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017aa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017aa
cmp dword [ecx + 0x74], 0xe
jbe 0x4017aa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4078e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156c0
push 0x4156b8
push str.FlsAlloc
push 0x1f
call fcn.004077a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40791a
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
jmp 0x407920
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407964
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156d0
push 0x4156c8
push str.FlsGetValue
push 0x21
call fcn.004077a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40799b
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4079a3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156d8
push 0x4156d0
push str.FlsSetValue
push 0x22
call fcn.004077a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4079dd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x404e30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x83c
mov eax, dword [esp + 0x840]
mov edx, dword [eax]
push ebx
push ebp
mov ebp, dword [0x44c768]
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44c76c]
xor ebx, ebx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0x9e3779b9
call fcn.00404e00
mov ecx, dword [0x44c770]
mov eax, dword [0x44c774]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x20
jmp 0x404ea4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov eax, dword [0x70c7f4]
mov ecx, edx
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x404ed6
mov dword [0x70c7f0], 0xedeb2e40
jmp 0x404ee3
cmp eax, 0x3eb
jne 0x404ee3
mov dword [0x7096f8], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x24]
mov dword [0x70c7ec], 0xf4ea3dee
mov dword [esp + 0x24], edx
call fcn.00404e10
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
xor esi, dword [esp + 0x10]
cmp dword [0x70c7f4], 0x213
jne 0x404f76
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
sub edi, esi
mov eax, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.00404df0
add dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
nop
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x70c7f4], 0x121
jne 0x404fcb
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov ecx, dword [esp + 0x10]
xor ecx, esi
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00404e20
mov eax, dword [esp + 0x30]
sub dword [esp + 0x14], eax
sub dword [esp + 0x2c], 1
jne 0x404ea0
mov eax, dword [esp + 0x850]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x83c
ret 4
Function at 0x405010
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, 0x203c
call fcn.00416910
mov eax, dword [0x70c7f4]
mov ecx, dword [0x7096fc]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40519b
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateActCtxA]
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x70c7f4], 0x959
jne 0x405181
push 0
push 0
call edi
push 0
lea eax, [esp + 0x4c]
push eax
push 0x40370c
call ebx
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x84c]
push eax
push 0x403738
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x144c]
push edx
push 0
push 0x403744
push 0x403760
push 0x40379c
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
lea ecx, [esp + 0xc50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea edx, [esp + 0x184c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
call esi
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0
push 0x4037b4
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push 0
push 0x4037bc
push 0x4037e8
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0
push 0
push 0
call esi
mov eax, dword [esp + 0x14]
push eax
call fcn.00404e30
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x405054
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x203c
ret
Function at 0x40913d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b208]
jne 0x409147
repz ret
jmp fcn.00410f5c

Function at 0x414b51
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.0040e608
and dword [ebp - 4], 0
cmp dword [0x44ea30], 0
mov ebx, eax
jne 0x414c02
push 0x402dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414cb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402dc4
push edi
call esi
test eax, eax
je 0x414cb3
push eax
call fcn.0040e596
mov dword [esp], 0x402db4
push edi
mov dword [0x44ea30], eax
call esi
push eax
call fcn.0040e596
mov dword [esp], 0x402da0
push edi
mov dword [0x44ea34], eax
call esi
push eax
call fcn.0040e596
mov dword [esp], 0x402d84
push edi
mov dword [0x44ea38], eax
call esi
push eax
call fcn.0040e596
pop ecx
mov dword [0x44ea40], eax
test eax, eax
je 0x414c02
push 0x402d6c
push edi
call esi
push eax
call fcn.0040e596
pop ecx
mov dword [0x44ea3c], eax
mov eax, dword [0x44ea3c]
cmp eax, ebx
je 0x414c5a
cmp dword [0x44ea40], ebx
je 0x414c5a
push eax
call fcn.0040e611
push dword [0x44ea40]
mov esi, eax
call fcn.0040e611
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414c5a
test edi, edi
je 0x414c5a
call esi
test eax, eax
je 0x414c51
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414c51
test byte [ebp - 0xc], 1
jne 0x414c5a
or dword [ebp + 0x10], 0x200000
jmp 0x414c93
mov eax, dword [0x44ea34]
cmp eax, ebx
je 0x414c93
push eax
call fcn.0040e611
pop ecx
test eax, eax
je 0x414c93
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414c93
mov eax, dword [0x44ea38]
cmp eax, ebx
je 0x414c93
push eax
call fcn.0040e611
pop ecx
test eax, eax
je 0x414c93
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ea30]
call fcn.0040e611
pop ecx
test eax, eax
je 0x414cb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414cb5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [0x4110e8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x4110ec]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
call fcn.00402f90
mov ecx, dword [0x4110f0]
mov edx, dword [0x4110f4]
add dword [esp + 0x24], 0x23f
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov ebx, 0x20
jmp 0x403010
mov dword [esp + 0x18], 2
add dword [esp + 0x18], 3
mov eax, edi
shl eax, 4
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [0x598aac]
cmp eax, 0xfa9
jne 0x403042
mov dword [0x598aa8], 0xedeb2e40
jmp 0x403060
cmp eax, 0x3eb
jne 0x403060
push 0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x5959b0], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
mov dword [0x598aa4], 0xf4ea3dee
call fcn.00402fa0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
xor dword [esp + 0x14], edx
cmp dword [0x598aac], 0x213
jne 0x4030ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTimerQueueTimer]
sub esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x28], esi
call fcn.00402f80
add dword [esp + 0x10], ebp
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov eax, esi
shr eax, cl
add eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
sub edi, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], edi
call fcn.00402f70
sub ebx, 1
jne 0x403010
mov eax, dword [esp + 0x40]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x409f9e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410b90]
jne 0x409fa8
repz ret
jmp fcn.0040c208

Function at 0x40a103
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.00405f4d
and dword [ebp - 4], 0
cmp dword [0x518e00], 0
mov ebx, eax
jne 0x40a1b4
push 0x401b60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a265
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b54
push edi
call esi
test eax, eax
je 0x40a265
push eax
call fcn.00405edb
mov dword [esp], 0x401b44
push edi
mov dword [0x518e00], eax
call esi
push eax
call fcn.00405edb
mov dword [esp], 0x401b30
push edi
mov dword [0x518e04], eax
call esi
push eax
call fcn.00405edb
mov dword [esp], 0x401b14
push edi
mov dword [0x518e08], eax
call esi
push eax
call fcn.00405edb
pop ecx
mov dword [0x518e10], eax
test eax, eax
je 0x40a1b4
push 0x401afc
push edi
call esi
push eax
call fcn.00405edb
pop ecx
mov dword [0x518e0c], eax
mov eax, dword [0x518e0c]
cmp eax, ebx
je 0x40a20c
cmp dword [0x518e10], ebx
je 0x40a20c
push eax
call fcn.00405f56
push dword [0x518e10]
mov esi, eax
call fcn.00405f56
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a20c
test edi, edi
je 0x40a20c
call esi
test eax, eax
je 0x40a203
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a203
test byte [ebp - 0xc], 1
jne 0x40a20c
or dword [ebp + 0x10], 0x200000
jmp 0x40a245
mov eax, dword [0x518e04]
cmp eax, ebx
je 0x40a245
push eax
call fcn.00405f56
pop ecx
test eax, eax
je 0x40a245
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a245
mov eax, dword [0x518e08]
cmp eax, ebx
je 0x40a245
push eax
call fcn.00405f56
pop ecx
test eax, eax
je 0x40a245
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x518e00]
call fcn.00405f56
pop ecx
test eax, eax
je 0x40a265
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a267
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4087b0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44a398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45cccc]
push ebx
push esi
mov esi, dword [0x45ccd4]
mov eax, 0x4f576647
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0x4f576647
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccdc]
imul edx, edx, 0x242
mov ebx, eax
sub ebx, edi
add ebx, edx
mov eax, 0x38e38e39
imul esi
mov eax, dword [0x45cce8]
sar edx, 7
imul eax, eax, 0x21e
mov esi, edx
add ebx, edx
mov edx, ecx
imul edx, edx, 0x203
shr esi, 0x1f
add esi, ebx
add esi, eax
add esi, edx
mov eax, 0x93459be7
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x57304c]
sub esi, eax
mov ecx, 0x57304c
mov dword [str._r_____r____], esi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x45ccdc]
mov ecx, dword [0x45ccd8]
mov eax, 0x4f576647
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
mov esi, ecx
imul edx, edx, 0x242
imul esi, esi, 0x33a
sub esi, eax
mov eax, dword [0x45cce8]
imul eax, eax, 0x21e
add esi, edx
mov edx, dword [0x45ccd0]
add esi, eax
mov eax, 0x59493e15
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
mov dword [esp + 0x18], 0
sar edx, 7
mov ebx, dword [0x45cce4]
mov eax, dword [esp + 0x20]
mov ecx, edx
shr ecx, 0x1f
add esi, edx
add ecx, esi
sub ecx, ebx
sub ecx, 0xe1
lea edx, [esp + 0x24]
push edx
mov dword [0x45ccd0], ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00408520
mov ecx, dword [0x45cccc]
mov edx, dword [0x45ccd0]
mov esi, dword [0x45cce4]
lea edi, [edx + ecx]
mov eax, 0x4f576647
imul edi, edi, 0x1bd
imul esi
mov eax, dword [0x45cce0]
sar edx, 8
imul eax, eax, 0x25d
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, eax
mov eax, 0x38e38e39
imul esi
sar edx, 7
mov esi, edx
add ebx, edx
mov eax, 0x71625345
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45ccdc]
imul edx, edx, 0xe1
shr esi, 0x1f
add esi, ebx
sub esi, ecx
add esi, edx
mov dword [0x45ccdc], esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x4089a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b4a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45e640]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b5c2
lea ecx, [esp + 8]
call fcn.0041b380
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x41b5c6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b570
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0041b4a0
mov edi, eax
test edi, edi
jne 0x41b5ea
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b532
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41b589
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b5a8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042fb01
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x41b5d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042fb01
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b5f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042fb01
add esp, 0x118
ret 4
Function at 0x41bad0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41bae2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8