joyce8/EMBER2024-capa huggingface dataset:
Function at 0x25d15cc
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x25c68c4
jmp 0x259b65f
push ebp
sal esi, 0x62
mov ebp, esp
shr cx, cl
xor si, 0x70ec
sub esp, 4
xchg ecx, esi
mov dword [ebp - 4], 0
jmp 0x261bf6f
lodsb al, byte [esi]
cmp al, 0x61
jl 0x25defc2
sub al, 0x20
clc
ror edi, 0xd
test si, 0x319b
stc
cmp di, 0x2fcc
add edi, eax
jmp 0x261769d
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x261bf9a
mov eax, ebx
jmp 0x25b203a
loop 0x260b0b0
jmp 0x25f6eb2
jmp 0x261bfa6
jmp 0x260b0a9
cld
sub cx, di
bsr ecx, edi
xchg cx, cx
sub edx, edx
rol ch, 0x33
bts ecx, ebp
bsr ecx, ebx
mov edx, dword fs:[edx + 0x30]
btr si, sp
rcr si, 0xf8
rcl cx, 0x1a
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
dec ecx
xor ecx, esi
push 0x18
pop ecx
clc
xor edi, edi
xor eax, eax
jmp 0x25defb6
Function at 0x402db1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x402df7
sub ebx, 0x425680
mov ax, word [ebx + edi*2 + 0x425680]
mov ecx, esi
xor ax, word [edi*2 + 0x425680]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x402dd5
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403733
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x488910], ebx
jne 0x403779
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40375a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40375c
shr eax, 1
dec edx
jne 0x40374d
mov dword [ecx*4 + 0x488510], eax
inc ecx
cmp ecx, 0x100
jl 0x403748
mov dword [0x488910], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4037ae
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x488510]
inc ebx
cmp ebx, esi
jb 0x403794
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405b3b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x405b81
sub ebx, 0x426220
mov ax, word [ebx + edi*2 + 0x426220]
mov ecx, esi
xor ax, word [edi*2 + 0x426220]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x405b5f
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405c39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x4884f4], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x405cde
push 7
mov edx, 0x4524dc
lea ecx, [ebp - 0x34]
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405c68
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 1
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0040193d
test esi, esi
je 0x405cde
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00405b89
push 0x4265bc
call fcn.0040c960
pop ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00409061
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004017dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ce5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov edx, 0x42e580
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push 0x32
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405d0a
mov eax, dword [eax]
sub esp, 0x18
mov esi, ebx
push 6
pop ecx
mov edi, esp
push eax
lea eax, [ebp - 0x118]
push 0x7f
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00405b1f
add esp, 0x24
lea ecx, [ebp - 0x18]
xor esi, esi
xor edi, edi
inc edi
push esi
push edi
call fcn.0040193d
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x118]
mov dword [ebp - 8], esi
push eax
call fcn.0040181e
lea ecx, [ebp - 0x18]
call fcn.00405c39
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 9
mov edx, 0x4737f0
lea ecx, [ebp - 0x18]
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405d7f
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x405d87
mov ebx, dword [ebx]
push 0x40040
push eax
push ebx
push esi
call dword [0x488140]
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405da7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, 0x4737f0
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 9
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405dc7
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x405dcf
mov esi, dword [esi]
push 0x40010
push eax
push esi
push 0
call dword [0x488140]
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x418614
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428de0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00414ec5
mov dword [ebp - 0x14], eax
cmp dword [0x488040], esi
jne 0x418707
push 0x800
push esi
push 0x421ec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x418694
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4187e7
push esi
push esi
push 0x421ec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4187e7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4187e7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x488040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x488044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x488048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x488050], eax
test eax, eax
je 0x418704
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48804c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41872c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41871f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x418741
push 4
pop eax
jmp 0x4187e9
cmp dword [ebp - 0x14], esi
je 0x418741
push dword [0x488040]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x418726
mov eax, dword [0x48804c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41879f
cmp dword [0x488050], edi
je 0x41879f
push eax
call ebx
push dword [0x488050]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41879f
test eax, eax
je 0x41879f
call ecx
test eax, eax
je 0x418794
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 0x418794
test byte [ebp - 8], 1
jne 0x41879f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4187cf
mov eax, dword [0x488044]
cmp eax, edi
je 0x4187cc
push eax
call ebx
test eax, eax
je 0x4187cc
call eax
mov esi, eax
test esi, esi
je 0x4187cc
mov eax, dword [0x488048]
cmp eax, edi
je 0x4187cc
push eax
call ebx
test eax, eax
je 0x4187cc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x488040]
call ebx
test eax, eax
je 0x4187e7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4187e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411731
mov esp, ebp
pop ebp
ret
Function at 0x41e150
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
lea edi, [ebp - 0x28c]
mov ecx, 0xa3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x460000]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4647c9
call fcn.00416aaf
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00416992
add esp, 0x10
test eax, eax
je 0x41e1af
mov eax, 1
jmp 0x41e2d7
mov eax, dword [ebp + 8]
push eax
call fcn.0041627b
add esp, 4
add eax, 0x108
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
call fcn.0041631b
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41e1e1
xor eax, eax
jmp 0x41e2d7
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0041635c
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
push 0x4435f0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00416b8b
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x288]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.00416776
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x41e2c8
mov eax, dword [ebp - 0x288]
and eax, 0x10
je 0x41e293
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x25c]
cmp edx, 0x2e
je 0x41e293
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0041635c
add esp, 8
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004163f2
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00416271
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41e293
jmp 0x41e2b5
mov esi, esp
lea eax, [ebp - 0x288]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.00416776
test eax, eax
jne 0x41e22d
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.00416776
mov eax, dword [ebp - 0x30]
push eax
call fcn.004163d9
add esp, 4
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x41e308]
call fcn.00416645
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041644c
add esp, 0x40c
cmp ebp, esp
call fcn.00416776
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x4013d4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4b2c98], 0
jne 0x40140d
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401377
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call fcn.004013c0
push dword [ebp - 0xc]
mov bl, al
call fcn.00460238
add esp, 0x14
mov al, bl
pop ebx
leave
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret

Function at 0x401432
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4b2c98], 0
jne 0x401467
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401377
push dword [eax]
call fcn.00401420
push dword [ebp - 0xc]
mov bl, al
call fcn.00460238
add esp, 0x10
mov al, bl
pop ebx
leave
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x4016dc
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4016ef
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret

Function at 0x4016ff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4b2c98], 0
jne 0x401734
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401377
push dword [eax]
call fcn.004016dc
push dword [ebp - 0xc]
mov bl, al
call fcn.00460238
add esp, 0x10
mov al, bl
pop ebx
leave
ret
push 0
push dword [ebp + 8]
call fcn.004013d4
test al, al
pop ecx
pop ecx
jne 0x401746
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
leave
ret
Function at 0x404510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f375
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x20], al
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x54], al
mov dword [esi + 0x84], ecx
mov dword [esi + 0x80], eax
mov byte [esi + 0x70], al
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xb4], eax
mov byte [esi + 0xa4], al
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xe8], ecx
mov dword [esi + 0xe4], eax
mov byte [esi + 0xd4], al
mov dword [esi + 0xec], eax
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], eax
lea ecx, [esi + 0x100]
mov byte [esp + 0x14], 5
mov dword [esi + 0xfc], eax
call fcn.00446bc0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x409820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48fc65
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi], 0x49a494
mov dword [esp + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [0x4af104]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x4af104]
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 6
call fcn.0045b1a0
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 7
call fcn.0045b1a0
mov byte [esi + 0x38], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40a4d0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x40a504
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x40a500
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x40a530
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x40a530
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

Function at 0x40c280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48ff03
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], 0x49a970
xor ebx, ebx
mov dword [esi + 4], 0x65
mov dword [esi + 8], 0x12dd668
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0x34
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esi + 0x58], eax
call fcn.0040bfc0
mov ecx, dword [eax]
mov dword [esi + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x50], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x54], edx
call fcn.00438360
lea edi, [eax + 4]
push edi
mov dword [esp + 0x18], 0x49a96c
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x58]
push esi
mov byte [esp + 0x28], 1
call fcn.004386d0
push edi
mov dword [esi + 0x5c], eax
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x58]
push esi
call fcn.0043ae30
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x40c610
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40c630
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x40c646
push 0x80004005
call fcn.00408f00
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x40c670
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x40c688
push 0x80004005
call fcn.00408f00
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40c695
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x40cc80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40cccf
xor ecx, ecx
mov ch, byte [esp + 0x1a4]
lea eax, [esp + 4]
push eax
mov cl, byte [esp + 0x1a4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.004601ff
add esp, 0x194
ret
Function at 0x40d6e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40d74e
test ecx, ecx
je 0x40d740
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40d75c
test ecx, ecx
je 0x40d801
push ecx
jmp 0x40d7fb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d7ce
jmp 0x40d790
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d6e0
mov edi, eax
test edi, edi
jne 0x40d81d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d790
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d7e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d801
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004601ff
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d82c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d803

Function at 0x40dea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ffab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0xc]
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi], 0x49acf0
call fcn.0041bbd0
mov eax, dword [esp + 0x20]
mov dword [esi], 0x49ac84
mov dword [esi + 4], 0x49ac70
mov dword [esi + 8], 0x49ac50
mov dword [esi + 0x30], 0x49ac14
mov dword [esi + 0x34], eax
mov ecx, dword [0x4b2a6c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], 0
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4