joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415930
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4acae8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp edi, esi
jne 0x415974
mov eax, 0x8009
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
lea ecx, [edi + 0x10]
cmp ecx, esi
je 0x415997
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
call eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0x140]
cmp ecx, esi
je 0x4159f7
cmp dword [0x4f82bc], esi
je 0x4159f7
push 1
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, esi
je 0x4159f7
mov eax, dword [0x4f82bc]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, esi
jne 0x4159c8
cmp dword [edi + 8], 1
jne 0x415a74
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x415a6d
cmp dword [edi + 0xc], esi
je 0x415a38
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [edi + 4]
push esi
push esi
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push esi
push esi
push 0x4004667f
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x415a5c
push 4
lea edx, [esp + 0x10]
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], si
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x4f82c0], esi
jne 0x415a81
call fcn.004156c0
mov dword [esp + 0x2c], 0xffffffff
cmp dword [esp + 0x20], esi
je 0x415aa5
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x415d20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret
Function at 0x4168b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x4168e1
sub eax, 1
jne 0x4168eb
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x4168da
mov eax, 6
pop esi
pop ecx
ret
call fcn.004150c0
jmp 0x4168eb
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x416975
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x416933
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x416959
cmp eax, 8
je 0x416959
cmp eax, 0x2747
je 0x416959
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.0041c8a0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret

Function at 0x416fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x416fe2
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x416ffd
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.00486330
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.004150c0
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x41706c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41706c
cmp eax, 0x2733
je 0x417063
cmp eax, 8
je 0x417063
cmp eax, 0x2747
je 0x417063
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x4195b0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x4195f5
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4195f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
pop esi
xor eax, eax
pop ebp
ret 4
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x419633
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x41966b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.004198a0
test eax, eax
je 0x4195ee
mov eax, esi
call fcn.004198d0
pop esi
mov eax, 1
pop ebp
ret 4

Function at 0x41c520
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 0x24
ret
Function at 0x41ca10
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0478
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [eax + 0x360]
mov dword [esp + 0x18], esi
call fcn.0041acd0
xor ebx, ebx
cmp eax, ebx
je 0x41cb95
cmp esi, ebx
je 0x41cb95
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x41cb95
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x1c]
call fcn.00415d20
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x41caa8
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00406230
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41cb0a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f695
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x41cb84
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x41cb7b
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x41cb71
cmp dword [edi + 0x1a0], eax
jne 0x41cb71
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x41cb3f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41cb62
cmp dl, bl
je 0x41cb5e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41cb62
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x41cb42
xor eax, eax
jmp 0x41cb67
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x41cbb7
mov esi, dword [esi]
cmp esi, ebx
jne 0x41cb30
mov edi, dword [edi]
cmp edi, ebx
jne 0x41cb12
mov edi, dword [esp + 0x10]
push edi
call fcn.0045f690
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00406db0
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0047e4dd
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x194]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov cx, word [edi + 0x198]
push edx
mov word [eax + 4], cx
call fcn.0045f690
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00406db0
mov eax, 1
jmp 0x41cb97
Function at 0x4223a0
Capabilities:
Resolve dns

Disassembly:
push ecx
test esi, esi
jne 0x4223a9
xor eax, eax
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4223b0
sub eax, edx
je 0x4223a5
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4223e7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4223d9
or eax, 0xffffffff
pop ecx
ret
cmp word [eax + 0xa], 4
jne 0x4223d4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ecx
ret

Function at 0x4225e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x422616
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x198
ret 4
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, bl
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x422666
mov ax, word [esp]
cmp al, bl
jne 0x422660
cmp ah, byte [esp + 0x19c]
jne 0x422660
mov eax, 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x198
ret 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.0047e4dd
add esp, 0x198
ret 4

Function at 0x422d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x422d23
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x422d5a
push edi
mov edi, dword [ecx]
shl edi, 8
movzx edx, byte [esi]
mov eax, dword [ecx + 4]
xor edx, eax
and edx, 0xff
add edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4f82d0]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x422d34
pop edi
pop esi
mov al, 1
pop ebp
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x4b02fd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.IFile.0
xor ebx, ebx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x24]
lea eax, [esi + 0x30]
push ecx
push eax
mov dword [esp + 0x18], eax
call fcn.00426df0
mov byte [esp + 0x1c], 2
lea edx, [esi + 0x58]
push edx
call fcn.00414f40
mov byte [esp + 0x1c], 3
or eax, 0xffffffff
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x422f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b02ad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.00423180
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.00406a60
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea eax, [esi + 0x30]
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], bl
push eax
call fcn.00425900
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esi + 0x2c]
cmp eax, 0x10
jb 0x422f82
add eax, 1
push eax
mov eax, dword [esi + 0x18]
push eax
call fcn.00406140
add esp, 8
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x429640
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x429665
test esi, esi
je 0x429660
cmp esi, dword [esp + 0x1c]
je 0x429665
call fcn.00495ff4
cmp edi, dword [esp + 0x20]
je 0x4296d1
cmp esi, 0xfffffffe
mov ebx, edi
je 0x429697
test esi, esi
jne 0x42967b
call fcn.00495ff4
cmp dword [esi + 0x18], 0x10
jb 0x429686
mov eax, dword [esi + 4]
jmp 0x429689
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x429697
call fcn.00495fb5
add edi, 1
cmp esi, 0xfffffffe
je 0x4296c4
test esi, esi
jne 0x4296a8
call fcn.00495ff4
cmp dword [esi + 0x18], 0x10
jb 0x4296b3
mov eax, dword [esi + 4]
jmp 0x4296b6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x4296c4
call fcn.00495fb5
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x429651
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x42b800
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
jne 0x42b80c
xor al, al
ret 4
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x42b830
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
jne 0x42b842
xor al, al
add esp, 8
ret 4
mov ecx, 4
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp]
push ecx
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
add esp, 8
ret 4
Function at 0x42db50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
push esi
push edi
mov esi, ecx
jne 0x42dbb9
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x42dbb2
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
call ebx
mov ecx, dword [esi + 0x4c]
mov edi, eax
mov eax, dword [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42dbae
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.0042dd30
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x42db80
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x430fd0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x431003
lea eax, [esi + 0x1c]
push eax
mov eax, dword [esp + 8]
push 4
push ecx
lea edx, [esi + 4]
push edx
push eax
push 0
call fcn.00484108
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x43100b
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x431010
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x431053
cmp dword [esi + 0x18], 1
jne 0x431053
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x431030
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x43104c
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x43104b
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x431040
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x431060
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4310a5
cmp dword [esi + 0x18], 0
jne 0x4310a5
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x431083
mov dword [esi + 0x18], 0
xor eax, eax
ret
test eax, eax
jbe 0x43109e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x431091
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
ret

Function at 0x431100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4afcd3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], 1
mov ecx, 0x431440
sub ecx, eax
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
push 0xe
sub ecx, 0xe
push eax
mov byte [eax], 0xb8
mov dword [eax + 1], esi
mov dword [eax + 5], 0x50240487
mov byte [eax + 9], 0xe9
mov dword [eax + 0xa], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CThreadControl.0
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
lea edx, [esi + 0x44]
mov dword [esi + 0x30], eax
push edx
mov dword [esi + 0x2c], 0xffffffff
call fcn.00414f40
mov byte [esp + 0x14], 1
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x432cb0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x634
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x630], eax
mov eax, dword [esp + 0x638]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xbc]
push edi
mov edi, dword [esp + 0x644]
push ecx
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xc0]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x432d16
or al, 0xff
jmp 0x432dd4
cmp eax, 0xffffffff
je 0x432dd2
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x432d50
mov edx, dword [esi + 0xc4]
push edx
jmp 0x432dcc
lea eax, [esp + 0x330]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x53c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x13c]
push ecx
call fcn.0047e92f
lea edx, [esp + 0x344]
push edx
lea eax, [esp + 0x248]
push eax
push 0
lea ecx, [esp + 0x450]
push 0
push ecx
call fcn.0047e721
lea edx, [esp + 0x458]
push edx
push edi
call fcn.0047e6d1
add esp, 0x30
test eax, eax
je 0x432ded
mov ecx, dword [esi + 0xc4]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x432d50
mov eax, dword [esi + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x638]
pop edi
pop esi
xor ecx, esp
call fcn.0047e4dd
add esp, 0x634
ret 8
mov edx, dword [esi + 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x432dd4
Function at 0x432eb0
Capabilities:
Create thread
Enumerate processes
Terminate process
Terminate thread

Disassembly:
sub esp, 0x240
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea esi, [ebp + 0xb4]
push esi
push 0
push 0x432e00
call fcn.0047ea77
add esp, 0xc
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x4b4c3c]
mov edx, dword [0x4b4c40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], eax
mov eax, dword [str.Silkroad.exe]
mov dword [esp + 0x148], eax
mov al, byte [0x4b4c44]
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x150], edx
mov byte [esp + 0x154], al
mov byte [esp + 0x13], 1
mov bl, 1
cmp byte [esp + 0x13], 0
je 0x432f5c
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x432f67
lea edx, [esp + 0x20]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x432fde
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x18], eax
mov byte [esp + 0x13], 0
je 0x432f48
test eax, eax
je 0x432f48
lea ecx, [esp + 0x148]
push ecx
push eax
mov ecx, ebp
call fcn.00432cb0
cmp al, 0xff
je 0x432fdc
cmp al, 1
jne 0x432f48
mov edx, dword [esp + 0x28]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
push esi
sete bl
call edi
mov esi, dword [esp + 0x1c]
jmp 0x432f48
xor bl, bl
push esi
call edi
test bl, bl
jne 0x432ff6
mov edx, dword [ebp + 0xb4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x433012
mov eax, dword [ebp + 0xbc]
push eax
mov byte [ebp + 0xb8], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xbc]
push ecx
call edi
mov edx, dword [ebp + 0xc0]
push edx
call edi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0047e4dd
add esp, 0x240
ret