joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450850
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x4508d0
je 0x4508c1
cmp eax, 0x80000101
ja 0x4508ba
je 0x4508c1
cmp eax, reloc.WS2_32.dll_connect
je 0x45089d
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x4508e5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x45092b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x45092b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x45092b
cmp eax, 0x80000201
jne 0x4508e5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x45092b
cmp eax, 0x80000401
je 0x450916
cmp eax, 0x80000501
je 0x450902
cmp eax, 0x80000601
je 0x4508ee
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.0045e048
jmp 0x450923
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.0045e048
jmp 0x450923
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004556e0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x450a06
test ecx, ecx
je 0x450a06
inc ecx
push esi
push ecx
call fcn.0046ac5f
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045e020
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4509a8
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4509fc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4509f1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046ac88
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x450bd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x450c11.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x450c11.2
jmp dword [eax*4 + 0x450c9c]
mov word [esp + 0x48], di
jmp 0x450c4a
mov word [esp + 0x48], 2
jmp 0x450c4a
mov word [esp + 0x48], 3
jmp 0x450c4a
mov word [esp + 0x48], 4
jmp 0x450c4a
mov word [esp + 0x48], 7
jmp 0x450c4a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x450c94
cmp dword [esp + 0x70], edi
je 0x450c80
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x450dd0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x450df8
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x450e1a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x450e20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x450eab
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x450eab
test esi, esi
je 0x450e65
cmp esi, 0xffffffff
je 0x450e65
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x450ef1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x450e94
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x450eab
jmp 0x450ea3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x450eab
mov dword [esp + 0x10], 1
test esi, esi
je 0x450ef1
cmp esi, 0xffffffff
je 0x450ef1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x450f28
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x450efe
call edi
test eax, eax
je 0x450ef1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x450f28
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x450ed9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x450ef1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x450f28
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x450f0b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00450260
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x451460
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x451470
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x451500
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45151e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x451513
pop esi
ret
Function at 0x4529b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4529c3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00455bc0
add esp, 4
test eax, eax
jne 0x4529d5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x452a4c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x452a7e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x452a38
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x452a08
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x452a7e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x452a7e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x452a67
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x4531a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x453209
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00450260
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x453230
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x453243
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00455bc0
add esp, 4
test eax, eax
jne 0x453255
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x453264
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4532bb
mov ebx, dword [ebx + 4]
push edi
call fcn.0046ac5f
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45329e
push ebp
call fcn.0046ac88
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00455bf0
push ebp
mov esi, eax
call fcn.0046ac88
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4532fd
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00450260
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x4532fa
push esi
call fcn.004502f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4536d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x453762
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x453754
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45374c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x453715
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x454690
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4546a6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x4546b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x454708
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00454690
add esp, 4
cmp eax, 0xffffffff
je 0x454703
push edi
push eax
call sub.WS2_32.dll_inet_ntoa
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00455650
add esp, 8
mov esi, eax
pop edi
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x46b63f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4728f4
call fcn.00460044
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00470da4
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46b67e
call fcn.00470da4
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46b68c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46b69a
or eax, 0xffffffff
jmp 0x46b782
mov ecx, esi
call fcn.0046b5b5
mov dword [ebp - 0x14], eax
call fcn.0046c628
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x46b6d1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46b6d1
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0046c5dc
push dword [ebp - 0x14]
call fcn.0046c10e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0046b34d
cmp eax, edi
je 0x46b744
test byte [esi + 0x24], 0x10
je 0x46b712
push 4
mov ecx, esi
pop ebx
call fcn.0046bb0e
test ah, 1
je 0x46b70a
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046e134
cmp dword [esi + 0x1c], edi
je 0x46b744
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046bb42
jmp 0x46b744
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46b758
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46b771
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x46b771
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046b5ef
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46dfe2
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 0x46e024
call fcn.00470da4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46e024
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46e01b
xor eax, eax
jmp 0x46e02c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046e032
pop edi
pop esi
pop ebx
ret 4

Function at 0x47133a
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 0x471368
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471386
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004712a0
jmp 0x471386
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471386
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004712a0
test edi, edi
mov eax, edi
jne 0x471370
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x7358f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x38]
je 0x5fa692
cmp dh, ch
btr esi, edi
mov esi, dword [eax + 0x3c]
push 0x2082ed75
add esi, eax
shld dx, ax, 0xe
pop edx
mov edx, dword [esi + 0x78]
cmc
stc
push edi
test edx, edx
mov word [esp], 0xb001
pushal
lea esp, [esp + 0x24]
je 0x5fa692
sbb cx, 0x204b
shrd cx, dx, cl
rol ch, 2
shr cx, cl
add edx, eax
bsr ecx, ebx
mov cl, al
mov ecx, dword [esi + 0x7c]
bt cx, dx
pushal
add ecx, edx
test ch, 0x31
mov byte [esp], 0x69
jmp 0x740dc5
call 0x739f14
push ds
sbb eax, 0x97df5e30
mov ah, 0x6c
mov dl, 0xa5
jbe 0x73da3e
pop esi
sub dword [edx + 0x21], ecx
sub cl, byte [0x9bbceb16]
dec edx
and dword [edx], ebp
or eax, 0x9bbceb16
xchg esp, eax
invalid
cmp eax, 0x1f4dad9b
wait
lodsd eax, dword [esi]
dec ebp
pop ds
mov esp, 0x15c5f252
push esp
and dword [esi], edi
lock and byte [edx + ebp + 0x27], 0x31
out dx, al
rcr dword [edx + 0x546414c9], 0xb2
jnp 0x73d9fb
mov dh, 0x4d
xchg ebx, eax
jno 0x73da3d
retf
push edx
mov dword [ebp - 0x10], ecx
shr cl, cl
and ecx, 0x556c888d
mov ecx, dword [ebp + 0xc]
mov byte [esp], 0x4c
bt esp, 0x17
cmp ecx, 0xffff
pushfd
push 0xe38a5848
lea esp, [esp + 0x2c]
jbe 0x73d9e8
sal di, cl
mov edi, dword [edx + 0x24]
rcl bx, cl
push edi
movsx cx, dl
shrd bx, di, cl
add edi, eax
and ch, 0xbd
rcr ch, 3
movzx bx, dl
clc
mov ebx, dword [edx + 0x20]
adc ecx, 0x8e81f357
pop ecx
cmp bp, 0xdf1c
add ebx, eax
btc ecx, esi
sar cl, cl
xor cx, dx
mov dword [ebp - 8], 0
rcr ch, 4
ror ch, 3
mov ecx, dword [edx + 0x18]
Function at 0x4082a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4082b7
pop dword [ebp - 0x24]
mov eax, 0x563debdc
sub eax, 0x55fd6925
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd3d64c12
sub dword [ebp - 0x34], 0x858406c7
mov dword [ebp - 0x30], 0xdbb0ab7b
sub dword [ebp - 0x30], 0xa97d5f36
mov dword [ebp - 0x2c], 0x9ef1eebd
add dword [ebp - 0x2c], 0xad5a5571
mov dword [ebp - 0x28], 0xd4a9c31f
add dword [ebp - 0x28], 0x2b563ce1
lea eax, [ebp - 0x34]
push eax
mov eax, 0x8e20e2e4
add eax, 0x721fbd28
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xd3af6425
add dword [ebp - 0x34], 0xa0c30531
mov dword [ebp - 0x30], 0xd3687db0
sub dword [ebp - 0x30], 0x91fc1c3b
mov dword [ebp - 0x2c], 0x5c905e79
sub dword [ebp - 0x2c], 0xf920f20d
mov dword [ebp - 0x28], 0x8ab48d53
sub dword [ebp - 0x28], 0x8ab48d53
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x38702
push 0
call eax
mov ecx, 0xece24d6a
add ecx, 0x131df916
mov ebx, eax
mov edi, 0xb23411e6
sub edi, 0xb1f053e6
add edi, dword [ebp - 0x24]
mov edx, 0xbe1ebd43
add edx, 0x51edf4ae
add dword [ebp - 4], ebx
mov esi, dword [edi]
xor dword [ebp - 4], 0x2842ec45
xor esi, edx
sub dword [ebp - 0x10], 0xbc48ba7f
mov dword [ebx], esi
add ebx, 0x5764c05a
add ebx, 0xa89b3faa
add edi, 4
loop 0x4083d4
add eax, 0x6059d827
sub eax, 0x6058cb54
mov ebx, eax
add eax, 0x5a191ce4
sub eax, 0x5a191cdf
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4051a0
Capabilities:
Initialize winsock library

Disassembly:
push esi
push str.Winsock_init._n
call fcn.00401430
push 0x590
call fcn.004067b5
push str.About_to_call_WSAStartup_n
mov esi, eax
call fcn.00401430
add esp, 0xc
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4051eb
push eax
push str.Winsock_failed_to_initialise___error_code__d._n
call fcn.00401430
push esi
call fcn.004067aa
add esp, 0xc
xor al, al
pop esi
ret
push str.Winsock_initialised_OK_n
call fcn.00401430
mov ax, word [esi]
add esp, 4
mov cl, al
xor cl, 1
jne 0x40523a
and eax, 0xffff
mov edx, eax
xor edx, 0x100
test edx, 0xffffff00
jne 0x40523a
mov ecx, eax
and eax, 0xff
shr ecx, 8
push ecx
push eax
push str.Winsock_version_is__d._d_n
call fcn.00401430
push esi
call fcn.004067aa
add esp, 0x10
mov al, 1
pop esi
ret
push str.Winsock_version_is_less_than_1.1_n
call fcn.00401430
push esi
call fcn.004067aa
add esp, 8
xor al, al
pop esi
ret
Function at 0x40a4e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fcdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004749e0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a562
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047275a
mov eax, dword [eax]
push 0x78bcb4
push eax
call fcn.00465214
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474c6b
test bl, bl
je 0x40a562
push 0x78bcb4
lea ecx, [esp + 0xc]
call fcn.00474ffb
push 0x78bcc0
lea ecx, [esp + 0xc]
call fcn.00474ffb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a59e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474c6b
jmp 0x40a669
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a622
lea edx, [esp + 0x7c]
push 0x78bcbc
push edx
call fcn.00465214
add esp, 8
test eax, eax
je 0x40a622
lea eax, [esp + 0x7c]
push 0x78bcb8
push eax
call fcn.00465214
add esp, 8
test eax, eax
je 0x40a622
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a5b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00474c6b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40ae60
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40aec2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc