joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e84
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405eb2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405eb9
cmp ebx, dword [eax + 4]
jae 0x405eb9
xor eax, eax
jmp 0x4060a9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405eca
xor eax, eax
inc eax
jmp 0x4060a8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405ee0
cmp ecx, edx
jae 0x406025
cmp dword [eax + 4], 0
je 0x405ee9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405ed1
cmp dword [ebp + 8], 0
je 0x405f0b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406025
cmp eax, esi
jae 0x406025
mov eax, dword [0x409570]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405f30
cmp dword [esi*4 + 0x409578], edi
je 0x406029
inc esi
cmp esi, eax
jl 0x405f1e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4060a5
cmp dword [ebp - 8], 0x1000000
jne 0x4060a5
test byte [ebp - 0xc], 0xcc
je 0x405fae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4060a5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4060a5
cmp word [eax + 0x18], 0x10b
jne 0x4060a5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4060a5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405fae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405fae
test byte [ecx + 0x27], 0x80
jne 0x406025
push 1
push 0x4095b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405ec2
mov ecx, dword [0x409570]
test ecx, ecx
mov edx, ecx
jle 0x405fe2
lea eax, [ecx*4 + 0x409574]
cmp dword [eax], edi
je 0x405fe2
dec edx
sub eax, 4
test edx, edx
jg 0x405fd6
test edx, edx
jne 0x406013
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405fef
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406007
lea eax, [edx*4 + 0x409578]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405ff5
cmp ecx, 0x10
jge 0x406013
inc ecx
mov dword [0x409570], ecx
push 0
push 0x4095b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405ec2
xor eax, eax
jmp 0x4060a8
test esi, esi
jle 0x405ec2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4095b8
call ebx
test eax, eax
jne 0x405ec2
cmp dword [esi*4 + 0x409578], edi
je 0x40607f
mov eax, dword [0x409570]
lea esi, [eax - 1]
test esi, esi
jl 0x40606d
cmp dword [esi*4 + 0x409578], edi
je 0x406069
dec esi
jns 0x40605d
test esi, esi
jge 0x40607d
cmp eax, 0x10
jge 0x406078
inc eax
mov dword [0x409570], eax
lea esi, [eax - 1]
jmp 0x40607f
je 0x406097
xor ecx, ecx
test esi, esi
jl 0x406097
lea eax, [ecx*4 + 0x409578]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406085
push 0
push 0x4095b8
call ebx
jmp 0x405ec2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40636c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404800
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406407
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4093d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406407
cmp eax, 1
je 0x406428
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406407
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4063d4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406403
xor eax, eax
inc eax
jmp 0x406447
cmp edi, eax
jae 0x40640b
xor eax, eax
jmp 0x406447
cmp eax, esi
jae 0x406412
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4093d0]
jmp 0x40642b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402461
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax - 1]
mov ebx, eax
and edx, dword [0x404050]
mov eax, 0x404054
jmp loc.00462a00

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404dc7
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 2
call fcn.0040106f
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401a5b
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404e50
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404e60
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404e70
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404e80
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404e90
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404ea0
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00402f38
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404ebc
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x4c5570]
test ebx, ebx
je 0x404ed3
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [0x4c5570], eax
mov eax, 0x49a9d8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x49a9da
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4c5570
call fcn.004037fb
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404f0e
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404f1e
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404f32
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0x12
push 0x16011567
push 0x52010001
call fcn.0040b6ea
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x404f9e
push 0x49aa85
push dword [ebp - 4]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x404f7c
call fcn.00404fb2
jmp 0x404f99
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x16011563
push 0x52010001
call fcn.0040b6de
add esp, 0x18
jmp 0x404f9e
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404fae
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404fb2
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x1b
jg 0x405184
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x40c9a0
call fcn.0040b6e4
add esp, 0x10
mov dword [ebp - 0xc], eax
push str.study2
push dword [ebp - 0xc]
push str.g_f0cmd5courseid
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 7
call fcn.0040106f
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405040
push ebx
call fcn.0040b6d2
add esp, 4
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a5b
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40509e
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4050ae
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4050be
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4050ce
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4050de
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4050ee
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00402f38
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40510a
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40511e
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49aaaa
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405153
mov eax, 0x49a557
push eax
push 4
mov ebx, 0x40bcd0
call fcn.0040b6e4
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40517d
call fcn.00403a4d
jmp 0x405184
pop ebx
pop ecx
jmp 0x404fd0
add esp, 8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405197
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40690c
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 8
push 0x16011536
push 0x52010001
call fcn.0040b6ea
add esp, 0x10
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49aba5
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406966
mov eax, 0x49a557
push eax
push 4
mov ebx, 0x40bcd0
call fcn.0040b6e4
add esp, 0x34
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40698c
push ebx
call fcn.0040b6d2
add esp, 4
cmp dword [ebp - 0xc], 0xffffffff
jne 0x406a73
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0x4c5578
call fcn.00401a5b
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4069f5
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406a05
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x406a15
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406a25
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406a35
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f38
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x406a51
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406a65
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
call fcn.00403a4d
jmp 0x406a73
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406a83
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x407870
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push str.g_f0cmd7tour7
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401a5b
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407909
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407919
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407929
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407939
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407949
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407959
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00402f38
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407975
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407989
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40799d
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x407afc
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 2
call fcn.0040106f
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401a5b
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407b85
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407b95
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407ba5
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407bb5
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407bc5
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407bd5
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00402f38
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407bf1
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x4c5570]
test ebx, ebx
je 0x407c08
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [0x4c5570], eax
mov eax, 0x49a9d8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x49a9da
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4c5570
call fcn.004037fb
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407c43
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407c53
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407c67
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0x12
push 0x16011566
push 0x52010001
call fcn.0040b6ea
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x407cd3
push 0x49aa85
push dword [ebp - 4]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x407cb1
call fcn.00407ce7
jmp 0x407cce
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x16011563
push 0x52010001
call fcn.0040b6de
add esp, 0x18
jmp 0x407cd3
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407ce3
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40a927
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push str.g_f0cmd7tour4
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401a5b
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a9c0
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a9d0
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a9e0
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a9f0
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40aa00
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40aa10
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00402f38
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40aa2c
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40aa40
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40aa54
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x417020
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49187b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004819dd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4170a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047ef3a
mov eax, dword [eax]
push 0x4b6210
push eax
call fcn.00471114
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00481c68
test bl, bl
je 0x4170a2
push 0x4b6210
lea ecx, [esp + 0xc]
call fcn.00482044
push 0x4b9d8c
lea ecx, [esp + 0xc]
call fcn.00482044
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4170de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00481c68
jmp 0x4171a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x417162
lea edx, [esp + 0x7c]
push 0x4b9d88
push edx
call fcn.00471114
add esp, 8
test eax, eax
je 0x417162
lea eax, [esp + 0x7c]
push 0x4b9d84
push eax
call fcn.00471114
add esp, 8
test eax, eax
je 0x417162
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4170f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00481c68
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4179a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x417a02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc