joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eaa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0x810], eax
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
mov byte [esp + 0x618], 0
mov ecx, 0x7f
lea edi, [esp + 0x619]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x418], 0
mov ecx, 0x7f
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x218], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.__regKeyValue_
push edx
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x200
call fcn.0053c3a0
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 8
cmp esi, eax
mov dword [ebx + 0xe0], esi
jae 0x45eccd
test esi, esi
je 0x45eccd
mov edi, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x420]
push eax
mov ecx, ebx
call fcn.0045e7d0
test eax, eax
jl 0x45eccd
push esi
push edi
lea ecx, [esp + 0x620]
push ecx
mov ecx, ebx
call fcn.0045e840
test eax, eax
jl 0x45eccd
push esi
push edi
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.0045e8b0
test eax, eax
jl 0x45eccd
push 0
lea eax, [esp + 0x41c]
push eax
mov ecx, ebx
call fcn.0045e920
mov edx, dword [ebx + 0xdc]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45ec07
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x21c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x628]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45ec20
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 4
jne 0x45ec64
mov esi, dword [esp + 0x218]
lea ecx, [esp + 0x18]
push ecx
call fcn.0053c6a5
sub eax, esi
add esp, 4
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x218]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x45ec07
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45ec84
sub eax, edx
mov edx, eax
lea eax, [esp + 0x218]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45eca0
sub eax, esi
cmp edx, eax
jne 0x45ec07
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
Function at 0x45efc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x614
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0x610], eax
push ebx
xor eax, eax
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], 0
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
xor eax, eax
mov byte [esp + 0x218], 0
mov ecx, 0x7f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x418], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.__regKeyExists_
push edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0x200
stosb byte es:[edi], al
call fcn.0053c3a0
mov ebx, eax
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
add esp, 8
cmp ebx, eax
mov dword [esi + 0xe0], ebx
jae 0x45f199
test ebx, ebx
je 0x45f199
mov edi, dword [esp + 0xc]
push ebx
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0045e7d0
test eax, eax
jl 0x45f199
push ebx
push edi
lea ecx, [esp + 0x220]
push ecx
mov ecx, esi
call fcn.0045e840
test eax, eax
lea edx, [esp + 0x18]
jge 0x45f0fa
push edx
mov eax, edx
push eax
mov ecx, esi
call fcn.0045e920
test eax, eax
je 0x45f199
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45f159
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x610]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0045e920
test eax, eax
je 0x45f199
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45f159
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x41c]
push ecx
push 0
push 0
lea edx, [esp + 0x228]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45f172
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x610]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x610]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x61c]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
Function at 0x45f580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0x810], eax
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
mov byte [esp + 0x618], 0
mov ecx, 0x7f
lea edi, [esp + 0x619]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x418], 0
mov ecx, 0x7f
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
xor eax, eax
mov byte [esp + 0x218], 0
mov ecx, 0x7f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.__regKeySubstring_
push edx
mov dword [esp + 0x18], edx
stosb byte es:[edi], al
mov dword [esp + 0x1c], 0x200
call fcn.0053c3a0
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 8
cmp esi, eax
mov dword [ebx + 0xe0], esi
jae 0x45f786
test esi, esi
je 0x45f786
mov edi, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x420]
push eax
mov ecx, ebx
call fcn.0045e7d0
test eax, eax
jl 0x45f786
push esi
push edi
lea ecx, [esp + 0x620]
push ecx
mov ecx, ebx
call fcn.0045e840
test eax, eax
jl 0x45f786
push esi
push edi
lea edx, [esp + 0x220]
push edx
mov ecx, ebx
call fcn.0045e8b0
test eax, eax
jl 0x45f786
lea eax, [esp + 0x418]
mov ecx, eax
push eax
push ecx
mov ecx, ebx
call fcn.0045e920
mov ecx, dword [ebx + 0xdc]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45f6e5
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea ecx, [esp + 0x628]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45f6fe
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
push 0x572ff4
push edx
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x45f751
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0053c3a0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x218]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.005470ba
xor ecx, ecx
add esp, 8
test eax, eax
setge cl
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 8
Function at 0x46163a
Capabilities:
Delete file

Disassembly:
mov eax, 0x56360e
call fcn.0053c1d0
sub esp, 0xa4
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x461806
cmp dword [ebp + 0xc], esi
je 0x461806
mov ecx, dword [0x5b096c]
push ebx
push edi
call fcn.00460a16
push eax
lea ecx, [ebp - 0x10]
call fcn.004071e0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00429c30
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
mov edi, str.patcherr.dat
mov esi, 0x572ea0
je 0x46172f
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00404a20
mov eax, dword [0x5b096c]
push edi
add eax, 0x6c
push esi
push eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 1
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407320
cmp dword [eax + 0x18], 0x10
jb 0x4616f4
mov eax, dword [eax + 4]
jmp 0x4616f7
add eax, 4
push eax
call ebx
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402c50
push dword [ebp + 8]
mov ecx, dword [0x5b096c]
call fcn.004839a0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.004028d0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x572840
call fcn.0054dfcb
mov ecx, dword [0x5b096c]
call fcn.00460a3f
push eax
lea ecx, [ebp - 0x14]
call fcn.004071e0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00429c30
test al, al
pop ecx
pop ecx
je 0x4617ee
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00404a20
mov eax, dword [0x5b096c]
push edi
add eax, 0x6c
push esi
push eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 3
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407320
cmp dword [eax + 0x18], 0x10
jb 0x4617b3
mov eax, dword [eax + 4]
jmp 0x4617b6
add eax, 4
push eax
call ebx
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402c50
push dword [ebp + 0xc]
mov ecx, dword [0x5b096c]
call fcn.00483eb0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004028d0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x572840
call fcn.0054dfcb
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401250
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401250
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x46b22f
Capabilities:
Find taskbar

Disassembly:
mov eax, 0x5642c6
call fcn.0053c1d0
sub esp, 0xb0
push ebx
push esi
lea esi, [ecx + 0x58]
mov ecx, esi
call fcn.00460920
cmp eax, 2
jne 0x46b2b5
mov ecx, dword [0x5b096c]
lea eax, [ebp - 0x10]
push eax
call fcn.004159a9
mov eax, dword [eax]
xor esi, esi
push esi
push 0x50121
push eax
push 0x31
mov dword [ebp - 4], esi
call fcn.00416955
mov ecx, eax
call fcn.004159ff
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxExA]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
inc bl
call fcn.00401250
test bl, bl
je 0x46b2a7
push 2
call fcn.004b70f0
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, esi
call fcn.00460920
cmp eax, 3
jne 0x46b2a7
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ebx, ebx
inc ebx
push ebx
push 2
lea ecx, [ebp - 0xbc]
call fcn.00404a20
mov eax, 0x572a6c
push eax
push 0x5774ac
push 0x572a4c
push eax
push 0x572a48
push 0x10000000
push 0x572a40
push dword [ebp - 0x14]
mov eax, 0x572a3c
push eax
push dword [ebp - 0x16]
mov edx, 0x572a38
push eax
push dword [ebp - 0x18]
mov ecx, 0x572a34
push edx
push dword [ebp - 0x1a]
mov dword [ebp - 4], ebx
push ecx
push dword [ebp - 0x1e]
push ecx
push dword [ebp - 0x20]
push edx
push 0x916
push eax
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str..PatchXml.cpp
call fcn.00405500
lea eax, [ebp - 0x3c]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x46b35b
mov eax, dword [eax + 4]
jmp 0x46b35e
add eax, 4
push eax
lea eax, [ebp - 0xbc]
push 0x572a0c
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov byte [ebp - 4], bl
xor esi, esi
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00402c50
lea eax, [ebp - 0xbc]
push eax
call fcn.00407930
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x70]
call fcn.004028d0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x572840
call fcn.0054dfcb
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x46b29f
push 0x78
push esi
push 0x1000385
push esi
call fcn.004176e2
pop ecx
mov ecx, eax
call fcn.00417808
jmp 0x46b2a7
Function at 0x47329f
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4732e6
cmp byte [edi], 0
je 0x4732e6
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov esi, eax
push esi
call fcn.00503ddc
test al, al
pop ecx
jne 0x4732e2
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4732e9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
push esi
call dword [sym.imp.WSOCK32.dll_htonl]
cmp eax, 0x7f000001
je 0x4732e6
mov eax, esi
jmp 0x4732e9
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x47365f
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x564c84
call fcn.0053c1d0
sub esp, 0x4b8
mov eax, dword [0x5af710]
push ebx
push esi
xor eax, ebp
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x414]
push ecx
push eax
xor ebx, ebx
push ebx
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x414], 0x10
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, ebx
jg 0x473877
mov esi, 0x211
cmp dword [0x5b21c0], esi
jne 0x473873
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [ebp - 0x4c4]
call fcn.00404a20
mov eax, 0x572a6c
push eax
push str.recvfrom
push 0x572a4c
push eax
push 0x572a48
push esi
push 0x572a40
push dword [ebp - 0x418]
mov eax, 0x572a3c
push eax
push dword [ebp - 0x41a]
mov edx, 0x572a38
push eax
push dword [ebp - 0x41c]
mov ecx, 0x572a34
push edx
push dword [ebp - 0x41e]
mov dword [ebp - 4], ebx
push ecx
push dword [ebp - 0x422]
push ecx
push dword [ebp - 0x424]
push edx
push 0xe8
push eax
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x428], esp
push str..PING.cpp
call fcn.00405500
lea eax, [ebp - 0x444]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 1
jb 0x473772
mov eax, dword [eax + 4]
jmp 0x473775
add eax, 4
push eax
lea eax, [ebp - 0x4c4]
push 0x572a0c
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x444]
call fcn.00402c50
lea eax, [ebp - 0x4c4]
push eax
call fcn.00407930
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x478]
call fcn.004028d0
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x478], 0x572840
call fcn.0054dfcb
xor eax, eax
jmp 0x473897
cmp byte [ebp - 0x3fc], bl
jne 0x473894
mov ecx, dword [esi]
cmp ecx, ebx
je 0x473897
push eax
lea eax, [ebp - 0x410]
push eax
push dword [esi + 4]
call ecx
jmp 0x473897
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret 8
Function at 0x47b820
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x47b867
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
je 0x47b862
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x47b5d0
push 0
push 0
mov dword [esp + 0x1c], 0
mov byte [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x40], eax
jne 0x47b867
mov byte [esi + 0x44], 1
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x47b870
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x47b8b7
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
je 0x47b8b2
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x47b6c0
push 0
push 0
mov dword [esp + 0x1c], 0
mov byte [esi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x44], eax
jne 0x47b8b7
mov byte [esi + 0x48], 1
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x47bbe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x565431
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebp
push esi
mov esi, ecx
mov word [esi + 0xc], 2
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x572c04
push edi
xor ebp, ebp
mov dword [esi + 0x1c], ebp
lea eax, [esi + 0x28]
push eax
mov dword [esp + 0x14], esi
mov dword [esi], 0x578638
mov dword [esi + 4], 0x578630
mov dword [esi + 0x20], 0x54
mov dword [esi + 0x24], ebp
call ebx
mov dword [esi + 0x44], 1
lea edi, [esi + 0x48]
mov dword [edi], 0x573118
lea eax, [edi + 0x18]
push eax
mov dword [esp + 0x20], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
call ebx
mov dword [edi + 0x34], ebp
mov dword [edi + 0x30], ebp
lea ebx, [esi + 0x84]
mov dword [esi], 0x578c30
mov dword [esi + 4], 0x578c28
mov dword [edi], 0x578c18
mov ecx, ebx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x80], ebp
call fcn.0047b800
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
mov dword [esi + 0x90], 0x3c
push ebp
mov ecx, edi
mov byte [esp + 0x20], 2
mov dword [esi + 0x94], ebp
call fcn.00409590
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x482480
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x565ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x5af710]
xor eax, esp
push esi
mov esi, dword [esp + 0x3c]
test esi, esi
push edi
mov dword [esp + 0x2c], eax
mov edi, ecx
je 0x482514
cmp byte [esi], 0
je 0x482514
mov eax, esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4824d0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00404640
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call fcn.00503ddc
add esp, 4
test al, al
jne 0x482534
cmp dword [esp + 0x28], 0x10
jb 0x482514
mov eax, dword [esp + 0x14]
push eax
call fcn.0055047a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop esi
xor ecx, esp
call fcn.0053aaae
add esp, 0x34
ret 4
mov esi, dword [0x5b096c]
add esi, 0x5e0
push esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x498]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x48], 1
call fcn.00481a00
mov edx, dword [edi + 0x498]
mov ecx, dword [esp + 0x18]
add esp, 0x10
cmp ecx, edx
setne dl
push esi
movzx edi, dl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x28], 0x10
jb 0x482599
mov eax, dword [esp + 0x14]
push eax
call fcn.0055047a
add esp, 4
mov eax, edi
jmp 0x482516
Function at 0x4826d0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x565b16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
mov eax, dword [0x5af710]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x360]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34c], eax
call fcn.00531d0c
push edi
lea eax, [esp + 0x1c0]
push str._s.
push eax
mov dword [esp + 0x364], 0
call fcn.0053bafc
add esp, 0xc
push 0
lea ecx, [esp + 0x1c0]
push ecx
lea ecx, [esp + 0x18]
call fcn.00531d9f
test eax, eax
je 0x48284e
jmp 0x482750
lea ecx, [esp + 0x10]
call fcn.00531b4d
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.00531cd3
test eax, eax
jne 0x482846
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00531fc4
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0xc8
or eax, ecx
mov byte [esp + 0x358], 1
jge 0x4827ab
push 0xc8
mov ecx, esi
call fcn.00402370
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4827b1
mov byte [esp + 0x358], al
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4827e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x38]
test eax, eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push 0x576c10
je 0x48281b
lea edx, [esp + 0x100]
push edx
call fcn.0053bafc
lea eax, [esp + 0x104]
push eax
call fcn.004826d0
add esp, 0x14
jmp 0x482846
lea edx, [esp + 0x290]
push edx
call fcn.0053bafc
add esp, 0xc
lea eax, [esp + 0x288]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004071e0
call fcn.004b00e0
add esp, 4
test ebp, ebp
jne 0x482750
lea ecx, [esp + 0x10]
call fcn.00531a7d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x358], 0xffffffff
jne 0x48287a
call fcn.00531d30
xor eax, eax
jmp 0x482884
call fcn.00531d30
mov eax, 1
mov ecx, dword [esp + 0x350]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x348]
pop esi
pop ebp
xor ecx, esp
call fcn.0053aaae
add esp, 0x350
ret