joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401170
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4fb004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401351
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401220
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
push 0x4071e4
lea eax, [ebp - 0x21c]
push eax
call edi
test eax, eax
je 0x40120e
push str.cstrike.exe
lea eax, [ebp - 0x21c]
push eax
call edi
test eax, eax
je 0x40120e
lea eax, [ebp - 0x240]
push eax
push esi
call ebx
test eax, eax
jne 0x4011d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401351
push dword [ebp - 0x238]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401351
mov esi, dword [0x407264]
push 0x40
push 0x3000
mov dword [ebp - 0x248], esi
push dword [esi + 0x407278]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x40727c]
mov dword [ebp - 0x244], eax
push 0x407228
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x40722e]
jae 0x4012b3
lea esi, [esi + 0x407334]
nop
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x407228
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x248]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 0x40722e]
cmp edi, eax
jl 0x401280
push 0x20
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [ebp - 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlZeroMemory
push 0x40721c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
push 0
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.00401160
lea esi, [edi + 0x10]
sub eax, section..text
push eax
push section..text
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e8b
mov esp, ebp
pop ebp
ret 8
Function at 0x401600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov ebx, ecx
xor esi, esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004018f0
mov ecx, dword [ebp - 0x14]
mov edi, dword [eax + 0x10]
cmp ecx, 0x10
jb 0x401650
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401646
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401706
push ecx
push edx
call fcn.00405ec9
add esp, 8
cmp esi, edi
jae 0x40170c
push ebx
lea ecx, [ebp - 0x28]
call fcn.004018f0
cmp dword [eax + 0x14], 0x10
jb 0x401671
mov eax, dword [eax]
mov cl, byte [esi + eax]
movsx edi, cl
jmp 0x401675
movsx edi, byte [eax + esi]
mov ax, word [0x4f9868]
xor ecx, ecx
mov word [ebp - 4], ax
mov al, byte [0x4f986a]
mov byte [ebp - 2], al
nop dword [eax]
mov eax, 0x5397829d
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x31
sub dl, al
add dl, 0x35
xor byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 3
jl 0x401690
lea eax, [ebp - 4]
push edi
push eax
call fcn.004013b0
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 0x10
jb 0x4016ee
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401706
push ecx
push edx
call fcn.00405ec9
add esp, 8
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.00401a00
inc esi
jmp 0x401610
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, edx
push ecx
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ax, word [0x4f98f0]
xor ebx, ebx
mov word [ebp - 4], ax
mov al, byte [0x4f98f2]
mov byte [ebp - 2], al
nop
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [ebp + ebx - 4], cl
inc ebx
cmp ebx, 3
jl 0x401b90
lea eax, [ebp - 4]
push esi
push eax
call fcn.004013b0
mov esi, dword [ebp + 0x10]
add esp, 8
cmp esi, 0x4f98ec
je 0x401c29
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ax, word [0x4f98f0]
xor ebx, ebx
mov word [ebp + 0x10], ax
mov al, byte [0x4f98f2]
mov byte [ebp + 0x12], al
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [ebp + ebx + 0x10], cl
inc ebx
cmp ebx, 3
jl 0x401bf3
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.004013b0
add esp, 8
mov esi, dword [ebp + 8]
test esi, esi
jle 0x401c42
push 0x4f9864
call fcn.004013b0
add esp, 4
sub esi, 1
jne 0x401c30
push 7
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406728
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406767
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406767
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406767
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406767
cmp dword [ecx + 0x74], 0xe
jbe 0x406767
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x71d280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x251000]
mov dword [edi + 0x2a7120], 0x14bca500
push edi
jmp 0x71d2aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x71d2b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71d2a0
mov eax, 1
add ebx, ebx
jne 0x71d2c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x71d2d4
jne 0x71d2f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71d2f3
dec eax
add ebx, ebx
jne 0x71d2e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x71d2b8
add ebx, ebx
jne 0x71d2ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x71d345
xor ecx, ecx
sub eax, 3
jb 0x71d30b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x71d37a
sar eax, 1
mov ebp, eax
jmp 0x71d316
add ebx, ebx
jne 0x71d316
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71d2e4
inc ecx
add ebx, ebx
jne 0x71d324
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71d2e4
add ebx, ebx
jne 0x71d331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x71d326
jne 0x71d342
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x71d326
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x71d364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x71d356
jmp 0x71d2a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x71d364
add edi, ecx
jmp 0x71d2a6
pop esi
mov edi, esi
mov ecx, 0xd5ec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x71d382
cmp byte [edi], 0xd2
jne 0x71d382
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x71d387
lea edi, [esi + 0x319000]
mov eax, dword [edi]
or eax, eax
je 0x71d3ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x327344]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3274c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x71d3b4
mov ecx, edi
jns 0x71d3e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3274c4]
or eax, eax
je 0x71d3f9
mov dword [ebx], eax
add ebx, 4
jmp 0x71d3d1
call dword [esi + 0x3274d4]
mov ebp, dword [esi + 0x3274c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x71d433
sub esp, 0xffffff80
jmp 0x402154
Function at 0x4023d0
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Set_Video_Mode_n
call edi
mov eax, dword [0x7984f4]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x402444
push 0
push str.Failed:__Got_into_gDirectDraw_Check_n
call fcn.0045b830
add esp, 8
call fcn.0045b830
push 0
push 0x7984f4
push 0
call sub.DDRAW.dll_DirectDrawCreate
push 0
push eax
call fcn.004027a0
mov eax, dword [0x7984f4]
add esp, 8
cmp esi, 0x140
mov ecx, dword [eax]
jne 0x40242c
push 0x51
jmp 0x40242e
push 0x11
mov edx, dword [0x7984ec]
push edx
push eax
call dword [ecx + 0x50]
push 0
push eax
call fcn.004027a0
add esp, 8
mov eax, dword [0x7984fc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [0x7984f8]
push 0
push 0
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x7984fc], 0
push ecx
push esi
push eax
call dword [edx + 0x54]
test eax, eax
je 0x40248b
push 0
push str.Failed:__Could_not_set_video_mode._n
call fcn.0045b830
add esp, 8
call fcn.0045b830
push str.Set_Display_Mode_n
call edi
mov eax, dword [0x7984f8]
push 0
push 0x4f0d80
push 0x4f0680
mov edx, dword [eax]
push 0x44
push eax
call dword [edx + 0x14]
push 0
push eax
call fcn.004027a0
add esp, 8
mov dword [0x4f0d88], 0
push str.All_Done_n
call edi
pop edi
mov eax, 1
pop esi
ret

Function at 0x4024d0
Capabilities:
Print debug messages

Disassembly:
push str.Reset_Video_Mode_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push str.Resetting...._n
call fcn.0045b830
add esp, 8
call fcn.0045b830
mov dword [0x7984a0], 1
jmp fcn.004a4030
Function at 0x4031d0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x4f0eac]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x403209
mov esi, dword [0x4d92c0]
cmp esi, 0xffffffff
je 0x40320f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [0x4f0ea4]
mov ecx, dword [0x4f0ea8]
mov eax, dword [0x4f0eb0]
lea edx, [edi + edi*4]
shl edx, 4
add edx, ecx
test eax, eax
lea esi, [edx + edx + 0xb0000]
jne 0x403264
push 0x720
push 0x7d0
push 0xb0000
call fcn.00403430
add esp, 0xc
xor ecx, ecx
xor edi, edi
mov dword [0x4f0ea8], ecx
mov dword [0x4f0ea4], edi
mov dword [0x4f0eb0], 1
mov ebx, dword [esp + 0x18]
mov al, byte [ebx]
inc ebx
test al, al
je 0x403209
movsx edx, al
lea ebp, [edx - 8]
cmp ebp, 0x13
ja case.0x403286.13
xor edx, edx
mov dl, byte [ebp + 0x4033e0]
jmp dword [edx*4 + 0x4033c8]
test ecx, ecx
jle 0x403268
dec ecx
sub esi, 2
mov dword [0x4f0ea8], ecx
mov byte [esi], 0x20
mov byte [esi + 1], 7
mov edi, dword [0x4f0ea4]
mov ecx, dword [0x4f0ea8]
jmp 0x403268
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov edx, 8
sub edx, eax
lea esi, [esi + edx*2]
mov edx, 8
sub edx, eax
add ecx, edx
mov dword [0x4f0ea8], ecx
jmp 0x403268
lea esi, [edi + edi*4]
xor ecx, ecx
shl esi, 5
mov dword [0x4f0ea8], ecx
add esi, 0xb0000
jmp 0x403268
cmp byte [ebx + 1], 0x5b
jne 0x403268
cmp byte [ebx + 2], 0x32
jne 0x403268
cmp byte [ebx + 3], 0x4a
jne 0x403268
push 0x720
push 0x7d0
push 0xb0000
call fcn.00403430
xor ecx, ecx
xor edi, edi
add esp, 0xc
mov dword [0x4f0ea8], ecx
mov dword [0x4f0ea4], edi
add ebx, 3
jmp 0x403268
mov byte [esi], al
mov byte [esi + 1], 7
mov ecx, dword [0x4f0ea8]
mov edi, dword [0x4f0ea4]
add esi, 2
inc ecx
cmp ecx, 0x50
mov dword [0x4f0ea8], ecx
jl 0x403268
xor ecx, ecx
inc edi
cmp edi, 0x19
mov dword [0x4f0ea8], ecx
mov dword [0x4f0ea4], edi
jl 0x4033b4
push 0x780
push 0xb00a0
push 0xb0000
call fcn.00403400
add esp, 0xc
push 0x720
push 0x50
push 0xb0f00
call fcn.00403430
mov ecx, dword [0x4f0ea8]
mov edi, 0x18
add esp, 0xc
mov dword [0x4f0ea4], edi
lea eax, [edi + edi*4]
shl eax, 4
add eax, ecx
lea esi, [eax + eax + 0xb0000]
jmp 0x403268

Function at 0x407af0
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0xc]
test al, al
je 0x407b02
mov al, 1
pop edi
pop esi
pop ebx
ret
push 0x590
call fcn.004b06e0
mov ebx, dword [esi]
mov edi, eax
or eax, 0xffffffff
add esp, 4
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call dword [ebx + 0x14]
mov ecx, esi
call dword [ebx + 0x18]
push edi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x407b63
mov ax, word [edi]
mov cl, al
xor cl, 1
jne 0x407b63
and eax, 0xffff
xor eax, 0x100
test eax, 0xffffff00
jne 0x407b63
push edi
mov byte [esi + 0xc], 1
call fcn.004b06f0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret
push edi
call fcn.004b06f0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x4184a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x380
lea eax, [esp + 0x58]
push ebx
push ebp
push esi
push edi
push 0x513488
push str._sDune2000.htm
push eax
call fcn.004b0670
add esp, 0xc
lea ecx, [esp + 0x178]
lea edx, [esp + 0x68]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x418602
mov eax, dword [esp + 0x394]
lea ecx, [esp + 0x280]
push eax
push str._open___s
push ecx
call fcn.004b0670
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x29c]
push 0
lea edx, [esp + 0x198]
push ecx
push edx
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x418602
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41861c
mov eax, dword [0x4f40e4]
xor bl, bl
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push 0x1388
push esi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.004a3980
mov eax, dword [0x4f40e4]
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
push 0x1f4
call edi
lea eax, [esp + 0x10]
push eax
push esi
call ebp
cmp dword [esp + 0x10], 0x103
je 0x4185a1
mov bl, 1
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
cmp eax, dword [0x7984ec]
jne 0x4185b3
mov bl, 1
call fcn.004a3980
test bl, bl
je 0x418576
call fcn.004a3980
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
cmp eax, dword [0x7984ec]
je 0x41861c
call fcn.004a3980
mov ecx, dword [0x7984ec]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x7984ec]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004a3980
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x380
ret
mov ecx, dword [0x79759c]
push str.NO_BROWSER
push str.INETLOBBY
push 0xe4
call fcn.00473840
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x380
ret
Function at 0x4186e0
Capabilities:
Create directory

Disassembly:
push edi
mov byte [0x4f4090], 1
call fcn.0040c3c0
mov eax, dword [0x4f4088]
mov dword [0x4f408c], 0
mov eax, dword [eax]
lea ecx, [eax + 0x151]
add eax, 0x51
push ecx
push eax
push str._s_s
push 0x4f1340
call fcn.004b0670
mov edx, dword [0x4f4088]
mov eax, dword [0x4f408c]
add esp, 0x10
mov ecx, dword [edx + eax*4]
add ecx, 0x1d4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [0x4f408c]
mov eax, dword [0x4f4088]
mov ecx, dword [0x4f40ec]
push str.SOFTWAREWestwoodDune_2000
mov eax, dword [eax + edx*4]
mov edx, dword [ecx]
lea edi, [eax + 0x151]
push edi
lea edi, [eax + 0x193]
push 0x4f1340
push edi
lea edi, [eax + 0x172]
add eax, 0x10
push edi
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
je 0x4187a2
cmp eax, 0x80040002
jne 0x418787
push str.DownloadFile_call_:_DOWNLOAD_STATUSERROR
jmp 0x41879a
cmp eax, 0x80040001
jne 0x418795
push str.DownloadFile_call_:_DOWNLOAD_PARAMERROR
jmp 0x41879a
push str.DownloadFile_call_:_Unknown_Error
call fcn.004191e0
add esp, 4
mov ecx, dword [0x79759c]
push 0
push str.DOWNLOAD
push 0xdc
mov dword [0x4f40f0], 0
call fcn.00473840
pop edi
ret
Function at 0x419940
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [0x4f3d10]
sub esp, 0x10
cmp eax, 4
push ebx
push ebp
push esi
push edi
je 0x41995a
cmp eax, 5
jne 0x419a9e
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 0
lea ebx, [ecx + 0x24]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1f], 1
mov dword [esp + 0x14], ebx
mov esi, 0x4f2898
mov ebp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4199a0
xor edx, edx
mov dl, byte [esi + 0x18]
mov byte [esp + edx + 0x18], 1
push ebx
push esi
call fcn.004bcb20
add esp, 8
test eax, eax
jne 0x4199b3
mov byte [esp + 0x13], 1
add esi, 0x28
dec ebp
jne 0x419988
mov al, byte [esp + 0x13]
test al, al
jne 0x419a9e
xor bl, bl
mov byte [esp + 0x24], bl
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov eax, edx
and eax, 0xff
lea eax, [eax + eax*4]
lea edi, [eax*8 + 0x4f2898]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4199ff
inc bl
cmp bl, 4
mov byte [esp + 0x24], bl
jb 0x4199cb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [esp + 0x14]
and edx, 0xff
or ecx, 0xffffffff
xor eax, eax
lea ebp, [edx + edx*4]
shl ebp, 3
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x4f2898]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004b1810
cdq
mov ecx, 3
idiv ecx
mov byte [ebp + 0x4f28b1], dl
mov byte [ebp + 0x4f28b2], 1
mov dword [ebp + 0x4f28ac], 0xffffffff
call fcn.004b1810
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov byte [ebp + 0x4f28b0], al
and eax, 0xff
mov cl, byte [esp + eax + 0x18]
test cl, cl
je 0x419a9e
call fcn.004b1810
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov byte [ebp + 0x4f28b0], al
and eax, 0xff
mov cl, byte [esp + eax + 0x18]
test cl, cl
jne 0x419a7a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x419df0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
call fcn.0040d230
mov eax, dword [0x4f40e8]
lea edx, [esp + 0x1c]
push edx
push 0x3e8
mov ecx, dword [eax]
push str.irc.westwood.com
push eax
mov byte [0x4f3c9c], 1
mov byte [0x4f40c4], 0
mov byte [0x4f40c8], 0
call dword [ecx + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, fcn.008d76a6
nop
mov dword [0x4f40c0], eax
call esi
mov edi, eax
mov al, byte [0x4f40c8]
test al, al
jne 0x419e80
mov eax, dword [0x4f40e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
call esi
mov edx, edi
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1388
jle 0x419e77
mov byte [0x4f40c8], 1
mov byte [0x4f40c4], 0
mov al, byte [0x4f40c8]
test al, al
je 0x419e4a
push 1
mov byte [0x4f3c9c], 0
call fcn.0040d290
mov al, byte [0x4f40c4]
add esp, 4
test al, al
jne 0x419ea6
push 0
push str.NO_INTERNET
jmp 0x419ff6
mov al, byte [0x4f0f18]
mov ecx, 0x41
mov byte [esp + 0x74], al
xor eax, eax
lea edi, [esp + 0x75]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREWestwoodRegister
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x419f06
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x74]
push edx
push eax
push 0
push 0
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x419fef
mov eax, dword [esp + 0x20]
test eax, eax
mov ebp, eax
je 0x41a006
push 0x1388
push eax
xor bl, bl
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.004a3980
push 0x1f4
call esi
lea eax, [esp + 0x14]
push eax
push ebp
call edi
cmp dword [esp + 0x14], 0x103
je 0x419f8e
mov bl, 1
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
cmp eax, dword [0x7984ec]
jne 0x419fa0
mov bl, 1
call fcn.004a3980
test bl, bl
je 0x419f6e
call fcn.004a3980
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
cmp eax, dword [0x7984ec]
je 0x41a006
call fcn.004a3980
mov ecx, dword [0x7984ec]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x7984ec]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004a3980
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
push 0
push str.NO_REGISTRY
mov ecx, dword [0x79759c]
push 0xe0
call fcn.00473840
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret