joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x431388
call fcn.0041a313
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x431485
cmp byte [ebp + 0x14], 0
je 0x4313a0
test bl, 0x10
je 0x4313a0
call fcn.0041a313
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x431380
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
cmp dword [esi], 0x40
mov dword [ebp - 8], eax
jne 0x4313e8
call fcn.0041a313
mov dword [esi], 0x2746
jmp 0x4313fb
cmp dword [esi], 0x4d2
jne 0x431401
call fcn.0041a313
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x43140a
or eax, 0xffffffff
jmp 0x43141c
call fcn.0041a313
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x431487
test bl, 0x10
je 0x431425
test eax, eax
je 0x431477
test bl, 1
jne 0x431485
call fcn.0041a313
lea edx, [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], eax
call fcn.004304f0
test al, al
je 0x431464
call fcn.0041a313
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], 0x4d5
mov dword [ebp - 0x1c], eax
call fcn.004304f0
test al, al
jne 0x431485
push esi
mov ecx, edi
call fcn.00431712
pop ecx
test eax, eax
jns 0x4313a3
jmp 0x431485
call fcn.004305e5
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431712
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49b7f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x431744
call fcn.0041a313
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x43179a
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
mov edi, eax
test edi, edi
je 0x43178e
jle 0x431798
call fcn.0041a313
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f834
leave
ret
Function at 0x4317a9
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49b7f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x4317db
call fcn.0041a313
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x431831
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
mov edi, eax
test edi, edi
je 0x431825
jle 0x43182f
call fcn.0041a313
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f834
leave
ret

Function at 0x431840
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49b7f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x431870
call fcn.0041a313
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x4318cb
push ebx
xor eax, eax
inc eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
mov edi, eax
test edi, edi
js 0x4318c8
call fcn.0041a313
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044f834
leave
ret
Function at 0x436627
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472ba3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
xor esi, esi
lea eax, [esp + 0x68]
mov dword [esp + 0x10], esi
push eax
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00437279
mov edi, eax
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
mov dword [esp + 0xac], esi
call fcn.0043725e
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x4366ad
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x4366b5
mov esi, dword [esi]
test esi, esi
je 0x4366be
cmp byte [esi], 0
jne 0x4366c0
xor esi, esi
test edi, edi
je 0x4366c9
cmp byte [edi], 0
jne 0x4366cb
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.004318d9
mov edi, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x38]
mov dword [edi + 4], eax
call fcn.00404060
lea ecx, [esp + 0x68]
call fcn.00404060
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], esi
xor ecx, ecx
inc ecx
xor eax, eax
mov dword [esp + 0xa8], ecx
cmp dword [edi], eax
je 0x436742
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xa8], 2
mov ebx, ecx
jmp 0x436799
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.00437279
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xa8], 3
push eax
mov ecx, ebx
mov dword [esp + 0x14], 2
call fcn.0043725e
mov dword [esp + 0xa8], 4
mov edx, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 6
call fcn.00437294
pop ecx
pop ecx
push 0xe
pop ebx
mov edi, dword [esp + 0x28]
push eax
mov ecx, edi
call fcn.004356aa
or ebx, 0x10
test bl, 8
je 0x4367c1
mov ecx, dword [esp + 0x30]
and ebx, 0xfffffff7
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x4367c1
call fcn.004304a4
test bl, 4
je 0x4367d2
lea ecx, [esp + 0x50]
and ebx, 0xfffffffb
call fcn.00404060
test bl, 2
je 0x4367e6
lea ecx, [esp + 0x80]
and ebx, 0xfffffffd
call fcn.00404060
mov dword [esp + 0xa8], 1
test bl, 1
je 0x436803
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x436803
call fcn.004304a4
test esi, esi
je 0x43680e
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4416e7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49b7f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00454000
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x441741
cmp dword [ebp - 0x108], 2
jne 0x441741
cmp dword [ebp - 0x114], 6
jb 0x441741
mov al, 1
jmp 0x441743
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f834
leave
ret

Function at 0x44209f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 0x48]
mov byte [edi + 0x30], 1
call esi
push 0
push dword [edi + 0x40]
call esi
push 0
push dword [edi + 0x44]
call esi
push 0x441f42
push 0x12c
push 1
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret

Function at 0x44266e
Capabilities:
Allocate thread local storage

Disassembly:
push 0x5c
mov eax, 0x473088
call fcn.00454b83
xor ebx, ebx
mov dword [ebp - 0x68], 0xc15730e2
mov dword [ebp - 0x64], 0x7f0725e3
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x58], bl
jmp 0x442704
mov ecx, dword [ebp - 0x64]
mov edx, 0x4a5fcc
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x442710
cmp byte [ebp - 0x60], 0
jne 0x4426f8
xor eax, eax
mov ecx, 0x4a5fd0
inc eax
lock xadd dword [ecx], eax
mov eax, dword [0x4a5fcc]
mov byte [ebp - 0x60], 1
cmp eax, dword [ebp - 0x68]
je 0x44275e
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4426fb
cmp byte [ebp - 0x58], al
jne 0x4426df
lea ecx, [ebp - 0x58]
call fcn.004425ae
lea eax, [ebp - 0x58]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041a671
jmp 0x442704
mov eax, dword [ebp - 0x5c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4a5fcc]
cmp eax, dword [ebp - 0x68]
jne 0x442695
jmp 0x44275e
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x442744
cmp byte [ebp - 0x58], al
jne 0x442724
lea ecx, [ebp - 0x58]
call fcn.004425ae
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041a671
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x44274b
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea edx, [ebp - 0x68]
mov dword [0x49ce0c], eax
call fcn.00442607
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x442771
cmp eax, 0xffffffff
je 0x442771
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00454b32
ret
Function at 0x442f72
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x24
mov eax, 0x473149
call fcn.00454bef
mov edi, ecx
xor esi, esi
push esi
mov dword [ebp - 0x30], edi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
call fcn.00408f20
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00407d70
push 0xf0000000
push 1
push esi
push esi
lea ebx, [edi + 0x18]
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x442fc8
lea ecx, [ebp - 0x2c]
call fcn.0042d9c1
lea ecx, [ebp - 0x2c]
call fcn.00404060
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00407d70
lea eax, [edi + 0x1c]
push eax
push esi
push esi
push 0x8003
mov byte [ebp - 4], 3
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x443004
lea ecx, [ebp - 0x2c]
call fcn.0042d9c1
lea ecx, [ebp - 0x2c]
call fcn.00404060
mov eax, edi
call fcn.00454b41
ret

Function at 0x44304a
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473179
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
xor eax, eax
cmp dword [ecx + 0x38], esi
push 4
pop edx
cmove eax, edx
push eax
call fcn.00401ac0
push esi
push ecx
push ecx
mov ecx, edi
call fcn.0042f4a1
push esi
push 0x400
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.0042f300
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 8]
push str.Failed_CryptHashData
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00407d70
and dword [esp + 0x448], 0
push 0
push esi
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x443104
lea ecx, [esp + 0x1c]
call fcn.0042d9c1
or dword [esp + 0x448], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00404060
xor esi, esi
cmp dword [edi + 0xc], esi
jg 0x4430b4
jl 0x443123
cmp dword [edi + 8], esi
ja 0x4430b4
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret 4
Function at 0x44405a
Capabilities:
Encode data using xor

Disassembly:
push 0x18
mov eax, 0x473239
call fcn.00454b50
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
jb 0x444078
mov eax, dword [edi]
jmp 0x44407a
mov eax, edi
mov ecx, dword [edi + 0x10]
add ecx, eax
cmp dword [edi + 0x14], 0x10
jb 0x444089
mov eax, dword [edi]
jmp 0x44408b
mov eax, edi
xor ebx, ebx
cmp eax, ecx
je 0x4440b2
mov esi, ebx
mov edx, ebx
shr edx, 2
shl esi, 6
add esi, edx
movsx edx, byte [eax]
add edx, 0x9e3779b9
add edx, esi
xor ebx, edx
inc eax
cmp eax, ecx
jne 0x444091
mov esi, dword [ebp - 0x10]
push ecx
push edi
push ebx
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0044445b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4440d5
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x444162
lea eax, [esi + 3]
test eax, eax
je 0x4440df
inc eax
jmp 0x4440e1
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.0044475f
mov edi, dword [ebp - 0x1c]
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x444129
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [eax]
push esi
call fcn.00407d40
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call fcn.00407d40
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov eax, dword [esi + 8]
inc eax
push eax
mov ecx, esi
mov byte [ebp - 0x17], 1
call fcn.004443c6
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0044416a
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
lea ecx, [ebp - 0x20]
mov byte [esi + 4], 1
call fcn.0044442f
mov eax, esi
call fcn.00454b1e
ret 0xc
Function at 0x446422
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x4735f5
call fcn.00454bb9
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x446446
mov eax, dword [edi]
jmp 0x446448
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4464ad
cmp dword [edi + 0x14], esi
jb 0x44645c
mov eax, dword [edi]
jmp 0x44645e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4464ad
lea ecx, [ebp - 0x18]
call fcn.0042d9e8
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x14], esi
jb 0x446488
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x14]
push edi
push str.Failed_to_delete_fileName__S_:__S
push eax
call fcn.004087a0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00410c00
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], esi
jb 0x4464b9
mov eax, dword [edi]
jmp 0x4464bb
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x446520
cmp dword [edi + 0x14], esi
jb 0x4464cf
mov eax, dword [edi]
jmp 0x4464d1
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x446520
lea ecx, [ebp - 0x14]
call fcn.0042d9e8
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x14], esi
jb 0x4464fb
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x18]
push edi
push str.Failed_to_delete_path__S_:__S
push eax
call fcn.004087a0
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00410c00
xor edx, edx
cmp byte [ebx + 4], dl
push ecx
sete dl
push 0
push str.SoftwareLimRevRegETags
lea ecx, [ebp - 0x28]
add edx, 0x80000001
call fcn.0042db09
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x44654b
mov eax, dword [eax]
push 1
push 0x47f3d0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040fb10
lea ecx, [ebp - 0x28]
call fcn.0040fb90
call fcn.00454b1e
ret 0xc
Function at 0x447026
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47396a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x183c
call fcn.00461c20
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x1838], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x1850]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x24]
push eax
push 0x1000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
mov edi, dword [esp + 0x24]
xor ebx, ebx
and dword [esp + 0x20], ebx
xor esi, esi
shr edi, 2
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
and dword [esp + 0x1858], ebx
test edi, edi
je 0x447171
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
push dword [eax]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x28], esi
push 0x400
lea eax, [esp + 0x1048]
push eax
push esi
mov byte [esp + 0x1864], 1
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x447144
xor eax, eax
mov word [esp + 0x1842], ax
lea eax, [esp + 0x1044]
push eax
lea ecx, [esp + 0x30]
call fcn.00408580
lea eax, [ebx + 0x5c]
mov byte [esp + 0x1858], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x44711c
mov eax, dword [eax]
push ecx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00418ba0
cmp eax, 0xffffffff
je 0x44713b
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.0043b950
lea ecx, [esp + 0x2c]
call fcn.00408690
mov byte [esp + 0x1858], 0
test esi, esi
je 0x447157
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
dec edi
jne 0x4470b6
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, esi
mov byte [eax + 0x58], 0
cmp esi, ebx
je 0x447199
mov esi, eax
push dword [edi]
mov ecx, esi
call fcn.00446d68
add edi, 4
cmp edi, ebx
jne 0x447181
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov bl, byte [eax + 0x58]
test esi, esi
je 0x4471a7
push esi
call fcn.0044f82f
pop ecx
mov al, bl
mov ecx, dword [esp + 0x1850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1838]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret
Function at 0x44749d
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0x50]
push eax
push 0x202
mov dword [esp + 0x18], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44762d
push 8
pop ecx
push 6
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
and dword [esp + 0x1c], eax
pop edi
lea ecx, [esp + 0xc]
push ecx
xor ebx, ebx
inc ebx
cmp dword [0x4a61b8], 0x10
lea ecx, [esp + 0x18]
push ecx
mov eax, 0x4a61a4
cmovae eax, dword [0x4a61a4]
push 0
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x447621
mov eax, dword [esp + 0xc]
test eax, eax
je 0x447621
push edi
push ebx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
test ebx, ebx
jns 0x44755f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0xc], 0
je 0x44762d
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x44762d
push 7
xor eax, eax
pop ecx
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
mov ax, word [eax + 4]
mov word [esp + 0x34], ax
movzx eax, word [0x49ce1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x36], ax
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 2
jne 0x4475a0
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
jmp 0x4475b8
cmp dword [eax + 4], 0x17
jne 0x44760f
mov esi, dword [eax + 0x18]
add esi, 8
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
push 0x1c
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp dword [esp + 0xc], 0
mov edi, eax
je 0x4475d9
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
jns 0x4475ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x447627
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4475f7
mov esi, dword [esi]
push 0x1c
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4475e3
jmp 0x4475dd
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x447545
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret
Function at 0x447ead
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
test esi, esi
je 0x447f0b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x447f0b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x447edb
shr eax, 4
and eax, 1
jmp 0x447f0d
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x447f27
xor ecx, ecx
mov word [eax], cx
push edi
mov ecx, ebx
call fcn.00447ead
push edi
test eax, eax
jne 0x447f14
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x447f0b
xor eax, eax
inc eax
jmp 0x447f0d