joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b630
Capabilities:
Write file on windows

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov dl, byte [edi + 0x204c]
test dl, dl
push esi
mov esi, dword [esp + 0x18]
jne 0x48b66e
test ebx, ebx
je 0x48b7a6
test dl, dl
jne 0x48b66e
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov edx, dword [ecx + 4]
mov dword [edi + 0xc], edx
mov byte [edi + 0x204c], 1
xor eax, eax
and al, 1
add al, al
mov dl, bl
and dl, 1
or al, dl
shl al, 5
or al, 1
mov byte [esi], al
mov byte [esi + 1], 0
mov dword [esi + 2], ebp
mov eax, dword [ecx]
sub eax, dword [edi + 8]
mov ecx, dword [ecx + 4]
sbb ecx, dword [edi + 0xc]
push 0
push 0x2710
push ecx
push eax
call fcn.00500a50
mov dword [edi + 0x28], eax
mov dword [esi + 6], eax
movzx edx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1e]
movzx ecx, byte [esi + 0x1f]
not dl
not al
mov byte [esi + 0x1d], dl
movzx edx, byte [esi + 0x20]
mov byte [esi + 0x1e], al
movzx eax, byte [esi + 0x21]
not cl
push 0
mov byte [esi + 0x1f], cl
lea ecx, [esp + 0x10]
push ecx
not dl
add ebp, 0xe
not al
push ebp
mov byte [esi + 0x20], dl
mov byte [esi + 0x21], al
mov edx, dword [edi + 0x2040]
push esi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, byte [esi + 0x1d]
movzx ecx, byte [esi + 0x1e]
movzx edx, byte [esi + 0x1f]
not al
mov byte [esi + 0x1d], al
movzx eax, byte [esi + 0x20]
not cl
mov byte [esi + 0x1e], cl
movzx ecx, byte [esi + 0x21]
not al
mov byte [esi + 0x20], al
mov eax, 1
cmp ebx, eax
not dl
not cl
mov byte [esi + 0x1f], dl
mov byte [esi + 0x21], cl
jne 0x48b749
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi]
mov dword [edi + edx*8 + 0x3c], ecx
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi + 0x28]
mov dword [edi + edx*8 + 0x40], ecx
add dword [edi + 0x203c], eax
add dword [edi + 0x2044], eax
mov eax, dword [edi + 0x2044]
add dword [edi], ebp
cmp eax, dword [edi + 0x2048]
jbe 0x48b7a6
mov edx, dword [edi + 0x2040]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x20], ebx
call esi
mov edx, dword [edi + 0x2040]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2030
lea ecx, [edi + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x2040]
push 2
push ebx
push ebx
push eax
call esi
mov dword [edi + 0x2044], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x48b7b0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov dl, byte [eax]
and dl, 0xe8
push edi
or dl, 8
mov byte [eax], dl
xor edx, edx
push edx
mov dword [eax + 2], ecx
lea edi, [ecx + 0xe]
lea ecx, [esp + 8]
push ecx
push edi
mov dword [eax + 6], edx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x2040]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esi], edi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4a0090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
imul eax, edx
push ebx
push ebp
push esi
mov ebp, 0x5ff0b8
push edi
xor edi, edi
add eax, ecx
mov ebx, ebp
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
je 0x4a00e6
cmp eax, 1
jl 0x4a00e6
mov ebp, dword [esp + 0x24]
mov ebx, eax
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp - 0x124]
cmp ebx, 3
je 0x4a00da
cmp ebx, 4
jne 0x4a00e0
lea esi, [ebp - 0xbc]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
cmp eax, edx
jl 0x4a0110
mov ebp, dword [esp + 0x24]
mov ebx, eax
sub ebx, edx
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp]
cmp ebx, 3
je 0x4a0107
cmp ebx, 4
jne 0x4a010a
lea edi, [ebp + 0x68]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
test ecx, ecx
je 0x4a0143
lea ecx, [edx + 1]
cmp eax, ecx
jl 0x4a0143
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
imul ecx, ecx, 0x124
add edx, ecx
mov ecx, dword [edx - 0x124]
cmp ecx, 3
je 0x4a013b
cmp ecx, 4
jne 0x4a0143
add edx, 0xffffff44
jmp 0x4a0147
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x124
lea eax, [eax + ecx + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, 5
ja case.default.0x4a0162
jmp dword [ecx*4 + 0x4a0278]
test esi, esi
je 0x4a0170
lea ebx, [esi + 0x1e]
test edi, edi
je 0x4a0177
lea ebp, [edi + 0x3c]
test edx, edx
je case.default.0x4a0162
add edx, 0x5a
jmp 0x4a01e5
test edi, edi
mov ebx, eax
je case.default.0x4a0162
lea ebp, [edi + 0x5a]
add edi, 0x3c
mov dword [esp + 0x10], edi
jmp case.default.0x4a0162
test esi, esi
je 0x4a01a0
lea ebx, [esi + 0x5a]
add esi, 0x1e
mov dword [esp + 0x10], esi
mov ebp, eax
jmp case.default.0x4a0162
lea ebx, [eax + 0x3c]
lea ebp, [eax + 0x1e]
mov dword [esp + 0x10], eax
jmp case.default.0x4a0162
test esi, esi
je 0x4a01b7
lea ebx, [esi + 0x78]
test edi, edi
je 0x4a01be
lea ebp, [edi + 0x78]
test edx, edx
je case.default.0x4a0162
add edx, 0x78
jmp 0x4a01e5
test esi, esi
je 0x4a01d1
lea ebx, [esi + 0x96]
test edi, edi
je 0x4a01db
lea ebp, [edi + 0x96]
test edx, edx
je case.default.0x4a0162
add edx, 0x96
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movsx ecx, word [edx]
movzx ebp, word [ebp]
movzx ebx, word [ebx]
movsx edi, bp
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
movsx esi, bx
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
mov ecx, dword [esp + 0x2c]
jge 0x4a0240
test bp, bp
jle 0x4a023c
mov eax, ecx
sar eax, 1
add eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, edi
jmp 0x4a025f
test bx, bx
jle 0x4a025d
mov eax, ecx
sar eax, 1
add eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, esi
mov edx, ecx
sar edx, 1
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
Function at 0x4a7c80
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d5a4b
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
lea eax, [esi + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x7c]
push ecx
xor ebx, ebx
push 0x202
mov dword [esp + 0x228], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4a7d55
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov ecx, 0xf
mov dword [esp + 0x18], vtable.CUDTException.0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jne 0x4a7d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x61a010
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.004fa66b
cmp byte [esi + 0x50], bl
je 0x4a7d73
cmp edi, 0xffffffff
je 0x4a7d6c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x4a7dbe
push ebx
push ebx
push ebx
mov byte [esi + 0x40], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push 0x4aad80
push ebx
push ebx
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, 0xffffffff
mov dword [esi + 0x54], eax
mov byte [esi + 0x50], 1
je 0x4a7dbc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret
Function at 0x4a8640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.004a93b0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4a86c2
mov eax, 0xf
push 0x61a010
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x28], ebx
call fcn.004fa66b
cmp dword [edi], 1
je 0x4a8717
mov eax, 0xf
push 0x61a010
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x28], ebx
call fcn.004fa66b
cmp dword [edi + 0x10], 2
jne 0x4a872f
lea eax, [esp + 0x78]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
jmp 0x4a8742
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4a87b5
mov eax, 0xf
mov dword [esp + 0x14], vtable.CUDTException.0
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x61a010
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
call fcn.004fa66b
mov esi, dword [edi + 0x2c]
call fcn.004ae9d0
mov ecx, dword [esp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.004aa3d0
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x14]
mov dword [edi], 2
mov ecx, dword [eax + 0x208]
mov eax, dword [ecx + 8]
push edx
call fcn.004b7ef0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f2719
mov esp, ebp
pop ebp
ret 8
Function at 0x4a8810
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0xa0
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x1c], eax
call fcn.004a93b0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4a889b
mov eax, 0xf
push 0x61a010
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004fa66b
cmp dword [edi], 1
je 0x4a88f3
mov eax, 0xf
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], eax
push 0x61a010
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004fa66b
cmp dword [edi + 0x10], 2
jne 0x4a890a
mov dword [esp + 0x14], 0x10
lea ebp, [esp + 0x80]
jmp 0x4a8919
mov dword [esp + 0x14], 0x1c
lea ebp, [esp + 0x90]
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4a898c
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 3
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
push 0x61a010
lea eax, [esp + 0x20]
push eax
call fcn.004fa66b
mov esi, dword [edi + 0x2c]
call fcn.004ae9d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb8]
push ecx
push edx
lea eax, [esp + 0xbc]
push eax
push ebp
mov ecx, edi
call fcn.004aa810
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x14]
mov dword [edi], 2
mov eax, dword [edx + 0x208]
mov eax, dword [eax + 8]
push ecx
call fcn.004b7ef0
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f2719
add esp, 0xa0
ret 0xc
Function at 0x4aa090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cf2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa0f2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x1c]
lea ebx, [esp + 0x10]
call fcn.004abcc0
cmp dword [esp + 0x18], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
je 0x4aa12b
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ad930
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4ad9c4
cmp word [ebx + 8], 2
push edi
jne 0x4ad995
cmp word [ebx + 0xa], 4
jne 0x4ad995
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4ad995
jmp 0x4ad970
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.004ad8c0
test eax, eax
mov dword [esi], eax
je 0x4ad9b8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4ad970
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.004f51f3
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4ad9d4.11001
jmp dword [eax*4 + 0x4ad9fc]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x4ae220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x649b50], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x4adc80
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x4adf60
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.004adc30
je 0x4ae285
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x62d9e0]
jmp 0x4ae39e
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4ae385
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004f80ad
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004f8112
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4ae2fc
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4ae348
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004f80ad
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004f8112
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4ae385
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4ae348
push esi
call ebp
jmp 0x4ae385
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x4ae343
add edi, 1
cmp edi, 3
jl 0x4ae350
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x62d9e0], edx
mov dword [0x62d9e8], eax
mov dword [fcn.004adc30], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x62d9e0]
mov dword [0x649b50], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f2719
add esp, 0x238
ret 4
Function at 0x4b3610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cd228
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
or ebx, 0xffffffff
push ebx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
cmp dword [esi + 8], ebx
jne 0x4b366e
cmp eax, ebx
je 0x4b370d
mov ecx, dword [edi]
push ecx
jmp 0x4b3707
mov edx, dword [esi]
mov eax, dword [edx]
mov edi, dword [eax]
mov eax, edi
mov ecx, esi
call fcn.004b37c0
mov cl, byte [edi + 0x5d]
test cl, cl
je 0x4b36fa
mov dl, byte [edi + 0x60]
test dl, dl
jne 0x4b36fa
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004b1f90
test eax, eax
jle 0x4b36fa
mov eax, dword [edi + 0x210]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x1c]
ja 0x4b36ba
test ecx, ecx
jbe 0x4b36cd
mov dword [esp + 0x28], eax
mov eax, edi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.004b3730
cmp dword [esp + 0x18], ebx
je 0x4b36e0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp dword [esp + 0x18], ebx
je 0x4b370d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x4b38f0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5ce3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
push 0x1c
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
call fcn.004d3c8b
add esp, 4
mov dword [esp + 0x84], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x7c], ebx
je 0x4b3946
mov esi, eax
call fcn.004b3500
jmp 0x4b3948
xor eax, eax
mov dword [esp + 0x7c], 0xffffffff
mov dword [edi + 4], eax
lea edx, [edi + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [edi + 4]
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], eax
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edi
push 0x4b3a00
push ebx
push ebx
mov dword [edx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi], eax
jne 0x4b39df
mov eax, 0xf
mov dword [esp + 0x10], vtable.CUDTException.0
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x61a010
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call fcn.004fa66b
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x4b40b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d0c86
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x5c], ebx
call fcn.004ad450
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x64], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x64]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x64]
mov dword [eax], eax
mov eax, dword [esi + 0x64]
push ebx
mov dword [eax + 8], eax
push ebx
mov dword [esi + 0x68], ebx
push ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x6c], eax
call ebp
push ebx
push ebx
push ebx
mov dword [esi + 0x70], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x40], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x5c], eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4