joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4150f0
Capabilities:
Get mac address on windows

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
mov dword [esp + 0xc], 0
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x415114
cmp eax, 0x6f
je 0x415114
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41512a
pop esi
pop ecx
ret
lea edx, [esp + 4]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x415145
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
pop ecx
ret
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x198]
mov cl, byte [esi + 0x194]
xor edx, edx
push eax
mov dl, byte [esi + 0x196]
push ecx
xor eax, eax
push edx
mov al, byte [esi + 0x195]
xor ecx, ecx
mov cl, byte [esi + 0x199]
xor edx, edx
mov dl, byte [esi + 0x197]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str..Pipe_ad_02X_02X_02X_02X_02X_02X
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x415930
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
add esp, 0x190
ret

Function at 0x415ca0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
test esi, esi
je 0x415ce9
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x415ce2
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call sub.WS2_32.dll_setsockopt
mov edx, dword [esi + 0xc]
push edx
call sub.WS2_32.dll_closesocket
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi], 0
pop edi
pop esi
ret
Function at 0x416a20
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x416a38
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x416a51
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x416a88
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x416a88
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00416b70
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x416b11
push eax
push ebx
call fcn.00416d00
add esp, 8
push ebx
call fcn.00416d80
add esp, 4
test eax, eax
je 0x416b41
push ebx
call fcn.00416c40
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x416b59
add eax, ebp
test eax, eax
je 0x416b41
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x416b52
push ebx
call fcn.00416f30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x416b70
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x416c31
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x416bdb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x416c0f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x416c0f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x416b9e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x416c40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x416cf4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x416c97
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x416cda
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x4566b0]
je 0x416cae
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x416cc7
test al, 0x40
je 0x416cbe
mov ecx, dword [ebx + 0x20]
jmp 0x416cc5
test al, 0x80
je 0x416cda
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x416cda
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x416c64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x416fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x78]
xor esi, esi
mov edi, dword [eax]
call fcn.004177b0
call fcn.004171b0
push edi
call fcn.00417200
mov ecx, dword [esp + 0x80]
mov edi, eax
push ecx
call fcn.00417200
lea edx, [esp + 0x24]
mov dword [esp + 0x84], eax
push edx
push 5
push edi
call fcn.004176f0
mov ebx, eax
add esp, 0x14
cmp ebx, 5
jb 0x417190
push ebx
push edi
call fcn.00417490
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push edi
call fcn.00417290
mov esi, eax
add esp, 0x1c
cmp esi, ebp
je 0x41718b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x18]
mov ebp, eax
push ecx
push 0x40
push ebx
xor eax, eax
push edi
push ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41716e
lea edx, [esp + 0x10]
push edx
push 0x40
push 0x6c
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x417152
xor ebp, ebp
lea eax, [esi + 0x2c]
test ebx, ebx
jbe 0x4170b8
mov edx, edi
sub edx, eax
mov cl, byte [edx + eax]
inc ebp
mov byte [eax], cl
mov byte [esi + ebp + 0x4b], cl
inc eax
cmp ebp, ebx
jb 0x4170a9
lea eax, [ebx + edi]
lea ecx, [esi + ebx + 0x2c]
push eax
push ecx
call fcn.00417240
lea edx, [esp + 0x24]
lea eax, [esi + 0x2c]
push edx
push edi
push eax
call fcn.004176e0
mov ebp, dword [esp + 0x90]
add esp, 0x14
cmp ebp, edi
jae 0x4170e9
mov eax, edi
sub eax, ebp
jmp 0x4170ed
mov eax, ebp
sub eax, edi
cmp eax, 0x7fff0000
jbe 0x41711c
lea eax, [esi + 0xc]
push ebp
push eax
call fcn.00417240
sub eax, esi
add esp, 8
sub eax, 0xc
push eax
lea eax, [esi + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esi + 0xc]
push eax
jmp 0x41711d
push ebp
push edi
call fcn.00417240
add esp, 8
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x14]
lea eax, [esi + 0x2c]
push ebx
push eax
push ebp
mov dword [esi + 4], ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x6c
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [esi], 0
je 0x41717e
mov eax, dword [esp + 0x78]
lea edx, [esi + 0x2c]
mov dword [eax], edx
jmp 0x41718b
push 1
push esi
call fcn.004173b0
add esp, 8
xor esi, esi
call fcn.00417400
call fcn.004171f0
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x64
ret
Function at 0x417290
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x45ada4]
sub esp, 0x40
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 0x40
push edi
jae 0x41739d
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, 8
lea edi, [esp + 0x30]
lea esi, [eax + edx]
xor eax, eax
mov dword [esp + 0x2c], ebx
cmp esi, 0x80000000
rep stosd dword es:[edi], eax
jae 0x4172d2
mov esi, 1
jmp 0x4172d8
sub esi, 0x7fff0000
mov ecx, dword [esp + 0x60]
lea ebp, [ecx + edx]
cmp ebp, 0x80000000
jae 0x4172ef
add ebp, 0x7ff80000
jmp 0x4172f4
mov ebp, 0xfff80000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebp
jae 0x41739d
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esp + 0x10]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417366
cmp dword [esp + 0x20], 0x10000
jne 0x417357
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x41735b
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x41735b
lea eax, [ecx + esi - 1]
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x41736a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea esi, [ecx + eax]
cmp esi, ebp
jb 0x41730d
test ebx, ebx
je 0x41739d
xor ecx, ecx
mov eax, 0x45ac88
cmp dword [eax], 0
je 0x41738b
add eax, 4
inc ecx
cmp eax, 0x45ad88
jb 0x417371
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [0x45ada4]
mov dword [ecx*4 + 0x45ac88], ebx
inc eax
mov dword [0x45ada4], eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x417400
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [esp + 0xc], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x45adac]
xor esi, esi
test eax, eax
jbe 0x41745d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x45ada8]
mov ecx, dword [eax + esi*4]
push ecx
call ebx
mov edx, dword [0x45ada8]
mov eax, dword [edx + esi*4]
push eax
call ebp
mov eax, dword [0x45adac]
inc esi
cmp esi, eax
jb 0x41743a
pop ebp
pop ebx
mov ecx, dword [0x45ada8]
push ecx
call sub.MSVCRT.dll_free
mov edx, dword [esp + 0xc]
add esp, 4
xor eax, eax
push edx
mov dword [0x45ada8], eax
mov dword [0x45adac], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ecx
ret
Function at 0x417620
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2cc
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x4176b8
test esi, esi
je 0x4176b8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4176c7
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea ecx, [esp + 0x10]
push ecx
push esi
xor edi, edi
mov dword [esp + 0x18], 0x10001
call ebp
test eax, eax
je 0x4176b8
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x2e4]
cmp eax, ecx
jb 0x4176b8
mov edx, dword [esp + 0x2e8]
add ecx, edx
cmp eax, ecx
jae 0x4176b8
cmp edi, 3
push esi
jge 0x4176c5
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [esp + 0x10]
inc edi
push eax
push esi
call ebp
test eax, eax
jne 0x417675
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2cc
ret
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2cc
ret

Function at 0x417e10
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0
mov dword [esp + 0xc], 0
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x417e34
cmp eax, 0x6f
je 0x417e34
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x417e4a
pop ebx
pop ecx
ret
lea edx, [esp + 4]
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x417e65
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebx
pop ecx
ret
push edi
mov edx, ebx
lea edi, [edx + 0x1b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x417e8a
lea edi, [edx + 0x1d8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x417ea0
mov edx, dword [edx]
test edx, edx
jne 0x417e68
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop ebx
pop ecx
ret
lea edi, [edx + 0x1b0]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x100180c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x1006430], 1
push ebx
push esi
push edi
jne 0x100183b
or dword [0x1006430], 1
call fcn.010017ab
mov dword [0x100642c], eax
push 4
pop eax
call fcn.01004750
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100185d
xor eax, eax
jmp 0x1001919
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1006380]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1001856
cmp eax, 1
je 0x10018fa
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001856
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x10018a4
test word [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x10018d5
xor eax, eax
inc eax
jmp 0x1001919
cmp edi, eax
jb 0x1001856
cmp eax, esi
jae 0x10018e4
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1006380]
jmp 0x10018fd
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004723
leave
ret

Function at 0x1001f35
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x1001fc0
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1001fbb
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x1001fa1
movzx eax, word [edi]
test ax, ax
je 0x1001fc4
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x1001fa7
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x1001fa7
jmp 0x1001f9c
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x1001fa1
cmp esi, dword [ebp - 4]
jb 0x1001f8e
cmp word [esi], 0
jne 0x1001f61
cmp word [edi], 0
je 0x1001fc4
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1001f59
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x1001fbd
Function at 0x10027b8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01001b66
mov edi, eax
cmp edi, esi
je 0x100281b
lea ecx, [ebp - 0x208]
call fcn.01001af3
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004723
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002839
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.010027b8
cmp eax, esi
jne 0x1002881
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x1002823
lea ecx, [ebp - 0x208]
call fcn.01001af3
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01001af3
mov eax, esi
jmp 0x100280a

Function at 0x1002f5b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x1002f7f
xor al, al
jmp 0x1002fa1
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1002f43
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x8c], eax
mov al, cl
pop edi
pop esi
leave
ret
Function at 0x1003ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0xc], ebx
jne 0x1003ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1003ee6
mov esi, eax
jmp 0x1003fe6
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003edf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x1003f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003fdb
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003fdb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1003f05
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x1003f8c
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x1003f64
push edi
call fcn.01001930
test al, al
je 0x1003f64
mov eax, edi
call fcn.01004810
mov edi, esp
jmp 0x1003f6f
push edi
lea ecx, [ebp - 8]
call fcn.01002faa
mov edi, eax
test edi, edi
jne 0x1003f7a
mov esi, 0x8007000e
jmp 0x1003fdd
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
jne 0x1003f94
xor eax, eax
jmp 0x1003fcf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x1003fbe
push ebx
call fcn.01001930
test al, al
je 0x1003fbe
mov eax, ebx
call fcn.01004810
mov eax, esp
jmp 0x1003fc7
push ebx
lea ecx, [ebp - 8]
call fcn.01002faa
push esi
push edi
push eax
call fcn.01001a02
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push eax
call fcn.01003ccc
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 8]
call fcn.0100270c
mov eax, esi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004723
leave
ret 0x10
Function at 0x10041c4
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push dword [ebp + 8]
mov ebx, 0x1006398
push 0x1006018
mov ecx, ebx
call fcn.0100276a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1006420], esi
mov dword [0x1006424], esi
mov esi, 0x10015a4
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [0x100641c], eax
lea eax, [ebp - 0xc]
movsw word es:[edi], word [esi]
xor esi, esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jmp 0x1004255
push 0x100158c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004284
push 0x1001578
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004299
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.010026be
mov edi, eax
cmp edi, esi
jne 0x1004230
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ecx, ebx
call fcn.01002f5b
push 1
push 4
push ebx
call fcn.01002475
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x10042bc
push esi
push esi
push 0x64
push ebx
call fcn.01004075
push esi
push 1
push ebx
call fcn.01003997
jmp 0x10042ad
push esi
push 1
push 0x64
push ebx
call fcn.01004075
push esi
push 1
push ebx
call fcn.010038e5
mov dword [ebp - 0x10], eax
jmp 0x10042da
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x10042b2
push ebx
call fcn.010024ca
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.01002519
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004723
leave
ret 0x10