joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.00403d2a
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402aa7
push ebx
push str.__s__Could_not_open_file_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x402aca
push eax
call fcn.00403b42
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.00403b9c
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x402b03
push ebx
push str.__s__Could_not_alloc_file_buffer_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402b28
push ebx
push str.__s__Could_not_read_file_n
jmp 0x402ae3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40384a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414054]
jne 0x403854
repz ret
jmp fcn.0040426f
Function at 0x408deb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406fe9
and dword [ebp - 0x14], 0
cmp dword [0x7c701c], 0
mov dword [ebp - 0x18], eax
jne 0x408e9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408f46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408f46
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7c701c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7c7020], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x7c7024], eax
call edi
push eax
call esi
mov dword [0x7c702c], eax
test eax, eax
je 0x408e9e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x7c7028], eax
mov eax, dword [0x7c7028]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408ef7
cmp dword [0x7c702c], ecx
je 0x408ef7
push eax
call esi
push dword [0x7c702c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408ef7
test ebx, ebx
je 0x408ef7
call edi
test eax, eax
je 0x408eee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408eee
test byte [ebp - 8], 1
jne 0x408ef7
or dword [ebp + 0x10], 0x200000
jmp 0x408f2a
mov eax, dword [0x7c7020]
cmp eax, dword [ebp - 0x18]
je 0x408f2a
push eax
call esi
test eax, eax
je 0x408f2a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408f2a
mov eax, dword [0x7c7024]
cmp eax, dword [ebp - 0x18]
je 0x408f2a
push eax
call esi
test eax, eax
je 0x408f2a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7c701c]
call esi
test eax, eax
je 0x408f46
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408f48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040384a
leave
ret
Function at 0x100980be
Capabilities:
Encode data using xor

Disassembly:
push 0x203
call fcn.10098548
jb 0x10098376
xchg esi, eax
mov eax, dword [esp + 4]
bswap eax
mov edx, eax
and eax, 0xf0f0f0f
xor edx, eax
rol eax, 8
or eax, edx
mov edx, eax
and eax, 0x33333333
xor edx, eax
rol eax, 4
or eax, edx
mov edx, eax
and eax, 0x55555555
xor edx, eax
rol eax, 2
or eax, edx
ror eax, 7
push eax
mov eax, esi
bswap eax
mov edx, eax
and eax, 0xf0f0f0f
xor edx, eax
rol eax, 8
or eax, edx
mov edx, eax
and eax, 0x33333333
xor edx, eax
rol eax, 4
or eax, edx
mov edx, eax
and eax, 0x55555555
xor edx, eax
rol eax, 2
or eax, edx
ror eax, 7
pop ebx
push esi
add eax, ebx
xchg ecx, eax
lea esi, [ebp + 0x6ed]
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x3576
dec edx
shr edx, 1
mov ch, cl
dec cx
and cl, 0xf
mov ax, word [esi]
xor ax, bx
add ax, cx
ror ax, cl
xor ax, cx
mov word [esi], ax
inc esi
inc esi
dec edx
jne 0x1009814c
mov ecx, 0x3576
dec ecx
shr ecx, 2
lea esi, [ebp + 0x6ed]
mov edi, esi
lodsw ax, word [esi]
mov bx, ax
lodsw ax, word [esi]
stosw word es:[edi], ax
mov ax, bx
stosw word es:[edi], ax
loop 0x1009817b
lea esi, [ebp + 0x6ed]
pop ecx
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x3576
dec edx
mov ch, cl
dec cx
and cl, 0xf
mov al, byte [esi]
xor al, bl
add al, ch
ror al, cl
xor al, cl
mov byte [esi], al
inc ebx
inc esi
dec edx
jne 0x1009819d
lea esi, [ebp + 0x6ed]
mov ecx, dword [esp + 4]
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x3576
dec edx
shr edx, 1
mov ch, cl
dec cx
and cl, 0xf
mov ax, word [esi]
xor ax, bx
add ax, cx
ror ax, cl
xor ax, cx
mov word [esi], ax
inc esi
inc esi
dec edx
jne 0x100981cc
clc
xor ecx, ecx
pop ebx
pop eax
call fcn.100986ed

Function at 0x100983b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x3c]
add edi, eax
mov ecx, dword [edi + 0x7c]
jecxz 0x1009840b
mov ebx, eax
add ebx, dword [edi + 0x78]
mov edx, eax
add edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov edi, edx
mov ebp, eax
xor eax, eax
push eax
mov esi, ebp
add esi, dword [edx + eax*4]
push esi
mov edi, esi
push eax
push ecx
mov al, 0
xor ecx, ecx
dec ecx
repne scasb al, byte es:[edi]
pop ecx
pop eax
xchg edi, esi
sub esi, dword [esp]
mov edi, esi
pop esi
call fcn.1009807b
cmp eax, dword [esp + 0x18]
pop eax
je 0x1009841c
inc eax
loop 0x100983e0
xor eax, eax
pop dword fs:[0]
add esp, 4
pop ebp
clc
ret 8
mov edx, ebp
add edx, dword [ebx + 0x24]
movzx eax, word [edx + eax*2]
cmp eax, dword [ebx + 0x14]
jae 0x1009840b
mov edx, ebp
add edx, dword [ebx + 0x1c]
add ebp, dword [edx + eax*4]
xchg ebp, eax
jmp 0x1009840d
Function at 0x10098435
Capabilities:
Encode data using xor

Disassembly:
push 0x4402890e
xor eax, eax
push eax
call fcn.1009837c
jb 0x10098545
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x10098545
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x10098479
xor ax, 0xa001
loop 0x1009846f
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x10098465
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x6dd
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x10098499
xor edx, edx
mov ecx, 0x6dd
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x100984c5
xor ax, 0xa097
test dh, 0x80
je 0x100984cf
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x100984bc
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.1009837c
jb 0x10098545
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.100982a8
jb 0x10098545
push ecx
mov ecx, dword [ebp + 0x6dd]
add ecx, ebp
lea ebx, [ebp + 0x37c]
sub ebx, dword [ebp + 0x6e1]
mov dword [ecx + 0x18], ebx
pop ecx
inc ecx
ret
xor ecx, ecx
ret

Function at 0x100985dd
Capabilities:
Encode data using xor

Disassembly:
pop ecx
push 0x4402890e
xor eax, eax
push eax
call fcn.1009837c
jb 0x10098545
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x100986d5
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x10098622
xor ax, 0xa001
loop 0x10098618
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x1009860e
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x6dd
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x10098642
xor edx, edx
mov ecx, 0x6dd
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x1009866e
xor ax, 0xa097
test dh, 0x80
je 0x10098678
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x10098665
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.1009837c
jb 0x100986d5
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.100980be
jb 0x100986d5
inc ecx
ret
xor ecx, ecx
jmp 0x100985d1
Function at 0x40d5b8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x4ad460], esi
jne 0x40d6ab
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d78b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d78b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad460], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad464], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad468], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad470], eax
test eax, eax
je 0x40d6a8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad46c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push 4
pop eax
jmp 0x40d78d
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push dword [0x4ad460]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ca
mov eax, dword [0x4ad46c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d743
cmp dword [0x4ad470], edi
je 0x40d743
push eax
call ebx
push dword [0x4ad470]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d743
test eax, eax
je 0x40d743
call ecx
test eax, eax
je 0x40d738
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 0x40d738
test byte [ebp - 8], 1
jne 0x40d743
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d773
mov eax, dword [0x4ad464]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
call eax
mov esi, eax
test esi, esi
je 0x40d770
mov eax, dword [0x4ad468]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad460]
call ebx
test eax, eax
je 0x40d78b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d78d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret
Function at 0x6d2638a0
Capabilities:
Hide graphical window

Disassembly:
push 0x2c
mov eax, 0x6d270f43
call fcn.6d26fd21
mov ebx, ecx
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.6d265d86
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 4
push 0xffffffffffffffec
push eax
mov dword [ebp + 0xc], eax
call esi
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x2000000
push eax
push 0xfffffffffffffff0
push dword [ebp + 8]
call esi
mov eax, dword [0x6d27b86c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [ebx + 0x134]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x64]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.6d26537b
mov dword [ebp - 0x38], vtable.SmartJObjectRefImpl_class_SmartJLocalRef_.0
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push str._I_Lsun_plugin_viewer_frame_IExplorerEmbeddedFrame_
push str.createFrame
push eax
mov byte [ebp - 4], 1
call fcn.6d2656fc
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.6d26537b
mov dword [ebp - 0x2c], vtable.SmartJObjectRefImpl_class_SmartJLocalRef_.0
mov eax, dword [edi + 8]
sub eax, dword [edi]
push 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x6d263992
push dword [ebp - 0x28]
mov ecx, eax
push esi
call fcn.6d265f24
mov ecx, eax
jmp 0x6d263994
xor ecx, ecx
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
mov dword [ebx + 0x130], ecx
call fcn.6d26613a
mov ecx, dword [ebx + 0x130]
push 1
call fcn.6d2660c8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x6d2639d6
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetParent]
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.6d26455f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.6d26455f
mov eax, dword [ebp + 0xc]
call fcn.6d26fdc6
ret 8
Function at 0x6d26537b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x6d26538a
pop dword [ebp - 0x4c]
mov eax, 0x6d26538a
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x37b87
push 0
mov eax, 0x6654d8b4
sub eax, 0xf92db7f4
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x84101b8f
sub ecx, 0x840fd3ad
mov ebx, eax
mov edx, 0x68c74c66
add edx, 0x460d79a
add edx, dword [ebp - 0x4c]
mov edi, 0xf94f30a4
add edi, 0x9710b0fa
add dword [ebp - 0x34], eax
mov esi, dword [edx]
xor dword [ebp - 0x20], ecx
sub esi, edi
add dword [ebp - 8], 0x1b1cd1d2
mov dword [ebx], esi
sub dword [ebp - 0xc], 0x305712d4
add ebx, 0xdcc9f20e
add ebx, 0x23360df6
add edx, 0x3f17553e
sub edx, 0x3f17553a
loop 0x6d2653e4
add eax, 0xb5fe4a9e
add eax, 0x4a02c7bd
xor ebx, ebx
add ebx, eax
add eax, 0x1b00156b
sub eax, 0x1b001566
mov ecx, 0x6d260000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x6d266e23
Capabilities:
Set registry value

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

Function at 0x6d266e71
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d266e82
push 0xd
pop eax
jmp 0x6d266eac
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d266e85
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d267366
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d27b7ac]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d26537b
mov ebx, eax
cmp ebx, esi
je 0x6d2673d9
lea ecx, [ebp - 0x74]
call fcn.6d26142d
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d26fbc0
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d2673f1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d267366
cmp eax, esi
jne 0x6d267423
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x6d2673e1
lea ecx, [ebp - 0x74]
call fcn.6d26142d
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d266d4c
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d26142d
mov eax, esi
jmp 0x6d2673bf
Function at 0x10001000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
nop
nop
nop
nop
push 0x100000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x1000102d
push 1
pop eax
jmp 0x10001191
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
or edi, 0xffffffff
and dword [ebp - 0x10], 0
mov dword [0x10005270], esi
jmp 0x1000104b
mov edi, dword [ebp - 8]
nop
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
rdtsc
and eax, 0xffff
add eax, 0xfab
mov dword [ebp - 4], eax
push 0x100000
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x10005274]
add esp, 0xc
test eax, eax
je 0x1000107f
mov dword [esi + 0x2c], eax
push 0x8d4
push dword [ebp + 8]
push esi
call fcn.100015d1
add esp, 0xc
lea eax, [edi + 1]
cdq
push 8
pop ecx
idiv ecx
push 2
pop ecx
mov eax, edx
mov dword [ebp - 8], edx
cdq
sub eax, edx
mov edi, eax
lea eax, [esi + 0x800]
sar edi, 1
shl edi, 8
add edi, eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
cdq
idiv ecx
test edx, edx
jne 0x100010c7
mov eax, dword [edi + 4]
jmp 0x100010ca
mov eax, dword [edi + 8]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10001048
nop
mov eax, dword [esi + 0x109c]
imul eax, eax, 0x3e8
add dword [ebp - 4], eax
nop
cmp dword [ebp - 0x10], 0
je 0x100010f7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100010fe
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
add edi, 0x10
mov dword [esi + 0x400], eax
mov eax, dword [ebp - 0xc]
push edi
mov dword [esi + 0x404], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 0x408]
push edi
push eax
call sub.MSVCRT.dll_memcpy
push esi
call fcn.10001d4b
add esp, 0x10
xor eax, eax
push eax
push eax
push esi
push 0x10001194
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x20]
call ebx
push dword [esi + 0x24]
call ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x10001048
cmp eax, 2
jne 0x10001048
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
nop
nop
nop
nop
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x10001e58
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor edx, edx
push esi
cmp dword [ebp + 0xc], edx
jge 0x10001e6f
nop
xor eax, eax
pop esi
leave
ret
mov esi, 0x100
cmp dword [ebp + 0xc], esi
jle 0x10001e7c
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0x10], edx
je 0x10001e6a
cmp dword [ebp + 0x14], 1
jl 0x10001e6a
push ebx
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x10001ea1
mov byte [ebp - 1], dl
mov byte [ebp - 2], dl
xor edi, edi
movzx ecx, byte [ebp - 1]
mov ebx, dword [ebp + 8]
mov dl, byte [ebp + edi - 0x104]
lea eax, [ebp + edi - 0x104]
mov cl, byte [ecx + ebx]
add cl, dl
add byte [ebp - 2], cl
nop
movzx ecx, byte [ebp - 2]
mov bl, byte [ebp + ecx - 0x104]
lea ecx, [ebp + ecx - 0x104]
mov byte [eax], bl
nop
nop
mov byte [ecx], dl
nop
mov al, byte [ebp - 1]
inc al
movzx eax, al
cdq
idiv dword [ebp + 0xc]
inc edi
cmp edi, esi
mov byte [ebp - 1], dl
jl 0x10001eb5
xor eax, eax
xor edi, edi
cmp dword [ebp + 0x14], eax
mov byte [ebp + 0xf], al
mov byte [ebp + 0xb], al
jle 0x10001f5f
inc byte [ebp + 0xf]
movzx eax, byte [ebp + 0xf]
mov dl, byte [ebp + eax - 0x104]
add byte [ebp + 0xb], dl
lea eax, [ebp + eax - 0x104]
nop
nop
nop
movzx ecx, byte [ebp + 0xb]
mov bl, byte [ebp + ecx - 0x104]
lea ecx, [ebp + ecx - 0x104]
mov byte [eax], bl
nop
nop
mov byte [ecx], dl
mov al, byte [eax]
mov ecx, dword [ebp + 0x10]
add eax, edx
and eax, 0xff
add ecx, edi
mov al, byte [ebp + eax - 0x104]
xor byte [ecx], al
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x10001f0f
push 1
pop eax
pop edi
pop ebx
jmp 0x10001e6c
Function at 0x100021ab
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push ebx
push esi
lea eax, [ebp - 0x2b8]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
push 0x1f
lea edi, [ebp - 0x127]
pop ecx
mov byte [ebp - 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x80
mov dword [ebp - 0x24], ebx
push esi
mov dword [ebp - 0x20], 1
push dword [ebp + 8]
mov dword [ebp - 0x1c], 6
stosb byte es:[edi], al
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0xa7]
mov byte [ebp - 0xa8], bl
push 0x1f
mov dword [ebp - 4], ebx
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10005280]
cmp eax, ebx
jne 0x10002243
push ebx
call fcn.100022de
mov dword [0x10005280], eax
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x128]
push ebx
push ecx
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp edi, ebx
jne 0x10002269
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x1000226d
xor eax, eax
jmp 0x100022d9
mov dword [ebp - 8], esi
mov ecx, dword [eax + 4]
cmp ecx, 2
jne 0x10002288
mov eax, dword [eax + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 0x40
jmp 0x100022ac
cmp ecx, 0x17
jne 0x100022bc
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push ebx
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
push esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_mbstowcs]
mov eax, dword [ebp - 4]
add esp, 0xc
mov esi, eax
mov eax, dword [0x1000527c]
cmp eax, ebx
jne 0x100022d3
push 2
call fcn.100022de
mov dword [0x1000527c], eax
push esi
call eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret