joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490930
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test edx, edx
jne 0x490998
test edi, edi
jne 0x490998
test esi, esi
jne 0x490998
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4909b9
mov eax, 0x10624dd3
imul dword [ecx + 4]
mov ecx, dword [ecx]
imul ecx, ecx, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
jne 0x49097c
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
call fcn.004b30c0
mov ecx, dword [ebp + 0x1c]
pop edi
mov dword [ecx], esi
mov dword [ecx + 4], eax
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4909b9
cmp dword [ecx], 0
jne 0x4909b9
mov eax, dword [ecx + 4]
test eax, eax
jle 0x4909b9
cmp eax, 0x3e8
jge 0x4909b9
mov dword [ecx + 4], 0x3e8
push ebx
push ecx
push esi
push edi
push edx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.004b30c0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
js 0x4909ef
xor edi, edi
call fcn.004b30c0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4d625c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x404]
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], 0x400
mov dword [ebp - 0x414], ebx
call fcn.004b30c0
lea ecx, [ebp - 0x414]
push ecx
push ebx
push 1
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x410], eax
mov eax, dword [edi]
push edx
push eax
call fcn.00490790
add esp, 0x14
cmp eax, ebx
setg cl
mov byte [ebp - 0x405], cl
cmp eax, 0x400
jne 0x490af2
push esi
mov esi, dword [edi]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 1
lea eax, [ebp - 0x41c]
push eax
push esi
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.004b30c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x490ac1
cmp eax, 0x4d2
jne 0x490ac6
call fcn.004b30c0
cmp esi, ebx
jne 0x490adb
call fcn.004b30c0
cmp dword [ebp - 0x40c], 0x400
je 0x490a73
mov al, byte [ebp - 0x405]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d48e
mov esp, ebp
pop ebp
ret
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049d48e
mov esp, ebp
pop ebp
ret
Function at 0x490de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x490e0e
mov ecx, dword [ebp + 0x1c]
push 0
push 0
push ecx
mov ecx, dword [edi + 4]
call fcn.0048f9f0
pop edi
pop ebp
ret 0x18
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp eax, 0xffffffff
jne 0x490e30
mov eax, dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
push 0
push 0x2719
push eax
call fcn.0048f9f0
pop edi
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push 0
push esi
mov dword [ebp + 8], ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x490e70
mov eax, 0x2746
jmp 0x490e7c
cmp eax, 0x4d2
jne 0x490e7c
mov eax, 0x274d
test ebx, ebx
je 0x490e9c
cmp eax, 0x3e5
je 0x490e9c
mov edx, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push edx
push eax
push esi
call fcn.0048f9f0
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push esi
call fcn.0048f980
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x493eb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 4], eax
test eax, eax
jne 0x493efc
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push 0x493da0
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], 0x4d54e8
mov dword [ebp - 4], 0
call fcn.0047fb90
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [ebp + 8]
test byte [ebx + 4], 3
mov esi, dword [ebp + 0xc]
jne 0x493f83
mov edi, dword [ebx]
cmp edi, 0xffffffff
jne 0x493f36
mov edi, 0x2719
call fcn.004b30c0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x14]
push 0
push esi
call fcn.004833d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp + 8]
push eax
push 0x8004667e
push edi
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.004b30c0
mov dword [ebp + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
test edi, edi
js 0x493f1f
xor edi, edi
call fcn.004b30c0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
or byte [ebx + 4], 2
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
lea edi, [esi + 0x20]
push edi
push edx
push eax
push ecx
call fcn.004906b0
add esp, 0x10
test eax, eax
je 0x493f1f
call fcn.004b30c0
cmp dword [edi + 4], eax
jne 0x493fb0
cmp dword [edi], 0x2734
je 0x493fca
call fcn.004b30c0
cmp dword [edi + 4], eax
jne 0x493f1f
cmp dword [edi], 0x2733
jne 0x493f1f
call fcn.004b30c0
xor ecx, ecx
push ecx
push ecx
push esi
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
lea edx, [ebx + 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebx]
push edx
push eax
push 3
call fcn.00493270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4979e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3ea
push eax
call ebx
push 0x27
lea edi, [esi + 0x5f]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 4]
push 0x3eb
push ecx
call ebx
push 0x27
lea ebx, [esi + 0x87]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push edi
push 0x54
push 0xbbb
mov dword [esi + 0xaf], 2
call fcn.004945b0
add esp, 0x14
push edi
push str.user
lea ecx, [esi + 0xb7]
call fcn.00497970
push ebx
push str.pass
lea ecx, [esi + 0xb7]
call fcn.00497970
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x498590
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8b08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4d625c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x20
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x49864a
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x49864a
mov edx, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x498601
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0047dd40
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004984c0
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x49863b
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0049d51a
add esp, 4
mov eax, dword [ebp - 0x50]
add eax, 4
mov dword [ebp - 0x50], eax
mov eax, dword [eax]
cmp eax, ebx
jne 0x4985e6
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d48e
mov esp, ebp
pop ebp
ret
Function at 0x498c50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x20]
cmp dword [esi], 0x40
push edi
jne 0x498c6f
mov edi, 0x2745
call fcn.004b30c0
mov dword [esi], edi
mov dword [esi + 4], eax
xor ecx, ecx
cmp dword [esi], ecx
jne 0x498d43
push ebx
cmp dword [ebp + 0x14], ecx
je 0x498cde
mov ebx, dword [ebp + 0x18]
cmp ebx, ecx
je 0x498cde
lea eax, [ebp + 0x20]
push eax
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xc]
push edx
push eax
push eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], ecx
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
mov edi, dword [ebp + 0x20]
cmp edi, dword [ebx]
jbe 0x498cc9
mov edi, 0x2726
call fcn.004b30c0
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x498cdc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
push edi
push ecx
push edx
call fcn.0049d5c0
add esp, 0xc
mov dword [ebx], edi
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp edi, 0xffffffff
jne 0x498d02
mov edi, 0x2719
call fcn.004b30c0
pop ebx
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004b30c0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x498d42
call fcn.004b30c0
mov dword [esi + 4], eax
mov dword [esi], edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49d48e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d625c]
jne 0x49d498
repz ret
jmp fcn.004a2ee6

Function at 0x4ad1c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d625c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004a36e9
and dword [ebp - 0x14], 0
cmp dword [0x4dde80], 0
mov dword [ebp - 0x18], eax
jne 0x4ad27c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ad324
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4ad324
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4c09a4
push ebx
mov dword [0x4dde80], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4dde84], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4dde88], eax
call edi
push eax
call esi
mov dword [0x4dde90], eax
test eax, eax
je 0x4ad27c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4dde8c], eax
mov eax, dword [0x4dde8c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4ad2d5
cmp dword [0x4dde90], ecx
je 0x4ad2d5
push eax
call esi
push dword [0x4dde90]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4ad2d5
test ebx, ebx
je 0x4ad2d5
call edi
test eax, eax
je 0x4ad2cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4ad2cc
test byte [ebp - 8], 1
jne 0x4ad2d5
or dword [ebp + 0x10], 0x200000
jmp 0x4ad308
mov eax, dword [0x4dde84]
cmp eax, dword [ebp - 0x18]
je 0x4ad308
push eax
call esi
test eax, eax
je 0x4ad308
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ad308
mov eax, dword [0x4dde88]
cmp eax, dword [ebp - 0x18]
je 0x4ad308
push eax
call esi
test eax, eax
je 0x4ad308
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4dde80]
call esi
test eax, eax
je 0x4ad324
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ad326
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d48e
leave
ret
Function at 0x4b2ec7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ddecc], 0
push esi
push edi
jne 0x4b2e3d
call fcn.004b2da9
test eax, eax
je 0x4b2e82
mov eax, dword [0x4ddecc]
cmp eax, 1
jne 0x4b2e5e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b2e82
jmp 0x4b2ec4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4b2ec4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4b2e86
xor eax, eax
jmp 0x4b2ec4
mov eax, dword [esi]
push dword [0x4ddecc]
call edi
mov edi, eax
test edi, edi
je 0x4b2ea8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4b2ec4
lea edi, [esi + 0xff0]
push esi
push dword [0x4ddecc]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4b2eae
mov eax, esi
pop edi
pop esi
ret
jmp 0x4b2e29
Function at 0x4b46b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4b9538
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d625c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4d76f0]
cmp eax, 0xffffffff
jne 0x4b46e5
xor ebx, ebx
jmp 0x4b46ee
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x4b4731
mov edi, edi
cmp dword [ebx + 0x18], 0
jne 0x4b4777
cmp dword [ebx + 0xc], 0
jne 0x4b4780
push 0x4b3ef0
push 0x4ddf78
call fcn.004b4150
mov eax, dword [0x4d76f0]
add esp, 8
cmp eax, 0xffffffff
je 0x4b4731
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x4b4763
lea edx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4b4763
mov edx, dword [ebx]
mov eax, dword [edx]
push 0
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 0xc], 0
je 0x4b47c8
lea ecx, [ecx]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x4b47b2
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x4b4780
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebp]
cmp esi, ebp
je 0x4b4700
cmp byte [esi + 0x1d], 0
mov edi, esi
jne 0x4b4818
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x4b47fd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x4b4818
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x4b47f1
jmp 0x4b4818
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x4b4816
cmp esi, dword [eax + 8]
jne 0x4b4816
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x4b4806
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4b482e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4b482e
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00489650
cmp esi, ebp
jne 0x4b47d6
jmp 0x4b4700
Function at 0x4b48e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x20]
push ecx
push 4
push eax
push 0x4b4850
push 0
push 0
call fcn.0049fc6b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b4909
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x4b492d
cmp eax, 0xffffffff
je 0x4b492d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40633c
pop dword [ebp - 0x20]
mov eax, 0x8965cda4
add eax, 0x76da9598
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x22844905
add dword [ebp - 0x30], 0x2bcdfc46
mov dword [ebp - 0x2c], 0xead2b61d
add dword [ebp - 0x2c], 0x47609628
mov dword [ebp - 0x28], 0xef0c28ac
add dword [ebp - 0x28], 0x5d401b82
mov dword [ebp - 0x24], 0x5ddafc0f
add dword [ebp - 0x24], 0xa22503f1
lea eax, [ebp - 0x30]
push eax
mov eax, 0xdba0b2a7
add eax, 0x249fbdb9
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x8158e65f
sub dword [ebp - 0x30], 0xce67d09
mov dword [ebp - 0x2c], 0xa134078d
sub dword [ebp - 0x2c], 0x5fc7a618
mov dword [ebp - 0x28], 0xcef7bc0
sub dword [ebp - 0x28], 0xa9800f54
mov dword [ebp - 0x24], 0xb17cb755
sub dword [ebp - 0x24], 0xb17cb755
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x8dbebde
add eax, 0xf7648522
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c83d
push 0
call eax
mov ecx, 0x647bb4e1
add ecx, 0x9b84aab5
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x20]
mov esi, 0xf026a34a
xor dword [ebp - 0x18], 0x70d4c52c
mov ebx, dword [edi]
xor dword [ebp - 0x18], 0x5c0743e0
sub ebx, esi
sub dword [ebp - 0x10], 0xec77b494
mov dword [edx], ebx
xor dword [ebp - 0x10], eax
add edx, 0xc6b83ebc
sub edx, 0xc6b83eb8
add edi, 0xd3eb274f
add edi, 0x2c14d8b5
loop 0x406454
add eax, 0x7a100e4d
add eax, 0x85f162de
xor ebx, ebx
add ebx, eax
add eax, 0xd579d85c
sub eax, 0xd579d857
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4012d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
push str.JavaThreadLockMutex
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], eax
push ecx
push ebx
push esi
push 0x4012c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x401320
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00401510
mov eax, dword [esi + 8]
test eax, eax
je 0x401352
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 4]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 8], 0
mov ecx, esi
call fcn.00401530
mov eax, dword [esi + 0x14]
test eax, eax
je 0x401367
mov dword [esi + 0x14], 0
pop esi
pop ecx
ret

Function at 0x401990
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 8
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4019b9
xor al, al
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea eax, [esp]
mov dword [esp], edx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4019f4
xor al, al
add esp, 8
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret
Function at 0x401c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
mov dword [ebp], 0x408154
mov byte [ebp + 4], 0
mov byte [ebp + 5], 0
mov byte [0x409e14], 0
call fcn.00401f80
mov eax, dword [esp + 0x10]
push eax
call fcn.00401a10
add esp, 4
test al, al
je 0x401d1a
mov al, byte [0x409e14]
test al, al
je 0x401d22
lea eax, [ebp + 0x20]
push eax
mov dword [eax], 0x10001
call dword [0x409e08]
push 0x1388
call fcn.0040265b
mov ecx, dword [ebp + 0x40]
mov esi, eax
push ecx
push str..__s_
push esi
call fcn.00402ac7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x1388
mov edi, ecx
sub edx, edi
lea eax, [edi + esi]
push edx
push eax
push str.CLASSPATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add eax, edi
mov byte [eax + esi], 0
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x2c], 0x100000
mov dword [ebp + 0x30], 0x400000
mov dword [ebp + 0x34], 0x2800000
mov dword [ebp + 0x38], 0x8c00000
pop edi
mov eax, ebp
pop esi
pop ebp
ret 4
push ebx
push 0x1388
call fcn.0040265b
mov edi, dword [str._Djava.class.path]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x1388
mov esi, ecx
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push str.CLASSPATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add eax, esi
mov byte [eax + ebx], 0
lea eax, [ebp + 0x10]
push eax
mov dword [eax], 0x10002
call dword [0x409e08]
push 0x18
call fcn.0040265b
mov dword [eax], ebx
mov edx, dword [str._Xms40m]
add esp, 4
mov dword [eax + 8], edx
mov ecx, dword [str._Xmx140m]
mov dword [eax + 0x10], ecx
pop ebx
mov dword [ebp + 0x18], eax
pop edi
mov dword [ebp + 0x14], 3
mov byte [ebp + 0x1c], 1
mov eax, ebp
pop esi
pop ebp
ret 4
Function at 0x401fd0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov eax, 0x2710
call fcn.00402b20
mov eax, str.._preloader.jar_twistingo.jar
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
test eax, eax
je 0x40205d
lea ecx, [esp + 0x1390]
push 0x1388
push ecx
push str.CLASSPATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
lea edx, [esp + 8]
push str.._preloader.jar_twistingo.jar
push edx
mov byte [esp + esi + 0x1398], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jbe 0x402042
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0x40932c
push eax
call esi
lea ecx, [esp + 0x1390]
lea edx, [esp + 8]
push ecx
push edx
call esi
lea eax, [esp + 8]
push eax
push str.CLASSPATH
call ebx
test eax, eax
jne 0x40205d
pop esi
pop ebx
add esp, 0x2710
ret 0x10
push 0x218
call fcn.0040265b
add esp, 4
test eax, eax
je 0x402081
mov ecx, dword [esp + 0x271c]
push ecx
mov ecx, eax
call fcn.004020d0
mov esi, eax
jmp 0x402083
xor esi, esi
mov edx, dword [esp + 0x2724]
push edi
push edx
mov ecx, esi
call fcn.00402160
test esi, esi
mov edi, eax
je 0x4020a9
mov ecx, esi
call fcn.00402100
push esi
call fcn.00402650
add esp, 4
lea eax, [esp + 0x1394]
push eax
push str.CLASSPATH
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x2710
ret 0x10