joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e840
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.00416890
mov edx, dword [ebp + 8]
push ebx
push edi
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x14]
not ecx
push eax
dec ecx
push edx
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x10], 0x4000
mov ebx, ecx
call fcn.0040e4c0
add esp, 8
test eax, eax
jne 0x40e957
push esi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x401c]
push edx
lea eax, [ebp - 8]
push eax
push ecx
mov dword [ebp - 0x10], 0x4000
mov dword [ebp - 8], 0xffffffff
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x40e942
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
test eax, eax
jbe 0x40e884
lea edx, [ebp - 0x4008]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
test esi, esi
je 0x40e926
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jbe 0x40e926
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
call fcn.00417f20
add esp, 0xc
test eax, eax
jne 0x40e926
mov cl, byte [esi + ebx]
cmp cl, 0x5c
lea eax, [esi + ebx]
jne 0x40e8fc
inc eax
push eax
call fcn.0040d380
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push 1
push eax
call fcn.00404ad0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push 1
push edx
call fcn.00404ad0
add esp, 0x1c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
add edx, 0x20
cmp eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
jb 0x40e8c5
jmp 0x40e884
cmp eax, 0x103
jne 0x40e884
mov eax, dword [ebp - 0x14]
push eax
call sub.MPR.dll_WNetCloseEnum
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410520
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
je 0x41054a
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push 0x3e
push edi
call fcn.004096b0
add esp, 0xc
jmp 0x41055d
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x208]
push ecx
push edi
call fcn.004090c0
add esp, 8
test eax, eax
je 0x41056a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410587
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41064e
cmp eax, 1
jne 0x4105a7
push edi
call fcn.004107f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x41064e
push edi
call fcn.00406700
add esp, 4
cmp eax, 0xfffffffb
je 0x4105cc
test bl, 1
je 0x4105cc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
neg esi
lea eax, [ebp - 0x104]
sbb esi, esi
push eax
add esi, 7
push esi
push edi
call fcn.004096b0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x410632
mov edx, dword [ebp - 0x104]
push edx
call fcn.0040e3c0
add esp, 4
test eax, eax
jne 0x41061c
lea eax, [ebp - 0x104]
push eax
call fcn.00410660
add esp, 4
test eax, eax
jne 0x41064e
lea ecx, [ebp - 0x104]
push ecx
call fcn.00410420
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x208]
push edx
call fcn.004106a0
add esp, 4
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
or ecx, 0xffffffff
push edi
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jl 0x410b5c
cmp byte [ecx + edx - 1], 0x5c
jne 0x410b5c
cmp byte [ecx + edx - 2], 0x3a
je 0x410b5c
mov byte [ecx + edx - 1], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410b73
pop edi
mov eax, 7
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
mov edi, ebx
and edi, 0x10
mov dword [esi], 0x124
je 0x410b8a
mov dword [esi], 0x4124
test bl, 1
jne 0x410b95
or dword [esi], 0x92
mov eax, dword [ebp + 8]
push eax
call fcn.004107f0
add esp, 4
test eax, eax
je 0x410ba8
or dword [esi], 0x49
test edi, edi
jne 0x410bb7
test bl, 4
jne 0x410bb7
or dword [esi], 0x8000
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x410e80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0xc], 0x92
jne 0x410e9e
mov eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
dec eax
neg eax
sbb eax, eax
neg eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
dec eax
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x410f10
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.00416589
mov edi, dword [ebp + 0x10]
push edi
call fcn.00416589
add esp, 8
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp eax, 1
je 0x410f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ff78
jmp 0x411042
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x168]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push 0
mov dword [ebp - 0xc], 0x104
mov dword [ebp + 0xc], 0x20
call esi
cmp eax, 1
je 0x410f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ff58
jmp 0x411042
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push edi
push 0
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 8], 0x20
call esi
cmp eax, 1
je 0x410fd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ff58
jmp 0x411042
push 0
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
cmp eax, 1
je 0x410ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ff30
jmp 0x411042
push 0
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
cmp eax, 1
je 0x411021
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ff08
jmp 0x411042
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
cmp eax, 1
je 0x41105a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42feec
push 0x42fee0
call fcn.00402da0
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411370
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4113a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ffa0
push 0x42be68
call fcn.00402da0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
test al, 2
je 0x4113ad
xor eax, eax
pop esi
pop ebp
ret
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x412a50
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [sym.pro_build_library_ctg.exe_class_btkMemMgr__pDefMemMgr]
push esi
push eax
push 0x38
call fcn.00414080
mov esi, eax
add esp, 8
test esi, esi
je 0x412add
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea edi, [esi + 0xc]
push 4
mov ecx, edi
mov dword [esi + 8], eax
call fcn.00415060
mov dword [edi], 0x4272ac
lea edi, [esi + 0x20]
push 4
mov ecx, edi
call fcn.00415060
mov dword [edi], 0x427298
mov ecx, dword [sym.pro_build_library_ctg.exe_class_btkMemMgr__pDefMemMgr]
push ecx
push 0x18
call fcn.00414080
mov edi, eax
add esp, 8
test edi, edi
je 0x412ab5
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x412ab7
xor edi, edi
push edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x34]
mov dword [esi], 0
push edx
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x413030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
je 0x413069
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x413051
pop esi
pop ebp
ret
mov esi, dword [esi + 4]
mov ecx, dword [eax + 0x10]
cmp ecx, esi
ja 0x413060
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [eax + 8]
mov eax, dword [ecx + esi*4]
pop esi
pop ebp
ret
mov esi, dword [esi + 0xc]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x413080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
test eax, eax
je 0x413123
mov eax, dword [edi + 0xc]
push esi
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4130e9
mov ecx, dword [sym.pro_build_library_ctg.exe_class_btkMemMgr__pDefMemMgr]
push ecx
push 0x14
call fcn.00414080
mov esi, eax
add esp, 8
test esi, esi
je 0x4130d2
mov edx, dword [edi + 4]
push 4
inc edx
mov ecx, esi
push edx
call fcn.004150a0
mov dword [esi], 0x4272f0
jmp 0x4130d4
xor esi, esi
push esi
mov ecx, edi
call fcn.00412d70
mov eax, dword [edi + 0xc]
push esi
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 0x10]
mov eax, dword [edi + 4]
cmp eax, ecx
jl 0x413113
sub eax, ecx
mov dword [ebp + 8], 0
inc eax
test eax, eax
jle 0x413113
push ebx
mov ebx, eax
lea edx, [ebp + 8]
mov ecx, esi
push edx
call fcn.00415210
dec ebx
jne 0x413104
pop ebx
mov eax, dword [edi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xc]
pop esi
mov dword [ecx + eax*4], edx
pop edi
pop ebp
ret
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop ebp
ret
Function at 0x413d30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov al, byte [sym.pro_build_library_ctg.exe_bool_s_bThreadingEnabled]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test al, al
je 0x413d82
mov al, byte [0x454fb8]
test al, al
je 0x413d82
call edi
mov esi, eax
mov eax, dword [0x454fbc]
cmp eax, esi
jne 0x413d70
cmp dword [0x454fb0], 1
jne 0x413d6b
inc dword [0x454fb4]
jmp 0x413d82
call fcn.00412fd0
mov eax, dword [0x454fac]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x454fbc], esi
mov al, byte [sym.pro_build_library_ctg.exe_bool_s_bThreadingEnabled]
mov esi, dword [0x454fe0]
test al, al
je 0x413dda
mov al, byte [0x454fb8]
test al, al
je 0x413dda
call edi
cmp dword [0x454fbc], eax
je 0x413da9
call fcn.00412fd0
cmp dword [0x454fb0], 1
jne 0x413dc3
mov eax, dword [0x454fb4]
test eax, eax
je 0x413dc3
dec eax
mov dword [0x454fb4], eax
jmp 0x413dda
mov ecx, dword [0x454fac]
mov dword [0x454fbc], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x413df3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x413e2e
mov al, byte [sym.pro_build_library_ctg.exe_class_baselibState_theCTState]
test al, al
je 0x413e27
push 0x430848
mov ecx, 0x455580
call fcn.00425252
push 0x412950
push 0xa
mov ecx, eax
call fcn.00425090
mov ecx, eax
call fcn.00412930
push 1
call fcn.00415dd3
push 1
call fcn.00415dd3
pop edi
pop esi
pop ebp
ret

Function at 0x415c10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov al, byte [0x455130]
test al, al
jne 0x415c56
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x415c4f
push 0x31a
push 0x430980
push 0x4309b8
call fcn.00413d30
add esp, 0xc
mov byte [0x455130], 1
mov esp, ebp
pop ebp
ret
Function at 0x41c1e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x431ab0
cmp edx, dword [eax]
je 0x41c203
add eax, 8
inc ecx
cmp eax, 0x431b40
jl 0x41c1f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x431ab0]
jne 0x41c331
mov eax, dword [0x455184]
cmp eax, 1
je 0x41c30b
test eax, eax
jne 0x41c234
cmp dword [0x43133c], 1
je 0x41c30b
cmp edx, 0xfc
je 0x41c331
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c26b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041da00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041ad60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c2ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041ad60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427a14
push edi
call fcn.00416400
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041da00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041da10
lea eax, [ebp - 0xa0]
push 0x42ad74
push eax
call fcn.0041da10
push dword [esi + 0x431ab4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041da10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00421eb5
add esp, 0x2c
pop edi
jmp 0x41c331
lea eax, [ebp + 8]
lea esi, [esi + 0x431ab4]
push 0
push eax
push dword [esi]
call fcn.0041ad60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003888
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.10003907
jae 0x10003894
xor ecx, ecx
call fcn.10003907
jae 0x100038be
xor eax, eax
call fcn.10003907
jae 0x100038cf
mov al, 0x10
call fcn.10003907
adc al, al
jae 0x100038b0
jne 0x100038fc
stosb byte es:[edi], al
jmp 0x10003895
call fcn.10003913
dec ecx
loop 0x100038db
mov eax, ebp
call fcn.10003911
jmp 0x100038fd
lodsb al, byte [esi]
shr eax, 1
je 0x10003923
adc ecx, 2
mov ebp, eax
jmp 0x100038fd
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.10003911
cmp eax, 0x7d00
jae 0x100038fb
cmp eax, 0x500
jae 0x100038fc
cmp eax, 0x7f
ja 0x100038fd
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10003895
pop ebp
ret 8
Function at 0x402878
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028a7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a0c
jmp 0x4028c5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402800
mov edi, eax
test ebx, ebx
je 0x4028c5
cmp dword [esi], 0
je 0x4028c5
dec ebx
jmp 0x4028ae
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x448045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4038a4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4049d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.004047b7
jg 0x4049d6
call 0x47cbb0b6
push es
cmp ax, bx
jbe 0x404a11
lea ecx, [esi + 0xc]
movzx edx, ax

Function at 0x404bbc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmpsb byte [esi], byte es:[edi]
inc ecx
call fcn.004047c7
push eax
push esi

Function at 0x405020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x56fffffc
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
inc dword [eax - 0x3a]
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi

Function at 0x405038
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax - 0x3a]
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
invalid
invalid
lodsb al, byte [esi]
cld
invalid

Function at 0x405054
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax - 0x18]
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]
Function at 0x406758
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x40679a
lea eax, [ebp - 0x714]
push eax
call fcn.004047c7
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0040477c
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x40679a
jmp 0x406159
cmp dword [ebp - 0x37c], 0
je 0x4067a8
jmp 0x40685d
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x406801
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x406806
jmp 0x406159
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x40684d
lea eax, [ebp - 0x714]
push eax
call fcn.004047c7
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0040477c
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x406858
jmp 0x40685d
jmp 0x406159

Function at 0x413db0
Capabilities:
Encode data using xor

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

Function at 0x4420ac
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x44214d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44883c
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x442132
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00408480
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
mov eax, 0x442160
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x1c]
push eax
push 2
lea edx, [ebp - 0x24]
mov eax, dword [0x447ce8]
call fcn.00404fc8
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x441540]
call fcn.00408ca8
call fcn.0040339c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442154
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040394c
ret
Function at 0x44257c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [0x4425f8]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
je 0x4425ae
mov dword [ebp - 8], 0x401
mov eax, dword [ebp - 4]
call fcn.004425fc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov al, byte [0x4425f8]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
jne 0x4425f1
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
mov esp, ebp
pop ebp
ret

Function at 0x442634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403d68
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 4
call fcn.00402a1c
cmp dword [ebp - 0x10], 0
je 0x4426a3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 1]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 2]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4427e8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44293d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x442837
lea edx, [ebp - 0x20]
mov eax, dword [0x447da4]
call fcn.00404fc8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x441540]
call fcn.00408c6c
call fcn.0040339c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x442872
lea edx, [ebp - 0x20]
mov eax, dword [0x447c10]
call fcn.00404fc8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x441540]
call fcn.00408c6c
call fcn.0040339c
xor eax, eax
push ebp
push 0x44290a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00442700
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_bind
mov edx, 0x442958
call fcn.00441fcc
mov eax, dword [ebp - 4]
call fcn.0044257c
cmp dword [ebp + 8], 5
jle 0x4428ce
mov dword [ebp + 8], 5
mov cl, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00402ee0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_listen
mov edx, 0x442968
call fcn.00441fcc
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x442927
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442944
lea eax, [ebp - 0x20]
call fcn.00403928
ret