joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f7b9
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0100f387
test al, al
je 0x100f7d7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100f817
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x100f80d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100dacc
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x100f8a3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0100f387
test al, al
je 0x100f8d1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100f9c5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x100f90b
push dword [ebp + 0xc]
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0100dacc
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x100f97d
cmp eax, 2
je 0x100f97d
cmp eax, 7
jne 0x100f974
mov ebx, dword [ebp + 0x18]
xor eax, eax
test ebx, ebx
jne 0x100f92a
xor ecx, ecx
jmp 0x100f96e
push ebx
call fcn.0100db5b
cmp eax, 0xffffffff
push ebx
jne 0x100f93b
call edi
inc eax
jmp 0x100f940
call fcn.0100db5b
lea edi, [eax + eax]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov dword [ebp + 0x18], esp
push ebx
call fcn.0100db5b
push eax
push edi
push ebx
push dword [ebp + 0x18]
call fcn.0100dacc
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
push eax
push ecx
push 7
jmp 0x100f9b8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
jmp 0x100f9b8
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 0x18], ecx
je 0x100f9b3
push dword [ebp + 0x18]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0x18]
push ebx
call fcn.0100dacc
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, ebx
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x100f9d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0100f387
test al, al
je 0x100fa04
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x100fb52
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x100fa0f
xor esi, esi
jmp 0x100fa40
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100dacc
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x100fb52
cmp dword [ebp + 0x18], ebx
mov ecx, dword [ebp - 4]
jne 0x100fa9e
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x100fa8c
cmp ecx, ebx
jbe 0x100fa87
cmp ecx, 2
jbe 0x100fa80
cmp ecx, 7
jne 0x100fa87
mov edx, dword [ebp - 8]
add edx, edx
jmp 0x100fa8a
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x100fb4f
mov dword [eax], ecx
jmp 0x100fb4f
cmp ecx, ebx
jbe 0x100fab3
cmp ecx, 2
jbe 0x100faac
cmp ecx, 7
jne 0x100fab3
mov eax, dword [ebp - 8]
add eax, eax
jmp 0x100fab6
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x1c]
cmp dword [ebx], eax
jae 0x100fad1
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100fac8
mov dword [eax], ecx
mov dword [ebp + 0xc], 0xea
jmp 0x100fb4f
test ecx, ecx
jbe 0x100fb3c
cmp ecx, 2
jbe 0x100fadf
cmp ecx, 7
jne 0x100fb3c
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov dword [ebp + 0x1c], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x100fb4f
cmp dword [ebp - 4], eax
jbe 0x100fb4f
cmp dword [ebp - 4], 2
jbe 0x100fb19
cmp dword [ebp - 4], 7
jne 0x100fb4f
push dword [ebp - 8]
push dword [ebx]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.0100daf2
shl eax, 1
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100fb4f
mov ecx, dword [ebp - 4]
jmp 0x100fa97
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x100fc05
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.0100f387
test al, al
je 0x100fc25
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x100fc6e
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
shl eax, 1
mov dword [ebp - 4], eax
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov edi, esp
test edi, edi
jne 0x100fc4c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100fc6e
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ebx, eax
test ebx, ebx
je 0x100fc6c
push 0xffffffffffffffff
push dword [esi]
push edi
push dword [ebp + 8]
call fcn.0100daf2
mov dword [esi], eax
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1010191
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x101020d
cmp word [ebx + 8], 2
jne 0x10101e9
cmp word [ebx + 0xa], 4
jne 0x10101e9
mov esi, dword [ebx + 0xc]
jmp 0x10101e3
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01010124
test eax, eax
mov dword [edi], eax
je 0x1010208
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10101c7
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x1010233
push 8
pop eax
jmp 0x1010233
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x1010233
dec ecx
je 0x101022e
dec ecx
je 0x1010227
dec ecx
jmp 0x1010233
mov eax, 0x2afb
jmp 0x1010233
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x1010889
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x101b35c], 0
mov eax, dword [0x101a0bc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x10023a0
mov dword [ebp - 0x22c], 0x1010436
mov dword [ebp - 0x228], 0x1002394
mov dword [ebp - 0x224], 0x10106b8
mov dword [ebp - 0x220], 0x1002384
mov dword [ebp - 0x21c], fcn.010103f0
jne 0x1010a0a
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1010a00
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1010901
push edi
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x101091c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, 0x100237c
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x101095f
push 0x10023a0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x101095b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x10109b6
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1010961
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x101097b
mov esi, 0x1002374
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10109fd
push 0x10023a0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10109b2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x10109fd
xor edi, edi
push dword [ebp + edi*8 - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x10109d9
inc edi
cmp edi, 3
jl 0x10109b8
jmp 0x10109e2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x10109fd
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x101a21c], ecx
add eax, 8
cmp eax, 0x18
jl 0x10109e8
pop esi
pop ebx
pop edi
mov dword [0x101b35c], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x101a21c]
call fcn.01007613
leave
ret 4
Function at 0x101182e
Capabilities:
Obtain transmitpackets callback function via wsaioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x101a0bc]
push ebx
push 0x101b374
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
inc eax
xor ebx, ebx
cmp dword [0x101b4ac], ebx
mov dword [0x101b4d8], eax
je 0x10119a4
push esi
push edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push 0x1002468
push 0x80000002
call fcn.0100f825
test eax, eax
push 4
mov esi, 0xc8000006
pop edi
jne 0x10118c7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x100243c
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], edi
call fcn.0100f9d4
test eax, eax
jne 0x10118b9
cmp dword [ebp - 0x38], edi
jne 0x10118b9
cmp dword [ebp - 0x28], ebx
setne al
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
je 0x10118f7
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x101b4d4
push 0x10
push 0x101a26c
push esi
push dword [ebp + 8]
call dword [0x101b4ac]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x10118fd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
jmp 0x10118fd
mov dword [0x101b4d4], ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x101b4cc
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], 0xb5367df1
mov word [ebp - 0x10], 0xcbac
mov word [ebp - 0xe], 0x11cf
mov byte [ebp - 0xc], 0x95
mov byte [ebp - 0xb], 0xca
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], 0x80
mov byte [ebp - 8], 0x5f
mov byte [ebp - 7], 0x48
mov byte [ebp - 6], 0xa1
mov byte [ebp - 5], 0x92
call dword [0x101b4ac]
push ebx
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x101b4d0
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xb5367df2
mov word [ebp - 0x20], 0xcbac
mov word [ebp - 0x1e], 0x11cf
mov byte [ebp - 0x1c], 0x95
mov byte [ebp - 0x1b], 0xca
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], 0x80
mov byte [ebp - 0x18], 0x5f
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0xa1
mov byte [ebp - 0x15], 0x92
call dword [0x101b4ac]
pop edi
mov dword [0x101b370], ebx
pop esi
push 0x101b374
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01007613
leave
ret 4
Function at 0x1011c4b
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101a0bc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dx, word [eax]
cmp dx, 2
push esi
jne 0x1011c83
mov eax, dword [eax + 4]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 9
push 0
push dword [ecx + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x1011ca8
cmp dx, 0x17
jne 0x1011ccf
push edi
lea esi, [eax + 8]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push 0x10
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 9
movsd dword es:[edi], dword [esi]
push 0x29
push dword [ecx + 0xc]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop edi
cmp eax, 0xffffffff
jne 0x1011ccb
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
test eax, eax
jg 0x1011cbd
call esi
jmp 0x1011cd4
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1011cd4
xor eax, eax
jmp 0x1011cd4
mov eax, 0x80004001
mov ecx, dword [ebp - 4]
pop esi
call fcn.01007613
leave
ret 4
Function at 0x1012a07
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push dword [esi + 0x64]
mov edi, ecx
push dword [esi + 0x60]
push dword [edi + 0xc]
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1012a8b
xor ebx, ebx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebp - 4], eax
jne 0x1012a8b
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [0x101b334]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
lea ebx, [esi + 8]
push ebx
push 0x401
push dword [edi + 0xc]
push eax
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
jge 0x1012aa3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
push ebx
push 0
push 0
and edi, 0xffff
push edi
call dword [eax + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x1012aa3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
add esi, 8
push esi
push 0
push ebx
push dword [ebp - 4]
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1017749
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0xa
lea ecx, [esi + 0x24]
call fcn.01017585
test eax, eax
jge 0x1017767
mov eax, 0x8007000e
jmp 0x10177d0
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x1017799
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101778b
call esi
jmp 0x10177cf
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10177cf
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1017731
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x10177bd
mov eax, 0x8007000e
jmp 0x10177cf
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x20], edi
je 0x10177b6
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10177d8
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [esi + 4]
push 0x20
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esi], 1
xor edi, edi
mov ebx, edx
push 0x154
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1017833
mov ecx, eax
call fcn.010173f4
jmp 0x1017835
xor eax, eax
test eax, eax
mov dword [ebx], eax
je 0x1017864
mov ecx, eax
call fcn.01017749
test eax, eax
jl 0x1017850
inc edi
add ebx, 4
cmp edi, dword [esi]
jl 0x1017812
jmp 0x1017864
lea edi, [esi + edi*4 + 4]
mov ecx, dword [edi]
test ecx, ecx
je 0x1017861
push 1
call fcn.010175a0
and dword [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7469a8]
xor edx, edx
cmp eax, edx
jne 0x424626
xor eax, eax
mov byte [eax + 0x7468a8], al
inc eax
cmp eax, 0x100
jl 0x42460e
mov dword [0x7469a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7468a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4246b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42468a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x424658
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x424783
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42476a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b230
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42b3c8
cmp ebp, ebx
jle 0x42b3c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42b28e
dec eax
or eax, 0xfffffff8
inc eax
je 0x42b295
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x42b2a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42b2ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00464e2d
add esp, 4
cmp eax, ebx
je 0x42b2cc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00464e2d
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42b3be
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42b3a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42b391
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42b386
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42b394
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42b394
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42b330
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42b321
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x432c70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x472588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004337f0
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x474440]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x4744bc]
test eax, eax
je 0x432d19
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00432900
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x474484]
push edi
lea ecx, [esp + 0x4c]
call fcn.0046ba8b
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00441fe0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x474084]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x4744ec]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x474474]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.0046bafd
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14