joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100105e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1018a2e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esi]
push 0x400
push edx
push 0x101c50d4
lea eax, [esp + 0x30]
push 0x400
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call fcn.100107f0
cmp eax, ebx
jne 0x10010655
xor eax, eax
jmp 0x10010765
cmp dword [esp + 0xc], ebx
jne 0x100106d4
lea edi, [esi + 8]
lea edx, [esp + 0x1c]
push edi
push 0x101c50d0
push edx
call fcn.1006000f
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xc]
push eax
call fcn.10072400
cmp dword [0x10201328], ebx
je 0x10010755
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10076c20
mov edx, dword [eax]
mov dword [esp + 0x424], ebx
push edx
push str.CMailSender::ReadResponse:_S__T:__s__r_n
push str.CMailSender
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call fcn.10077520
jmp 0x10010755
cmp dword [0x10201328], ebx
je 0x10010725
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.10076c20
mov ecx, dword [eax]
mov dword [esp + 0x424], 1
push ecx
push str.CMailSender::ReadResponse:_S__T:__s__r_n
push str.CMailSender
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x424], 0xffffffff
call fcn.10077520
mov edx, dword [esp + 0xc]
lea edi, [esi + 8]
push edi
push 0x101c50d0
push edx
call fcn.1006000f
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.10072400
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1017c36b
add esp, 4
mov edx, dword [edi]
mov ecx, dword [esp + 0x42c]
xor eax, eax
cmp edx, ecx
sete al
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret 4

Function at 0x10010780
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100107cf
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x114]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8
Function at 0x100107f0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
not ecx
dec ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x10010955
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.10010780
test eax, eax
je 0x10010987
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10010873
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x10010827
jmp 0x100109af
mov esi, dword [esp + 0x2c]
sub esi, ebp
dec esi
jns 0x1001087e
xor esi, esi
push 0
lea edx, [edi + ebp]
push esi
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x1001089e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
add ebp, ebx
cmp ebx, 1
jl 0x10010997
test edi, edi
je 0x100108af
mov byte [edi + ebp], 0
sub esi, ebx
jne 0x10010904
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
add eax, esi
push eax
mov dword [esp + 0x30], eax
call fcn.1017c342
add esp, 4
mov ebx, eax
test edi, edi
je 0x100108ed
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
mov edi, ebx
mov eax, dword [esi]
test eax, eax
je 0x10010902
push eax
call fcn.1017c36b
add esp, 4
mov dword [esi], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, ebp
push eax
sub edx, eax
push ecx
add edx, edi
push edx
call fcn.100600d0
mov esi, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x1001086a
test esi, esi
je 0x10010827
push str.250
push edi
call fcn.10060050
add esp, 8
test eax, eax
jne 0x1001086a
xor esi, esi
jmp 0x10010827
mov byte [edi + ebp], 0
mov eax, dword [0x10201328]
test eax, eax
je 0x1001097b
push str.TMGateway:_Timed_Out_waiting_for_response_from_SMTP_server
push str.MailSender
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x20
mov byte [edi + ebp], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x20
test edi, edi
je 0x100109a3
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x20
mov ecx, dword [esp + 0x3c]
mov byte [edi + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x20
Function at 0x10014cf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x101ecda8
jmp 0x10014d20

Function at 0x10017640
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018a9ab
push eax
mov eax, dword [0x101ee9c0]
mov dword fs:[0], esp
sub esp, 0x20c
test eax, eax
je 0x10017673
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x10017772
push edi
mov ecx, 0x82
xor eax, eax
mov edi, 0x101ee9c4
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
pop edi
jbe 0x1001770c
lea ecx, [esp + 4]
push ecx
call fcn.1005f906
add esp, 4
test eax, eax
jbe 0x100176cb
cmp word [esp + eax*2 + 2], 0x5c
lea eax, [esp + eax*2 + 2]
jne 0x100176cb
mov word [eax], 0
lea edx, [esp + 4]
push 0x7e
push edx
call fcn.1005fbad
add esp, 8
test eax, eax
je 0x100176f5
push 0x104
lea eax, [esp + 8]
push 0x101ee9c4
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x1001770c
lea ecx, [esp + 4]
push 0x103
push ecx
push 0x101ee9c4
call fcn.10060183
add esp, 0xc
push 0x101ee9c4
lea ecx, [esp + 4]
call fcn.10076d80
mov eax, dword [esp]
mov dword [esp + 0x214], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1001775e
push eax
push 0x101ee9c4
call fcn.1005fecd
push str.TEC_MailBackup
push 0x101ee9c4
call fcn.1005fea3
push 0
push 0x101ee9c4
call fcn.1009c530
add esp, 0x18
mov dword [0x101ee9c0], eax
lea ecx, [esp]
mov dword [esp + 0x214], 0xffffffff
call fcn.10077520
mov eax, dword [0x101ee9c0]
mov ecx, dword [esp + 0x20c]
neg eax
sbb eax, eax
mov dword fs:[0], ecx
and eax, 0x101ee9c4
add esp, 0x218
ret
Function at 0x100177a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x86c
push ebx
mov ebx, dword [esp + 0x874]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
je 0x10017a02
push ebx
call fcn.1005f906
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x10017a02
cmp esi, 0x104
jae 0x10017a02
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x470]
push ebx
push eax
call fcn.10060183
lea eax, [esp + esi*2 + 0x478]
add esp, 0xc
cmp word [eax - 2], 0x5c
je 0x10017819
mov word [eax], 0x5c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x676]
mov word [esp + 0x674], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push 0x104
lea edx, [esp + 0x678]
push ecx
push edx
stosw word es:[edi], ax
call fcn.10060183
lea eax, [esp + 0x680]
push 0x101c421c
push eax
call fcn.1005fea3
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x674]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x100179f0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bp
mov ebx, dword [esp + 0x88c]
mov esi, dword [esp + 0x888]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x264]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x470]
lea ecx, [esp + 0x268]
push eax
push ecx
call fcn.10060183
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.1005fea3
mov eax, dword [esp + 0x28]
add esp, 0x14
test al, 0x10
je 0x1001795d
lea ecx, [esp + 0x40]
push 0x101c7420
push ecx
call fcn.1005fef2
add esp, 8
test eax, eax
je 0x100179c6
lea edx, [esp + 0x40]
push 0x101c7418
push edx
call fcn.1005fef2
add esp, 8
test eax, eax
je 0x100179c6
mov eax, dword [esp + 0x884]
test eax, eax
je 0x100179c6
push ebx
push esi
lea eax, [esp + 0x26c]
push 1
push eax
call fcn.100177a0
add esp, 0x10
jmp 0x100179c6
test ebx, ebx
je 0x100179a3
test bl, 1
je 0x10017982
push 7
lea ecx, [esp + 0x44]
push str.Backup_
push ecx
call fcn.10060f78
add esp, 0xc
test eax, eax
je 0x100179c6
mov eax, dword [esp + 0x14]
test bl, 2
je 0x100179a3
push 7
lea edx, [esp + 0x44]
push str.Delete_
push edx
call fcn.10060f78
add esp, 0xc
test eax, eax
je 0x100179c6
mov eax, dword [esp + 0x14]
test esi, esi
je 0x100179b8
test al, 1
je 0x100179b8
and al, 0xfe
push eax
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100178c1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x880]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x86c
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x86c
ret
Function at 0x1001c020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1018afa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.1001b760
lea eax, [esi + 0x18]
xor ebx, ebx
push 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebx
call fcn.10084010
mov ecx, dword [esp + 0x48]
xor edx, edx
mov eax, ecx
mov byte [esp + 0x3c], 1
shr eax, 4
div dword [esi + 0x3c]
mov esi, dword [esi + 0x38]
cmp esi, ebx
je 0x1001c08c
mov eax, dword [esi + edx*4]
cmp eax, ebx
je 0x1001c08c
cmp dword [eax + 8], ecx
je 0x1001c10d
mov eax, dword [eax]
cmp eax, ebx
jne 0x1001c07d
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x1001c17a
mov ebp, dword [eax + 0x70]
xor edx, edx
cmp ebp, ebx
jbe 0x1001c0d8
mov ecx, dword [eax + 0x6c]
add ecx, 6
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, 4
mov edi, 0x101eec90
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001c0ca
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001c154
inc edx
add eax, 0x14
cmp edx, ebp
jb 0x1001c0ad
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov ebp, dword [eax + 0x6c]
xor edx, edx
cmp ebp, ebx
jbe 0x1001c17a
add eax, 0x78
mov ecx, 4
mov edi, 0x101eec90
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001c101
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001c154
inc edx
add eax, 0x14
cmp edx, ebp
jb 0x1001c0e8
xor ebx, ebx
jmp 0x1001c17a
cmp eax, ebx
je 0x1001c08c
add eax, 0xc
lea ecx, [esp + 0x1c]
push eax
call fcn.1001bb60
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.1001ba00
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.10084070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001b9a0
mov eax, esi
jmp 0x1001c19a
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.10084070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001b9a0
mov eax, 1
jmp 0x1001c19a
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.10084070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001b9a0
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x1001e220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018b55f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov ebx, 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call fcn.10075af0
push 0x101c8d0c
lea ecx, [esp + 0x34]
call fcn.10073320
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001e2d7
mov eax, dword [esp + 0x30]
cmp dword [eax - 8], 4
jge 0x1001e28f
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.10071770
mov dword [esp + 0xc], ebx
jmp 0x1001e3f2
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.10071770
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.1001e420
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.10071770
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x24], bl
call fcn.100721a0
jmp 0x1001e3f2
test esi, esi
je 0x1001e3de
mov eax, dword [esp + 0x30]
cmp byte [esi + eax - 1], 0x5c
je 0x1001e385
mov edx, dword [0x1019b4e0]
mov dword [esp + 0x10], edx
mov eax, dword [eax - 8]
mov byte [esp + 0x24], 3
sub eax, esi
lea ecx, [esp + 0x30]
cmp eax, 4
jle 0x1001e358
call fcn.1001d720
mov ecx, 0xfffffffc
sub ecx, esi
push ecx
add eax, ecx
mov edx, esp
mov dword [esp + 0x1c], esp
inc esi
push eax
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.10074390
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.1001e420
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.10072320
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.100721a0
jmp 0x1001e362
push ecx
lea ecx, [esp + 0x14]
call fcn.10072320
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.10071770
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x24], bl
call fcn.100721a0
jmp 0x1001e3f2
cmp dword [eax - 8], 4
jge 0x1001e399
push 0
lea ecx, [esp + 0x34]
call fcn.10072e30
push eax
jmp 0x1001e3e3
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.10071770
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.1001e420
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.10071770
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x24], bl
call fcn.100721a0
jmp 0x1001e3f2
push 0x101ec530
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.10071870
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.100721a0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x1001ff00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018b7d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1019b4e4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
lea edx, [edi + 0x100]
xor ebx, ebx
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.10020a00
mov esi, dword [esp + 0x20]
mov eax, dword [edi + 0x148]
push eax
lea ecx, [esi + 0x3c]
call fcn.10077880
mov dword [esi + 0x20], 1
mov eax, dword [edi + 0x14c]
push eax
lea ecx, [esi + 0x40]
call fcn.10077880
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0x20]
mov eax, dword [eax + 0x30]
push eax
push ecx
call fcn.1001cb70
add esp, 8
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.100776b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.10077520
lea edx, [edi + 0x150]
lea ecx, [esi + 0x24]
push edx
call fcn.100776b0
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.1001f690
push eax
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 2
call fcn.100776b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.10077520
mov eax, dword [edi + 0x144]
lea ecx, [esi + 0x38]
push eax
call fcn.10077880
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 4]
call fcn.100776b0
lea edx, [edi + 0xfc]
mov ecx, esi
push edx
call fcn.100776b0
mov eax, dword [edi + 0x140]
lea ecx, [esi + 0x34]
push eax
call fcn.10077880
mov eax, dword [edi + 0x14]
lea ecx, [edi + 0xe8]
push ecx
lea ecx, [esi + 0x14]
mov ax, word [eax + 0x34]
mov word [esi + 0x44], bx
mov word [esi + 0x30], ax
call fcn.100776b0
lea edx, [edi + 0xec]
push edx
lea ecx, [esi + 0x10]
call fcn.100776b0
lea eax, [edi + 0xf4]
lea ecx, [esi + 0xc]
push eax
call fcn.100776b0
lea ecx, [edi + 0xf0]
push ecx
lea ecx, [esi + 8]
call fcn.100776b0
mov dword [esi + 0x50], ebx
mov dword [esi + 0x1c], ebx
mov edx, dword [edi + 0x1c]
push esi
mov dword [esi + 0x54], edx
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x16c]
mov dword [esi + 0x58], eax
call fcn.1000dda0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10077520
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10020920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018b868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
lea ecx, [esp + 0xc]
call fcn.10084c20
push 0x20019
xor ebx, ebx
push str.SOFTWARETECOcular.3_agentConfig
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebx
call fcn.10084d90
cmp eax, ebx
je 0x100209af
lea eax, [esp + 4]
push str.tmail_not_remove_folder
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call fcn.100853c0
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x101c114c
push edx
call fcn.1005f923
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, 1
mov byte [esp + 0x38], bl
lea ecx, [esp + 4]
jne 0x100209aa
call fcn.10077520
jmp 0x100209d9
call fcn.10077520
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.10029d10
mov eax, dword [esp + 0x40]
mov byte [esp + 0x38], 2
push eax
call fcn.1009db30
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.10029e70
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.10084d10
mov ecx, dword [esp + 0x30]
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x10022dd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x101ef0d0
jmp 0x10022e00
push 0xffffffffffffffff
push 0x1018bca2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10087340
mov eax, dword [0x1019b4e4]
lea ebx, [esi + 0x28]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [ebx], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 1
call fcn.10083ae0
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 0x11
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], 0xa
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.10083ae0
mov dword [esi + 0x8c], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], edi
push 0x101ec534
mov ecx, ebx
mov byte [esp + 0x1c], 5
mov dword [esi], 0x10198b80
mov dword [esi + 0x2c], edi
call fcn.100777a0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100243d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x101ef588
jmp 0x10024400
push 0xffffffffffffffff
push 0x1018be5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10087340
mov eax, dword [0x1019b4e4]
lea edi, [esi + 0x28]
mov dword [esp + 0x14], 0
mov dword [edi], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call fcn.100835e0
push 0x101ec534
mov ecx, edi
mov byte [esp + 0x18], 2
mov dword [esi], 0x10198b90
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0
call fcn.100777a0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10024520
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1002453d
mov eax, 1
pop esi
add esp, 0x190
ret
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1002457d
mov eax, dword [0x10201328]
test eax, eax
je 0x10024573
push str.CTaskDispatch::Initilize:_TMGateway:_WSAStartup_failed_
push str.CTaskDispatch
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x190
ret
mov ecx, esi
call fcn.10024fd0
call fcn.1000a070
mov eax, 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x44], eax
pop esi
add esp, 0x190
ret

Function at 0x100246b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov dword [esp + 6], eax
push 6
mov dword [esp + 0xe], eax
push 1
mov dword [esp + 0x16], eax
mov esi, ecx
push 2
mov word [esp + 0x10], 0
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x30], eax
jne 0x10024718
mov eax, dword [0x10201328]
test eax, eax
je 0x100247d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::StartListen:_Create_socket_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x10
ret
push edi
mov ecx, esi
mov word [esp + 8], 2
call fcn.100245d0
mov di, ax
push 0
and edi, 0xffff
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esi + 0x30]
xor ecx, ecx
lea edx, [esp + 8]
push 0x10
mov dword [esp + 0x14], ecx
push edx
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x10024799
mov eax, dword [0x10201328]
test eax, eax
je 0x100247d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::StartListen:_bind_socket_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esi + 0x30]
push closesocket
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100247dd
mov eax, dword [0x10201328]
test eax, eax
je 0x100247d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::StartListen:_listen_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, 1
pop esi
add esp, 0x10
ret