joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401200
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
cmp ebp, ebx
push esi
jne 0x401222
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
pop edi
cmp esi, 0xffffffff
jne 0x401250
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4012c3
push ebp
call fcn.00401450
add esp, 4
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00401450
add esp, 4
push eax
call fcn.004013d0
add esp, 8
test eax, eax
jne 0x4012be
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4012c3
push ebp
call fcn.00401450
add esp, 4
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00401450
add esp, 4
push eax
call fcn.004013d0
add esp, 8
test eax, eax
je 0x40128b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x5c6558
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5c6586
mov eax, ebx
call fcn.005c700c
cmp dword [ebx + 0x40], 0
je 0x5c657f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5c65f7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5c65e9
cmp dword [ebx + 8], 0
je 0x5c65a8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5c65ba
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5c65e9
cmp dword [ebx + 8], 0
je 0x5c659b
cmp eax, 3
je 0x5c65cd
dec eax
jne 0x5c659b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5c659b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5c659b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5c6615
cmp dword [ebx + 0x14], 0xcc
je 0x5c6615
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005c6620
pop ebx
ret

Function at 0x60352c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x603588
xor eax, eax
push ebp
push 0x603581
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x603588
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0046d82c
push eax
call sub.USER32.dll_ShowWindow
mov eax, dword [ebp - 4]
call fcn.006035dc
ret
pop ecx
pop ebp
ret
Function at 0x627510
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x34c]
mov edx, dword [ebp - 4]
call fcn.0041efb4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x6275f6
xor eax, eax
push ebp
push 0x6275ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
call fcn.0041d654
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.006274f4
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.006274f4
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.006274f4
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.006274f4
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.006274f4
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00579350
test al, al
jne 0x6275ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00483b2c
jmp 0x6275d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00403538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6275f6
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x62cde0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 0x8c]
mov eax, ebx
call fcn.004e2860
mov eax, ebx
call fcn.0054bd88
mov edx, 0x62cfe8
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call fcn.004e2854
mov eax, ebx
call fcn.004e5260
mov edx, 0x62d014
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d020
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d030
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x44]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d040
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d050
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x62d068
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x62d080
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d094
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d0a8
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x64]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d0bc
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x68]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d0d4
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d0f0
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x70]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x62d104
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d118
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x78]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x62d128
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
call fcn.0040b6fc
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 0x62d140
mov eax, ebx
call fcn.004e395c
mov edx, dword [eax]
call dword [edx + 0xa0]
cmp byte [esi + 0xa8], 0
je 0x62cfad
mov edx, 0x62d150
mov eax, ebx
call fcn.004e395c
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xa8]
jmp 0x62cfc7
mov edx, 0x62d150
mov eax, ebx
call fcn.004e395c
mov edx, dword [esi + 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24c]
mov edx, 0x62d164
mov eax, esi
call fcn.0062da38
pop esi
pop ebx
ret
Function at 0x634834
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x63483c
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x6349b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 0x1a
mov dx, 7
mov ax, 0x7dc
call fcn.0040b45c
fstp qword [ebp - 0xc]
wait
call fcn.0040b6fc
fcomp qword [ebp - 0xc]
fnstsw ax
sahf
jbe 0x634983
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00466e5c
mov edx, dword [ebp - 0x10]
mov eax, 0x6349c8
call fcn.00404a60
test eax, eax
jg 0x634983
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00466e5c
mov edx, dword [ebp - 0x14]
mov eax, 0x6349d4
call fcn.00404a60
test eax, eax
jg 0x634983
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00466e5c
mov edx, dword [ebp - 0x18]
mov eax, 0x6349e4
call fcn.00404a60
test eax, eax
jg 0x634983
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00466e5c
mov edx, dword [ebp - 0x1c]
mov eax, 0x6349f4
call fcn.00404a60
test eax, eax
jg 0x634983
lea eax, [ebp - 4]
mov edx, 0x634a04
call fcn.004044e4
mov al, byte [0x634a7c]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x634a88
mov eax, dword [ebp - 4]
call fcn.0040eb14
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.004044e4
mov eax, ebx
call fcn.0046d82c
mov edx, dword [ebp - 4]
call fcn.004af7fc
lea eax, [ebp - 4]
mov edx, 0x634a94
call fcn.004044e4
mov al, byte [0x634a7c]
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x634a88
mov eax, dword [ebp - 4]
call fcn.0040eb14
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.004044e4
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040491c
push eax
push 0x634ab8
push 0
call sub.SHELL32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6349ba
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404470
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404470
lea eax, [ebp - 4]
call fcn.0040444c
ret
Function at 0x6354c4
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x635625
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor eax, eax
mov dword [ebp - 4], eax
xor esi, esi
mov eax, 0xff
call fcn.00402800
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x13c]
mov eax, ebx
call fcn.00409fbc
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 8]
mov ecx, 0x63563c
call fcn.00404768
xor edx, edx
mov eax, 0xf
call fcn.004c2a84
mov ebx, eax
lea edx, [ebp - 0x140]
xor eax, eax
call fcn.00402b28
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x10]
call fcn.00409c78
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.004c2aa4
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x6355e9
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x114]
call fcn.00409fbc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00404868
jne 0x6355ad
mov eax, dword [ebp - 0x120]
mov esi, eax
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
jmp 0x6355d6
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0xc]
call fcn.00408e04
mov eax, dword [ebp - 0x144]
mov edx, 0x635654
call fcn.00404868
jne 0x6355d6
mov eax, dword [ebp - 0x130]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.004c2ac4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x635579
cmp esi, dword [ebp - 4]
je 0x6355fa
push 0
push edi
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63562c
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404470
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404470
ret

Function at 0x6393ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040490c
xor eax, eax
push ebp
push 0x639482
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x639404
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x360]
mov edx, 0x639498
call fcn.004e395c
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x63940e
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00409054
cmp dword [ebp - 0x10], 0
je 0x639467
push 0x6394a8
push dword [ebp - 4]
push 0x6394dc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00409054
push dword [ebp - 0x14]
push 0x6394e8
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.004047dc
push 5
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040491c
push eax
push 0x6394f0
push 0
call sub.SHELL32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639489
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404470
ret
Function at 0xec07d0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xec07da
pushal
call 0xec07e0
pop ebp
sub ebp, 0x10
sub ebp, 0xac07d0
jmp 0xec07f6
mov eax, 0xac07d0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0x2bfe7966
xor byte [eax], dl
inc eax
dec ecx
jne 0xec080d
jmp 0xec0820
in eax, dx
stosd dword es:[edi], eax
in eax, dx
out dx, eax
pop edx
out 0xa7, ax
sahf
stosw word es:[edi], ax
fisubr word [edi + 0x66]
fmul qword [esi + 0x66]
xchg cx, ax
test byte [ebp - 0x52], ah
in eax, dx
out 0x6a, eax
mov word gs:[0x4a0e3636], ax
invalid
Function at 0x401070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405f17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x3c]
push 0x409ab0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 1
mov ebp, dword [eax - 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
mov esi, 1
mov byte [esp + 0x30], 2
cmp ebp, esi
jl 0x4011ee
push ebx
mov ecx, dword [esp + 0x40]
mov eax, esi
cdq
mov bl, byte [esi + ecx - 1]
mov ecx, 3
idiv ecx
mov byte [esp + 0x20], bl
cmp edx, 1
jne 0x401127
push edx
mov dl, bl
shr dl, 2
push edx
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
and bl, 3
shl bl, 4
mov byte [esp + 0x10], bl
jmp 0x4011e4
cmp edx, 2
push 1
jne 0x401175
mov dl, byte [esp + 0x14]
mov al, bl
shr al, 4
or al, dl
push eax
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
and bl, 0xf
shl bl, 2
mov byte [esp + 0x10], bl
jmp 0x4011e4
mov al, byte [esp + 0x14]
shr bl, 6
or bl, al
push ebx
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
push 1
push ecx
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, ebp
jle 0x4010c7
pop ebx
mov eax, ebp
mov ecx, 3
cdq
idiv ecx
mov esi, edx
test esi, esi
je 0x40122f
mov edx, dword [esp + 0xc]
push edx
call fcn.00401000
add esp, 4
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_2
cmp esi, 1
jne 0x401221
push 0x409024
jmp 0x401226
push 0x409020
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x38]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x24], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4044a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xc10
push ebp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x404656
push str.nic.nju.edu.cn
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404656
xor ecx, ecx
push 0x50
mov dword [esp + 8], ecx
mov word [esp + 8], 2
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push ebp
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404656
push ebx
push esi
push edi
mov edi, str.GET_http:__nic.nju.edu.cn_bras_njunicdesktop.ini
or ecx, 0xffffffff
lea edx, [esp + 0x420]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str._HTTP_1.1_r_nAccept:___r_nReferer:_http:__nic.nju.edu.cn_bras_njunicdesktop.ini_Accept_Language:_zh_cn_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_5.01__Windows_NT_5.0__r_nHost:_nic.nju.edu.cn_r_nConnection:_Keep_Alive_r_n_r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x424]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x424]
push ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x400
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40464c
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x20]
push str.HTTP_1.1_200_OK
push edx
call esi
add esp, 8
test eax, eax
je 0x40464c
lea eax, [esp + 0x20]
push str.Content_Type:_text_plain_r_n_r_n
push eax
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40464c
mov esi, ebx
lea ecx, [esp + 0x20]
sub esi, ecx
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + 0x1c]
mov edx, ecx
cmp eax, edx
jge 0x40464c
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x820]
sub edx, esi
rep stosd dword es:[edi], eax
sub edx, 0x1c
add ebx, 0x1c
push edx
lea ecx, [esp + 0x824]
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0xc30]
add esp, 0xc
lea edx, [esp + 0x820]
push edx
call fcn.00405810
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc10
ret 4
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bb60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bb66
ret